Get Token¶
Generates a short-lived Bearer token using your client credentials, which must be included in the Authorization header of subsequent protected API requests.
Endpoint¶
GET
https://partners.waffarx.com/api/auth/token
Request Headers¶
Header |
Description |
|---|---|
wxc-id |
Your WaffarX Client Id |
wxc-auth |
Signature auth header for the request |
wxc-date |
UTC timestamp of the request, e.g. |
accept |
Must be |
Note
wxc-id: The WaffarX client ID specified in your integration data.
cURL Example¶
curl --location 'https://partners.waffarx.com/api/Auth/token' \
--header 'accept: application/json' \
--header 'wxc-id: {YOUR_CLIENT_ID}' \
--header 'wxc-date: 2025-07-17T14:44:47Z' \
--header 'wxc-auth: ee5ffcb3de3814a1f98154aefd92de9f03d83cf47c94a533de7501c98a0c9fb7'
Important
Token Expiry: The generated Bearer token is valid for 15 minutes. Be sure to refresh it before expiry to maintain uninterrupted access to protected endpoints.
Responses¶
Success (HTTP 200)¶
Success Response Example¶
{
"status": "Success",
"data": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiJWYWx1QXBwIiwianRpIjoiNDhlNDc5YzEtZjdiNy00NmE2LWJjMTEtYjIxZjExNWM2YjgwIiwiaWF0IjoxNzUyNzYzNTMzLCJuYmYiOjE3NTI3NjM1MzMsImV4cCI6MTc1Mjc2NDQzMywiaXNzIjoiV2FmZmFyWFBhcnRuZXIiLCJhdWQiOiJXYWZmYXJYUGFydG5lciJ9.dOmYWGWo7PGoCD4XjkhQ-ay-O9UX9pJS7m_cUcXuz0Ljfw5GTP8oFONonwJuPMLyPAL37xfCgRdn_N9fezGzHL8Yh5l1s2-cLBjkhOP3Xqby0CZclpmFuYIEN0P8WzhdZGkZOiPQz4tSeZOiuH1U2vz84AS8LZ8CocnTuVgqtwpPi1BUt7mTB5Bp6y0O1fx_LSSN7VnKL7mLNmQG0CUj77A9_taOsrOdGp9InOkX91XyyZUpaoDyzuABstqGMV5YwwjzNjqvZHow-YdCwjjxf28K1U4I-ydSxfYERfNrRHqe6-9u5vCgRoMi77tEexHWhizm7Z38ruQGPguOBPlP_w",
"message": null,
"errors": null
}
Error (HTTP 4XX/5XX)¶
Error Response Example¶
{
"status": "Error",
"data": null,
"message": "",
"errors": []
}