Get Splitit Token
POST/token
Authenticate using your client_id and client_secret from your merchant portal (Splitit support will also have to enable reports API access for you).
For testing purposes, you can authenticate directly in the Request box on this page (at right). For grant_type, enter client_credentials, for scope enter dataretrieval.api reportingSystem.config.api reportingSystem.operation.api, then enter your client_id and client_secret. Scroll down and press SEND API REQUEST. In the response, copy your access_token and then paste it in the Bearer Token box. You can now use your token to execute the other endpoints in this API reference.
- Note that unlike the other endpoint, your authentication payload should use the format application/x-www-form-urlencoded.
Request
- application/x-www-form-urlencoded
Body
required
i.e. client_credentials
i.e. dataretrieval.api reportingSystem.config.api reportingSystem.operation.api
e.g. APIUser000032201
e.g. sU9tOVHOcM6jPOjjWZpXZs4V0cmc01BZfChF5afrj71Dz2COn2
Responses
- 200
Success
- application/json
- Schema
- Example (from schema)
Schema
The bearer token to add to your header
How long token will last
Type of token
The scope granted to your request
{
"access_token": "string",
"expires_in": 0,
"token_type": "string",
"scope": "string"
}