Location data model
View field support, webhooks, and list parameters for each integration on the Supported Integrations page.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | No | |
created_at | string (date-time) | No | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format) |
updated_at | string (date-time) | No | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format) |
name | string | No | |
address | object | No | |
address.address1 | string | No | |
address.address2 | string | No | |
address.city | string | No | |
address.region | string | No | |
address.region_code | string | No | |
address.postal_code | string | No | |
address.country | string | No | |
address.country_code | string | No | ISO 2-digit country code |
description | string | No | |
is_active | boolean | No | |
language_locale | string | No | |
parent_id | string | No | |
currency | string | No | |
location_type | enum | No | Values: RESTAURANT, SALON, WAREHOUSE, STORE, OTHER |
telephones | CommerceTelephone[] | No | |
telephones[].telephone | string | Yes | |
telephones[].type | enum | No | Values: WORK, HOME, FAX, MOBILE, OTHER |
rating | number | No | |
review_count | number | No | |
price_level | string | No | |
latitude | number | No | |
longitude | number | No | |
image_url | string | No | |
web_url | string | No | |
media | CommerceItemMedia[] | No | |
media[].id | string | No | |
media[].url | string | Yes | |
media[].alt | string | No | |
media[].type | enum | No | Values: image, video |
media[].height | number | No | |
media[].width | number | No | |
media[].position | number | No | 1 is the first |
media[].metadata | CommerceMetadata[] | No | |
media[].metadata[].id | string | No | The ID of the custom field definition (from the metadata/metadata endpoint). |
media[].metadata[].value | object | No | The field's value, typed by `format`: DATE as ISO-8601 (`YYYY-MM-DD`, or `YYYY-MM-DDTHH:MM:SSZ` for date-times); NUMBER, PRICE and CURRENCY as a number; BOOLEAN and YES_NO as true/false; MULTIPLE_SELECT as an array of option values; otherwise a string. |
media[].metadata[].namespace | string | No | |
media[].metadata[].format | enum | No | The data type of the custom field, which determines how `value` is formatted. Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE_SELECT, MULTIPLE_SELECT, MEASUREMENT, PRICE, YES_NO, CURRENCY, URL |
media[].metadata[].extra_data | object | No | |
media[].metadata[].slug | string | No | The integration's API name (key) of an existing custom field. List valid slugs for this object with the metadata/metadata endpoint; unknown slugs are rejected by the integration. |
media[].metadata[].description | string | No | |
media[].metadata[].is_required | boolean | No | |
metadata | CommerceMetadata[] | No | |
metadata[].id | string | No | The ID of the custom field definition (from the metadata/metadata endpoint). |
metadata[].value | object | No | The field's value, typed by `format`: DATE as ISO-8601 (`YYYY-MM-DD`, or `YYYY-MM-DDTHH:MM:SSZ` for date-times); NUMBER, PRICE and CURRENCY as a number; BOOLEAN and YES_NO as true/false; MULTIPLE_SELECT as an array of option values; otherwise a string. |
metadata[].namespace | string | No | |
metadata[].format | enum | No | The data type of the custom field, which determines how `value` is formatted. Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE_SELECT, MULTIPLE_SELECT, MEASUREMENT, PRICE, YES_NO, CURRENCY, URL |
metadata[].extra_data | object | No | |
metadata[].slug | string | No | The integration's API name (key) of an existing custom field. List valid slugs for this object with the metadata/metadata endpoint; unknown slugs are rejected by the integration. |
metadata[].description | string | No | |
metadata[].is_required | boolean | No | |
categories | string[] | No |
Are we missing anything? Let us know