v1

latestOpenAPI 3.0.02026-07-262561105.1 KB
Transactions API

Refund Transaction

Refunds a transaction. You can either refund the entire amount or specify a partial amount.

post/transactions/{transaction_id}/refund

Path parameters

transaction_idstring required
Example:ABCD-1234

A unique ID representing the transaction’s loan or charge ID.

Headers

Idempotency-Keystring

Unique identifier pre-generated by the client and used by the server to recognize successive calls to the same endpoint. This is required for Split Capture and encouraged for single transaction functionality. Note: If a request fails or times out, use the same idempotency key to retry the operation without risk of double-processing. For details, see the Idempotency section on About Split Capture.

Request body

amountinteger nullable

The amount to be refunded in cents. If the request omits this parameter, the entire remaining amount on the transaction will be fully refunded.

reference_idstring nullable

An optional, unique identifier that may be associated with each transaction event and reconciled with the system of record used by the merchant.

Example request

{
  "amount": 20000,
  "reference_id": "202307011027"
}

Response

HTTP 200 OK