Skip to content

Get the shop profile

GET
/shop
curl --request GET \
--url https://api.sevigram.com/storefront/v1/shop \
--header 'Authorization: Bearer <token>'

OK

Media typeapplication/json
object
data
required
object
name
required
string
username
required
string
description
required
string
bio
required
string
currency_code
required
string
country_code
required
string
region_code
required
string
city
required
string
logo
required
object
url
required
string format: uri
cover
required
object
url
required
string format: uri
branding
required
object
primary
required
string
secondary
required
string
surface
required
string
text
required
string
font_heading
required
string
font_body
required
string
socials
required
object
instagram_url
required
string
facebook_url
required
string
linkedin_url
required
string
x_url
required
string
whatsapp_url
required
string
policies
required
Array<object>
object
kind
required
string
title
required
string
description
required
string
faqs
required
Array<object>
object
question
required
string
answer
required
string
contact_enabled
required
boolean
pickup_locations
required
Array<object>
object
id
required
string
name
required
string
timezone
required
string
address
required
object
line_1
required
string
line_2
required
string
city
required
string
region_code
required
string
postal_code
required
string
country_code
required
string
payment_methods
required
Array<object>
object
name
required
string
label
required
string
description
required
string
is_default
required
boolean
read_only
required

True for the Sevigram demo shop: reads work, and POST /checkouts and POST /contact return 403 demo_shop_read_only.

boolean

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
}
}
X-Request-Id
required
string

Request correlation id, echoed or generated.

ETag
required
string
/^W/"/

Weak entity tag. Send it back as If-None-Match to get a 304.

Cache-Control
required
string
Allowed values: private, max-age=60

Reads may be cached privately for 60 seconds.

Vary
required
string
Allowed values: Origin, Authorization

Always Origin, Authorization on reads.

The If-None-Match value matches the current ETag. No body.

X-Request-Id
required
string

Request correlation id, echoed or generated.

ETag
required
string
/^W/"/

Weak entity tag. Send it back as If-None-Match to get a 304.

Missing or unknown token. Code invalid_token.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_token origin_not_allowed storefront_disabled demo_shop_read_only private_token_required customer_session_invalid customer_code_invalid checkout_conflict idempotency_key_reused quote_not_respondable return_url_not_allowed not_found validation_error invalid_cursor invalid_buyer_ip rate_limited service_unavailable
message
required
string
details

Optional structured detail (for example per-field validation messages). Omitted when there is none.

nullable
code
required
Allowed values: invalid_token

Example

{
"error": {
"code": "invalid_token"
}
}
X-Request-Id
required
string

Request correlation id, echoed or generated.

Cache-Control
required
string
Allowed values: no-store

Never cached.

Codes origin_not_allowed, storefront_disabled, demo_shop_read_only, private_token_required.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_token origin_not_allowed storefront_disabled demo_shop_read_only private_token_required customer_session_invalid customer_code_invalid checkout_conflict idempotency_key_reused quote_not_respondable return_url_not_allowed not_found validation_error invalid_cursor invalid_buyer_ip rate_limited service_unavailable
message
required
string
details

Optional structured detail (for example per-field validation messages). Omitted when there is none.

nullable
code
required
Allowed values: origin_not_allowed storefront_disabled demo_shop_read_only private_token_required

Example

{
"error": {
"code": "origin_not_allowed"
}
}
X-Request-Id
required
string

Request correlation id, echoed or generated.

Cache-Control
required
string
Allowed values: no-store

Never cached.

Too many requests. Code rate_limited.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_token origin_not_allowed storefront_disabled demo_shop_read_only private_token_required customer_session_invalid customer_code_invalid checkout_conflict idempotency_key_reused quote_not_respondable return_url_not_allowed not_found validation_error invalid_cursor invalid_buyer_ip rate_limited service_unavailable
message
required
string
details

Optional structured detail (for example per-field validation messages). Omitted when there is none.

nullable
code
required
Allowed values: rate_limited

Example

{
"error": {
"code": "rate_limited"
}
}
X-Request-Id
required
string

Request correlation id, echoed or generated.

Cache-Control
required
string
Allowed values: no-store

Never cached.

Retry-After
required
string
/^[0-9]+$/

Whole seconds to wait, rounded up.

An upstream is unavailable. Code service_unavailable.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_token origin_not_allowed storefront_disabled demo_shop_read_only private_token_required customer_session_invalid customer_code_invalid checkout_conflict idempotency_key_reused quote_not_respondable return_url_not_allowed not_found validation_error invalid_cursor invalid_buyer_ip rate_limited service_unavailable
message
required
string
details

Optional structured detail (for example per-field validation messages). Omitted when there is none.

nullable
code
required
Allowed values: service_unavailable

Example

{
"error": {
"code": "service_unavailable"
}
}
X-Request-Id
required
string

Request correlation id, echoed or generated.

Cache-Control
required
string
Allowed values: no-store

Never cached.

Retry-After
required
string
Allowed values: 5

Always 5.