Share a cart with a guest
POST/api/v1/cart/:cartId/share
Mints an opaque share token and sets the deal expiry (default 48h) plus an optional deposit split, and flips the cart to SHARED. Send the token in the public guest URL GET /api/v1/shared-cart/{token}. The price is locked at the first share: the guest view, payment and booking keep it even if rates change. Once SHARED only guest details can be edited; every other cart mutation returns 400. Re-sharing keeps the same token and price and only extends the expiry; a different deposit is rejected (omit it to keep the shared one). Refused with 400 while a price-change request awaits approval.
All body fields are optional; an empty body shares with the defaults. bookingSource, bookingSegmentId (booking purpose) and remarks are kept with the deal, returned in this response and in the cart's share block, and copied to the booking at checkout. They are never shown on the guest page.
400 errors: depositPercentage must be in (0, 100]., bookingSource must be at most 255 characters., remarks must be at most 1000 characters., bookingSegmentId 99 is not a known booking purpose., Cannot share an empty cart.
Request
Responses
- 200
OK