Refund Float
Ozow uses the funds you have loaded into your Ozow float to make refund payments.
The Ozow Refund API allows you to instruct us to refund any EFT payments that were paid using Ozow.
Ozow uses the funds you have loaded into your Ozow float to make refund payments.
The diagram below outlines the process flow that a standard refund will follow. These steps are explained in detail in the next few sections of this guide.
Get Token
Submit Refunds
Refund Processing
Outcome
List Refunds
Staging | https://stagingapi.ozow.com |
---|---|
Live | https://api.ozow.com |
All requests excluding the "Get Token" request require the following HTTP headers.
Name | Type | Req | Description |
---|---|---|---|
Authorization | string (500) | Y | The token generated using the get token method. eg. Authorization: Bearer [token] |
Content-Type | string(50) | N |
The format the response should be returned in e.g.
|
Accept | string(50) | Y |
The format the response should be returned in e.g.
|
All requests are authenticated using the token you will receive from this request. The same token can be used for all requests until it expires. The only content type supported by this request is "application/x-www-form-urlencoded".
Url | /token | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Method | POST | ||||||||||||
Headers |
|
||||||||||||
URL Params | N/A | ||||||||||||
Data Params |
|
||||||||||||
Response Object |
|
||||||||||||
Request Example |
|
||||||||||||
Response Example |
|
You will pass all refunds you want to be processed in this request.
Url | /secure/refunds/submit | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Method | POST | ||||||||||||||||||||||||||||
Headers |
See common headers | ||||||||||||||||||||||||||||
URL Params | N/A | ||||||||||||||||||||||||||||
Data Params |
RefundRequest Object
|
||||||||||||||||||||||||||||
Response Object |
|
||||||||||||||||||||||||||||
Request Example |
|
||||||||||||||||||||||||||||
Response Example |
|
Follow these steps to generate the hash check:
Here is an example of how a hash would be generated using the steps above and the values below.
TransactionId | 25716f65-7685-4cce-b3e2-60478490c0dc |
---|---|
Amount | 0.01 |
RefundReason | Test 1 |
NotifyUrl | http://xgfg26qcbpbx.runscope.net |
Ozow will process the refunds as soon as possible. Payment will be made into the account from which the orginal EFT payment was made.
Once you receive a bank message that contains a transaction status the transaction has been concluded and the status of the payment can be determined. You can trigger the relevant actions on your system based on the payment status received.
Pending | The refund request has been submitted and accepted. |
---|---|
Complete | The refund has been paid successfully. |
Submitted | The refund has been assigned to a batch and is being processed. |
Failed | The refund payment has failed. |
Cancelled | The refund has been cancelled before it was submitted. |
Returned | The refund payment has been returned because the account that was being refunded no longer exists. |
Once the refund has either failed or been completed, Ozow will send a notification to the URL in the request.
Name | Type | Description |
---|---|---|
RefundId | guid | The refund identifier. |
TransactionId | guid | The transaction identifier of the transaction that is being refunded. |
CurrencyCode | string (3) | The refund currency. Will always be the same as the amount in the transaction. |
Amount | decimal (9,2) | The refund amount. The amount is in the currency specified by the currency code. |
Status | string (50) | The refund status. See possible values. |
BankName | string (50) | The name of the bank the refund was paid to. |
AccountNumber | string (50) | The masked account number payment was made to. |
StatusMessage | string (500) | Message regarding the status of the refund. This field will not always have a value. |
Hash | string (150) | SHA512 hash used to ensure that certain fields in the message have not been altered after the hash was generated. Check the generate hash section below for more details on how to validate the response variables using the hash. |
The API also has the facility of you to query historical refunds data.
You can use the API to query your refunds, filtering by date and status (only refunds for the authenticated Merchant Site will be returned)
Url | /secure/refunds/getrefunds | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Method | GET | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Headers |
See common headers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
URL Params |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Data Params | N/A | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Object |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Example |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Example |
|