Sales orders
Get sales order
The Get sales order endpoint returns a single sales order for a given salesOrderId.
Sales orders represent a customer's intention to purchase goods or services from the SMB.
Before using this endpoint, you must have retrieved data for the company.
get/companies/{companyId}/data/salesOrders/{salesOrderId}
Response
Success
Example response
{
"id": "string",
"salesOrderNumber": "string",
"customerPurchaseOrd erNumber": "string",
"issueDate": "2022-10-23T00:00:00Z",
"expectedDeliveryDate": "2022-10-23T00:00:00Z",
"note": "string",
"shipTo": {
"contact": {
"name": "string",
"email": "string",
"phone": "string"
},
"address": {
"type": "Unknown",
"line1": "string",
"line2": "string",
"city": "string",
"region": "string",
"country": "string",
"postalCode": "string"
}
},
"customerRef": {
"id": "string",
"companyName": "string"
},
"status": "Unknown",
"invoicingStatus": "Unknown",
"currency": "GBP",
"currencyRate": 0,
"lineItems": [
{
"description": "string",
"accountRef": {
"id": "string",
"name": "string"
},
"itemRef": {
"id": "string",
"name": "string"
},
"tracking": {
"recordRefs": [
"string"
]
},
"unitAmount": 0,
"quantity": 0,
"discountAmount": 0,
"discountPercentage": 0,
"subTotal": 0,
"taxAmount": 0,
"taxRateRef": {
"id": "string",
"name": "string",
"effectiveTaxRate": 0
},
"totalAmount": 0
}
],
"totalDiscount": 0,
"subTotal": 0,
"totalTaxAmount": 0,
"totalAmount": 0,
"metadata": {
"isDeleted": true
},
"modifiedDate": "2022-10-23T00:00:00Z",
"sourceModifiedDate": "2022-10-23T00:00:00Z"
}