Response - Success Response - Record Not Found Curl Request Sample
Copy {
"requestId": "ed3f6763-b1bd-40e3-aecb-ddaa2c3a9775",
"type": "ORDER_PRODUCT",
"status": 200,
"statusMessage": "success",
"body": {
"order_id": "1709129138812",
"status": "pending",
"qty": 1,
"total_order_amount": 108,
"created_at": "2024-02-28T21:05:38.403081924+07:00",
"product_name": "Mobile Legends Diamonds",
"denom_name": "185 Diamonds",
"validation_token": "VT170841167245Y1f1"
}
}
Copy {
"requestId": "ed3f6763-b1bd-40e3-aecb-ddaa2c3a9775",
"type": "ORDER_PRODUCT",
"status": 400,
"statusMessage": "record not found"
}
Copy curl --location --request 'https://tokoapi-dev.netzme.com/public/api/ppob/v1/order' \
--header 'X-CLIENT-ID: Xersia01' \
--header 'X-SIGNATURE: 808bac29deaf1efc7f99e1f8aaefdccfbe9e135756ada8b3ab906124a6be19d0' \
--header 'Content-Type: application/json' \
--header 'X-AUTHORIZATION: eybzaWduYXR1cmUiOiI0MjZhZDg0NTgwMDdlNGNhZmE1MTBiY2ViZWM1Mzk5YWRlYmIxMzZhZjVmY2Y0MThmNjUyN2M5YmZkNDViYzBmIiwidG9rZW5QcG9iVXNlclJlc3BvbnNlIjp7InVzZXJJZCI6InJhaHlhbi1jbGllbnQiLCJleHBpcmVkVHMiOjE3MDk2OTcyMDI3ODYsInJvbGVzIjpbInBwb2IuZ2FtZV90b3B1cF9pbl9nYW1lIl19fQ==' \
--header 'X-TIMESTAMP: 1867413352207' \
--header 'X-MSG-ID: 61cc351c-1e97-46f5-9179-ec9c610c06ce' \
--data '{
"type": "ORDER_PRODUCT",
"body": {
"merchantId": "M_GwjdJMdK",
"productId": 31,
"denomCode": "ML185",
"checkerResponse": [
{
"name": "userid",
"type": "string",
"value": "testuser123"
},
{
"name": "zoneid",
"type": "number",
"value": 1
},
{
"name": "server",
"type": "dropdown",
"value": "121"
}
],
"validationUserResponse": {
"username": 123456,
"validation_token": "VT1709698508eIke"
}
}
}'