Skip to main content
POST
Upload a cash certificate

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-OpenFiskal-Merchant
string
required

Merchant identifier returned by the merchants resource.

Body

application/json
p12
string
required

The .p12 file the tax portal issued, base64 (line breaks are ignored). It holds the private key sales are signed with, so it is stored encrypted and never returned.

password
string
required

The password of the .p12. Stored encrypted, never returned.

description
string

A note to tell certificates apart, e.g. the description given in the tax portal.

Maximum string length: 64
Example:

"Kavárna Praha"

Response

Certificate stored

id
string
required
vat_id
string
required

The DIČ the certificate is issued to (its subject CN), the merchant's vat_id.

Example:

"CZ27082440"

serial_number
string
required

Serial number, hex, as the tax portal lists it.

Example:

"15584C0A86BB6E65CC5C7097792CB26481A9A6AD"

valid_from
string<date-time>
required
valid_to
string<date-time>
required

When it expires (366 days after issue). Upload its successor before: sales cannot be signed after.

status
enum<string>
required

active: sales are signed with it now (of the valid certificates issued to the merchant's current DIČ, the one that expires last). standby: valid, but another one expires later. scheduled: valid from a later date, e.g. a successor uploaded ahead. expired: past valid_to. superseded: issued to a DIČ the merchant no longer has.

Available options:
scheduled,
active,
standby,
expired,
superseded
created_at
string<date-time>
required
description
string | null
Maximum string length: 64