Skip to main content

Input fields

accountNumber : String! required

The account number for the requested ledger's account.

amountInMinorUnit : Int! required

The amount to be repaid.

idempotencyKey : String! required

Unique constraint to prevent duplicate requests.

instructionReference : String
        Optional. The instruction that should be used for transferring money to the customer.
        Note if specified, this will be preferred over the `method` input if both are given.
ledgerId : String

The ledger id from which the repayment will be requested.

Deprecation
The 'ledgerId' field is deprecated.

Please use 'ledgerNumber' instead. This is in the form of 'L-123456789A'

- Marked as deprecated on 2024-10-22.
- Scheduled for removal on or after 2025-06-25.
ledgerNumber : String

The ledger number from which the repayment will be requested.

The method by which the money will be transferred to the customer.

reason : String

The reason for the repayment.

reasonCode : RepaymentReason

The reason code classifying the repayment request. Defaults to PARTIAL_CREDIT_REFUND if not provided.

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Example

{ "accountNumber": "A-EA8E33FA", "amountInMinorUnit": 48, "idempotencyKey": "majority-ahead-analysis-reflect-work", "instructionReference": "or-hour-color-maybe-word", "ledgerNumber": "side-much-team-discussion-message", "method": "BANK_TRANSFER", "reason": "weight-official-learn-especially-nature", "reasonCode": "BILLING_ADJUSTMENT" }