You can only refund a payment after it has already been captured.
Refund a payment
In order to refund a payment, you will need the transaction id from the transaction you want to refund. You can retrieve this identifier in several ways:- In a server-to-server integration, the
transactionIdfield is returned at the root of the create payment response. - For a Checkout integration, query the order by its
orderId. The associated transactions are listed under theTransactionsnode, which includes thetransactionIdfield. - If you have notifications configured, Paybyrd sends a notification for each processed payment. Every notification includes the
transactionIdfor that event. - You can also find the
transactionIdin the Paybyrd dashboard for every transaction in the Transacion Detail view.
API Call
You can find below an example of how to refund a transaction and the generated response:Handling rejections
Refunds can be declined, and you must handle these cases in your integration. When a refund cannot be processed, Paybyrd responds with codeBYRD205. For example:
BYRD205, the refund was declined by the bank. Declines can be temporary, so you can retry the request later. For more information about a declined refund, contact support.
Handling errors
When the Paybyrd API encounters an error, you receive this response structure:Payment already refunded
Generic error

