Uplaćeno Docs
sr en

API reference

Plan and usage

Subscription plan, seats and metered usage.

GET /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

NameInRequiredTypeDescription
X-Organizacija-Idheadernostring (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).
periodquerynostringCalendar 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"
GET /v1/organizacije/{organizacija_id}/mesta

Organization seats

Returns: Organization seats. Allowed roles: per role/scope; scope: naplata:citanje.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: naplata:citanje
  • API key (Authorization: Bearer upl_live_…)

Parameters

NameInRequiredTypeDescription
organizacija_idpathyesstring (uuid)

Responses

200 Success
{
  "limit": 1,
  "aktivni_clanovi": 1,
  "pozivnice_na_cekanju": 0,
  "slobodno": 0
}
401 Missing or invalid token/key
403 Nedovoljna prava: zabranjeno, nedovoljan_opseg, funkcija_nije_u_planu, organization
404 Not found (or not in this organization/environment)
429 Too many requests
default Unexpected error

Example (curl)

curl -sS -X GET "https://api.uplaceno.rs/api/v1/organizacije/{organizacija_id}/mesta" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"