Exchange app credentials (appId and secretKey) for a JWT access token. The token expires in 24 hours and can be refreshed within 5 minutes after expiry.
appId and secretKey) for a JWT access token. This token is required to authenticate all other V3 API requests.
| Property | Value |
|---|---|
| Token Type | JWT (HS256) |
| Expiry | 24 hours (86400 seconds) |
| Refresh Window | Up to 5 minutes after expiry |
| Scope | Description |
|---|---|
collect:write | Create checkout sessions, process payments |
collect:read | View collection transactions |
payout:write | Send payouts |
payout:read | View payout transactions |
Authorization header for all API requests:
| Code | Description |
|---|---|
VALIDATION_ERROR | Missing or invalid request parameters |
AUTH_INVALID_CREDENTIALS | App not found or secret key mismatch |
AUTH_APP_INACTIVE | App is suspended or archived |
Your app ID (16 characters)
8"DD123FR45446CECES"
Your app secret key
16"your_secret_key_here"
OAuth grant type (must be 'client_credentials')
client_credentials "client_credentials"