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_id | int | Fulfillment delivery identifier |
| items | array | Array of items to add to the delivery |
| | - product_id | int | Product identifier |
| | - quantity | int | Quantity of the product |
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 |
| items | array | Array of added items |
| | - item_id | int | Created item identifier |
| | - product_id | int | Product identifier |
| | - product_sku | text | Product SKU |
| | - quantity | int | Total quantity after addition |
Sample
Input data:Output data:
A sample request in PHP: