salesOrder
PATCH {{url}}/{{environment}}/api/v2.0/companies({{companyId}})/salesOrders({{salesOrderId}})?tenant={{tenant}}
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
tenant | string |
Request Body
{"paymentTermsId"=>"{{paymentTermId}}"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
If-Match | string |
RESPONSES
status: OK
{"@odata.context":"http://bcserver:7048/BC/api/v2.0/$metadata#companies(a19eca60-4a86-ed11-aad5-000d3a38ed32)/salesOrders/$entity","@odata.etag":"W/\"JzE5OzkwNTc4NDIwNzU5MzAxNDM1MjcxOzAwOyc=\"","id":"58c50415-4688-ed11-af3b-cd647ce09ede","number":"101005","externalDocumentNumber":"","orderDate":"2015-12-31","postingDate":"2022-12-30","customerId":"4353076f-4a86-ed11-aad5-000d3a38ed32","customerNumber":"10000","customerName":"Adatum Corporation","billToName":"Adatum Corporation","billToCustomerId":"4353076f-4a86-ed11-aad5-000d3a38ed32","billToCustomerNumber":"10000","shipToName":"Adatum Corporation","shipToContact":"Robert Townes","sellToAddressLine1":"Station Road, 21","sellToAddressLine2":"","sellToCity":"Cambridge","sellToCountry":"GB","sellToState":"","sellToPostCode":"CB1 2FB","billToAddressLine1":"Station Road, 21","billToAddressLine2":"","billToCity":"Cambridge","billToCountry":"GB","billToState":"","billToPostCode":"CB1 2FB","shipToAddressLine1":"Station Road, 21","shipToAddressLine2":"","shipToCity":"Cambridge","shipToCountry":"GB","shipToState":"","shipToPostCode":"CB1 2FB","shortcutDimension1Code":"","shortcutDimension2Code":"MEDIUM","currencyId":"00000000-0000-0000-0000-000000000000","currencyCode":"GBP","pricesIncludeTax":false,"paymentTermsId":"7a15f968-4a86-ed11-aad5-000d3a38ed32","shipmentMethodId":"fa52076f-4a86-ed11-aad5-000d3a38ed32","salesperson":"JO","partialShipping":true,"requestedDeliveryDate":"0001-01-01","discountAmount":0,"discountAppliedBeforeTax":false,"totalAmountExcludingTax":0,"totalTaxAmount":0,"totalAmountIncludingTax":0,"fullyShipped":false,"status":"Draft","lastModifiedDateTime":"2022-12-30T13:31:16.887Z","phoneNumber":"","email":"robert.townes@contoso.com"}