Map branches
How ordio branches are mapped to Kiosa locations, automatically or through the API.
Kiosa only imports once every branch of the partner is mapped to a Kiosa location or explicitly ignored.
Automatic mapping#
On PUT /v1/integrations/ordio, Kiosa compares branch names with location names. Names are normalized: upper and lower case, umlauts and legal-form suffixes do not count. A branch is only mapped if exactly one location matches. Everything else stays open and the status is needs_mapping.
Read locations and branches#
# Kiosa locations (scope account:read)
curl https://api.kiosa.ai/v1/locations \
-H "Authorization: Bearer $ACCESS_TOKEN"
# ordio branches with mapping or proposal (scope integrations:read)
curl https://api.kiosa.ai/v1/integrations/ordio/branches \
-H "Authorization: Bearer $ACCESS_TOKEN"Map through the API#
With PUT /v1/integrations/ordio/branch-mappings (scope integrations:write) you map an ordio branch to a Kiosa location or set it to ignore. ignore applies to the whole branch. The exact body format is in the reference.
A location carries at most one ordio branch. If it is already taken, Kiosa answers 422 with the code validation_failed, unless you move the current branch or set it to ignore in the same request. Several branches on one location (or one branch across several locations) Kiosa sets up internally on request, with rules per working area.
Kiosa only accepts location IDs of the business your token belongs to. For a foreign ID, Kiosa answers 404. If Kiosa cannot accept a mapping, it answers mapping_conflict.
Map in the business#
The restaurateur can make the same mapping in Kiosa: Settings, Integrations, ordio. As soon as everything is mapped, the initial import starts automatically.
Note: Rules for individual work areas are maintained by Kiosa internally. They are not part of the API.