Lista bezbednosnih elemenata
get/v1/security-elements
Scope security-elements:read
Metapodaci sertifikata po obvezniku i prodajnom mestu: JID, okruženje, važenje, status isteka i preporuka zamene. Tajne se nikad ne vraćaju.
Beleške iz ugovora (OpenAPI, engleski)
Secret envelope references and plaintext values are never returned. Scoped to the caller's environment like every other tenant read.
Parametri
| Polje | Gde | Tip | Opis |
|---|---|---|---|
taxpayerIdopciono | query | uuid | |
businessPremiseIdopciono | query | uuid |
Primer
curl -X GET "https://api.bokapos.rs/v1/security-elements?businessPremiseId=b7d4e2c1-9a3f-4c8e-8f21-6e5a0c9d3b22" \
-H "Authorization: Bearer $BOKAPOS_TOKEN"Odgovori
| 200 OK | Tenant-scoped security elements |
|---|
{
"items": [
{
"id": "e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7a80",
"taxpayerId": "3f9c2a8e-6b1d-4e5a-9c47-1d2b8e6f0a11",
"businessPremiseId": "b7d4e2c1-9a3f-4c8e-8f21-6e5a0c9d3b22",
"environment": "sandbox",
"jid": "JWX4K9PL",
"certificateThumbprint": "A1B2C3D4E5F60718293A4B5C6D7E8F9012345678",
"certificateSubject": "CN=JWX4K9PL, O=BOKA GROUP DOO, C=RS",
"certificateIssuer": "CN=Sandbox ICA, O=Poreska uprava Republike Srbije, C=RS",
"certificateSerialNumber": "3F9C2A8E6B1D",
"certificateNotBefore": "2026-08-20T00:00:00Z",
"certificateNotAfter": "2028-08-20T00:00:00Z",
"certificateExpiryStatus": "current",
"replacementRecommended": false,
"status": "active",
"createdAt": "2026-08-21T09:10:00.000Z",
"updatedAt": "2026-08-21T09:12:00.000Z"
}
]
}Odgovor:
Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.
| Polje | Tip | Opis |
|---|---|---|
itemsobavezno | array<SecurityElement> | |
idobavezno | uuid | |
taxpayerIdobavezno | uuid | |
businessPremiseIdobavezno | uuid | |
environmentobavezno | FiscalEnvironment | The Stripe-style fiscal environment. Machine credentials carry exactly
one environment and may only use security elements of that
environment; sandbox elements are BOKA-assigned and route to the
TaxCore sandbox, production elements are the customer's own.
Taxpayers and business premises carry the environment too: the BOKA
sandbox taxpayer and premise created by a pool assignment are
sandbox, everything a human registers is production, and setup
registered by a machine credential belongs to that credential's
environment. A premise inherits its taxpayer's environment and a
security element can only be bound to a premise of its own.
|
jidobavezno | string | |
certificateThumbprintobavezno | string | |
certificateSubjectobavezno | string | |
certificateIssuerobavezno | string | |
certificateSerialNumberobavezno | string | |
certificateNotBeforeobavezno | date-time | |
certificateNotAfterobavezno | date-time | |
certificateExpiryStatusobavezno | string | Server-evaluated public-certificate time status using the configured 30-day warning and 7-day critical windows by default.
|
replacementRecommendedobavezno | boolean | True for a non-retired element whose public certificate is inside the warning window or expired; this is not proof of revocation or V-PFR status. |
statusobavezno | string |
|
createdAtobavezno | date-time | |
updatedAtobavezno | date-time |