Get API token
Try it
Bodyapplication/x-www-form-urlencoded
Request sample
curl -X POST 'https://api.ozow.com/token' \
-H 'ApiKey: YOUR_API_KEY' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=string&SiteCode=string'Response example
Built from the response schema. Values are placeholders, not real data.
https://api.ozow.com/tokenProductionBuild 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.
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 operation is "application/x-www-form-urlencoded".
Authentication
- API key in the ApiKey header
The unique API key for the merchant. See Prerequisites and onboarding for where to find it.
Request body
grant_typestring requiredSet as "Password".
max length50SiteCodestring requiredThe Ozow 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. for the site which the payment is being made to. [Please contact support for SiteCode - support@ozow.com]
max length50
Responses
application/json
access_tokenstring requiredThe token needed for subsequent requests.
max length500token_typestring requiredThe token type.
max length50expires_instring requiredThe lifetime of the token in seconds.
max length50
application/xml
access_tokenstring requiredThe token needed for subsequent requests.
max length500token_typestring requiredThe token type.
max length50expires_instring requiredThe lifetime of the token in seconds.
max length50
API key is missing or invalid.