Check the guide!
- 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
Checking the status
Check Rrefund Status endpoint.Authorizations
See Authentication.
Headers
SHA-256 or SHA-512 hash of the request body.
Body
A UUIDv4 based unique ID for this payment. We require you to provide the unique ID for all initiated payments to ensure you can always reconcile all payments. Please store this ID in your system before initiating the payment with pawaPay.
36"f4401bd2-1568-4140-bf2d-eb77d2b2b639"
The depositId of the deposit to be refunded.
36"f4401bd2-1568-4140-bf2d-eb77d2b2b639"
The amount of the payment.
Amount must follow below requirements or the request will be rejected:
- Not all providers support decimals. Find which ones do from providers or dynamically using active configuration endpoint.
- Transaction limits apply. Find them from the Active Configuration endpoint.
- Leading zeroes are not permitted except where the value is less than 1. For any value less than one, one and only one leading zero must be supplied.
1 - 23"15"
The currency in which the amount is specified.
Format must be the ISO 4217 three character currency code in upper case. Read more from Wikipedia.
Find the supported currencies for the provider.
The active configuration endpoint has all the providers configured for your account together with the supported currencies.
"ZMW"
A reference to an entity in your system that this payment relates to. For example, an invoice ID, customer ID etc.
"INV-123456"
A list of metadata that you can attach to the payment for providing additional context about the payment. For example, adding the channel from which the payment was initated, product ID or anything else that might help your operations team.
Metadata will be included in:
- In the dashboard on payment details pages
- Financial statements as JSON object
- Callbacks
Metadata can be used when searching in the pawaPay Dashboard. Full value of the metadata field must be used for searches.
Metadata will not be visible to the customer that is involved in this payment.
Up to 10 metadata fields can be attached to a payment.
[
{ "orderId": "ORD-123456789" },
{
"customerId": "customer@email.com",
"isPII": true
}
]Response
Request has been accepted for processing by pawaPay
The unique ID for this payment in pawaPay as specified by you during initiation.
36"f4401bd2-1568-4140-bf2d-eb77d2b2b639"
Possible refund initiation statuses:
ACCEPTED- The refund has been accepted by pawaPay for processing.REJECTED- The refund has been rejected by pawaPay. SeefailureReasonfor details.DUPLICATE_IGNORED- The refund has been ignored as a duplicate of an already accepted refund. Duplication logic relies uponrefundId.
ACCEPTED, REJECTED, DUPLICATE_IGNORED 
