This endpoints allows retrieveal, creation, modification and deletion of CustomerOrders in Warehouze. It also allows invoicing and deletion.
Call requires at least one property name, blank query is allowed.
Send an array of json objects to update existing CustomerOrders, Id is required.
Name | Type | Description | Updatable |
---|---|---|---|
CustomerId | Int32 | False | |
DataSource | DataSource | 0 Economic, 1 SmartWeb, 2 Local, 3 Magento, 4 GoldenPlanet, 5 Shopify, 6 WooCommerce, 7 FakturaFil, 8 IEX, 9 Logisnap | False |
DebtorEmail | String | False | |
DebtorName | String | False | |
DebtorPhone | String | False | |
DeliveryAddress | String | False | |
DeliveryCity | String | False | |
DeliveryCountry | String | False | |
DeliveryDate | Nullable`1 | False | |
DeliveryPostalCode | String | False | |
ExternalId | String | False | |
Id | Int32 | False | |
InternalOrderNumber | Int32 | False | |
IsCurrentInvoice | Boolean | False | |
LastUpdated | DateTime | False | |
LockDate | Nullable`1 | False | |
LockUser | String | False | |
LogisnapOrderId | String | False | |
LogisnapPdfUrl | String | False | |
Number | String | False | |
OrderDate | DateTime | False | |
OtherReference | String | False | |
Ref1 | String | False | |
Ref2 | String | False | |
ShippingMethod | String | False | |
ShippingPrice | Decimal | False | |
Status | CoStatus | 0 NotAvailable, 1 PartiallyAvailable, 2 Available, 3 PackingSlip, 4 Packed, 5 Invoiced, 6 PackedAndDeleted, 7 Deleted | False |
TermsOfDelivery | String | True |
var request = { Token: "Insert your token here", Query: [ "Id=1", ], Properties: [ Id, Number, TermsOfDelivery ], }; $.ajax({ url: "https://api.warehouze.io/CustomerOrder", 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', DebtorName: 'Person A' }]) ], }; $.ajax({ url: "https://api.warehouze.io/CustomerOrder", 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, InvoiceNumber: 1, InvoiceDate: '2020/01/13' }, { Id: 2, InvoiceNumber: 2 }]) ], }; $.ajax({ url: "https://api.warehouze.io/CustomerOrder/Invoice", 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, TermsOfDelivery: 'CustomerOrder 1' }, { Id: 2, TermsOfDelivery: 'CustomerOrder 2' }]) ], }; $.ajax({ url: "https://api.warehouze.io/CustomerOrder", data: request, dataType: 'text', type: "PUT", success: function (data) { console.log(data); }, error: function (data, xHr) { console.log(data); console.log(xHr); } });