Request refund
Refunds operation allows you to initiate a refund for asynchronous processing.
Learn more!
See what the refund flow looks like with pawaPay.
- This API call is idempotent, which means it is safe to submit a request with the same
refundId
multiple times. - Duplicate requests with the same
refundId
will be ignored with theDUPLICATE_IGNORED
status in the response. - Since the request can be rejected, you must check the
status
code in the response for each submitted request. TherejectionReason
in the response will contain information about the reason of the rejection.
Each request can get one of the statuses on initiation:
Status | Description | |
---|---|---|
ACCEPTED | Yes | The refund request has been accepted by pawaPay for processing. |
REJECTED | No | The refund request has been rejected. See rejectionReason for details. |
DUPLICATE_IGNORED | No | The refund request has been ignored as a duplicate of an already accepted refund request. 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 the ACCEPTED
refund by either:
Waiting for a callback
If you have configured callbacks, just wait for it.
Checking the status
Or poll the Check Refund Status endpoint.
Authorizations
See Authentication.
Headers
SHA-256 or SHA-512 hash of the request body.
Signature of the request according to RFC-9421.
Signature-Input according to RFC-9421.
Expected signature algorithm of the response according to RFC-9421.
Expected digest algorithm of the response according to RFC-9421.
Body
A UUIDv4 based ID specified by you, that uniquely identifies the refund.
36
The depositId
of the deposit to be refunded.
36
The amount to be collected (deposit) or disbursed (payout or refund).
Amount must follow below requirements or the request will be rejected:
- Between zero and two decimal places can be supplied, depending on what the specific MMO supports. Learn about all MMO supported decimal places.
- The minimum and maximum amount depends on the limits of the specific MMO. You can 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.
- Trailing zeroes are permitted.
Valid examples:
5
, 5.0
, 5.00
, 5.5
, 5.55
, 5555555
, 0.5
Not valid examples:
5.
, 5.555
, 5555555555555555555
, .5
, -5.5
, 00.5
, 00.00
, 00001.32
1 - 23
A list of metadata that you can attach to the payment for providing additional context about the payment.
For example, adding orderId
to indicate for which order this payment was for or customerId
to know which customer this payment pertains to.
Metadata will not be visible to the customer that is party to this payment. It will be visible in the pawaPay Dashboard on the payment details page and in your financial statements as a JSON object to support automated reconciliation. It is also possible to search for recent payments in the pawaPay Dashboard using global search based on the values of metadata.
Up to 10 metadata fields can be attached to a payment.
Response
The refundId
of the refund transaction.
36
Possible refund initiation statuses:
ACCEPTED
- The refund request has been accepted by pawaPay for processing.REJECTED
- The refund request has been rejected by pawaPay. SeerejectionReason
for details.DUPLICATE_IGNORED
- The refund request has been ignored as a duplicate of an already accepted refund request. Duplication logic relies upon refundId.
ACCEPTED
, REJECTED
, DUPLICATE_IGNORED
The timestamp of when the refund was created in the pawaPay platform. Format defined by 'date-time' in RFC3339 section 5.6 from IETF