v1
latestOpenAPI 3.0.02026-07-2455104.8 MBSales Order
Update sales order
<strong>CAUTION: Positions not specified in the payload will be DELETED. Please pass the ids along if you need them to be preserved.</strong><br><br>The sales order edit endpoint allows for updating an existing sales order. When updating, any positions not included in the positions payload will be implicitly deleted from the order. This ensures that the positions list in the payload accurately reflects the desired state of the sales order after the update.
patch/api/v1/salesOrders/{id}
Path parameters
idstring required
Resource identifier.
Example:17
The resource's identifier.
Request body
Example request
{
"desiredDeliveryDate": "2022-12-05",
"reservationDate": "2022-12-05",
"salesRepresentative": {
"id": "123"
},
"tags": [
{
"id": "17"
}
],
"customer": {
"id": "1337"
},
"project": {
"id": "1337"
},
"salesChannel": {
"id": "1337"
},
"language": {
"iso2": "DE"
},
"financials": {
"paymentMethod": {
"id": "3"
},
"currency": "EUR"
},
"delivery": {
"shippingCosts": [
{
"shippingCostProduct": {
"id": "17",
"freeFields": [
{
"id": "17"
}
]
},
"tax": {
"vatCategory": "reduced",
"rate": 0.5,
"taxText": "Tax Text"
},
"price": {
"amount": "13.37",
"currency": "EUR"
}
}
],
"shippingMethod": {
"id": "1337"
},
"deliveryTerms": {
"id": "1337"
}
},
"positions": [
{
"product": {
"id": "17",
"freeFields": [
{
"id": "17"
}
]
},
"tax": {
"vatCategory": "reduced",
"rate": 0.5,
"taxText": "Tax Text"
},
"price": {
"amount": "13.37",
"currency": "EUR"
},
"desiredDeliveryDate": "2025-01-01"
}
],
"discountPositions": [
{
"discountProduct": {
"id": "17",
"freeFields": [
{
"id": "17"
}
]
},
"tax": {
"vatCategory": "reduced",
"rate": 0.5,
"taxText": "Tax Text"
},
"value": {
"amount": "13.37",
"currency": "EUR"
}
}
]
}Response
Operation completed successfully, no response body