Balance
GET https://api-sandbox.giftano.io/giftano-for-business-api/balance
Security
This api use Bearer Authorization as an authentication method. Replace API_KEY with your Api Key Token.
- Name: Authorization
- Value: Bearer API_KEY
- In: header
Response
| Code | Description |
|---|---|
| 200 | Return a details of balance |
| 400 | Bad Request |
| 401 | Unauthorized. |
| 404 | Not Found. |
| 500 | Internal Server Error. |
Example Usage
- Curl
- Axios
curl -X 'GET' \
'https://api-sandbox.giftano.io/giftano-for-business-api/balance' \
-H 'accept: application/json' \
-H 'Authorization: Bearer API_KEY'
var axios = require('axios');
var config = {
method: 'get',
url: 'https://api-sandbox.giftano.io/giftano-for-business-api/balance',
headers: {
accept: 'application/json',
Authorization: 'Bearer API_KEY',
},
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Example Success Response
{
"data": {
"balance": 10,
"corporate_id": "COY2RMCF509C"
}
}
Example Invalid Token
{
"code": 401,
"error": "Invalid token"
}
Example Not Found
{
"code": 404,
"error": "sorry, endpoint is not found"
}