addInventoryTransfer
The method allows you to create a new inventory transfer in draft status. Both source and target warehouses must belong to inventories with advanced WMS enabled.
Input parameters
| warehouse_id | int | Source warehouse identifier |
| target_warehouse_id | int | Target warehouse identifier. Can be the same as source warehouse for intra-warehouse location transfers. |
| transfer_type | int | (optional) Transfer type: 0 - replenishment (default), 1 - putaway transfer, 2 - location change |
| name | varchar(100) | (optional) Transfer name/description |
| priority | int | (optional) Priority: 0 - low (default), 1 - medium, 2 - high, 3 - urgent |
| assigned_to | int | (optional) Assigned employee identifier |
| date_scheduled | int | (optional) Scheduled date (unix timestamp) |
| date_due | int | (optional) Due date (unix timestamp). Must be later than or equal to date_scheduled. |
| notes | varchar(255) | (optional) Transfer notes/comments |
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 |
| transfer_id | int | Created transfer identifier |
| transfer_number | varchar(30) | Generated transfer document number |
Sample
Input data:Output data:
A sample request in PHP: