Get Offer
The purpose of this payload is for Tokopedia to get the offers provided for certain users, usually based on user’s MSISDN on telco categories. Tokopedia will hit this payload everytime the users open Tokopedia’s product detail page. By default, Tokopedia will save the eligible offer for 24 hours.
Request
Key | Value | Required | Description |
---|---|---|---|
ref_id | string | yes | Unique reference identifier from Tokopedia |
client_number | string | yes | User client number |
category | string | yes | Product category identifier provided by Tokopedia |
timestamp | string | yes | In Jakarta Time GMT+7, Format: YYYY-MM-DD hh:mm:ss |
Unencrypted & Unsigned (Plain Payload) Example
{
"client_number": "6281234567890",
"timestamp": "2021-12-12 12:12:12"
}
Response
Key | Value | Required | Description |
---|---|---|---|
string | yes | Additional informational or error message | |
string | yes | Unique reference identifier from Partner | |
offer_details | array | no | Product offer details |
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",
"partner_ref_id": "11242905512",
"offer_details": [
{
"id": "00036860",
"reference_code": "reference1234",
"product_code": "product1234",
"price": 1505000,
"description": "Combo Internet 49GB + 25GB Apps"
},
{
"id": "00045325",
"reference_code": "reference5627",
"product_code": "product5627",
"price": 1505000,
"description": "Combo Internet 38GB + 20GB Apps"
}
],
"timestamp": "2021-12-12 12:12:12"
}
Decrypted & Verified (Plain Payload) Failed Example
{
"response_code": "31",
"message": "Invalid token",
"timestamp": "2021-12-12 12:12:12"
}
Example for Get Offer Results on Paket Data
