Order Methods
These methods allow you to get orders, cancel order, add delivery notes, and set shipping to complete.
get_orders
This method returns a complete order list. The date_from and date_to parameters can be used to set a date range. The limit parameter limits the number of results, with 100 as the maximum value. The offset parameters indicates the number of results to be skipped.
cancel_order
With this action you can cancel an order in whole or in part.
Specific Error Codes
Code | Description |
---|---|
201 | Order not found |
222 | Order already cancelled |
223 | Try to cancel invalid item |
224 | Try to cancel invalid quantity of items |
225 | Shipping costs already cancelled |
226 | Invalid cancellation arguments |
803 | Internal error occurred while saving |
add_order_delivery_note
This method allows enables you to add adding delivery notes to an order.
Specific Error Codes
Code | Description |
---|---|
119 | “shipping_service_id” doesn’t exist |
204 | Order shipping status already completed |
803 | Internal error occurred while saving |
Order
set_order_shipping_completed
This method sets the order shipping status to completed.
Specific Error Codes
Code | Description |
---|---|
201 | Order not found |
202 | Order on hold |
203 | Order already completed |
204 | Order shipping status already on complete |
803 | Internal error occurred while saving |