Creates a new location in the account.
API version. Must be set to 2020-09-01.
2020-09-01 Location name (max 30 characters).
30Geographical latitude (-90 to 90).
-90 <= x <= 90Geographical longitude (-180 to 180).
-180 <= x <= 180Postal address (max 300 characters).
300ISO 3166-1 alpha-2 country code (e.g. "US", "CA").
^[A-Z]{2}$Languages available at this location. An array of ISO 639 / BCP 47 language codes (e.g. "en", "et", "fr-CA"). Must include "en". No duplicates allowed. Order is preserved. Defaults to ["en"] if omitted.
Custom input fields to create with the location. If omitted, three default fields are created (first name, last name, phone number). Must include at least one FIRST_NAME and one LAST_NAME field. Each field uses the same schema as POST /input-fields, but without location and visibleForLines.
50Custom lines (queues) to create with the location. If omitted, two default lines are created ("Main Service" and "Information"). Uses the same schema as POST /locations/{id}/lines, but without appointmentSettings.
1 - 50 elementsOpening hours configuration. If omitted, the location defaults to 24/7 (00:00–23:59 every day).
Location created successfully
The ID of the created location.
"12345"