Create Token
POST {{auth_url}}/token
Parameters
Field | Description | Type |
---|---|---|
Partner ID | ID of the partner who is authorized to have an app connected to the tomato pay APIs | Header |
API Key | A secret key used to authenticate a client | Header |
If you haven't already, you can obtain your API key by signing up here
tomato pay API uses JWT (JSON web tokens) to authenticate requests to all other endpoints. These tokens expire every 30 minutes. To obtain a JWT, use the API key, and click on your app in the ‘My Apps’ section.
Attributes
Field | Type | Description |
---|---|---|
access_token | string | Access token |
expires_in | string | Expiry time of the token (in seconds) (Default 30 minutes or 1800 seconds) |
partner_id | string | ID of the partner who is authorised to have an app connected to the tomato pay APIs |
token_type | string | Type of token (Bearer in this case) |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
X-Partner-Id | string | ||
X-Api-Key | string |
RESPONSES
status: Created
{"access_token":"accesstoken123","expires_in":1800,"partner_id":"partnerid256","token_type":"Bearer"}