deleteInventoryPurchaseOrderItems
The deleteInventoryPurchaseOrderItems method removes selected items from an existing purchase order. Items can be removed only while the purchase order is in draft status.
Input parameters
| order_id | int | Purchase order identifier |
| item_ids | array | Purchase order item identifiers to remove. Maximum 1000 items at a time. |
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 |
| deleted_item_ids | array | Identifiers of removed purchase order items. |
Sample
Input data:Output data:
A sample request in PHP: