Get the shop profile
const url = 'https://api.sevigram.com/storefront/v1/shop';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sevigram.com/storefront/v1/shop \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
object
object
object
object
object
object
object
object
object
object
object
True for the Sevigram demo shop: reads work, and POST /checkouts and POST /contact return 403 demo_shop_read_only.
Example generated
{ "data": { "name": "example", "username": "example", "description": "example", "bio": "example", "currency_code": "example", "country_code": "example", "region_code": "example", "city": "example", "logo": { "url": "https://example.com" }, "cover": { "url": "https://example.com" }, "branding": { "primary": "example", "secondary": "example", "surface": "example", "text": "example", "font_heading": "example", "font_body": "example" }, "socials": { "instagram_url": "example", "facebook_url": "example", "linkedin_url": "example", "x_url": "example", "whatsapp_url": "example" }, "policies": [ { "kind": "example", "title": "example", "description": "example" } ], "faqs": [ { "question": "example", "answer": "example" } ], "contact_enabled": true, "pickup_locations": [ { "id": "example", "name": "example", "timezone": "example", "address": { "line_1": "example", "line_2": "example", "city": "example", "region_code": "example", "postal_code": "example", "country_code": "example" } } ], "payment_methods": [ { "name": "example", "label": "example", "description": "example", "is_default": true } ], "read_only": true }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Weak entity tag. Send it back as If-None-Match to get a 304.
Reads may be cached privately for 60 seconds.
Always Origin, Authorization on reads.
The If-None-Match value matches the current ETag. No body.
Headers
Section titled “Headers”Request correlation id, echoed or generated.
Weak entity tag. Send it back as If-None-Match to get a 304.
Missing or unknown token. Code invalid_token.
object
object
Optional structured detail (for example per-field validation messages). Omitted when there is none.
Example
{ "error": { "code": "invalid_token" }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Never cached.
Codes origin_not_allowed, storefront_disabled, demo_shop_read_only, private_token_required.
object
object
Optional structured detail (for example per-field validation messages). Omitted when there is none.
Example
{ "error": { "code": "origin_not_allowed" }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Never cached.
Too many requests. Code rate_limited.
object
object
Optional structured detail (for example per-field validation messages). Omitted when there is none.
Example
{ "error": { "code": "rate_limited" }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Never cached.
Whole seconds to wait, rounded up.
An upstream is unavailable. Code service_unavailable.
object
object
Optional structured detail (for example per-field validation messages). Omitted when there is none.
Example
{ "error": { "code": "service_unavailable" }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Never cached.
Always 5.