Request POF
Send a Partial Order Fulfillment (POF) request
Path
post
/v1/order/:order_id/fs/:fs_id/pof/request
Request Parameters
Parameter | Type | Required | Location | Description |
---|---|---|---|---|
fs_id | Integer | Required | path | Fulfillment service unique identifier |
order_id | Integer | Required | path | Order unique identifier |
pof_detail | pof_detail Array | Required | body | Array of POF detail info |
pof_detail Struct
Parameter | Type | Required | Description |
---|---|---|---|
order_dtl_id | Integer | Required | Order detail unique identifier |
quantity_request | Integer | Required | Requested quantity for POF request |
Example Request
- Curl
curl --location --request POST 'https://fs.tokopedia.com/v1/order/167552887/fs/14898/pof/request' \
--header 'Content-Type: application/json' \
--data-raw '{
"pof_detail": [
{
"order_dtl_id": 20791741,
"quantity_request": 4
}
]
}'
Success Response Examples
{
"header": {
"process_time": 0,
"messages": "Your request has been processed successfully"
},
"data": {
"success": true
}
}
Error Response Examples
{
"header": {
"process_time": 0,
"messages": "Our server encounters an error, please try again later",
"reason": "There Are Error From Ext Service",
"error_code": "ORD_API_006"
},
"data": null
}
Error Codes
Error Code | Error Message | Description |
---|---|---|
ORD_API_006 | There Are Error From Ext Service | Failed getting response from upstream |
ORD_API_008 | Data Not Found | Order data not found |
ORD_API_010 | Partial Fulfillment Quantity must be lower than ordered | POF request quantity must be lower than initial order quantity |
ORD_API_011 | Partial Fulfillment Request have been made before | POF request has already been made |
ORD_API_012 | Order Bundle is not eligible for partial order fulfillment | POF is not eligible with bundling |
ORD_API_013 | There's no change in the product quantity for partial order fulfillment | POF request quantity is the same as initial order quantity |
ORD_DLV_005 | invalid order_id format | Invalid order_id format, please check again |
ORD_DLV_019 | failed read body request | Failed read body request, please check again |
ORD_USC_015 | FS ID Is Not Associated With Shop ID or Warehouse ID | FS ID is not associated with Shop ID or Warehouse ID |