Complete reference for Ozibus APIs, SDKs, and integration guides
Our authentication and authorization process relies heavily on the endpoint since it enables us to confirm the legitimacy of the merchant requesting access to our services.
Overall, this authentication and authorization process makes sure that only reputable merchants with legitimate credentials may access and use the resources on our platform.
It provides a solid basis for a secure and dependable merchant experience on our platform by assisting in preventing unwanted access and any security breaches.
Request to /v1/generate_token
| Name | Description | Required |
|---|---|---|
| API-Key | YOUR_API_KEY | Yes |
| Merchant-Id | YOUR_MERCHANT_ID | Yes |
curl --location --request POST 'https://api.ozibus.com.au/v1/generate_token' \
--header 'Merchant-Id: <YOUR_MERCHANT_ID>' \
--header 'API-Key: <YOUR_API_KEY>' \<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.ozibus.com.au/v1/generate_token',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => array(
'Merchant-Id: <YOUR_MERCHANT_ID>',
'API-Key: <YOUR_API_KEY>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
<?php
$client = new Client();
$headers = [
'Merchant-Id' => '<YOUR_MERCHANT_ID> ',
'API-Key' => '<YOUR_API_KEY>'
];
$request = new Request('GET', 'https://api.ozibus.com.au/v1/generate_token', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
const axios = require('axios');
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.ozibus.com.au/v1/generate_token',
headers: {
'Merchant-Id': '<YOUR_MERCHANT_ID>',
'API-Key': '<YOUR_API_KEY>'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import requests
url = "https://api.ozibus.com.au/v1/generate_token"
payload = {}
headers = {
'Merchant-Id': '<YOUR_MERCHANT_ID>',
'API-Key': '<YOUR_API_KEY>'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Join thousands of developers using Ozibus APIs to power their applications.
Get Started for Free