Check the guide!
Follow the step-by-step guide on how to handle refunds.
- This API call is idempotent, which means it is safe to submit a request with the same
refundIdmultiple times. - Duplicate requests with the same
refundIdwill be ignored with theDUPLICATE_IGNOREDstatus in the response. - Since the request can be rejected, you must check the
statuscode in the response for each submitted request. ThefailureReasonin the response will contain information about the reason of the rejection.
| Status | Description | |
|---|---|---|
ACCEPTED | Yes | The refund has been accepted by pawaPay for processing. |
REJECTED | No | The refund has been rejected. See rejectionReason for details. |
DUPLICATE_IGNORED | No | The refund has been ignored as a duplicate of an already accepted refund. Duplication logic relies upon refundId. |
How to find out the final status of this refund?
As the pawaPay Merchant API is an asynchronous API, you can find out the final status of theACCEPTED refund by either:
Waiting for a callback
If you have configured callbacks, the callback with the final status of the refund will be delivered to your callback URL.
Checking the status
Or poll the
Check Rrefund Status endpoint.Headers related to signatures must only be included if you have enabled “Only accept signed requests”.
Read more about it from the pawaPay Dashboard documentation.
Authorizations
Headers
Body
application/json

