/v1/naplata/potrosnja
Usage by period
Returns: Usage by period. Allowed roles: per role/scope; scope: naplata:citanje.
Authentication and scopes
- Session (HttpOnly cookie)
- OAuth2:
naplata:citanje - API key (
Authorization: Bearer upl_live_…)
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organizacija-Id | header | no | string (uuid) | Active organization. Required for user OIDC tokens with multiple orgs; for API key/client credentials the org is in the credential (header must match or be omitted). |
period | query | no | string | Calendar month in Europe/Belgrade (YYYY-MM). Default: current month. |
Responses
200 Success
{
"period": "2026-11",
"izdato_profaktura": 37,
"limit_profaktura": 50
}400 Bad request
401 Missing or invalid token/key
403 Nedovoljna prava: zabranjeno, nedovoljan_opseg, funkcija_nije_u_planu, organization
429 Too many requests
default Unexpected error
Example (curl)
curl -sS -X GET "https://api.uplaceno.rs/api/v1/naplata/potrosnja" \
-H "Authorization: Bearer upl_live_VAS_KLJUC" \
-H "Content-Type: application/json"