List the customer's orders and bookings
const url = 'https://api.sevigram.com/storefront/v1/customer/orders?limit=24';const options = { method: 'GET', headers: {'X-Sevigram-Customer-Session': 'example', 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/customer/orders?limit=24' \ --header 'Authorization: Bearer <token>' \ --header 'X-Sevigram-Customer-Session: example'Newest first, every origin. Paged with ?cursor=&limit=.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”The customer session token from verifyCustomerCode (1 to 512 printable ASCII characters). A credential: never logged or echoed.
Query Parameters
Section titled “Query Parameters”Opaque cursor from a previous page’s next_cursor.
Responses
Section titled “Responses”OK
object
object
The Order fields plus the order reference. deliverables is present on the detail only.
object
object
object
object
Example generated
{ "data": { "items": [ { "id": "example", "reference": "example", "status": "example", "payment_status": "example", "currency_code": "example", "subtotal": 1, "delivery_fee": 1, "discount_amount": 1, "tax": 1, "total": 1, "created_at": "2026-04-15T12:00:00Z", "items": [ { "title": "example", "quantity": 1, "unit_price": 1, "total": 1, "fulfillment_method": "example", "scheduled_start": "2026-04-15T12:00:00Z", "scheduled_end": "2026-04-15T12:00:00Z", "digital_link": "example" } ], "deliverables": [ { "id": "example", "title": "example", "status": "example", "due_at": "2026-04-15", "delivered_at": "2026-04-15T12:00:00Z", "link": "example", "order_id": "example", "order_reference": "example" } ], "booking_progress": { "progress": "example", "progress_message": "example", "shared_delivered": 1, "shared_total": 1 } } ], "next_cursor": "example" }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Never cached.
Invalid request. Codes validation_error, invalid_cursor, invalid_buyer_ip.
object
object
Optional structured detail (for example per-field validation messages). Omitted when there is none.
Example
{ "error": { "code": "validation_error" }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Never cached.
Code invalid_token, customer_session_invalid (missing, malformed, expired or another business’s session) or customer_code_invalid (wrong or expired sign-in code on verify).
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.