List Account limits
List Account limits
GET
https://api.ocamba.com/v2/adex/accounts/{id}/limits
Returns a list of Account limitsPath parameters
parametersQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/adex/accounts/{id}/limits" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/adex/accounts/{id}/limits';
const options = {
method: 'GET',
headers: {
Authorization: `Bearer {TOKEN}`
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}$ch = curl_init("https://api.ocamba.com/v2/adex/accounts/{id}/limits");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);Responses
200 OK
{
"total": 5,
"items": [
{
"id": "746",
"type": "budget",
"item": "expense",
"period": "day",
"value": 33,
"create_time": "2021-09-14 08:46:54",
"update_time": "2021-11-03 09:15:51"
},
{
"id": "747",
"type": "budget",
"item": "expense",
"period": "month",
"value": 444,
"create_time": "2021-09-14 08:46:54",
"update_time": "2021-11-03 09:15:51"
},
{
"id": "748",
"type": "budget",
"item": "income",
"period": "day",
"value": 22,
"create_time": "2021-09-14 08:46:54",
"update_time": "2021-11-03 09:15:51"
},
{
"id": "750",
"type": "budget",
"item": "expense",
"period": "hour",
"value": 6,
"create_time": "2021-09-14 08:46:54",
"update_time": "2021-11-03 09:15:51"
},
{
"id": "751",
"type": "budget",
"item": "income",
"period": "month",
"value": 5,
"create_time": "2021-09-14 08:46:54",
"update_time": "2021-11-03 09:15:51"
}
]
}
Responses
Tip
If you don’t know the account id, list the accounts to find it.
Searchable field is id.
Sortable fields are: account_id, period, value, create_time and update_time.