Skip to main content
POST
/
organizations
/
{organizationId}
/
locations
Create a location
curl --request POST \
  --url https://api.openfiskal.com/v1/organizations/{organizationId}/locations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Berlin Mitte",
  "address": {
    "line1": "Friedrichstraße 42",
    "line2": "<string>",
    "city": "Berlin",
    "state": "<string>",
    "postal_code": "10117",
    "country": "DE"
  },
  "timezone": "Europe/Berlin",
  "metadata": {}
}
'
{
  "name": "Berlin Mitte",
  "address": {
    "line1": "Friedrichstraße 42",
    "line2": "<string>",
    "city": "Berlin",
    "state": "<string>",
    "postal_code": "10117",
    "country": "DE"
  },
  "timezone": "Europe/Berlin",
  "metadata": {},
  "id": "loc_01HXYZ",
  "object": "<string>",
  "organization_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Platform API key sent as Authorization: Bearer ofk_platform_.... Platform integrators also pass OpenFiskal-Organization: org_xxx to act on behalf of a merchant.

Path Parameters

organizationId
string
required

Body

application/json
name
string
required
Example:

"Berlin Mitte"

address
object
timezone
string
Example:

"Europe/Berlin"

metadata
object

Response

Location created

name
string
required
Example:

"Berlin Mitte"

address
object
timezone
string
Example:

"Europe/Berlin"

metadata
object
id
string
Example:

"loc_01HXYZ"

object
string
Allowed value: "location"
organization_id
string
created_at
string<date-time>