Skip to main content
inputAssignPaymentTransactionToSalesOrderCommandRequestInput

Fields

paymentTransactionId
ID!
required

The ID of the payment transaction.

salesOrderId
ID!
required

The ID of the sales order.

amount
Decimal

The amount to assign, greater than 0, with at most two decimals, in the currency of the transaction. For a transaction of money sent or taken back it is the amount paid back, and it is compared with the magnitude of 'openAmount' (AMOUNT_EXCEEDS_OPEN_AMOUNT). Omitted means the default described above.

expectedOpenAmount
Decimal

The open amount the caller expects the transaction to have, signed as 'openAmount' returns it (negative for money sent or taken back). When given and the open amount differs, nothing is assigned; this protects against assigning the same money twice.

disableAutomaticWorkflows
Boolean

Whether to suppress the automatic workflows this call would start: the events of the payment transaction and, when a sales order or a sales invoice becomes fully paid, its workflows. Events for other systems are still published. Defaults to false when omitted.

idempotencyKey
String

Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.