curl --request GET \
--url https://demo.spreecommerce.org/api/v2/storefront/store \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "3",
"type": "store",
"attributes": {
"name": "Mystore",
"url": "spree-demo.com",
"meta_description": "Luxury clothing store for men and women.",
"meta_keywords": "luxury clothing men women",
"seo_title": "",
"default_currency": "USD",
"default": true,
"supported_currencies": "EUR,GBP,USD",
"facebook": "https://www.facebook.com/mystorename",
"twitter": "https://twitter.com/mystorename",
"instagram": "https://instagram.com/mystorename",
"default_locale": "en",
"customer_support_email": "support@mystore.com",
"description": "Mystore has been selling luxury clothing for more than 20 years and has 15 stores currently.",
"address": "813 Howard Street, Oswego NY 13126, USA",
"contact_phone": "+123456789",
"supported_locales": "en",
"favicon_path": "/assets/favicon.ico"
},
"relationships": {
"menus": {
"data": [
{
"id": "10",
"type": "menu"
},
{
"id": "11",
"type": "menu"
}
]
},
"cms_pages": {
"data": [
{
"id": "5",
"type": "cms_page"
}
]
},
"default_country": {
"data": {
"id": "2",
"type": "country"
}
}
}
}
}
Returns the current Store. Read more about Stores
curl --request GET \
--url https://demo.spreecommerce.org/api/v2/storefront/store \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "3",
"type": "store",
"attributes": {
"name": "Mystore",
"url": "spree-demo.com",
"meta_description": "Luxury clothing store for men and women.",
"meta_keywords": "luxury clothing men women",
"seo_title": "",
"default_currency": "USD",
"default": true,
"supported_currencies": "EUR,GBP,USD",
"facebook": "https://www.facebook.com/mystorename",
"twitter": "https://twitter.com/mystorename",
"instagram": "https://instagram.com/mystorename",
"default_locale": "en",
"customer_support_email": "support@mystore.com",
"description": "Mystore has been selling luxury clothing for more than 20 years and has 15 stores currently.",
"address": "813 Howard Street, Oswego NY 13126, USA",
"contact_phone": "+123456789",
"supported_locales": "en",
"favicon_path": "/assets/favicon.ico"
},
"relationships": {
"menus": {
"data": [
{
"id": "10",
"type": "menu"
},
{
"id": "11",
"type": "menu"
}
]
},
"cms_pages": {
"data": [
{
"id": "5",
"type": "cms_page"
}
]
},
"default_country": {
"data": {
"id": "2",
"type": "country"
}
}
}
}
}
User token to authorize Cart and Checkout requests.
It is required to associate Cart with the User.
Specify what related resources (relationships) you would like to receive in the response body. Eg.
default_country,menus,cms_pages
Specify the fields you would like returned in the response body. More information.
200 Success - Returns the store
object.
The response is of type object
.
Was this page helpful?