Introduction
Store model
Example
{
"id": 1,
"name": "Infinity Store",
"slug": "infinity",
"description": "Infinite offers",
"opening_hours": [
{ "type": "weekday", "period": "monday", "hours": { "opens_at": "10:00", "closes_at": "18:00" } },
{ "type": "weekday", "period": "tuesday", "hours": { "opens_at": "10:00", "closes_at": "15:00" } },
{ "type": "weekday", "period": "tuesday", "hours": { "opens_at": "16:00", "closes_at": "18:00" } },
{ "type": "weekday", "period": "wednesday", "hours": { "opens_at": "10:00", "closes_at": "18:00" } },
{ "type": "weekday", "period": "thursday", "hours": { "opens_at": "10:00", "closes_at": "18:00" } },
{ "type": "weekday", "period": "friday", "hours": {"opens_at": "10:00", "closes_at": "18:00" } },
{ "type": "weekday", "period": "saturday", "hours": { "opens_at": "12:00", "closes_at": "15:00" } },
{ "type": "weekday", "period": "sunday", "hours": null },
{ "type": "day", "period": "2023-05-01", "hours": null },
{ "type": "day", "period": "2023-12-22", "hours": { "opens_at": "12:00", "closes_at": "14:00" } },
{ "type": "day", "period": "2023-12-25", "hours": null, "description": "Christmas" }
],
"opening_hours_text": "<p>Monday-Friday: 09:00-19:00</p><p>Saturday-Sunday: 10:00-17:00</p>",
"social_profiles": { "twitter": "https://example.com/twitter", "facebook": "https://example.com/facebook" },
"phone_number": "4740769126",
"email": "infinity@example.com",
"address": "Mellomila 88",
"city": "Trondheim",
"zip_code": "7018",
"region": "Trøndelag",
"map_key": "F-43",
"url": "articles/{id}-{slug}"
"website_url": "example.com",
"website_text": "Website",
"logo": { "url": "https://cdn-files.dev.placewise.com/files/6ptAfBia0TXKfeIgxUKb5EGOLpmAPtpi3f1VWNll6ZzU5UkJkR2s" },
"images": [
{
"id": "30b90b15-8980-49a8-825c-ada87f59d5fa",
"url": "https://cdn-files.dev.placewise.com/files/TottfTYe1DIm4Aja8gRsmgDdU8BKrwRaqxTUzVEtScFN6eno4NkQ"
},
{
"id": "7c6f9573-503e-4675-86e3-3f1391e3800e",
"url": "https://cdn-files.dev.placewise.com/files/TottdI3frZWXfhXawruKilEM0ZYEfcrwHfJdEzVEtScFN6eno4NkQ"
}
],
"categories": [
{
"id": 1,
"name": "test",
"slug": "test"
}
],
"type": "store",
"external_url": nil
}
Definition
Key | Type | Optional | Description |
---|---|---|---|
id | integer | no | |
name | string | no | |
slug | string | no | |
description | string | yes | Depends on X-Locale header |
opening_hours | OpeningHoursItem[] | yes | |
opening_hours_text | string | yes | Depends on X-Locale header |
social_profiles | object | yes | Store's social media URLs. Available keys: facebook , linkedin , youtube , instagram , twitter |
phone_number | string (E.164 MSISDN | yes | |
string | yes | ||
address | string | yes | |
city | string | yes | |
zip_code | string | yes | |
region | string | yes | |
string | yes | ||
map_key | string | yes | Identifies store on location map |
website_url | string (URL) | yes | |
website_text | string | yes | Display text for store website. Depends on X-Locale header |
logo.url | string (URL) | yes | |
images[].identifier | string | yes | |
images[].url | string (URL) | yes | |
url | string | yes | Address of the entity page within Website |
type | enum: ["store", "cinema", "dining", "office"] | no | Type of store (default: "store") |
external_url | url | no | Store webpage outside of cms (i.g. for srcaped store |
Modified at 2025-02-13 09:10:25