Update Shipment Info
This endpoint can update seller shipment availability.
Path
post
/v2/logistic/fs/:fs_id/update
Request Parameters
Parameter | Type | Required | Location | Description |
---|---|---|---|---|
fs_id | Integer | Required | path | Fulfillment service unique identifier |
shop_id | Integer | Required | body | Shop unique identifier |
Example Request
- Curl
curl -X POST \
https://fs.tokopedia.net/v2/logistic/fs/13004/update?shop_id=479573 \
-H 'Authorization: Bearer OoHgyxcgQ5a1uCbmbbXjjA' \
-H 'Content-Type: application/json' \
-d '{
"1":{
"6":0
},
"23":{
"45":1
}
}'
Body format explanation:
"1":{
"6":0
},
"1"
represent ShipmentID. In this case ShipmentID1
is JNE"6"
represent service_id. Every shipment has one or more ShippingProductID to perform shipment operation. In this case ShippingProductID6
is YES service from JNE0
represent deactivate shipment, if want to activate shipment then use1
Response Parameters
Name | Type | Demo Value | Description |
---|---|---|---|
String | OK | Response Status | |
String | 0.089585 | Server Process Time | |
String Array | Anda telah sukses memperbaharui informasi pengiriman. | Shipper Logo URL | |
data | Object |
Success Response Examples
{
"header": {
"process_time": 0,
"messages": "success",
"reason": "",
"error_code": 0
},
"data": {
"status": "OK",
"server_process_time": "0.089585",
"message_status": [
"Anda telah sukses memperbaharui informasi pengiriman."
],
"data": {
"success": true
}
}
}
Error Response Examples
{
"header": {
"process_time": 0,
"messages": "problem processing request",
"reason": "",
"error_code": 6
},
"data": null
}
Error Codes
Error Code | Error Message | Description |
---|---|---|
SHP_GRPC_001 | Failed Send GRPC Request | Failed sending request to upstream |
SHP_GRPC_003 | Data Not Found | Failed finding data from upstream |