Skip to main content

Overview

Payaza provides separate flows for two types of payment reversals:
  • Refunds — merchant-initiated reversals of completed transactions. You initiate these when a customer requests a return or the order cannot be fulfilled.
  • Chargebacks — customer-initiated disputes raised through their card issuer. Payaza notifies you and you can accept or reject the dispute through the API.
Refund and chargeback operations are irreversible and audit-critical. Restrict these actions to authorized roles in your system and maintain a complete log of every action taken.

Key Requirements

Use your public API key encoded in Base64. See the Authentication guide for setup instructions.
Set these headers on every request:

Endpoints

Refunds

Chargebacks


Refund flow

1

Identify the transaction

Retrieve the transaction_reference of the completed transaction you want to refund. Verify the transaction status is "Completed" before initiating a refund.
2

Submit the refund

Call the Refund endpoint with the transaction_reference and the amount to refund. Partial refunds are supported — the refund_amount must not exceed the original transaction amount.
3

Confirm the outcome

Check the refund status from the response or use the Refund History endpoint to verify the refund was processed successfully.

Initiate a refund

Sample response
Save the refund_transaction_reference from the response — it is the only identifier you can use to check refund status later.

List refund history

cURL
Query parameters

Chargeback flow

1

Receive the chargeback notification

Payaza notifies you of a new chargeback via a webhook, or you can poll the List Chargeback Requests endpoint to check for open disputes.
2

Review the dispute

Examine the transaction details, order records, and any evidence that the transaction was legitimate and authorized by the cardholder.
3

Accept or reject the chargeback

Call the Accept/Reject endpoint with your decision. Responding promptly improves the likelihood of a favorable resolution — card networks impose time limits for merchant responses.

List chargeback requests

Retrieve all open and resolved chargeback requests for your account.
cURL
Sample response

Accept or reject a chargeback

Respond to a chargeback with your decision. Use "ACCEPT" to concede the dispute and allow the reversal, or "REJECT" to contest it with a reason.
cURL
Request parameters Sample response

Chargeback transaction history

Retrieve a full transaction-level history of all chargeback activity on your account.
cURL
Sample response

Best practices

  • Restrict access — Only authorized roles (e.g. finance ops, not frontline support) should be able to initiate refunds or respond to chargebacks
  • Keep an audit trail — Log every refund initiation and chargeback response, including who triggered it and when
  • Align with customer support tools — Connect refund and chargeback statuses to your CRM or ticketing system so support agents have real-time visibility
  • Respond to chargebacks promptly — Card networks impose time limits for merchant responses; missing the window typically results in an automatic loss

What’s next

Card Collections

Understand the original card charge flow before handling reversals.

Auth, Capture & Void

Void a pre-authorization before capture to avoid the need for a refund.