post https://customers.sandbox.tingg.africa/api/v1/cas/authenticate
This endpoint will get the OAuth access token for use in subsequent calls
Request
Parameter | Type | Required | Description |
---|---|---|---|
username | varchar | Yes | Merchant’s username, to be provided by Tingg |
password | varchar | Yes | Merchant’s password, to be provided by Tingg |
grant_type | varchar | Yes | The value should always be “password” |
{
"username": "instore-demo-ke",
"password": "g,2UWrVa!wK%`s!8U5a4W9#!0V-CN^3.",
"grant_type": "password"
}
Response
Parameter | Type | Descroption |
---|---|---|
token_type | String | The value will always be “bearer” |
expires_in | long | Time the tokens will expire in seconds |
access_token | String | The access token for subsequent requests |
refresh_token | String | The OAuth refresh token for generating new access token |
{
"token_type": "bearer",
"expires_in": 3600,
"access_token":"eyJraWQiOiJjYXMtcGsiLCJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI5NTQ3NSIsImF1ZCI6IioiLCJsZXZlbCI6IkNVU1RPTUVSIiwiaXNzIjoiaHR0cDovL2Nhcy1hcGkuYXBwcm92YWw6ODA4MC8iLCJuYW1lIjoiaW5zdG9yZS1kZW1vLWtlIiwidXR5cGUiOiJTQU5EQk9YX0FQSSIsImNsaWVudCI6IklOU1RPUkVERU1PS0UiLCJleHAiOjE2ODU0MjQwMjQsImlhdCI6MTY4NTQyMDQyNCwiY3VzdF9pZCI6MTI4ODUsImp0aSI6ImRjYWI2ZjFmLWMyZGItNDAyMi1iOWQyLTdhYzRiZDM0YjllNzgzMTQ0NDg1LTRmOWUtNDI1YS1hOTRjLTA1NDc1YjFkNDNiMCJ9.vE_vI_rvMX9FMDHY-jLW6YzspuTrEZ19Bt3ChbsoT_X1QaTuE42yMAgcKJOQ-z45fvLZa123dnlBHg0OoYn7dfCSmIYK2JjDEcQ4mypb-wB7E3gGeWgp6R_Zx6MnFWWY7Kys7qU6G1qVGRT1a8-oBM8CJ8K92K0ZbFVczkv_UiwkBN0z6DQHvkFYetWJR16gPouZq6IEU9hizxdLNNr6Vp0W3En_qgkdlY7XWnLWA7A1JPxtA8oeBEhpSQkLvWzP2jt6EKDNg8nP3kgGT2Qm-qFhPeSWnnuHM1CTD0BvPe1SrS_ooLd4zLUGcPFsgdTAAXv4LmxS_BGOhkHn6pWAXw",
"refresh_token":"OEVrbkM5bDM0Q0lVUDEvcTR2dkY3QU5PV2ZGdVVJVGQxRDBGNmQ0WjlDaWF2emM0Y1pocGI4NU8wSXVtT2pSbTJNM3QzUXlwUEJQQnJUSTIzejM4UEE9PQ=="
}