Skip to content
Reference

Security elements

Safe certificate metadata (JID, validity, status) without secrets. For monitoring expiry and environment.

2 operations

List security elements

get/v1/security-elements

Scopesecurity-elements:read

Certificate metadata per taxpayer and premise: JID, environment, validity, expiry status and replacement recommendation. Secrets are never returned.

Contract notes (OpenAPI)

Secret envelope references and plaintext values are never returned. Scoped to the caller's environment like every other tenant read.

Parameters

listSecurityElements: Parameters
FieldDescription
taxpayerIdoptionalIn: queryType: uuid
businessPremiseIdoptionalIn: queryType: uuid

Responses

listSecurityElements: Responses
200OKTenant-scoped security elements
Response:

Field descriptions come from the OpenAPI contract; field names and values are identical in both languages.

listSecurityElements: Response
FieldDescription
itemsrequiredType: array<SecurityElement>
idrequiredType: uuid
taxpayerIdrequiredType: uuid
businessPremiseIdrequiredType: uuid
environmentrequiredType: FiscalEnvironmentThe 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.

Valuessandboxproduction

jidrequiredType: string
certificateThumbprintrequiredType: string
certificateSubjectrequiredType: string
certificateIssuerrequiredType: string
certificateSerialNumberrequiredType: string
certificateNotBeforerequiredType: date-time
certificateNotAfterrequiredType: date-time
certificateExpiryStatusrequiredType: stringServer-evaluated public-certificate time status using the configured 30-day warning and 7-day critical windows by default.

Valuesnot-yet-validcurrentwarningcriticalexpired

replacementRecommendedrequiredType: booleanTrue 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.
statusrequiredType: string

Valuespending-verificationactivesuspendedretired

createdAtrequiredType: date-time
updatedAtrequiredType: date-time
onboardingoptionalType: object | null (nullable)Present only in the upload-completion response (null or absent elsewhere): the safe names of the taxpayer and business premise the element was bound to, read from the stored records, and whether each record was created by this upload. Never secret material.
taxIdentifierrequiredType: string
taxpayerLegalNamerequiredType: string
taxpayerCreatedrequiredType: boolean
businessPremisePuIdentifierrequiredType: string
businessPremiseNamerequiredType: string
premiseCreatedrequiredType: boolean

Read a security element

get/v1/security-elements/{securityElementId}

Scopesecurity-elements:read

One element by identifier, the same safe set of fields.

Parameters

getSecurityElement: Parameters
FieldDescription
securityElementIdrequiredIn: pathType: uuid

Responses

getSecurityElement: Responses
200OKSecurity element metadataSecurityElement
404Not FoundResource does not exist within the authenticated tenant scopeErrorCode
Response: SecurityElement

Field descriptions come from the OpenAPI contract; field names and values are identical in both languages.

getSecurityElement: Response
FieldDescription
idrequiredType: uuid
taxpayerIdrequiredType: uuid
businessPremiseIdrequiredType: uuid
environmentrequiredType: FiscalEnvironmentThe 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.

Valuessandboxproduction

jidrequiredType: string
certificateThumbprintrequiredType: string
certificateSubjectrequiredType: string
certificateIssuerrequiredType: string
certificateSerialNumberrequiredType: string
certificateNotBeforerequiredType: date-time
certificateNotAfterrequiredType: date-time
certificateExpiryStatusrequiredType: stringServer-evaluated public-certificate time status using the configured 30-day warning and 7-day critical windows by default.

Valuesnot-yet-validcurrentwarningcriticalexpired

replacementRecommendedrequiredType: booleanTrue 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.
statusrequiredType: string

Valuespending-verificationactivesuspendedretired

createdAtrequiredType: date-time
updatedAtrequiredType: date-time
onboardingoptionalType: object | null (nullable)Present only in the upload-completion response (null or absent elsewhere): the safe names of the taxpayer and business premise the element was bound to, read from the stored records, and whether each record was created by this upload. Never secret material.
taxIdentifierrequiredType: string
taxpayerLegalNamerequiredType: string
taxpayerCreatedrequiredType: boolean
businessPremisePuIdentifierrequiredType: string
businessPremiseNamerequiredType: string
premiseCreatedrequiredType: boolean