Get Transaction
Try it
Parameters
Request sample
curl -X GET 'https://api.ozow.com/GetTransaction?siteCode=TST-MER-001&transactionId=33857766-f29a-4a3a-a37e-66db3c42e439' \
-H 'ApiKey: YOUR_API_KEY'Response example
Built from the response schema. Values are placeholders, not real data.
https://api.ozow.com/GetTransactionProductionBuild 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 a payin from the Payments API to One APIEverything needed to move an existing redirect payin onto One API, with the legacy guide and its One API counterpart side by side.
This method is called when you want to query a transaction using Ozow's transaction.
Authentication
- API key in the ApiKey header
The unique API key for the merchant. See Prerequisites and onboarding for where to find it.
Query parameters
siteCodestring requiredA unique code for the each of the merchant's sites. A 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. is generated when adding a site in the Ozow merchant admin section.
max length50exampleTST-MER-001transactionIdstring requiredOzow's reference for the transaction. This is passed back to the merchant in the redirectRedirect Sending the payer to the Ozow payment page to complete the payment, and returning them to your site afterwards. The alternative is embedding the checkout in your own page, where the payer never leaves it. and notification responses.
max length50example33857766-f29a-4a3a-a37e-66db3c42e439
Request body
Responses
transactionIdstring requiredOzow's unique reference for the transaction.
max length50merchantCodestring requiredUnique code assigned to each merchant.
max length50siteCodestring requiredThe 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. sent to Ozow in the request post.
max length50transactionReferencestring requiredThe merchant's transaction reference sent in the request post's TransactionReference variable.
max length50currencyCodestring requiredThe transaction currency codeISO 4217 The three-letter currency codes, such as
ZARfor the South African rand. Always uppercase.Wikipedia sent in the request post.max length3amountnumber double requiredThe transaction amount. The amount is in the currency specified by the currency codeISO 4217 The three-letter currency codes, such as
ZARfor the South African rand. Always uppercase.Wikipedia posted.statusstring requiredThe transaction status. Possible values are:
- Complete - The payment was successful.
- Cancelled - The payment was cancelled.
- Error - An error occurred while processing the payment.
- Abandoned – The payment was abandoned.
- PendingInvestigation – An inconclusive result was received by the bank and the payment needs to be verified manually.
- Pending – The status cannot be determined as yet but will be reposted to the notification URLWebhook A URL of yours that Ozow calls when something happens, rather than you polling to find out. The call carries no credential of yours and arrives at a public URL, so authenticate it before acting on it: a hash field on the Payments API, a Svix signature on One API. as soon as it has been determined. Merchants not using the notification URL will receive a PendingInvestigation status.
max length50statusMessagestringMessage regarding the status of the transaction. This field will not always have a value. This is a user friendly message that can be displayed to the user e.g. User cancelled transaction.
max length150createdDatestring requiredTransaction created date and time.
paymentDatestringTransaction payment date and time.
subStatusstringThe transaction sub status for failed transactions. The value provides an indication as to why the payment failed.
Some examples: • Unclassified – Failure scenario has not been mapped • InsufficientFunds - User did not have sufficient funds available to complete the payment
While there are several sub-statuses, they have not been included here as they are strictly for reporting.
max length50bankNamestringThe name of the bank the payment was made from.
max length50maskedAccountNumberstringThe masked account number the payment was made from.
If account number is 12 or more digits then the first and last four digits are unmasked e.g. 1234567898765 will be masked as 1234*****8765
If the account number is less than12 digits then the first and last 3 digits are left unmasked e.g. 123456789 will be masked as 123***789
This is not available by default and a request by the merchant must be submitted along with a justification for requiring this information.
max length50smartIndicatorsstringSome Ozow merchants have requested this information as they use this in their own processes. The can be ignored unless you have a purpose and application for this information. The application of these indicators are for the merchant’s discretion and in isolation do not constitute any action to be taken by the merchant.
The field will contain a pipe delimited list of the following values if they are applicable e.g. HIGH_VALUE | FIRST_OZOW :
- HIGH_VALUE – If a soft limit is configured on the site and the amount paid is higher or equal to the configured limit
- FIRST_OZOW – First time a user has paid using Ozow
- FIRST_MERCHANT – First time a user has paid the merchant using Ozow
- NEW_OZOW – User has paid using Ozow for the first time in the past seven days
- NEW_MERCHANT - User has paid the merchant using Ozow for the first time in the past seven days
max length500patternHIGH_VALUE|FIRST_OZOW
API key is missing or invalid.Merchant for site code TSTSTE0001 is deactivated