Skip to main content

Get All Sales Orders

Search for all sales order details. Call returns comprehensive order details.

Headers

PropertyValue
Request TypeGET
Content Typeapplication-json
URL{{EnvironmentURL}}/api/services/app/SalesOrder/GetAll

Please see Environments under Getting Started for test and production environment URLs.

Request Parameters

PropertyTypeDescriptionRequired
filterstringFiltering on End user or Ordered by or Order reference (SalesorderId).
marketsInt arrayMarkets for the orders. See available markets. Can be skipped if this filter is not used. The same parameter can be used multiple times if filtering on multiple values.
statusesInt arrayStatus of the orders. See available order statuses. Can be skipped if this filter is not used. The same parameter can be used multiple times if filtering on multiple values.
startDatedateTimeStart date of records. Returns orders that have been created from the start date. Can be skipped if this filter is not used.
endDatedateTimeEnd date of records. Returns orders that have been created from the start date to the end date. Can be skipped if this filter is not used.
lastUpdatedDatedateTimeReturns orders that have been modified from the LastUpdatedDate. Can be skipped if this filter is not used.
sortingstring"Orderdate" by default.
maxResultCountint10 by default.

Sample Request

If you want to get results by status, uses the "Statuses" parameter like so: (See Order Enums under constants for Order Status Enums)

{{QA}}/api/services/app/SalesOrder/GetAll?&Statuses=1

If you have a specific date range to check orders from, use the "StartDate" and "EndDate" parameters like so:

{{QA}}/api/services/app/SalesOrder/GetAll?&StartDate=2019-12-31T22%3A00%3A00.000Z&EndDate=2024-01-01T21%3A59%3A59.000Z

Response Parameters

PropertyTypeDescription
tokenstringUnique identifier of call instance.
totalCountintTotal number of products returned.
itemsArray of ObjectsList of products.

Items

PropertyTypeDescription
siteIdstringThe unique sales reference for this sales order.
salesOrderIdstringAVA order reference.
orderDateDateDate of order.
orderStatusListList of statuses.
avaReferenceGUIDReference in Axiz Digital.
waybillListList of waybill numbers associated with the order.
resellerIdstringThe ResellerId is the patner account number in Axiz Digital.
resellerNamestringPartner name in Axiz Digital.
resellerReferencestringReference for the reseller.
enduserIdstringCustomer account number.
enduserNamestringThe customer name.
billingAddressstringBilling address.
deliveryAddressstringThe provided delivery address.
totalsstringContains the currency and the amount.
expectedReceiptDateDateThe expected delivery date.
createdstringContains the date created and name and id of the user who created the order.
lastUpdatedUtcDateTimeDate the record was last updated.

Sample Response

{
"result": {
"totalCount": 3,
"items": [
{
"orderStatusDescription": "Requested",
"markets": [
14
],
"overallOrderStatus": 1,
"lines": null,
"waybillNumbers": [],
"paymentMethod": "AxizCredit",
"deliveryMethod": "Collect",
"deliveryComments": null,
"siteId": null,
"salesOrderId": null,
"orderDate": "2023-12-05T14:23:52.259353",
"status": null,
"avaReference": "AVA-SJAXI9986-000W",
"resellerId": "SJAXI9986",
"resellerName": "AXIZ PTY LTD-TEST ACCOUNT",
"resellerReference": "AXI-018",
"enduserId": null,
"enduserName": "CloudTesting",
"created": {
"createdBy": "26226",
"name": "Jaco Isaaks",
"utc": "0001-01-01T00:00:00",
"emailAddress": "[email protected]",
"employeeNumber": null,
"phoneNumber": "+27659991407"
},
"billingAddress": null,
"deliveryAddress": {
"name": "CloudTesting",
"line1": "International Business Gateway",
"line2": "C/O New Road and 6th Rd",
"city": "Midrand",
"province": null,
"postalCode": "1685",
"countryCode": null,
"country": "South Africa"
},
"totals": {
"currency": "ZAR",
"symbol": "R",
"amount": 3021.05
},
"expectedReceiptDate": null,
"lastUpdatedUtc": "0001-01-01T00:00:00",
"originalDeliveryDate": "0001-01-01T00:00:00"
},
{
"orderStatusDescription": "Requested",
"markets": [
14
],
"overallOrderStatus": 1,
"lines": null,
"waybillNumbers": [],
"paymentMethod": "AxizCredit",
"deliveryMethod": "Collect",
"deliveryComments": null,
"siteId": null,
"salesOrderId": null,
"orderDate": "2023-11-21T12:16:14.726608",
"status": null,
"avaReference": "AVA-SJAXI9986-000R",
"resellerId": "SJAXI9986",
"resellerName": "AXIZ PTY LTD-TEST ACCOUNT",
"resellerReference": "AXI-013",
"enduserId": null,
"enduserName": null,
"created": {
"createdBy": "26226",
"name": "Jaco Isaaks",
"utc": "0001-01-01T00:00:00",
"emailAddress": "[email protected]",
"employeeNumber": null,
"phoneNumber": "+27659991407"
},
"billingAddress": null,
"deliveryAddress": {
"name": null,
"line1": "PO BOX 2794",
"line2": "",
"city": "RIVONIA",
"province": null,
"postalCode": "2128",
"countryCode": null,
"country": "South Africa"
},
"totals": {
"currency": "ZAR",
"symbol": "R",
"amount": 77.19
},
"expectedReceiptDate": null,
"lastUpdatedUtc": "0001-01-01T00:00:00",
"originalDeliveryDate": "0001-01-01T00:00:00"
},
{
"orderStatusDescription": "Requested",
"markets": [
14
],
"overallOrderStatus": 1,
"lines": null,
"waybillNumbers": [],
"paymentMethod": "AxizCredit",
"deliveryMethod": "Delivery",
"deliveryComments": "Testing - Do not process",
"siteId": null,
"salesOrderId": null,
"orderDate": "2022-11-03T14:19:10.5068731",
"status": null,
"avaReference": "BE01F6C7-AB55-4185-6073-08DABD575E83",
"resellerId": "SJAXI9986",
"resellerName": "AXIZ PTY LTD-TEST ACCOUNT",
"resellerReference": "Testing - Do not process",
"enduserId": "123456",
"enduserName": "TestCustomerHW",
"created": {
"createdBy": "25943",
"name": "admin admin",
"utc": "0001-01-01T00:00:00",
"emailAddress": "[email protected]",
"employeeNumber": null,
"phoneNumber": null
},
"billingAddress": null,
"deliveryAddress": {
"name": "TestCustomerHW",
"line1": "123 First str",
"line2": "123 First str",
"city": "Johannesburg",
"province": null,
"postalCode": "0123",
"countryCode": null,
"country": "South Africa"
},
"totals": {
"currency": "ZAR",
"symbol": "R",
"amount": 243.81
},
"expectedReceiptDate": null,
"lastUpdatedUtc": "0001-01-01T00:00:00",
"originalDeliveryDate": "0001-01-01T00:00:00"
}
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}