Get wallet balance
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/wallet/balance/{subscriber_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"pin": "1234"
}'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({pin: '1234'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/wallet/balance/{subscriber_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/wallet/balance/{subscriber_id}"
payload = { "pin": "1234" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}Wallet
Get wallet balance
Get current wallet balance for a subscriber (requires PIN verification)
POST
/
wallet
/
balance
/
{subscriber_id}
Get wallet balance
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/wallet/balance/{subscriber_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"pin": "1234"
}'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({pin: '1234'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/wallet/balance/{subscriber_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/wallet/balance/{subscriber_id}"
payload = { "pin": "1234" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}Authorizations
ApiKeyAuthBearerAuth
API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'
Path Parameters
Subscriber ID
Body
application/json
PIN for verification
Example:
"1234"
Response
Balance retrieved
The response is of type object.
⌘I