STAGINGOpen PROD

Holding a timed slot

Last updated ยท Page 5 of 11

A product booked on groupon.com (its options carry a bookingUrl) can be paid for one exact day and time. Read the product's availability, let the shopper pick a slot and its tickets (each ticketTypeId from the slot's tickets, at most 20 tickets in all), then hold them:

bash
curl -s -X POST "https://api-staging-core.livingsocial.com/partner_storefront/products/<productId>/holds" \
  -H "Authorization: Bearer $GROUPON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"optionId":"<optionId>","date":"2026-11-05","time":"11:00","tickets":[{"ticketTypeId":"<ticketTypeId>","quantity":2}],"idempotencyKey":"<your key for this choice>"}'

Groupon holds the tickets for 15 minutes and answers holdId, expiresAt, each ticket's price, the total, and bookingUrl, Groupon's page where the shopper pays for exactly that slot until expiresAt. Nothing releases a hold earlier, so hold only when the shopper is about to pay, one slot per shopper at a time. With a confirmed CJ publisher ID, bookingUrl is CJ's click link around that page, as buyLink is, with the hold's id as the sale's SID. The prices and the total are slot prices, before Groupon's taxes and fees, which Groupon's page adds: never show the total as what the shopper pays.

Reuse idempotencyKey when you retry the same choice: the same key, slot and tickets answer the same hold, never a second one. validateOnly: true checks the slot and prices the tickets without holding anything.

Some suppliers ask booking questions, such as the language of a tour. A hold without the answers is refused with 400, details.error HOLD_REFUSED, details.reason booking_requirement_not_met and details.missingAnswers, one { "key", "code" } per question: CHECKOUT_FIELD_REQUIRED when it was left out, CHECKOUT_FIELD_PATTERN_MISMATCH when the answer had the wrong form. Ask the shopper, then hold again with the same idempotencyKey and answers, an object of those keys to the shopper's answers (at most 20, each 1 to 500 characters):

json
{"optionId":"<optionId>","date":"2026-11-05","time":"11:00","tickets":[{"ticketTypeId":"<ticketTypeId>","quantity":2}],"idempotencyKey":"<your key for this choice>","answers":{"tourLanguage":"English"}}

At most 20 holds of your storefront are open at once (placed and not lapsed). Past that a hold answers 429 with details.error OPEN_HOLDS_LIMIT and details.retryAfterSeconds, the seconds until your oldest open hold lapses. Every refusal the shopper can book around (HOLDS_NOT_AVAILABLE, SLOT_NOT_AVAILABLE, HOLD_REFUSED) carries details.bookingUrl, Groupon's booking page for the option, where the shopper picks the slot and pays. Holds are open on the Partner API from this release.

A person's own AI assistant holds the same way on LivingSocial's MCP server: get_offer marks each option that takes a hold (holdable), and the hold_slot tool holds the slot and tickets the person chose for 15 minutes and answers Groupon's page where they only pay, with the same refusals and their details.bookingUrl (Connect your assistant). An assistant on the agent API holds through its own Hold a slot. Both take the same answers and name the questions to ask in details.missingAnswers (on the MCP server, the keys comma-separated).