Zum Hauptinhalt springen
POST
Preview the settlement of a credit note or cancellation

Autorisierungen

Authorization
string
header
erforderlich

API token of the organisation. Send it as Authorization: Bearer api_... The token is bound to exactly one organisation.

Pfadparameter

id
string<uuid>
erforderlich

Id of the credit note or cancellation.

Pattern: [0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}

Antwort

The settlement as rows. steps is empty and unsettledAmount 0.00 when the document is settled already.

Settlement of a credit note or cancellation against its invoice and the customer balance, as rows.

creditDocument
object

One end of a settlement row: a document or the customer balance.

currency
string

Currency of every amount (ISO 4217).

Beispiel:

"EUR"

unsettledAmount
string

Part of the document not yet settled before this settlement, decimal string; 0.00 when there is nothing to settle.

Beispiel:

"1943.27"

steps
object[]

The rows in booking order: the document against its invoice, the rest to the customer balance, the balance applied to open invoices (oldest due date first).

remainingBalance
string

Customer balance after the settlement (the last row), decimal string.

Beispiel:

"174.93"

remainingBalanceTags
object[]

Notes on the last row.

warnings
object[]

Every warning of the rows, once each.

executable
boolean

True when the settlement can run: something is unsettled and nothing blocks it.

executed
boolean

True when this response booked the rows. False for the preview and for a settlement that found nothing to settle.