Skip to main content

Update Shipment Info

This endpoint can update seller shipment availability.

Path

post

/v2/logistic/fs/:fs_id/update

Request Parameters

ParameterTypeRequiredLocationDescription
fs_id
Integer
Required
path
Fulfillment service unique identifier
shop_id
Integer
Required
body
Shop unique identifier

Example Request

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 ShipmentID 1 is JNE
  • "6" represent service_id. Every shipment has one or more ShippingProductID to perform shipment operation. In this case ShippingProductID 6 is YES service from JNE
  • 0 represent deactivate shipment, if want to activate shipment then use 1

Response Parameters

NameTypeDemo ValueDescription
status
String
OK
Response Status
server_process_time
String
0.089585
Server Process Time
message_status
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 CodeError MessageDescription
SHP_GRPC_001
Failed Send GRPC Request
Failed sending request to upstream
SHP_GRPC_003
Data Not Found
Failed finding data from upstream

Have a feedback?