1. 1. Authentication
Yamm
  • Partner API
    • 1. Authentication
      • Issue Access Token
        POST
    • 2. Catalog
      • List Products
      • Get Product
    • 3. Returns
      • List Return Reasons
      • Create Return Reason
      • Upload Return Attachment
      • Create Return
      • List Returns
      • Get Return
      • Approve Return
      • Reject Return
      • List Resolution Methods
      • Inspect Return
      • Cancel Return
      • Get Return Timeline
    • 4. Webhooks
      • Webhook Meta
      • List Webhooks
      • Create Webhook
      • Get Webhook
      • Update Webhook
      • Delete Webhook
      • Rotate Webhook Secret
      • Send Test Webhook
      • List Webhook Deliveries
      • Get Webhook Delivery
      • Retry Webhook Delivery
    • 5. Store & Orders
      • Get Store
      • List Orders
      • Get Order
  1. 1. Authentication

Issue Access Token

POST
/partner/v1/oauth/token
Issues an access token. Authenticated by client_id + client_secret — no bearer token.
client_credentials: send store_id of a store in the app owner's organization. Grants the app's full scopes; no refresh token is returned — call this again when the token expires.
refresh_token: exchanges a refresh token for a new pair. Refresh tokens rotate: always store the new refresh_token; the old one stops working.

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

🟠400Validation failed or invalid store
🟠401Invalid client or refresh token
🟠429Too Many Requests
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location '/partner/v1/oauth/token' \
--header 'Accept-Language: en' \
--header 'Content-Type: application/json' \
--data '{
    "grant_type": "client_credentials",
    "client_id": "{{client_id}}",
    "client_secret": "{{client_secret}}",
    "store_id": "{{store_id}}"
}'
Response Response Example
200 - Example 1
{
    "success": true,
    "message": "string",
    "data": {
        "access_token": "string",
        "refresh_token": "string",
        "token_type": "string",
        "expires_in": 0
    }
}
Next
List Products
Built with