/oauth/userinfo
GET
/oauth/userinfo
oauth2
Request
Header Params
Authorization
string
optional
Example:
Bearer 2981a04e9ffb20bf28928fcca01822ba
Responses
🟢200OK
application/json
Body
id
integer
required
email
string
required
created_at
string
optional
updated_at
string
optional
first_name
string
required
last_name
string
required
orders_count
integer
optional
state
string
optional
total_spent
string
optional
last_order_id
null
optional
note
string
optional
verified_email
boolean
required
multipass_identifier
null
optional
tax_exempt
boolean
optional
tags
string
optional
last_order_name
null
optional
currency
string
optional
addresses
array[string]
optional
accepts_marketing
boolean
optional
accepts_marketing_updated_at
null
optional
marketing_opt_in_level
string
optional
tax_exemptions
array[string]
optional
email_marketing_consent
object
optional
state
string
required
opt_in_level
string
required
consent_updated_at
null
required
sms_marketing_consent
null
optional
admin_graphql_api_id
string
optional
Example
{
"id": 3842416377988,
"email": "demo@demo.com",
"created_at": "2020-11-27T22:10:51-05:00",
"updated_at": "2024-01-22T22:56:25-05:00",
"first_name": "test",
"last_name": "demo",
"orders_count": 0,
"state": "enabled",
"total_spent": "0.00",
"last_order_id": null,
"note": "",
"verified_email": true,
"multipass_identifier": null,
"tax_exempt": false,
"tags": "forum",
"last_order_name": null,
"currency": "VND",
"addresses": [],
"accepts_marketing": false,
"accepts_marketing_updated_at": null,
"marketing_opt_in_level": "single_opt_in",
"tax_exemptions": [],
"email_marketing_consent": {
"state": "not_subscribed",
"opt_in_level": "single_opt_in",
"consent_updated_at": null
},
"sms_marketing_consent": null,
"admin_graphql_api_id": "gid://shopify/Customer/3842416377988"
}
🟠400Invalid status value
Modified at 2024-09-04 08:38:21