Pickpack – Submit Confirmation
Confirm pickpack orders.
Endpoint
POST /v1/pickpack/confirm
Request
Header Parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
Authorization | string | Yes | Bearer YOUR_ACCESS_TOKEN | Bearer access token used for authentication. |
Content-Type | string | Yes | application/json | Request body content type. |
Request Body Schema
application/json
ordersrequiredjson-stringArray of orders to confirm.Non-empty array. Maximum 100 orders per request.
Array of orders to confirm.
Non-empty array. Maximum 100 orders per request.
order_idrequired
string
Target order ID.
Numeric string. Order must be at pickpack_status
PICKPACK_PENDING_CONFIRM.Example:
3550646shipment_detailrequiredjson-stringContainer for updated parcel list.
Container for updated parcel list.
parcel_listrequiredjson-stringArray of parcels with final dimensions and weights.Non-empty array. Each entry replaces the original dimensions and weights.
Array of parcels with final dimensions and weights.
Non-empty array. Each entry replaces the original dimensions and weights.
lengthrequired
string
Length in cm.
Positive numeric string.
Example:
23widthrequired
string
Width in cm.
Positive numeric string.
Example:
14heightrequired
string
Height in cm.
Positive numeric string.
Example:
10act_weightrequired
string
Actual weight in kg.
Positive numeric string.
Example:
0.52declare_value
string
Declared value override.
Numeric string. Defaults to existing value when not provided.
Example:
100.00insurance_fee
string
Insurance fee override.
Numeric string.
Example:
0item_remarks
string
Remark per parcel.
Example:
Handle with careitem_description
string
Description per parcel.
Example:
ApparelExample request
curl -X POST "${API_URL}/v1/pickpack/confirm" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"orders": [
{
"order_id": "3550646",
"shipment_detail": {
"parcel_list": [
{
"length": "23",
"width": "14",
"height": "10",
"act_weight": "0.52"
}
]
}
}
]
}'
Responses
200 Success
200 Success
Response schema:
application/jsondatajson-stringPickpack confirm response wrapper.
data
json-string
Pickpack confirm response wrapper.
ordersjson-stringArray of orders successfully confirmed.
orders
json-string
Array of orders successfully confirmed.
order_id
string
Order ID.
Example:
3550646status
string
Updated pickpack status code.
Example:
PICKPACK_CONFIRMEDnew_quote_price
string
Latest quote price after recalculation.
Example:
32.10shipment_detailjson-stringShipment detail saved during confirmation.
shipment_detail
json-string
Shipment detail saved during confirmation.
parcel_listjson-stringParcel data saved during confirmation.
parcel_list
json-string
Parcel data saved during confirmation.
length
string
Length in cm.
Example:
23width
string
Width in cm.
Example:
14height
string
Height in cm.
Example:
10act_weight
string
Actual weight in kg.
Example:
0.52Note
Errors stop the entire request. None of the remaining orders are processed.Response sample
{
"data": {
"orders": [
{
"order_id": "3550646",
"status": "PICKPACK_CONFIRMED",
"new_quote_price": "32.10",
"shipment_detail": {
"parcel_list": [
{
"length": "23",
"width": "14",
"height": "10",
"act_weight": "0.52"
}
]
}
}
]
}
}
400 Bad Request
400 Bad Request
Response schema:
application/jsonerror.code
string
Error code.
Example:
400000error.code_reason
string
Error reason.
Example:
BAD_REQUESTerror.message
string
Human-readable message.
Example:
Bad Requesterror.error_tracearrayList of validation errors.
error.error_trace
array
List of validation errors.
field
string
Request field that failed.
Example:
orders[0].shipment_detail.parcel_list[0].act_weightmessage
string
Human-readable message.
Example:
orders[0].shipment_detail.parcel_list[0].act_weight is required and must be a positive numberResponse sample
{
"error": {
"code": "400000",
"code_reason": "BAD_REQUEST",
"message": "Bad Request",
"error_trace": [
{
"field": "orders[0].shipment_detail.parcel_list[0].act_weight",
"message": "orders[0].shipment_detail.parcel_list[0].act_weight is required and must be a positive number"
}
]
}
}
401 Unauthorized
401 Unauthorized
Response schema:
application/jsoncode
string
Error code.
Example:
401000code_reason
string
Error reason.
Example:
UNAUTHORIZEDmessage
string
Human-readable message.
Example:
Unauthorized{
"error": {
"code": "401000",
"code_reason": "UNAUTHORIZED",
"message": "Unauthorized"
}
}
403 Forbidden
403 Forbidden
Response schema:
application/jsonerror
json-string
Access forbidden for this resource.
404 Not Found
404 Not Found
Response schema:
application/jsonerror
json-string
Resource or endpoint not found.
500 Failure
500 Failure
Response schema:
application/jsoncode
string
Error code.
Example:
500999code_reason
string
Error reason.
Example:
API_ERRORmessage
string
Human-readable message.
Example:
Api Error, please contact customer service{
"error": {
"code": "500999",
"code_reason": "API_ERROR",
"message": "Api Error, please contact customer service"
}
}