Get Customer Token
POST/authentication/customerAuthToken
This is used to get the customer (end-user application) access token using the server access token and customer number created in the GTN trading platform. This access token can be used to access the GTN open API via end-user applications.
Request
- application/json
Body
customerNumber stringrequired
Customer Number of a customer.
Example: ASI685695865
accessToken stringrequired
Server access token which gained from authentication/severAuthToken
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- example
Schema
status stringrequired
Possible values: [SUCCESS
, FAILED
]
reason string
rejectCode integer
Find error codes here)
accessToken stringrequired
refreshToken stringrequired
accessTokenExpiresIn integerdeprecated
UTC time
accessTokenExpiresAt integerrequired
UTC time
refreshTokenExpiresIn integerdeprecated
UTC time
refreshTokenExpiresAt integerrequired
UTC time
tokenType stringrequired
Example: bearer
{
"status": "SUCCESS",
"reason": "string",
"rejectCode": 0,
"accessToken": "string",
"refreshToken": "string",
"accessTokenExpiresAt": 0,
"refreshTokenExpiresAt": 0,
"tokenType": "bearer"
}
{
"status": "SUCCESS",
"reason": "auth token generation success",
"rejectCode": 0,
"accessToken": "O0AeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiY3VzdG9tZXIiLCJwcm92aWRlciI6Im9tcyIsImlzcyI6IkdUTiIsImluc3RDb2RlIjoiVFJBREVfQVBJX0lOU1RfT05FIiwiY3VzdG9tZXJOdW1iZXIiOiJBU0kxMTEwNTMxNTIiLCJlbnYiOiJBU0lBLVVBVCIsImV4cCI6MTcwOTA0NjU4NywiaWF0IjoxNzA5MDEwMjg3fQ.5SyQjKPCR8L-MgWy-tSj3OvHHCwQQc15XGWPOs6BI6s",
"refreshToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiY3VzdG9tZXIiLCJwcm92aWRlciI6Im9tcyIsImlzcyI6IkdUTiIsImluc3RDb2RlIjoiVFJBREVfQVBJX0lOU1RfT05FIiwiY3VzdG9tZXJOdW1iZXIiOiJBU0kxMTEwNTMxNTIiLCJlbnYiOiJBU0lBLVVBVCIsImV4cCI6MTcwOTA4MjU4NywiaWF0IjoxNzA5MDEwNTg3LCJqdGkiOiJjM2U2Y2FiOC1mMjg0LTQzMTktYjE0My05YWY4ZTlhZjhhOGYifQ.4wyKTZhAOoOGDLnbk9PsDtiBM5pEpHJwRikoK04Fnaw",
"accessTokenExpiresIn": 1709046587793,
"refreshTokenExpiresIn": 1709082587792,
"accessTokenExpiresAt": 1709046587793,
"refreshTokenExpiresAt": 1709082587792,
"tokenType": "bearer"
}
Loading...
Is this page helpful for you?