Get refund
Try it
Parameters
Request sample
curl -X GET 'https://api.ozow.com/secure/refunds/getrefund?refundId=00000000-0000-0000-0000-000000000000' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'Response example
Built from the response schema. Values are placeholders, not real data.
https://api.ozow.com/secure/refunds/getrefundProductionBuild with AI 1 package
A build package is every page for one task, with the API operations they use. Copy the prompt into a coding assistant, or hand it the package itself: slim links to each page, full inlines all of them in one document.
- Migrate refunds from the Payments API to One APIEverything needed to move an existing refunds integration onto One API, with the legacy guide and its One API counterpart side by side.
Query a refund using the Ozow refund identifier.
Authentication
- Bearer token
The token generated by the
Get API tokenoperation. The same token is used for every request until it expires.
Query parameters
refundIdstring requiredOzow's identifier for the refund. This identifier is passed back to the merchant in the SubmitRefunds response’s RefundId field.
Responses
application/json
idstring uuid requiredThe identifier for the refund.
createdDatestring date-time requiredThe date the refund was created.
createdDateUtcstring date-time requiredThe UTC date the refund was created.
merchantCodestring requiredCorresponding merchant code of the refund.
siteCodestring requiredCorresponding site codeSite code The unique code for a site registered under a merchant. A site is a place to transact: a website, or a branch of a store. A merchant can have several, and each transaction names the one it belongs to, so sending the wrong code files the payment against the wrong place. of the refund.
siteNamestring requiredCorresponding site name of the refund.
bankToNamestring requiredBank the refund was sent to.
currencyCodestring requiredRefund currency.
max length3amountnumber double requiredRefund amount.
statementReferencestring requiredBank reference of the refund for the payer.
statusinteger requiredRefund status. Possible values are:
- 0 - Pending - The refund request has been submitted and accepted.
- 1 - Complete - The refund has been paid successfully.
- 2 - Submitted - The refund has been assigned to a batch and is being processed.
- 3 - Failed - The refund payment has failed.
- 4 - Cancelled - The refund has been cancelled before it was submitted.
- 5 - Returned - The refund payment has been returned because the account that was being refunded no longer exists.
toAccountstring requiredAccount number refund was sent to.
paymentDatestring date-time requiredPayment date of the refund.
transactionReferencestring requiredReference of the transaction which was refunded.
customerstringRefunded transaction customer.
lastEventstring requiredMost recent log activity of the refund.
refundCompletedDatestring date-timeThe date the refund was completed.
createdBystring requiredName of the user who created the refund.
isRtcboolean requiredTrueif the refund was paid via RTCReal-Time Clearing Payments that clear immediately rather than waiting for a batch. A batch run settles at set times through the day; a Real-Time Clearing payment moves the funds between the two bank accounts as it is made, so the recipient can rely on them straight away.PayInc.
application/xml
idstring uuid requiredThe identifier for the refund.
createdDatestring date-time requiredThe date the refund was created.
createdDateUtcstring date-time requiredThe UTC date the refund was created.
merchantCodestring requiredCorresponding merchant code of the refund.
siteCodestring requiredCorresponding site codeSite code The unique code for a site registered under a merchant. A site is a place to transact: a website, or a branch of a store. A merchant can have several, and each transaction names the one it belongs to, so sending the wrong code files the payment against the wrong place. of the refund.
siteNamestring requiredCorresponding site name of the refund.
bankToNamestring requiredBank the refund was sent to.
currencyCodestring requiredRefund currency.
max length3amountnumber double requiredRefund amount.
statementReferencestring requiredBank reference of the refund for the payer.
statusinteger requiredRefund status. Possible values are:
- 0 - Pending - The refund request has been submitted and accepted.
- 1 - Complete - The refund has been paid successfully.
- 2 - Submitted - The refund has been assigned to a batch and is being processed.
- 3 - Failed - The refund payment has failed.
- 4 - Cancelled - The refund has been cancelled before it was submitted.
- 5 - Returned - The refund payment has been returned because the account that was being refunded no longer exists.
toAccountstring requiredAccount number refund was sent to.
paymentDatestring date-time requiredPayment date of the refund.
transactionReferencestring requiredReference of the transaction which was refunded.
customerstringRefunded transaction customer.
lastEventstring requiredMost recent log activity of the refund.
refundCompletedDatestring date-timeThe date the refund was completed.
createdBystring requiredName of the user who created the refund.
isRtcboolean requiredTrueif the refund was paid via RTCReal-Time Clearing Payments that clear immediately rather than waiting for a batch. A batch run settles at set times through the day; a Real-Time Clearing payment moves the funds between the two bank accounts as it is made, so the recipient can rely on them straight away.PayInc.
There was an error processing your requestAPI key is missing or invalid.