Agent cash-in transaction
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/agents/cashin \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"agent_pin": "<string>",
"amount": "<string>",
"subscriber_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: '<string>',
agent_pin: '<string>',
amount: '<string>',
subscriber_id: '<string>'
})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/agents/cashin', 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/agents/cashin"
payload = {
"agent_id": "<string>",
"agent_pin": "<string>",
"amount": "<string>",
"subscriber_id": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}{}Agents
Agent cash-in transaction
Process cash-in transaction from agent to subscriber. Agent authenticates with their own PIN, not subscriber’s PIN.
POST
/
agents
/
cashin
Agent cash-in transaction
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/agents/cashin \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"agent_pin": "<string>",
"amount": "<string>",
"subscriber_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: '<string>',
agent_pin: '<string>',
amount: '<string>',
subscriber_id: '<string>'
})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/agents/cashin', 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/agents/cashin"
payload = {
"agent_id": "<string>",
"agent_pin": "<string>",
"amount": "<string>",
"subscriber_id": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}{}Authorizations
ApiKeyAuthApiKeyAuthBearerAuth
API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'
Body
application/json
Cash-in details
Response
OK
The response is of type object.
⌘I