API documentation
Method list
Test your request
Changelog


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_idintPurchase order identifier
item_idsarrayPurchase order item identifiers to remove. Maximum 1000 items at a time.



Output data
The method returns the data in JSON format.
statusvarchar(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_idsarrayIdentifiers of removed purchase order items.



Sample
Input data:
Output data:
A sample request in PHP: