This endpoints allows retrieveal, creation, modification and deletion of Warehouses in Warehouze.
Call requires at least one property name, blank query is allowed.
Send an array of json objects to create new Warehouses, Number is required.
Send an array of json objects to update existing Warehouses, Id is required.
Name | Type | Description | Updatable |
---|---|---|---|
City | String | True | |
Country | String | True | |
DataSource | DataSource | 0 Economic, 1 SmartWeb, 2 Local, 3 Magento, 4 GoldenPlanet, 5 Shopify, 6 WooCommerce, 7 FakturaFil, 8 IEX, 9 Logisnap | False |
ExternalId | Int32 | False | |
Hidden | Boolean | True | |
Id | Int32 | False | |
InventorySourceCode | String | False | |
Name | String | True | |
Number | String | False | |
Phone | String | True | |
PostalArea | String | True | |
PostalCode | String | True | |
Street | String | True |
var request = { Token: "Insert your token here", Query: [ "Number=1", ], Properties: [ "Id", "Number", "Name", ], }; $.ajax({ url: "https://api.warehouze.io/Warehouse", data: request, dataType: 'text', type: "GET", traditional: true, success: function (data) { console.log(data); }, error: function (data, xHr) { console.log(data); console.log(xHr); } });
var request = { Token: "Insert your token here", Query: [ JSON.stringify([{ Number: '1' }, { Number: '2', Name: 'Primary warehouse' }]) ], }; $.ajax({ url: "https://api.warehouze.io/Warehouse", data: request, dataType: 'text', type: "POST", success: function (data) { console.log(data); }, error: function (data, xHr) { console.log(data); console.log(xHr); } });
var request = { Token: "Insert your token here", Query: [ JSON.stringify([{ Id: 1, Name: 'Warehouse 1' }, { Id: 2, Name: 'Warehouse 2' }]) ], }; $.ajax({ url: "https://api.warehouze.io/Warehouse", data: request, dataType: 'text', type: "PUT", success: function (data) { console.log(data); }, error: function (data, xHr) { console.log(data); console.log(xHr); } });