API documentation
Method list
Test your request
Changelog


addInventoryFulfillmentDeliveryItems
The method allows you to add products to a fulfillment delivery. Items can only be added to deliveries in draft status. Products must exist in inventory and must not be bundles, drafts, or main products with variants.


Input parameters
delivery_idintFulfillment delivery identifier
itemsarrayArray of items to add to the delivery
| - product_idintProduct identifier
| - quantityintQuantity of the product



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
itemsarrayArray of added items
| - item_idintCreated item identifier
| - product_idintProduct identifier
| - product_skutextProduct SKU
| - quantityintTotal quantity after addition



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