Skip to main content

Update Status WSN

This endpoint used to updating partner WSN status.

Path

post

/fulfillment/partner/fs/:fs_id/feature/wsn/status/update

Request Parameters

ParameterTypeRequiredLocationDescription
fs_id
Integer
Required
path
Mapping of partner
status
Integer
Required
query
Status Code, see notes for status flow
suggestion_date
String
Optional
query
(Mandatory for status: 280 / rejected) suggestion date for WSN re-submission dd-mm-yyyy)
reject_reason
String
Optional
query
(Mandatory for status: 280 / rejected) suggestion date for WSN re-submission
volume_withdrawal_items
float
Optional
query
(Mandatory for status: 300 / finish packing) : In cubic meter. can be set with 2 decimal point
vehicle_suggestion
String
Optional
query
(Mandatory for status: 300 / finish packing). Example: truck, pick-up etc.
pickup_qty
JSON
Optional
query
(Mandatory for status: 300 & 480 / finish packing & picked up, put in BODY to avoid request uri too long) JSON String, that represent number of pickup quantity for each product (array). See Notes for JSON expample

Example Request

curl -g -X POST 'https://fs.tokopedia.net/fulfillment/partner/fs/13057/feature/wsn/status/update?wsn_id=410&status=280' \                 
-H 'Authorization: Bearer c:AEa1seNwQOuwmuJ_1234-Q' \
-F 'pickup_qty=[{"product_id" : 15261653, "quantity" : 1}]'

Response Parameters

Success Response Examples

{
"status": "OK",
"config": null,
"server_process_time": "",
"data": {
"message": "WSN Updated"
}
}

Error Response Examples

{
"status": "INVALID_REQUEST",
"config": null,
"server_process_time": "",
"message_error": [
"ErrorBadRequest"
],
"data": null
}

Error Codes

Note

Status (required):

CodeDescription
280
Partner Rejected
300
Finish Packing
400
In Transit
440
Ready for Pickup
480
Picked Up

Flows :

  1. From 100 (created) to 280 (partner rejected)
  2. From 250 (approved) to 300 (finish packing)
  3. From 300 (finish packing) to 400 (in transit, for 2nd mile flow only) or 440 (ready for pickup)
  4. From 400 (in transit) to 440 (ready for pickup)
  5. From 440 (ready for pickup) to 480 (picked up)

As Summary Status starting from 100 (created) and final status are 280 (partner rejected) or 500 (finish, will update by seller)

Any invalid status value movement will get error response

For status 250 not allowed to update using this API, will update using approve API

Pickup quantity:

[{"product_id" : 15261653, "quantity" : 1}]

WSN Status Code

CodeDescription
0
Inactive
5
Not deducted
100
Created
200
BD Approved
210
BD Auto Approved
250
Partner Approved
280
Partner Rejected
300
Picking
400
In Transit
440
Ready for Pickup
480
Picked Up
500
Finish

Have a feedback?