runFulfillmentLinkProducts
The runFulfillmentLinkProducts method synchronously links selected inventory products to a fulfillment warehouse using its configured product extra field.
Input parameters
| fulfillment_warehouse_id | int | Fulfillment warehouse identifier |
| product_ids | array | Inventory product identifiers. The array must contain between 1 and 100 positive integers. |
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 |
| linked | int | Number of products linked to the fulfillment account |
| skipped_no_match | int | Number of products without a matching fulfillment product |
Sample
Input data:Output data:
A sample request in PHP: