Submit Pickup (Local)
Schedule a pickup for a local order.
Endpoint
POST /v1/pickup/submit
Request
Header Parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
Authorization | string | Yes | Bearer YOUR_ACCESS_TOKEN | Bearer token used for authentication. |
Content-Type | string | Yes | application/json | Request body content type. |
Request Body Schema
application/json
order_idrequired
string
Order ID for pickup request
Digits only (0–9).
Example:
3571000pickup_daterequired
string
Requested pickup date.
Format: YYYY-MM-DD.
Example:
2026-02-26pickup_time_startrequired
string
Start time of pickup window.
Format: HH:MM.
Example:
09:30pickup_time_endrequired
string
End time of pickup window.
Format: HH:MM.
Note: Time difference between
pickup_time_start and pickup_time_end must be exactly 150 minutes.Example:
12:00Example Request Body
{
"order_id": "3571000",
"pickup_date": "2026-02-26",
"pickup_time_start": "09:30",
"pickup_time_end": "12:00"
}
Example request
curl -X POST "${API_URL}/v1/pickup/submit" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"order_id": "3571000",
"pickup_date": "2026-02-26",
"pickup_time_start": "09:30",
"pickup_time_end": "12:00"
}'
Responses
200 Success
200 Success
Response schema:
application/jsondataobjectPickup submission result.
data
object
Pickup submission result.
order_id
string
Order ID.
Example:
3571000ship_type
string
Shipment type. Always
local for local shipments.tracking_number
string
Carrier tracking number (waybill).
Example:
SF7444701709744pickup_ref
string
Pickup reference.
pickup_date
string
Confirmed pickup date.
Example:
2026-02-26order_status
string
Updated order status.
Example:
PENDING_PICKUPpickup_req_id
string
System-generated pickup request ID.
Example:
22424message
string
Informational message.
Example:
OKResponse sample
{
"data": {
"order_id": "3571000",
"ship_type": "local",
"tracking_number": "SF7444701709744",
"pickup_ref": "SF7444701709744",
"pickup_date": "2026-02-26",
"order_status": "PENDING_PICKUP",
"pickup_req_id": "22424",
"message": "OK"
}
}
400 Bad Request
400 Bad Request
Response schema:
application/jsoncode
string
Error code returned by the API.
Example:
400000code_reason
string
Error reason.
Example:
BAD_REQUESTmessage
string
Human-readable message.
Example:
Bad Requesterror_tracearrayList of validation errors
error_trace
array
List of validation errors
field
string
Request field that failed.
message
string
Human-readable message.
Response sample
{
"error": {
"code": "400000",
"code_reason": "BAD_REQUEST",
"message": "Bad Request",
"error_trace": [
{ "field": "pickup_date", "message": "pickup_date cannot be in the past" }
]
}
}
401 Unauthorized
401 Unauthorized
Response schema:
application/jsoncode
string
Error code.
Example:
401000code_reason
string
Error reason.
Example:
UNAUTHORIZEDmessage
string
Human-readable message.
Example:
UnauthorizedResponse sample
{
"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 returned by the API.
Example:
500999code_reason
string
Machine-readable error reason.
Example:
API_ERRORmessage
string
Human-readable message.
Example:
Api Error, please contact customer serviceResponse sample
{
"error": {
"code": "500999",
"code_reason": "API_ERROR",
"message": "Api Error, please contact customer service"
}
}