Skip to main content
PATCH
Update Sales Order

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-runas
string

The User-Id (int or uuid) on whose behalf the request is executed. Requires scope 'Application.RunAs'.

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

salesOrderId
integer<int32>
required

Query Parameters

recalculateTax
enum<integer>

0 - Keine Neuberechnung, auch wenn steuerrelevante Felder geändert wurden. 1 - Nettopreise beibehalten (Änderungen des Mehrwertsteuersatzes werden vom Kunden getragen). 2 - Bruttopreise beibehalten (Änderungen des Mehrwertsteuersatzes werden vom Einzelhändler getragen). 0 = NoRecalculation, 1 = KeepNetPrices, 2 = KeepGrossPrices

Available options:
0,
1,
2
disableAutomaticWorkflows
boolean

If true, the workflows do not trigger automatic.

Body

application/json

The sales order to update.

Model Class: UpdateSalesOrder

ExternalNumber
string
Example:

"D456-64894-132"

BillingNumber
string
Example:

"RE-202404-10000"

CompanyId
integer<int32>
DepartureCountry
object

Model Class: UpdateDepartureCountry

CustomerId
integer<int32>
CustomerVatID
string
Example:

"DE12345"

BillingAddress
object

Model Class: UpdateAddress

Shipmentaddress
object

Model Class: UpdateAddress

SalesOrderDate
string<date-time>
Example:

"2023-02-01T12:45:00.0000000+00:00"

SalesOrderPaymentDetails
object

Model Class: UpdateSalesOrderPaymentDetail

SalesOrderShippingDetail
object

Model Class: UpdateSalesOrderShippingDetail

ColorcodeId
integer<int32>
Comment
string
Example:

"an additional order comment"

CustomerComment
string
Example:

"an additional customer comment"

LanguageIso
string
Example:

"DE"

Response

The updated sales order.

Model Class: SalesOrder

Id
integer<int32>
required
Number
string
required

The number of the sales order.

Example:

"A1004465"

ExternalNumber
string
required

The external number of the sales order.

Example:

"D456-64894-132"

BillingNumber
string
required

The number of the invoice.

Example:

"RE-202404-10000"

CompanyId
integer<int32>
required
DepartureCountry
object
required

Model Class: DepartureCountry

CustomerId
integer<int32>
required
CustomerVatID
string
required

The VAT ID of the customer.

Example:

"DE12345"

MerchantVatID
string
required

The VAT ID of the merchant.

Example:

"DE12345"

BillingAddress
object
required

Model Class: Address

Shipmentaddress
object
required

Model Class: Address

SalesOrderDate
string<date-time>
required

The date when the order was created.

Example:

"2023-02-01T12:45:00.0000000+00:00"

SalesOrderPaymentDetails
object
required

Model Class: SalesOrderPaymentDetail

SalesOrderShippingDetail
object
required

Model Class: SalesOrderShippingDetail

ColorcodeId
integer<int32>
required
IsExternalInvoice
boolean
required

Indicates if the invoice of the order was created in an external system, like Amazon VCS.

Example:

false

Comment
string
required

A comment on the sales order.

Example:

"an additional order comment"

CustomerComment
string
required

A customer comment on the sales order.

Example:

"an additional customer comment"

IsCancelled
boolean
required

Indicates if the order has been cancelled. There is a special endpoint for cancelling sales orders.

Example:

false

LanguageIso
string
required

The language of the order.

Example:

"DE"

CancellationDetails
object
required

Model Class: SalesOrderCancellationDetails

SalesChannelId
string
required
Example:

"1-1-1"

UserCreatedId
integer<int32>
required
UserId
integer<int32>
required
TransactionStatusId
integer<int32>
required