Get Token
The purpose of this payload is for Tokopedia to get a token that can be used for authorization. The expected result for this payload is for the partner to provide the authorization token for 2 hours validity range (Tokopedia will hit this payload every 1 hour, and is not related to transaction).
Request
Key | Value | Required | Description |
---|---|---|---|
client_id | string | yes | Partner client_id credential |
client_secret | string | yes | Partner client_secret credential |
timestamp | string | yes | In Jakarta Time GMT+7, Format: YYYY-MM-DD hh:mm:ss |
Unencrypted & Unsigned (Plain Payload) Example
{
"client_id": "partnerclientid",
"client_secret": "partnerclientsecret",
"timestamp": "2021-12-12 12:12:12"
}
Response
Key | Value | Required | Description |
---|---|---|---|
response_code | string | yes | Response code as specified (see 10. Response Codes) |
message | string | yes | Additional informational or error message |
token | string | yes | Valid token for transactional use |
timestamp | string | yes | In Jakarta Time GMT+7, Format: YYYY-MM-DD hh:mm:ss |
Decrypted & Verified (Plain Payload) Success Example
{
"response_code": "00",
"message": "Success",
"token": "partnertoken",
"timestamp": "2021-12-12 12:12:12"
}
Decrypted & Verified (Plain Payload) Failed Example
{
"response_code": "30",
"message": "Invalid credential",
"token": "",
"timestamp": "2021-12-12 12:12:12"
}