Skip to main content
POST
Create location

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.

Idempotency-Key
string

Optional. A unique key per request, e.g. a UUID, at most 255 printable ASCII characters. With it, sending the request again replays the first result (marked Idempotent-Replayed: true) instead of creating a second resource; with a different request it is rejected with 409 idempotency_key_conflict. Scoped per endpoint, merchant, and tenant. Retained for 30 days. Without it, every request creates a new resource.

Body

application/json
name
string
required
Example:

"Main Store"

address
object
required
timezone
string
required
Example:

"Europe/Berlin"

external_id
string
Example:

"loc-001"

fiscal_details
object | null

What the location's fiscal regime needs to know about it, one shape per regime, named by regime, which must belong to the location's country. At most one per location. czechia_eet2: required before a register at the location can be fiscalized. Left out (or null) where the regime needs nothing, e.g. in Germany.

Response

Location created

id
string
required
merchant_id
string
required
name
string
required
fiscal_details
object | null
required

What the location's fiscal regime knows about it, the shape named by regime. Null until set, and where the regime needs nothing.

address
object
required
created_at
string<date-time>
required
external_id
string | null
timezone
string | null