Store API
The Store API provides endpoints for customer-facing operations including browsing products, managing shopping carts, and placing orders.Carts
Create and manage shopping carts, add items, and complete checkout
Products
Browse the product catalog and retrieve pricing
Customers
Manage customer accounts and authentication
Orders
View order history and track shipments
Base URL
All Store API requests should be made to:Authentication
The Store API supports both guest and authenticated customer access.- Guest Access
- Customer Authentication
Many endpoints work without authentication:
- Browsing products
- Creating carts
- Viewing shipping options
- Completing checkout as a guest
Required Headers
Your publishable API key. Identifies your sales channel and enables API access.
Set to
application/json for requests with a body.Bearer token for authenticated customer requests. Format:
Bearer YOUR_JWT_TOKENResponse Format
All successful responses follow this structure:Single Resource
List Response
Error Handling
Errors return appropriate HTTP status codes with details:Error Response
Common Status Codes
| Status | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request - Invalid data provided |
401 | Unauthorized - Authentication required |
404 | Not Found - Resource doesn’t exist |
409 | Conflict - Business rule violation (e.g., insufficient inventory) |
500 | Server Error |
Pagination
List endpoints support pagination usinglimit and offset:
Maximum number of items to return. Range: 1-100.
Number of items to skip before starting to return results.
Field Selection
Use thefields parameter to select specific fields:
Expanding Relations
Use theexpand parameter to include related data:
Rate Limiting
The API is rate-limited to prevent abuse. Rate limit information is included in response headers:Available Endpoints
| Endpoint | Description |
|---|---|
/store/carts | Shopping cart management |
/store/products | Product catalog |
/store/collections | Product collections |
/store/regions | Available regions |
/store/shipping-options | Shipping methods |
/store/payment-providers | Payment options |
/store/customers | Customer accounts |
/store/orders | Order history |