EGT API
This api is use to return the Auth token
Request Body required
access_key issued to you by Nimbbl, you can get this from the dashboard
This is the order_id returned by Nimbbl in response to the create order API
- 200
- 4XX
- 5XX
When the egt token api is successful, the response will be as below
Schema
This is the user token, you will need to add it to the Header for subsequent API calls
This is the expiry of the token, it is expressed in UTC. If the token has expired, you will need to hit the API again to generate another token. The token has an expiry time of 20 minutes
This is the internal identifier for the sub merchant.
auth_principal string
This is the internal identifier for the sub merchant.
The version of the checkout that needs to be rendered.
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo2LCJzdWJfbWVyY2hhbnRfaWQiOjMsImV4cCI6MTcwNzg5ODk1OSwidHlwZSI6Im1lcmNoYW50IiwiaWF0IjoxNzA3ODk3NzU5LCJpc3MiOiJ1cm46bmltYmJsIiwidG9rZW5fdHlwZSI6InRyYW5zYWN0aW9uIn0.YLpLWonfBIlB8FFBEXQcLt_JA6ymnN0zXANR1J_Bg2M",
"expires_at": "2021-04-15 04:34:15.990152",
"sub_merchant_id": 3,
"auth_principal": "string",
"checkout_version": "V1"
}
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ1cm46bmltYmJsIiwiaWF0IjoxNzAxNzgxODIzLCJleHAiOjE3MDE3ODMwMjMsInR5cGUiOiJvcmRlciIsInN1Yl9tZXJjaGFudF9pZCI6Mywib3JkZXJfaWQiOiJvX2ttWVFiNGc2SnpuUFpsMlYifQ.t4mQUsTcXHQ9s5I82pCHtQjFhWDEXS3XfCMWhPEX9mk",
"checkout_version": "V2"
}
When the refresh token is not successful, the response will be as below
Schema
The HTTP error status
The message from the server explaining the error
error object
The HTTP error status
The message from the server explaining the error
This is the http status code
The transaction status
error object
The transaction status
The message from the server explaining the error
{}
When there is a problem on the server, the response will be as below
Schema
The HTTP error status
The message from the server explaining the error
{
"status": 500,
"error": "HTTP 500: Internal Server Error"
}