Skip to main content

Get Sales Order by ID

Search for sales order by a specific AVA reference. Call returns comprehensive sales order details.

Headers

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

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

Request Parameters

PropertyTypeDescriptionRequired
salesOrderIdstringThe sales order id. Use AvaReference if it’s still a sales request.

Sample Request

{
"SalesOrderId": "AVA-SJAXI9986-0084"
}

Response Parameters

PropertyTypeDescription
siteIdstringThe unique sales reference for this sales order.
salesOrderIdstringThe sales order id.
orderDatedateDate order was created.
orderStatusstringList of statuses.
avaReferenceGUIDReference in Axiz Digital.
waybillListList of Waybill numbers associated with the order.
resellerIdstringThe ResellerId is the Tenant 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.
linesListList of sales order lines.
lineStatusstringSpecific line status.

Sample Response

{
"result": {
"orderStatusDescription": "Ordered",
"markets": [],
"overallOrderStatus": 2,
"lines": [
{
"salesOrderId": null,
"lineNumber": 0,
"lineStatus": null,
"deliveryNumber": null,
"delivery": null,
"programId": null,
"itemId": "CFQ7TTC0MBMD",
"description": "Microsoft 365 F1",
"allocatedQuantity": 0,
"deliveredQuantity": 0,
"invoicedQuantity": 0,
"quantity": 1,
"unitPrice": 48.87,
"unitPriceIncl": 56.2,
"lineAmount": 48.87,
"lineAmountIncl": 56.2,
"expectedReceiptDate": null,
"lastUpdatedUtc": "0001-01-01T00:00:00",
"market": 2,
"purchaseOption": null,
"isBackOrder": false,
"isQuantityReservation": false,
"dealType": 0,
"productConfigurationId": "CFQ7TTC0MBMD:0002:commercial",
"purchaseOptionId": 146,
"parentProductConfigurationId": null
}
],
"waybillNumbers": [],
"paymentMethod": "AxizCloudCredit",
"deliveryMethod": "Delivery",
"deliveryComments": null,
"siteId": null,
"salesOrderId": null,
"orderDate": "2024-06-18T10:01:53.9440799",
"status": null,
"avaReference": "AVA-SJAXI9986-0084",
"resellerId": "SJAXI9986",
"resellerName": "AXIZ PTY LTD-TEST ACCOUNT",
"resellerReference": "AXI-259",
"enduserId": null,
"enduserName": "CloudTestAccountQA1",
"created": {
"createdBy": "26851",
"name": "Kyle Bradshaw",
"utc": "0001-01-01T00:00:00",
"emailAddress": "[email protected]",
"employeeNumber": null,
"phoneNumber": null
},
"billingAddress": null,
"deliveryAddress": null,
"totals": {
"currency": "ZAR",
"symbol": "R",
"amount": 56.2
},
"expectedReceiptDate": null,
"lastUpdatedUtc": "0001-01-01T00:00:00",
"originalDeliveryDate": "0001-01-01T00:00:00"
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}