Skip to main content
POST
Exchange an authorization code for an access token

Corpo

application/json
code
string
obrigatório

Authorization code received on the redirect callback after the seller approved your app.

client_id
string
obrigatório
client_secret
string
obrigatório
redirect_uri
string<uri>
obrigatório

Must match exactly the redirect_uri your app was registered with.

state
string
obrigatório

The same state value that came back with the authorization code, echoed back for CSRF protection.

Resposta

Token issued

access_token
string
refresh_token
string
token_type
string
Exemplo:

"Bearer"

expires_in
integer

Seconds until the access token expires.

Exemplo:

2592000

expires_at
string<date-time>
permissions
string[]

Scopes granted to your app by the store owner (a subset of the app's requested permissions).