Skip to main content

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

KeyValueRequiredDescription
client_idstringyesPartner client_id credential
client_secretstringyesPartner client_secret credential
timestampstringyesIn 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

KeyValueRequiredDescription
response_codestringyesResponse code as specified (see 10. Response Codes)
messagestringyesAdditional informational or error message
tokenstringyesValid token for transactional use
timestampstringyesIn 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"
}

Have a feedback?