This endpoints allows retrieveal, creation, modification and deletion of Customers in Warehouze.
Call requires at least one property name, blank query is allowed.
Send an array of json objects to create new Customers, Number is required.
Send an array of json objects to update existing Customers, Id is required.
Name | Type | Description | Updatable |
---|---|---|---|
CurrencyCode | 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 |
String | True | ||
Id | Int32 | False | |
LastUpdate | DateTime | False | |
Name | String | True | |
Number | String | False |
var request = { Token: "Insert your token here", Query: [ "Id=1", ], Properties: [ Id, Number, Name ], }; $.ajax({ url: "https://api.warehouze.io/Customer", 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: 'Customer 3' }]) ], }; $.ajax({ url: "https://api.warehouze.io/Customer", 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: 'Customer 1' }, { Id: 2, Name: 'Customer 2' }]) ], }; $.ajax({ url: "https://api.warehouze.io/Customer", data: request, dataType: 'text', type: "PUT", success: function (data) { console.log(data); }, error: function (data, xHr) { console.log(data); console.log(xHr); } });