Skip to main content
POST
Creates a new sales invoice correction from an existing invoice.

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string

Optional, client-generated key for deduplicating repeated write requests. A repeated request with the same key returns the originally recorded result instead of executing the effect again.

Required string length: 1 - 255
x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

salesInvoiceId
string<uuid>
required

The ID of the sales invoice to create the correction for.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

Body

application/json

Request model for CreateSalesInvoiceCorrection command endpoint. Route parameters bind from the route, query parameters from the query string, everything else from the body.

asDraft
boolean

Indicates if the sales invoice correction should be created as draft.

useUndeliveredQuantities
boolean

Indicates if only undelivered quantities should be used.

disableAutomaticWorkflows
boolean

If true, the workflows do not trigger automatic.

reduceSalesOrderQuantities
boolean

If true, the sales order quantities will be reduced.

reduceDeliveryQuantities
boolean

If true, the delivery quantities will be reduced.

cancelWebShopOrder
boolean

If true, the web shop order will be canceled

lineItems
object[]

The line items to partially correct. When omitted, every open-remainder line of the invoice is corrected in full, matching today's behavior. An explicitly empty list is rejected and is not equivalent to omission.

allowQuantityExceeded
boolean

If true, a correction quantity exceeding the invoice's open remainder is accepted instead of rejected.

allowAmountExceeded
boolean

If true, a correction amount exceeding the invoice's open remainder is accepted instead of rejected.

Response

Sales invoice correction created successfully

Creates a new sales invoice correction from an existing invoice. - Response

salesInvoiceCorrectionId
string<uuid>
required

The Id of the created sales invoice correction

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"