Get a service by handle
const url = 'https://api.sevigram.com/storefront/v1/services/example';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/services/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”OK
object
object
object
object
Reschedule, cancellation and no-show rules, passed through from the catalog.
object
object
object
object
object
object
object
Example
{ "data": { "type": "product", "pricing_model": "fixed-price", "booking_mode": "time_slot", "packages": [ { "price_unit": "fixed" } ], "add_ons": [ { "charge_basis": "per_booking" } ], "intake_questions": [ { "kind": "short_text" } ] }}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.
Unknown handle, session or order, or one that belongs to another business or the wrong type; also a wrong or missing guest token on GET /orders/{id}. Code not_found.
object
object
Optional structured detail (for example per-field validation messages). Omitted when there is none.
Example
{ "error": { "code": "not_found" }}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.