Api reference
Create an access token
Exchanges merchant client credentials for a bearer token valid for one hour.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/auth/token" \ -H "Content-Type: application/json" \ -d '{ "grant_type": "client_credentials", "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET" }'{ "access_token": "string", "token_type": "Bearer", "expires_in": 3600}