Get API token
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
ApiKey header is missing or does not match the site, or for a Secure operation the bearer tokenBearer token An access token sent in the Authorization header as Authorization: Bearer <token>. Anyone holding the token can use it, which is why it belongs on your server and never in a browser or a mobile app.RFC 6750 is missing, expired or invalid.API key is missing or invalid.