API Reference

retrieve access token

Service to retrieve bearer access token.
Token will expire in 7 days if it's not used, make sure to handle access token refresh with original credentials.
Best practice to improve your application performance is to store access token to pass with each API request, and refresh only when expired.
This will significantly improve your application performance and latency versus retrieving token before each API call.

For Store API request make sure to also enable request credentials, to pass cookie, this is required to handle customer session.

Body Params
string

"apiKey" - retrieve access token with API key and secret
"customer" - retrieve access token for Store API customer
"jwt" - retrieve user information from access token

string

Required if strategy is "customer" and phone is not provided

string

Required if strategy is "customer" and email is not provided

string

Required if strategy is "customer"

string

Required if strategy is "apiKey"

string

Required if strategy is "apiKey"

string

Required if strategy is "jwt"

Headers
string
Defaults to store-domain.com

Use only on sandbox to simulate request origin, in production environment it will default to "Host" header

Responses

Language
URL
Request
Click Try It! to start a request and see the response here! Or choose an example:
application/json