{ "operationId": "createSalesOrder", "method": "POST", "path": "/companies({company_id})/salesOrders", "summary": "Create a Sales Order", "requestExamples": [ { "contentType": "application/json", "name": "CreatesalesorderRequestExample", "example": { "externalDocumentNumber": "example_value", "orderDate": "2026-01-15", "customerId": "500123", "customerNumber": "example_value", "currencyCode": "example_value", "pricesIncludeTax": true, "requestedDeliveryDate": "2026-01-15" } } ], "responseExamples": [ { "status": "201", "contentType": "application/json", "name": "Createsalesorder201Example", "example": { "@odata.etag": "example_value", "id": "abc123", "number": "example_value", "externalDocumentNumber": "example_value", "orderDate": "2026-01-15", "postingDate": "2026-01-15", "customerId": "500123", "customerNumber": "example_value", "customerName": "example_value", "billToName": "example_value", "billToCustomerId": "500123", "billToCustomerNumber": "example_value", "shipToName": "example_value", "shipToContact": "example_value", "sellToAddressLine1": "example_value", "sellToAddressLine2": "example_value", "sellToCity": "example_value", "sellToCountry": "example_value", "sellToState": "example_value", "sellToPostCode": "example_value", "currencyId": "500123", "currencyCode": "example_value", "pricesIncludeTax": true, "paymentTermsId": "500123", "shipmentMethodId": "500123", "salesperson": "example_value", "requestedDeliveryDate": "2026-01-15", "discountAmount": 42.5, "discountAppliedBeforeTax": true, "totalAmountExcludingTax": 42.5, "totalTaxAmount": 42.5, "totalAmountIncludingTax": 42.5, "fullyShipped": true, "status": "Draft", "lastModifiedDateTime": "2026-01-15T10:30:00Z", "phoneNumber": "example_value", "email": "user@example.com", "salesOrderLines": [ { "@odata.etag": "example_value", "id": "abc123", "documentId": "500123", "sequence": 10, "itemId": "500123", "accountId": "500123", "lineType": "Comment", "lineObjectNumber": "example_value", "description": "A sample description.", "description2": "example_value", "unitOfMeasureId": "500123", "unitOfMeasureCode": "example_value", "quantity": 42.5, "unitPrice": 42.5, "discountAmount": 42.5, "discountPercent": 42.5, "discountAppliedBeforeTax": true, "amountExcludingTax": 42.5, "taxCode": "example_value", "taxPercent": 42.5, "totalTaxAmount": 42.5, "amountIncludingTax": 42.5, "netAmount": 42.5, "netTaxAmount": 42.5, "netAmountIncludingTax": 42.5, "shipmentDate": "2026-01-15", "shippedQuantity": 42.5, "invoicedQuantity": 42.5, "invoiceQuantity": 42.5, "shipQuantity": 42.5 } ] } } ] }