Create order
Create a new order with customer and location details.
- If
customer.idis provided, an existing customer is updated. - If only
phone_numberis provided, a customer is looked up or created. customer_location.idworks similarly, but must belong to the customer.codis a list of currency/amount pairs. Example: [[‘USD’, ‘10’], [‘LBP’, ‘1000000’]]
Documentation Index
Fetch the complete documentation index at: https://docs.parceltracer.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Body
("Unique identifier of the merchant's location.\n", 'This identifier should correspond to one of the pickup locations visible on the pickup locations page on Parcel Tracer.')
Customer object for the order.
- Provide 'id' to identify an existing customer (other fields update the record).
- Otherwise provide 'phone_number' plus required customer fields to create a new customer.
Customer location for delivery or pickup.
- Provide 'id' to identify an existing location (other fields update it).
- Otherwise, provide full location details to create a new location.
Reference ID of the order, for internal tracking by the shop.
Mark the order as critical for prioritized handling (subject to the delivery company load and availability)
('Require pickup of a return package upon delivery.\n', 'This option is only applicable when workflow is STANDARD')
Order workflow: STANDARD or RETURN.
STANDARD- STANDARDRETURN- RETURN
STANDARD, RETURN Total amount to be collected upon delivery (or upon return). Example: [['USD', '123.5']]
2 elements('Number of packages in the order.\n', 'Should be greater than or equal to 1.')
Optional description of the order contents.
Extra notes about the order, visible to delivery company, carriers and customers.
Applicable if the order is a return. Reason for the return.
Response
Successful creation
Delivery fees charged on the delivery operation. Irrelevant in case of RETURN orders.
2 elementsCREATED- CreatedPICKUP_REQUESTED- Pickup RequestedPICKUP_ASSIGNED- Pickup AssignedSCANNED_FOR_PICKUP- Scanned for PickupPICKED_UP- Picked UpAT_WAREHOUSE- At WarehouseDELIVERY_ASSIGNED- Delivery AssignedSCANNED_FOR_DELIVERY- Scanned For DeliveryPICKED_UP_FOR_DELIVERY- Picked Up For DeliveryIN_TRANSIT- In TransitDELIVERED- DeliveredAWAITING_RETURN- Awaiting ReturnCANCELLED- CancelledDELIVERED_AT_WAREHOUSE- Delivered At Warehouse
CREATED, PICKUP_REQUESTED, PICKUP_ASSIGNED, SCANNED_FOR_PICKUP, PICKED_UP, AT_WAREHOUSE, DELIVERY_ASSIGNED, SCANNED_FOR_DELIVERY, PICKED_UP_FOR_DELIVERY, IN_TRANSIT, DELIVERED, AWAITING_RETURN, CANCELLED, DELIVERED_AT_WAREHOUSE 40^([A-Za-z0-9]|\.|-)*$STANDARD- StandardRETURN- Return
STANDARD, RETURN Total amount to be collected upon delivery. Example: [['USD', '123.5']]
2 elements1 <= x <= 99300300