> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RefundPaymentTransactionRemainderCommandRequestInput

> Creates a refund of what is left of an incoming payment transaction that belongs to no sales document, for example money that was paid twice or by mistake. The money goes back to the payer through the payment account of the transaction; nothing is booked on a document. Send it with 'SendRefund'. Read it with 'GetRefund'. Errors: PAYMENT_TRANSACTION_NOT_FOUND (the payment transaction was not found); PAYMENT_ACCOUNT_HIDDEN (the payment account is hidden; show it with 'ShowPaymentAccount' first); PAYMENT_TRANSACTION_NOT_REFUNDABLE (nothing of the transaction is left to refund ('refundableAmount' is 0), or it is not an incoming transaction); PAYMENT_ACCOUNT_CANNOT_TRANSFER (the payment account cannot send money); AMOUNT_NOT_POSITIVE (the amount is not greater than 0); AMOUNT_EXCEEDS_REFUNDABLE_AMOUNT (the amount is more than 'refundableAmount'); REFUNDABLE_AMOUNT_CHANGED (the refundable amount of the transaction differs from 'expectedRefundableAmount'). - Request



**Kind**: `input`

## Fields

**`paymentTransactionId`**: `ID!` (required)

The ID of the payment transaction.

---

**`amount`**: `Decimal`

The amount to refund, greater than 0, with at most two decimals. Omitted means all of 'refundableAmount'.

---

**`expectedRefundableAmount`**: `Decimal`

The refundable amount the caller expects ('refundableAmount'). When given and it differs, nothing is created.

---

**`disableAutomaticWorkflows`**: `Boolean`

Whether to suppress the automatic workflows this call would start. 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.

