This page describes how to get the customer details for a previously completed transaction. Use the customer details to initiate a refund from your bank.
Refunds typically must be issued against a previously completed transaction. The steps below describe the payment and refund process:
Initiate a payment as described on the Create a Payment Session page.
Once a payment has been processed, Banked sends a webhook notification that includes a transaction ID.
When you receive a refund request, send a
GET
request tov2/payment_sessions/[id]/consumer_account
. Replace[ID]
in the path with the transaction ID you received when the payment was processed.The
/consumer_account
resource returns the bank account details for the customer.Use the customer's bank account details to initiate a refund through your bank.