Refund

Refunding a transaction means reversing a previously captured payment, partially or totally. This action returns funds to the customer and the amount of time varies by issuing bank.

Key Considerations

  • Refunds are only possible for captured transactions.

  • You can refund:

    • The full amount, or

    • A partial amount, as long as it's less than or equal to the captured value.

  • Multiple partial refunds are allowed until the full amount is refunded.

  • Once the full amount is refunded, further refunds will return an error.

  • The externalPaymentId used in capture also identifies the transaction to refund.

Generate an Access Token

Use the same OAuth token generation process as for capture and void.

curl -X POST https://sandbox-gw.simpleps.com/oauth/token \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "clientId": "2131-21312-3312",
    "secretID": "12312-1231-123-112"
  }'

Refund a Captured Transaction

Request Body

Optional. If not informed, the full captured amount will be refunded.

Sample Success Response

Last updated