Transfer float to sub-agent
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/agents/transfer \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"sub_agent_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 123, sub_agent_id: '<string>'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/agents/transfer', 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/transfer"
payload = {
"amount": 123,
"sub_agent_id": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}{}Agents
Transfer float to sub-agent
Super-agent transfers float to their sub-agent. Super-agent ID is auto-detected from logged-in user. Admin can specify super_agent_id.
POST
/
agents
/
transfer
Transfer float to sub-agent
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/agents/transfer \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"sub_agent_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 123, sub_agent_id: '<string>'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/agents/transfer', 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/transfer"
payload = {
"amount": 123,
"sub_agent_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
Transfer details
Response
OK
The response is of type object.
⌘I