Appearance
Cart API
Use the Cart API to manage the shopping cart of a customer. A customer can be authenticated or a guest.
WARNING
The V1 cart endpoints (/v1/carts/*) are removed. The API returns 410 Gone. See Migrate from V1 to V2.
Authentication
- An authenticated customer sends the
Authorization: Bearer JWT_TOKENheader. - A guest customer sends the
X-Session-Idheader. To get a session ID, use Generate Cart Session ID. - Every request must have the
X-MerchantApiKeyheader. - If a request has no token and no session ID, the API returns
400: "Please log in or start a guest session to continue."
Endpoints
| Endpoint | Method | Path |
|---|---|---|
| Generate Cart Session ID | GET | /v1/generate/session/id |
| Cart V2 endpoints | /v2/carts/* | |
| Add Item to Cart | POST | /v2/carts/add |
| Replace Booking Time | PATCH | /v2/carts/booking/{cartItemId} |
| Checkout | POST | /v2/carts/checkout, /v2/carts/guest/checkout |
