Skip to main content
POST
Creates one sales invoice correction per invoice that a return's creditable line items resolve to.

Authorizations

Authorization
string
header
required

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

Headers

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

returnId
string<uuid>
required

The ID of the return to create sales invoice corrections for.

Example:

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

Body

application/json

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

asDraft
boolean

Indicates if each created sales invoice correction should be created as draft. Default is false.

disableAutomaticWorkflows
boolean

If true, workflows do not trigger automatically for any created correction. Default is false.

reduceSalesOrderQuantities
boolean

If true, sales order quantities will be reduced for each created correction. Default is false.

reduceDeliveryQuantities
boolean

If true, delivery quantities will be reduced for each created correction. Default is false.

cancelWebShopOrder
boolean

If true, the web shop order will be canceled for each created correction. Default is false.

allowQuantityExceeded
boolean

If true, a correction quantity exceeding an invoice's open remainder is accepted instead of rejected for that invoice. Default is false.

allowAmountExceeded
boolean

If true, a correction amount exceeding an invoice's open remainder is accepted instead of rejected for that invoice. Default is false.

Response

Per-invoice results of the fan-out. Individual invoices may have failed while others succeeded.

Creates one sales invoice correction per invoice that a return's creditable line items resolve to. - Response

results
object[]
required

One entry per invoice the return's creditable line items resolved to.

unresolvedLineItems
string<uuid>[]
required

Creditable return line items that could not be resolved to any invoice (e.g. no delivery-note link).