Skip to main content

Update Status ASN for Partner

This endpoint used for updating ASN status for Partner.

Path

post

/fulfillment/partner/fs/:fs_id/asn/status/update

Request Parameters

ParameterTypeRequiredLocationDescription
fs_id
Integer
Required
path
Fulfillment service id
asn_id
Integer
Required
query
ASN Identifier (ID)
flag_id
Integer
Required
query
100 (need extra SLA), 200 (close GR)
extra_sla_reason_id
Integer
Required for flag_id 100
query
Extra SLA reason ID, kindly check Notes for ID list
ParameterTypeRequiredLocationDescription
fs_id
Integer
Required
path
Fulfillment service id
asn_id
Integer
Required, if ASN not in request
query
ASN Identifier (ID) of requested ASN
status
Integer
Required
query
1 or 200 (accepted), 2 or 400 (rejected), 3 or 500 (dispute), 4 or 600 (finish). See Notes for status flows.
suggestion_date
String
required, if ASN updated to rejected
query
Date with yyyy-mm-dd,...,yyyy-mm-dd format
confirm_quantity_damage
String
Optional
query
JSON string that represent number of damaged quantity for each product (array. See Notes for JSON format.
confirm_quantity_putaway
String
Optional, Required for status finish
query
(optional, required for status finish) JSON string that represent number of putaway quantity for each product (array). See Notes for JSON format.
exact_number_of_package
Integer
Optional, Required for start loading
query
Evergreen flow
package_arrival_time
String
Optional, Required for start loading
query
Evergreen flow, with format : yyyy-mm-dd hh:mm:ss

Example Request

curl -g -X POST '172.18.0.255/fulfillment/partner/fs/13057/asn/status/update?asn_id=410&status=600&confirm_quantity_putaway=[{%22product_id%22:15304657,%22quantity%22:100}]&confirm_quantity_damage=[]' \                 
-H 'Cookie: _SID_Tokopedia_Coba_={{TOKEN}}'

Response Parameters

Success Response Examples

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

Error Response Examples

Error Codes

Notes

Confirm Quatity Damage and Confirm Quantity Putaway JSON:

[{"product_id" : <productID>, "quantity" : <quantity>},{"product_id" : <productID>, "quantity" : <quantity>}] 

Status Flows :

  1. From 0 (pending / created) to 200 (accepted) or 400 (rejected)
  2. From 100 (waiting for print) to 300 (printed), 500 (dispute) or 600 (finish)
  3. From 200 (accepted) to 300 (printed), 500 (dispute) or 600 (finish)
  4. From 300 (printed) to 500 (dispute) or 600 (finish)

As Summary Status starting from 0 (for integrated partner) or 100 (for non-integrated partner) and final status is 400 (rejected), 500 (dispute) and 600 (finish) Any invalid status value movement will get error response

Have a feedback?