List Account limits
List Account limits
GET
https://api.ocamba.com/v2/ocamba/accounts/{id}/limits
Returns a list of Account limits
Path parameters
parametersQuery parameters
parametersResponse schemas
›
200
application/json
GET https://api.ocamba.com/v2/ocamba/accounts/{id}/limits HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X GET "https://api.ocamba.com/v2/ocamba/accounts/{id}/limits" \
-H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/v2/ocamba/accounts/{id}/limits", {
method: "GET",
headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v2/ocamba/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
HTTP/1.1 200 OK
Content-Type: application/json
{
"total": 3,
"items": [
{
"id": "1000",
"company_id": "1000001",
"account_id": "1000000",
"type": "budget",
"item": "income",
"period": "day",
"value": 1,
"create_time": "2021-10-29 12:47:00",
"update_time": "2021-10-30 14:27:26"
}
]
}
Responses
Tip
1
Sortable fields are: account_id, period, value, create_time and update_time.