Get sales order
Changed onThe 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.
Request
- Base URLhttps://api.codat.io
- AuthAPI key in header Authorization
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"
}Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- warning
added the new
customersenum value to the//////response property for the response status - warning
added the new
suppliersenum value to the//////response property for the response status - warning
added the new
trackingCategoriesenum value to the//////response property for the response status
- warning