setInventoryPurchaseOrderStatus
The method allows you to change the status of a purchase order.
Input parameters
Output data:
A sample request in PHP:
order_id | int | Purchase order identifier |
status | int | New order status. Available values:
0 - draft 1 - sent 2 - received 3 - completed 4 - completed partially 5 - canceled |
completed_items | array | (optional) List of items received. Each element should contain fields listed below |
| - item_id | int | Item identifier |
| - completed_quantity | int | Received quantity |
Output data
The method returns the data in JSON format.
status | varchar(30) | SUCCESS - request executed correctly ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code |
Sample
Input data:Output data:
A sample request in PHP: