Skip to main content

Sales Order

Description

Sales Order document captures the specifics of a customer's order, including the products or services requested, quantities, pricing, delivery instructions, and any additional requirements.

Schema Information

{
"type": "object",
"title": "Sales Order",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"salesOrderNumber"
],
"properties": {
"buyer": {
"$ref": "#/definitions/entity"
},
"seller": {
"$ref": "#/definitions/entity"
},
"deliveree": {
"$ref": "#/definitions/entity"
},
"orderDate": {
"type": [
"string",
"null"
]
},
"vatAmount": {
"type": [
"number",
"null"
]
},
"vatBreakdown": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"required": [
"vatPercentage",
"vatAmount",
"totalWithVat",
"totalWithoutVat"
],
"properties": {
"vatAmount": {
"type": [
"number",
"null"
]
},
"totalWithVat": {
"type": [
"number",
"null"
]
},
"vatPercentage": {
"type": [
"number",
"null"
]
},
"totalWithoutVat": {
"type": [
"number",
"null"
]
}
}
}
},
"salesOrderNumber": {
"type": "string"
},
"totalAmountWithVat": {
"type": [
"number",
"null"
]
},
"totalAmountWithoutVat": {
"type": [
"number",
"null"
]
},
"lineItems": {
"type": "array",
"items": {
"type": "object",
"required": [
"productCode",
"productName",
"quantity",
"unit",
"price"
],
"properties": {
"gtin": {
"type": [
"string",
"null"
],
"description": "Global Trade Item Number, can be null"
},
"unit": {
"type": [
"string",
"null"
],
"description": "Unit of measure, can be null"
},
"price": {
"type": [
"number",
"null"
],
"description": "Price of a single unit, can be null"
},
"rowNo": {
"type": [
"string",
"null"
],
"description": "Row number of the item, can be null"
},
"quantity": {
"type": [
"number",
"null"
],
"description": "Quantity of the item, can be null"
},
"productCode": {
"type": [
"string",
"null"
],
"description": "Product code, can be null"
},
"productName": {
"type": [
"string",
"null"
],
"description": "Name of the product, can be null"
},
"additionalProductCodes": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Array of additional product codes, can be null"
}
},
"additionalProperties": false
},
"description": "Array of invoice line items"
}
},
"definitions": {
"entity": {
"type": "object",
"properties": {
"ID": {
"type": "string"
},
"name": {
"type": "string"
},
"address": {
"$ref": "#/definitions/address"
},
"contact": {
"$ref": "#/definitions/contactInfo"
},
"VATNumber": {
"type": "string"
}
}
},
"address": {
"type": "object",
"properties": {
"city": {
"type": "string"
},
"state": {
"type": "string"
},
"country": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
}
},
"contactInfo": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"phone": {
"type": "string"
}
}
}
},
"additionalProperties": false
}