Create a new order with customer and location details.
customer.id is provided, an existing customer is updated.phone_number is provided, a customer is looked up or created.customer_location.id works similarly, but must belong to the customer.cod is a list of currency/amount pairs. Example: [[‘USD’, ‘10’], [‘LBP’, ‘1000000’]]("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.
Customer location for delivery or pickup.
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 - RETURNSTANDARD, 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.
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 WarehouseCREATED, 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 40STANDARD - StandardRETURN - ReturnSTANDARD, RETURN Total amount to be collected upon delivery. Example: [['USD', '123.5']]
2 elements1 <= x <= 99300300