Reject Order (NACK)
Negative acknowledge the order (reject the order).
Pathβ
post
/v1/order/:order_id/fs/:fs_id/nack
Request Parametersβ
Parameter | Type | Required | Location | Description |
---|---|---|---|---|
order_id | Integer | Required | path | Order id |
fs_id | Integer | Required | path | Fulfillment service id |
reason_code | Integer | Required | body | Reason code of the order rejection. Check Order Reject Reason in Notes |
reason | String | Required | body | Reason of the order rejection |
shop_close_end_date | String | Optional | body | Mandatory if reason_code is 4 i.e. shop closed. The date String layout is DD/MM/YYYY e.g. 17/05/2017 |
shop_close_note | String | Optional | body | Mandatory if reason_code is 4 i.e. shop closed |
Example Requestβ
curl -X POST \
'https://fs.tokopedia.net/v1/order/12490706/fs/13004/nack' \
-H 'Authorization: Bearer OoHgyxcgQ5a1uCbmbbXjjA' \
-H 'Content-Type: application/json' \
-d '{
"reason_code": 1,
"reason": "out of stock",
"shop_close_end_date": "17/05/2017",
"shop_close_note": "Maaf Pak, shop saya tutup untuk liburan"
}'
Response Parametersβ
Success Response Examplesβ
{
"header": {
"process_time": 0.18334048,
"messages": "Your request has been processed successfully"
},
"data": "success",
}
Error Response Examplesβ
{
"header": {
"process_time": 0.12873117,
"messages": "We could not process your request due to malformed request, please check again",
"reason": "Error When Request Reject Order To Ext Service",
"error_code": "ORD_USC_014"
},
"data": null
}
Error Codesβ
Notesβ
These are the available order reject reason (possible reasons)
Code | Description |
---|---|
empty / 0 | Only for reject shipping case - reason required with max length 512 characters |
1 | Product(s) out of stock |
2 | Product variant unavailable |
3 | Wrong price or weight |
4 | Shop closed. close_end and closed_note required |
5 | Others |
7 | Courier problem - reason required with max length 490 characters |
8 | Buyerβs request - reason required with max length 490 characters |