# LivingSocial documentation for builders

> Every guide for builders in reading order, as one Markdown file: How it works; Get your API key (AI builders); Searching the catalog; Hotel stays; Syncing the catalog; Managing the cart; Checkout and order confirmation; Handling errors. Each guide is also served on its own at /docs/<slug>.md. The API documentation is the OpenAPI document at /partner-openapi.json (LivingSocial Partner API).

---

# How it works

Last updated 24 Nov 2026.

This guide is for builders of a website or app on the Partner API.

The LivingSocial Partner API lets partners, creators and builders (and the AI coding assistants
they build with) find eligible Groupon offers with one search or list them on their own site from a synced copy of
the catalog, mirror the shopper's cart at Groupon, and send the shopper to Groupon's checkout to
pay. The Partner API exposes offers in the United States and Canada: a storefront lists eligible Groupon offers of both, and a Canadian one is priced in Canadian dollars and bought on its own Groupon page through its link, never through the cart.

Still deciding what to build? Give your AI coding assistant [for-builders.md](/for-builders.md): it
works out with you what to build from the example sites, then sends it to their source code and the
API reference.

```text
Read https://agent.grpn.site/for-builders.md and follow it.
```

## End-to-end flow

```text
1. Get your key      Sign in to this portal, register a storefront, create an API key
2. Find offers       GET /partner_storefront/products/search?q=... -> the best matches now
                      or sync: GET /partner_storefront/products -> your database
                      (a full load, then a full resync every 8 hours; a delta every hour
                      is optional)
3. Shopper browses    Your site or agent shows the offers it found or stored
4. Add to cart        First item:  POST /partner_storefront/carts
                                    -> you receive cart `id` + `buyLink`
                       Later edits: POST/PATCH/DELETE on
                                    /partner_storefront/carts/{cartId}/items
5. Buy now             Your "Buy now" button href = the latest `buyLink` from any cart response
6. Pay at Groupon      Shopper pays on Groupon's checkout page
7. Return              Once Groupon approved your logo: Groupon redirects the
                        shopper to YOUR redirect URL with ?grouponOrderUuid=<uuid>;
                        any storefront: GET /partner_storefront/carts/{cartId} names it
8. Confirm             GET /partner_storefront/bookings/{bookingId}
                        -> status + one "View on Groupon" link per purchased unit
```

Each step has its guide: [Get your API key](/docs/get-your-api-key.md), [Searching the
catalog](/docs/searching-the-catalog.md), [Syncing the catalog](/docs/syncing-the-catalog.md), [Managing
the cart](/docs/managing-the-cart.md), [Checkout and
order confirmation](/docs/checkout-and-order-confirmation.md), and [Handling
errors](/docs/handling-errors.md) for every failure. Every endpoint and field is in the [API
documentation](/docs/for-builders/api).

## Calling the API

Every path is relative to `https://api-staging-core.livingsocial.com`. Call the API from your server only, with your key as a
Bearer token:

```bash
curl -s "https://api-staging-core.livingsocial.com/partner_storefront/products?country=US&limit=10" \
  -H "Authorization: Bearer $GROUPON_API_KEY" \
  -H "x-request-id: $(uuidgen)"
```

| Header | When | Value |
|---|---|---|
| Authorization | Always | `Bearer` followed by your API key |
| Content-Type | POST, PATCH | `application/json` |
| User-Agent | Always | A name for your app, such as `my-storefront/1.0`. It labels your calls; access depends on your key, never on the User-Agent: see [Handling errors](/docs/handling-errors.md). |
| x-request-id | Recommended | A UUID you make per request. An error echoes it as `details.requestId`: quote it to support. |

Money is an integer in minor units: `2500` with `currencyPrecision: 2` is $25.00.

## Checkout, and earning commission with CJ

Buy now is the `buyLink` from the latest cart response, verbatim. Never build the checkout URL
yourself.

The `buyLink` carries three UTM parameters on Groupon's checkout address: `utm_source=LS_AI`,
`utm_medium=partner` and `utm_campaign`, your storefront's id. They let Groupon count the orders
your shoppers place, next to CJ's own tracking. Keep the link exactly as it comes: the parameters
are how those orders are counted.

Earning commission is optional and changes no code. Once your CJ (Commission Junction) publisher
ID is on file (see [Get your API key](/docs/get-your-api-key.md)), the same `buyLink` becomes a CJ
tracking link that leads to the same checkout, and commission is tracked and paid through CJ,
per the [CJ program terms](https://public.cj.com/signup/publisher?advertiserId=5840172). Inside that link the checkout carries
`utm_source=cj`, `utm_medium=afl` and `utm_campaign=LS_AI_partner_<your storefront id>`, the form
Groupon reports to CJ, and the same marker in `utm_content`, which CJ's redirect leaves as it is.

On the Partner API, the shopper must reach checkout through your `buyLink`; any other route earns
nothing. This is the Partner API's rule; the open agent API has no commission.

---

# Get your API key (AI builders)

Last updated 29 Oct 2026.

This guide is for builders, and the coding assistants they use, who need a key for the LivingSocial
Partner API.

You get the key yourself on this site: no email, no approval. The open agent API needs no sign-up,
because the agent's first call issues its own key, and it earns no commission: see the [agent API
documentation](/docs/for-agents/api).

## The flow

1. **Sign in with Google** on this site. An email and password works too.
2. **Register a storefront** under **Account** (`/account/storefronts/new`), with the fields
   below. The storefront is your registration with Groupon.
3. **Create its API key** on the storefront's page: give it a name and, optionally, the day it
   stops working.
4. **Copy the key once**, into your server's secret store. It is shown only at creation.
5. **Check it.** This call answers the registration the key acts as:

   ```bash
   curl -s "https://api-staging-core.livingsocial.com/partner_storefront/me" \
     -H "Authorization: Bearer $GROUPON_API_KEY"
   ```

6. **To earn commission**, join [Groupon's program at CJ](https://public.cj.com/signup/publisher?advertiserId=5840172), then enter your CJ
   publisher ID (your site's website ID, the PID, not your company ID) under **Commission through
   CJ** on the storefront's page. Groupon checks that the
   ID is yours and confirms it; until then the page says it is awaiting confirmation, and a refused
   ID says why. It is optional and your code does not change: [Commission through
   CJ](/docs/checkout-and-order-confirmation.md#commission-through-cj) says what changes.

Your storefront's **Usage** page shows its requests for the last 7, 30 or 90 days by day, endpoint
and key, and its list of keys shows when each was created, last used and stops working. A key
works until you revoke it, unless you pick a day it stops. A storefront may send 600 requests a
minute across its keys by default; if you need more, tell Groupon your expected volume and it
raises your storefront's limit, with no change in your code.

Next: [Syncing the catalog](/docs/syncing-the-catalog.md).

## Which account is which

You may meet three of these. The first is the one you sign in to on this site.

- **A LivingSocial account.** The sign-in on this site. Here it owns your storefronts. A shopper uses the same sign-in on customers.livingsocial.com, where it keeps their cart.
- **A storefront.** Not a second account: your registration with Groupon, owned by your LivingSocial account, with its own API keys. You create it in step 2 above.
- **A Groupon account.** A shopper pays on Groupon's checkout page and finds their order in their Groupon account afterwards. The API never asks you to sign in to it.

## Storefront fields

| Field | Required | Rules |
|---|---|---|
| Display name | Yes | At most 60 characters, and no "Groupon" or "LivingSocial" in any spelling. Shown to shoppers on Groupon's checkout page. |
| Contact name | Yes | Up to 255 characters. |
| Contact email | Yes | A monitored address. Groupon uses it to reach you. |
| Logo | No | Any picture of your logo up to 25 MB, picked or dropped on the form. You frame it (its own shape, a square or a wide strip), and the page saves it as a PNG, WebP or JPEG of at most 512 KB and 4 megapixels; you see it before you save. It is uploaded once the storefront is registered, stored, and copied to Groupon's image CDN. Groupon reviews every logo you upload, usually within a working day; once it is approved, Groupon's cobranded checkout shows that copy and returns the shopper to your redirect URL. Until then shoppers see Groupon's own checkout with no logo, and a logo Groupon does not approve is taken down, with the reason on the storefront's page. A file that cannot be used or copied is refused with an error on this field, and the logo stays as it was. Replace or remove it on the storefront's edit page. Up to 20 logos a day can be uploaded per person and 40 per storefront, and up to 10 copied per person. |
| Redirect URL | No | Absolute `https://` URL, with no username or password in it. After checkout, Groupon's cobranded checkout (once Groupon has approved your logo) sends the shopper here with `grouponOrderUuid` added as a query parameter. On Groupon's own checkout the shopper stays on Groupon's receipt page. |
| Continue shopping URL | No | Absolute `https://` URL, with no username or password in it. On Groupon's cobranded checkout page, which shows your logo once Groupon has approved it, a shopper who leaves without buying (through the logo or Continue shopping) goes here. Without it, they go to the site of your redirect URL, or to groupon.com when you have none. |
| Inventory scope: states | No | Full US state names, exactly as listed below. Leave empty for every state. |
| Inventory scope: category1 | No | Groupon category permalinks. Leave empty for every category. |
| Inventory scope: category2 | No | Groupon subcategory permalinks. Leave empty for every category. |

The products list only returns offers inside your inventory scope, and a filter that names a state
or category outside it is rejected.

**States** (50 values; fields `inventoryStates`, `state`)

Alabama, Alaska, Arizona, Arkansas, California, Colorado, Connecticut, Delaware, Florida, Georgia, Hawaii, Idaho, Illinois, Indiana, Iowa, Kansas, Kentucky, Louisiana, Maine, Maryland, Massachusetts, Michigan, Minnesota, Mississippi, Missouri, Montana, Nebraska, Nevada, New Hampshire, New Jersey, New Mexico, New York, North Carolina, North Dakota, Ohio, Oklahoma, Oregon, Pennsylvania, Rhode Island, South Carolina, South Dakota, Tennessee, Texas, Utah, Vermont, Virginia, Washington, West Virginia, Wisconsin, Wyoming

**Top-level category** (1 values; fields `category0`)

local

**Categories** (38 values; fields `category1`)

air-inclusive, all-inclusive, auto-and-home-improvement, automotive, baby-kids-and-toys, beach-destinations, beauty-and-spas, casinos, city, cruises, culinary, electronics, entertainment-and-media, family-trips, food-and-drink, for-the-home, gift-cards, grocery-and-household, health-and-beauty, health-and-fitness, home-improvement, hotel-travel, jewelry-and-watches, luxury, mens-clothing-shoes-and-accessories, outdoor-activities-recreation, personal-services, pet-supplies, retail, romantic, spa-and-wellness, sports-and-outdoors, things-to-do, toys, unique-lodging, v1-personalized-items, waterparks, womens-clothing-shoes-and-accessories

**Subcategories** (207 values; fields `category2`)

africa-and-middle-east, alcohol, apparel-local, appliances-goods, art, art-and-home-decor, arts-and-crafts, arts-and-entertainment-local, australia-and-nz, auto-cleaning, auto-parts-and-accessories, auto-repair, baby-gear, baby-toys, babys-fashion, bars, bath, bath-and-body, bath-and-potty, bedding, bird-supplies, blow-outs-and-styling, books-music-and-movies, breweries-wineries-and-distilleries, brow-and-lash, building-sets, cafes-and-treats, camera-video-and-surveillance, camping, camping-trips, car-electronics-and-gps, cat-supplies, cbd, cell-phones-and-accessories, charity, child-car-seats, childrens-books, childrens-jewelry, classes, cleaning-services, clothing-and-shoes, collectibles, computers-and-tablets, consultants, contractors, cosmetic-procedures, cosmetics, custom-baby-and-kids-items, custom-household-essentials, custom-jewelry, custom-kitchen-accessories, custom-novelty-items, custom-photo-prints, dental, diamond-jewelry, dog-supplies, dolls-and-action-figures, drinks, educational-toys, electrical, electronic-toys, electronics-local, electronics-repair, europe, event-rental-services, exercise-and-fitness, fan-shop, fashion-jewelry, fine-metal-jewelry, fire-pits-and-outdoor-heaters, fitness-classes, floor-care-and-cleaning, flooring, flowers-sweets-and-gift-baskets, food, fragrances, fun-and-leisure-activities, furniture, furniture-stores, games-and-puzzles, gemstone-and-pearl-jewelry, golf-goods, groceries-and-markets, gyms, hair-removal, hair-salons, hand-and-power-tools, health-and-beauty-local, health-and-safety, health-care, heating-and-cooling, home-and-garden-local, home-improvement-goods, home-repairs, hvac-and-electrical, interior-design, jewelry-accessories-and-storage, kids-activities, kids-bikes-and-ride-on-toys, kids-local, kitchen-and-dining, lab-grown-diamond-jewelry, lawn-and-garden, local-services, luggage, magazines, makeup, massage, massage-and-relaxation, maternity-clothes, medical, men, mens-accessories, mens-clothing, mens-jewelry, mens-shoes, mountains, movies-and-tv, musical-instruments, nail-salons, natural-medicine, nightlife, office-and-school-supplies, outdoor-decor, outdoor-grills-and-accessories, outdoors, parking, parks, party-supplies, patio-and-garden, patio-and-garden-products, personalized-bags, personalized-clothing-and-accessories, personalized-items, personalized-pets-items, personalized-stationery, pets, photo-book, photography, plumbing, plus-size-womens-clothing, portable-audio, pretend-play, recreation, remodeling, restaurants, rv-camper, salons, seasonal-decor, sightseeing-and-tours, ski-resorts, skin-care, small-animal-supplies, smart-home, software, spa, spa-getaways, sports, sports-and-outdoor-activities, sports-local, strollers, subscriptions, tanning, team-sports, television-and-home-theater, tickets-and-events, tobacco, toddler-and-baby-toys, toddler-and-kids-fashion, transportation, usa, v-books, v-food, v-heating-and-cooling, v-office-and-school-supplies, v-outdoor-power-equipment, v1-aromatherapy, v1-baby-feeding, v1-dental-care, v1-diapers, v1-gaming, v1-hair-care, v1-home-automation, v1-lighting, v1-maternity-clothes, v1-mattresses, v1-nursery, v1-outdoor-garden-decor, v1-outdoor-play, v1-personal-care, v1-personalized-home-decor, v1-sexual-health, v1-shaving, v1-skin-care, v1-storage-and-organization, v2-cycling, v2-gaming, v3-vitamins-and-supplements, vision, watches, wearable-technology, weight-loss, weight-loss-v2, womens-accessories, womens-clothing, womens-intimates, womens-shoes

## Limits

- At most 5 open storefronts per person, and 3 new ones per 24 hours.
- At most 100 active API keys per storefront.
- A key keeps working until you revoke it. You may set a day it stops working when you create it;
  the key list then shows the date, and an expired key answers HTTP 401, like a revoked one.
  Keeping the key safe is yours: if it may have leaked, revoke it, and it stops at once.
- A key is `grpn_`, 8 hex characters, `_`, then 56 hex characters. It acts as its own storefront
  only, on the endpoints of the [API documentation](/docs/for-builders/api): it cannot change the
  registration or manage keys.
- Call the API from your server only. Never put the key in a browser, an app, a log or a
  repository.

## Rotating a key

Create the new key, deploy it, then revoke the old one. There is no downtime, and nobody to
email.

## Changing or closing a storefront

You change the display name, contact, logo, redirect URL and inventory scope yourself on the
storefront's page; its keys keep working.

Closing a storefront is permanent: its catalog and carts stop answering, every one of its keys is
revoked, and it no longer counts towards your five.

---

# Searching the catalog

Last updated 24 Nov 2026.

This guide is for builders of a website, app or agent on the Partner API.

To answer one shopper's request, search: one call returns the best matching offers in your
inventory scope, ranked the way groupon.com ranks them. Walk the catalog only when your site
renders the whole catalog from its own copy ([Syncing the catalog](/docs/syncing-the-catalog.md)).

## Search

```bash
curl -s "https://api-staging-core.livingsocial.com/partner_storefront/products/search?q=massage%20in%20Chicago&country=US&limit=5" \
  -H "Authorization: Bearer $GROUPON_API_KEY"
```

| Parameter | Meaning |
|---|---|
| `q` | Required: the shopper's words, 1 to 200 characters. A place in them is understood (`massage in Chicago`) |
| `country` | Required: `US` or `CA` |
| `city` | A city, used when the words name no place. See "Cities" below |
| `near` | `lat,lng,radius`: the radius in kilometres (`41.88,-87.63,10`) or in miles with `mi` (`41.88,-87.63,6mi`), at most 200 km (124 mi). Closer offers rank higher |
| `minPrice` | Whole dollars: only offers with an option at or above it |
| `maxPrice` | Whole dollars: only offers with an option at or under it. With `minPrice`, one option must sit inside both |
| `minRating` | 0 to 5: only offers whose merchant is rated at least this, as `merchantRating.average` reads (`4.5`). An offer with no rating is left out |
| `sort` | `relevance` (the default), `rating` (the merchant's rating, best first), `price_asc` or `price_desc`. The order holds across every page. Any other value is refused with 400 |
| `category0`, `category1`, `category2` | A category path from `GET /partner_storefront/categories` (below), inside your scope |
| `state` | A full US state name, as on the walk, inside your scope |
| `limit` | 1 to 50, 10 when absent; a conversation needs 3 to 5 |
| `cursor` | The previous page's `nextCursor` |

The answer holds `data` (each item is the same product a walk returns, with its `merchantRating`,
its own `rating`, `bought`, `finePrint` and each location's hours, plus `distanceKm` and `distanceMiles` when you sent
`near`), `nextCursor`, `hasMore`, `total` (how many match inside your storefront's scope: exact
when the first page is also the last, else Groupon's estimate), `asOf` and `scope`, what was searched (see "Rules"). Only offers on sale today are returned. A ticket booked on
groupon.com is returned too (`availabilityRequired: true`, each option with a `bookingUrl` that opens
Groupon's booking page with the option chosen, where the shopper picks the day and time and pays);
read its free days and times with `GET /partner_storefront/products/:productId/availability`. Every open
offer Groupon books on its own calendar in the US through its third-party booking partners is returned
this way; where a supplier does not answer its free days and times, the option's `bookingUrl` is still
where the shopper books and pays. Any other
product Groupon's cart cannot take, a hotel stay booked by its dates among them, is returned with
`availabilityRequired: true` and the product's own `bookingUrl`, its page on groupon.com. A hotel stay
also says `hotelStay: true`: read its rooms and rates for the shopper's dates with
`GET /partner_storefront/products/:productId/stays` ([Hotel stays](/docs/hotel-stays.md)). The free
slots may come from the supplier's own booking system when the partner is connected directly, and are
then at most five minutes old; otherwise they come from Groupon's booking calendar, refreshed hourly.
The answer's `asOf` says when they were read. Every slot price is before Groupon's taxes and fees, added at
checkout, and the availability answer says so in `priceNote`: never show a total, the shopper sees it on
Groupon's checkout. To keep one slot while the shopper pays, hold it ([Holding a timed
slot](/docs/checkout-and-order-confirmation.md#holding-a-timed-slot)).

Every product says in one word how the shopper gets a time, `bookingKind`: read it before you promise
a day or a time, never `availabilityRequired` alone. `bookable_with_live_times`: its free days and times
are read live with the availability read above, one can be held, and the shopper pays for exactly that
time on Groupon's page. `no_time_held`: buying it holds no time; the shopper buys it, then books the time
with the merchant afterwards, as the fine print says. `stay`: a hotel stay, its dates chosen when it is
booked. `shipped`: a product shipped to the shopper, bought with its delivery on its own Groupon page
(`bookingUrl`), never in a cart.

## Sort and rating

```bash
curl -s "https://api-staging-core.livingsocial.com/partner_storefront/products/search?q=spa%20day%20in%20Chicago&country=US&sort=rating&minRating=4.5&limit=5" \
  -H "Authorization: Bearer $GROUPON_API_KEY"
```

`sort=rating` returns the best-rated merchants first and `minRating=4.5` keeps only merchants rated
4.5 or more, so a 3.1-star offer never sits next to a 4.9-star one. Both work on every page of the
search, and with every other filter. The rating is the one each product answers in
`merchantRating`: groupon.com's rating of the merchant, to one decimal. A price order follows the
price Groupon's search holds for each offer, which can trail the live price in `options`, so now
and then a neighbour sits a little out of order: sort the page you show by `price.retail` if you
need it exact. There is no newest-first order: Groupon's search orders by relevance, rating and
price only.

## Categories

```bash
curl -s "https://api-staging-core.livingsocial.com/partner_storefront/categories" \
  -H "Authorization: Bearer $GROUPON_API_KEY"
```

The answer lists every category path of the offers on sale in your scope, once each:
`category0` (`local`), `category1` (`things-to-do`), `category2` (`escape-rooms`) and `products`, how
many offers sit under exactly that path now. Send any of the three as the filter of the same name.
Read the list once a day: it changes as offers come and go.

## Cities

`city` matches the whole city name, with capitals ignored (`chicago` finds Chicago). It never
matches part of a name, and it takes no wildcards: `Chi` and `Chi%` find nothing. A state may
follow the city, as a two-letter code (`Portland OR`, `Portland, OR`) or a full name after a comma
(`Portland, Oregon`); only that city in that state is then searched, so `Portland, OR` leaves out
Portland, Maine, while a place whose state is not on record is kept. Anything else after the comma
is ignored.

## Rules

- A search that names no place, in the words (`massage in Chicago`), with `city` or with `near`,
  is ranked around Chicago, the place groupon.com ranks such a search around. `scope` says what was
  searched: `kind` (`words`, `near`, `city`, `default` when no place was named, or `national`), the
  `place` (Chicago for `default`, null for `near` and `national`) and a `note`, one sentence to tell
  the shopper. When it is `default` and the shopper has a place in mind, ask for it.
- Send the same parameters on every page; only `cursor` changes. A page can be short while
  `hasMore` is true. A cursor works for 15 minutes: it is a place in Groupon's live ranking, which
  moves as offers come and go, so an older one could skip an offer or repeat one. After 15 minutes,
  or on `BAD_REQUEST` for a lapsed cursor, search again with the same parameters and no cursor, and
  skip the products you already hold by their `id`. To keep the whole catalog, walk it instead: a
  walk's cursor lasts a week.
- Each search counts once against your storefront's requests a minute (600 by default), and against 120 searches a minute
  per storefront. Past either, the answer is `RATE_LIMITED` with `retryAfterSeconds`.
- `UPSTREAM_UNAVAILABLE` means the ranking could not answer: retry with backoff.
- Read one offer again before you show it with `GET /partner_storefront/products/{productId}`. An
  offer that is gone or outside your scope answers `INVALID_PRODUCT_ID`.
- Results come from LivingSocial for Agents' copy of Groupon's catalog, refreshed every hour.
  The cart checks price and availability live, so send `expectedPrice` as always.

---

# Hotel stays

Last updated 6 Nov 2026.

This guide is for builders of a website, app or agent on the Partner API.

A hotel stay is booked by its dates, never through a cart. A product that is a hotel stay says
`hotelStay: true` (and `availabilityRequired: true`), and its own `bookingUrl` is its page on groupon.com.
Read its rooms for the shopper's dates, show them on your own page, and hand the shopper the `bookingUrl`
of the room they chose: it opens Groupon's checkout for that room and those dates, where the shopper pays.

Groupon sells hotel stays in two ways, and the stays answer says which one a product is in `kind`.

| | `market_rate` | `contracted` |
|---|---|---|
| Where Groupon sells it | A page under groupon.com/hotels, where Groupon's hotel partner prices every room live | A product page on groupon.com, from Groupon's own contract with the hotel |
| The rooms | Every room and rate the partner offers for the dates and guests | The product's options that can be booked for every night of the stay |
| Guests | The ones you ask for with `adults` and `children` | Always 2 adults and no children: `guests.fixed` is true, and the guests you send make no difference |
| `price` | The whole stay before taxes and fees | The sum of the nights at the contracted rate, before taxes and fees |
| `total` and `payAtHotel` | The stay with taxes and every fee, and the part the hotel collects | Always null: Groupon's checkout states the taxes and fees |
| `bookingUrl` of a room | Groupon's checkout for that room, with Groupon's quote for those dates and guests | Groupon's checkout for that option and those dates |
| Rooms that cannot be booked | Not listed | `unavailableRooms`, each with its nights |

## Read the rooms of a stay

```bash
curl -s "https://api-staging-core.livingsocial.com/partner_storefront/products/$PRODUCT_ID/stays?checkIn=2026-12-04&checkOut=2026-12-06&adults=2&children=7" \
  -H "Authorization: Bearer $GROUPON_API_KEY"
```

| Parameter | Meaning |
|---|---|
| `checkIn` | Required: the check-in day, `YYYY-MM-DD`, from yesterday to a year ahead |
| `checkOut` | Required: the check-out day, 1 to 28 nights after `checkIn` |
| `adults` | Adults in the room of a market-rate stay, 1 to 4; 2 when absent. A contracted stay ignores it |
| `children` | Each child's age in the room of a market-rate stay, 0 to 17, comma-separated, at most 2 (`4,9`). A contracted stay ignores it |

One call reads one stay for one room's guests. Anything outside these limits is refused with 400
`BAD_REQUEST`, which says what to fix, and so is a product that is not a hotel stay (read its availability,
or put it in a cart).

## What the answer holds

| Field | Meaning |
|---|---|
| `kind` | `market_rate` or `contracted`, as in the table above |
| `status` | `known`: the rooms are Groupon's answer. `unknown`: they could not be read right now |
| `asOf` | When Groupon was read; rooms are kept a few minutes |
| `checkIn`, `checkOut`, `nights` | The stay you asked about |
| `adults`, `childrenAges` | The guests the rooms are priced for: the ones you asked for in a market-rate stay, and 2 adults with no children in a contracted stay |
| `guests` | The same guests as `adults`, `children` (a count) and `fixed`: true when Groupon's checkout books exactly these guests whatever you ask |
| `priceNote` | What the prices are, in one sentence to show beside them |
| `rooms` | Every room you can book for the stay, cheapest first |
| `unavailableRooms` | A contracted stay's options that cannot be booked for these dates; always empty for a market-rate stay |

Each room:

| Field | Meaning |
|---|---|
| `id` | The room and rate, unique within one answer. In a contracted stay, Groupon's option for these dates |
| `title`, `description` | The room as the hotel names it. In a contracted stay, `title` is the name of the product's option and `description` is empty |
| `refundable`, `cancellationPolicy` | Whether the rate can be cancelled for a refund, and the terms in Groupon's or the hotel partner's words. In a contracted stay with no terms stated, `refundable` is false and the terms are empty |
| `price` | The whole stay before taxes and fees (in a contracted stay, the sum of its nights) |
| `total` | The whole stay with taxes and every fee, the fees paid at the hotel included; null when Groupon does not state it, and always null in a contracted stay |
| `payAtHotel` | Of `total`, the fees the hotel collects at the stay, such as a resort fee; null when Groupon does not state them, and always null in a contracted stay |
| `nights` | Each night at its base rate, before taxes and fees |
| `bookingUrl` | Groupon's checkout for this room and these dates |

Each room that cannot be booked, in a contracted stay:

| Field | Meaning |
|---|---|
| `id`, `title` | The option, as in `rooms` |
| `nights` | Each night of the stay with `date` and `available`. A night that is false is sold out, closed, or not in Groupon's calendar; when every night is true, the length of the stay is what the option does not allow |

Every amount is in minor units with its currency and `currencyPrecision`, as in the rest of the API.
Show `price` and, where it is there, `total` as they are, and say which is which; Groupon's checkout
states the amount it charges. A room is seen, not held: it can go before the shopper pays, and Groupon's
checkout then says so. A contracted room is held only when the shopper places the order.

## Hand over the room's link

`bookingUrl` is tagged with your storefront and, when your storefront has a CJ publisher id, wrapped in
Commission Junction's click link like a cart's `buyLink`, so a stay booked through it earns your
commission. Hand it to the shopper unchanged; never open it for them, and never build it yourself.

The link carries what Groupon's checkout books. A market-rate room's link carries Groupon's quote for that
room: its dates and its guests are the ones the checkout books, and an edited link books the original stay
while the order shows the edited one. A contracted room's link names the option, the dates and the product,
and the checkout reads the dates from it. Never change any part of either link. For other dates or
guests, read the stays again and hand the new room's link.

## When the rooms cannot be read

`status: unknown` means Groupon could not be read right now: never show the hotel as fully booked. Hand
the shopper the product's own `bookingUrl` instead, its page on groupon.com, where they pick the dates and
pay. A `known` answer with no room means no room is offered for those dates and guests, or Groupon's hotel
partner did not price them, or, in a contracted stay, every option has a night that cannot be booked:
read `unavailableRooms` to tell the shopper which nights are the problem, and offer other dates.

## Which hotels

The stays answer reads both kinds, and both kinds are in the catalog. A product says `hotelStay: true`
in a walk, a search and a read, and the stays answer says its `kind`. Hotels Groupon contracts itself are
sold as a few fixed room options on a nightly calendar; Groupon's market-rate hotels are priced live for
the dates and guests asked.

A market-rate hotel has no price in the catalog: its `options` list is empty (in the agent API its `price`
is null too), because its rooms and rates exist only for dates. Its `bookingUrl` is its page on
groupon.com. Read the stays to get prices. A search with a price bound leaves it out.

## For an AI agent

The agent API answers the same rooms in the offer read: `GET /ls_agent_api/offers/{permalink}` with
`checkIn`, `checkOut`, `adults` and `children` answers `stays` on an offer whose `hotelStay` is true, with
the same `kind`, `guests`, `rooms` and `unavailableRooms`, and a `bookingUrl` for the person on each room.
A search result carries `hotelStay` too, so an agent knows an offer is a hotel stay before it reads the
offer. The consumer MCP server's `get_offer` takes the same four arguments.

---

# Syncing the catalog

Last updated 24 Nov 2026.

This guide is for builders of a website or app on the Partner API.

To answer one shopper's request, search instead ([Searching the catalog](/docs/searching-the-catalog.md)).
Walk the catalog when your site renders the whole catalog: keep your own copy of the offers in your
inventory scope and render your site from it. Every field of a product is in the [API
documentation](/docs/for-builders/api).

## What to list

- List a product only when its `status` is `active`, and an option only when its `active` is not
  false (`null` means unknown: treat it as sellable). A product with `availabilityRequired: true`
  cannot be added to a cart: when its options carry a `bookingUrl`, it is a ticket booked on
  groupon.com, so send the shopper to that link: it opens Groupon's booking page with the option
  chosen, where the shopper picks the day and time and pays. Its free days and times come from
  `GET /partner_storefront/products/:productId/availability` (seen, not held; `unknown` is never
  sold out). Those free slots may come from the supplier's own booking system when the partner is
  connected directly, and are then at most five minutes old; otherwise they come from Groupon's
  booking calendar, refreshed hourly. The availability answer's `asOf` says when they were read.
  Every open offer Groupon books on its own calendar in the US through its third-party booking
  partners is listed this way, and its price and on-sale status are refreshed once a night. Edge, Big
  Bus Tours, Go City and Viator answer their free days and times; another supplier's options may
  answer `unknown`, and the option's `bookingUrl` is still where the shopper books and pays. An offer
  from such a partner that groupon.com sells on the offer's own page instead (a parking spot, a round
  of golf, a restaurant credit, a gift card) carries no option `bookingUrl`: it is listed with
  `availabilityRequired: true` and the product's own `bookingUrl`, its page on groupon.com.
  Every slot price is before Groupon's taxes and fees, added at checkout (`priceNote`): never show a
  total. To keep one slot while the shopper pays, hold it ([Holding a timed
  slot](/docs/checkout-and-order-confirmation.md#holding-a-timed-slot)).
  When its options carry none, the product's own `bookingUrl` opens its page on groupon.com (a hotel
  stay is booked there by its dates): send the shopper to that link. It carries your storefront and,
  with a CJ publisher id, CJ's click link, so the sale counts for you as a cart's `buyLink` does.
- `option.price.retail` is the per-unit price the shopper pays: send it as `expectedPrice` on
  cart calls. `option.price.original` is the strike-through price.
- `option.promotion` is informational: a shopper who enters `promotion.promoCode` on Groupon's
  checkout page may get `promotion.amount`, if eligible. Groupon decides when the shopper pays:
  some promotions are for new customers only or work only in the Groupon app. Show it as a
  possibility ("with code SAVE15 if eligible"), never as the price. Cart totals always use retail.
  `promotion.endsAt` is when the promotion stops working, not when the offer ends: after it, show
  retail only. Whether the offer is still on sale is its `status`.
- `media` holds every picture of the offer's page on Groupon, its gallery included, each once per
  size: `index` says which picture an entry is (`0` the main one, `1` and on the gallery, in that
  page's order) and `role` its size (`small`, `medium`, `large`, `extra_large`, `wide_crop`). Pick
  a size by its `role`, falling back to the largest `width`. Not every size exists on every offer.
- `merchantRating` is the merchant's rating from Groupon's verified customers across all its offers,
  the stars groupon.com shows on the offer's page: `average` from 0 to 5 to one decimal and `count`,
  the ratings behind it. It is null when the merchant has no ratings yet.
- `rating` is the offer's own rating from its customer reviews on Groupon, which LivingSocial for
  Agents computes from the reviews it copies: `average` from 1 to 5 to one decimal, rounded the way
  groupon.com rounds a rating, `count`, the reviews behind it, `newestReviewAt`, when the newest
  was written, and `asOf`, when they were read. Use it to compare offers; `merchantRating` is the
  merchant's, across all its offers. It is null when LivingSocial for Agents holds no review of the
  offer, which is also the case while an offer's reviews have not been copied yet.
- `reviews`, on the read of one product (`GET /partner_storefront/products/{productId}`) only, never
  on a walk or a search, carries what customers wrote, in three blocks, each with its `source`
  ("Groupon customer reviews") and `asOf`. `latest` is the newest reviews as their shoppers wrote
  them, 5 by default and up to 20 with `latestReviews`: each with its `stars`, `text`, `writtenAt`,
  the `reviewer`'s name as Groupon shows it (never an email or a full name), `verifiedPurchase`, and
  `writtenOn`, the site it was written on (Groupon, or a partner such as Viator). `byStar` counts
  the reviews per star, 5 stars first, with the days they span. `summary` is two to four sentences
  a model wrote from the newest 50 reviews, with what it read (`basedOn`) and which model and
  prompt version wrote it (`generatedBy`). Show reviews as the customers' words and the summary as
  a generated summary, never as a review. A block is null when nothing stands behind it: no
  reviews, or fewer than 5 for a summary.
- `bought` is groupon.com's "bought" badge: at least `atLeast` (100, 1000, 5000 or 10000) bought on
  Groupon, counted as of `asOf`. Show it as "1,000+ bought", never as an exact count. It is null
  under 100, when the merchant hides the count, or when it is not known.
- `finePrint` is Groupon's terms of redemption as plain-text paragraphs; null when Groupon gives
  none. Each location's `openingHours` is its regular week, Sunday first, in the location's own
  `timeZone`, without holidays; null when Groupon holds no hours for the place.

## A product, field by field

Every product a walk, a search or a product read returns has these fields; each one is also
described, with an example, in the [API documentation](/docs/for-builders/api). A field that can be
unknown is `null`, never left out.

| Field | What it holds | Example |
|---|---|---|
| `id` | The product's id: the `productId` of a cart line | `"e4d9fb19-3de1-4b36-8398-6d54f197a2e3"` |
| `title` | The offer's title as groupon.com shows it | `"60-minute Tailored Deep-Tissue or Swedish Massage"` |
| `shortDescription` | A short plain-text summary, for a card or a list | `"4.8-Star Rating, over 4,200 reviews."` |
| `description` | The offer's description, plain text | `"A peaceful oasis in Lincoln Park."` |
| `status` | `active`, `sold_out` or `expired`; list only `active` | `"active"` |
| `country` | The market the offer is sold in, the `country` you read it under: `US`, or `CA`, priced in CAD and bought at its `bookingUrl`, never in a cart | `"US"` |
| `availabilityRequired` | `true` when the offer is booked, not put in a cart | `false` |
| `bookingUrl` | Where a product a cart cannot take is bought (a Canadian offer among them: its groupon.com page); `null` for one you put in a cart | `null` |
| `categoryLabels` | Groupon's category labels of the offer | `["Deep Tissue Massage", "Swedish Massage"]` |
| `media` | Every picture of the offer's page, each once per size (below) | `[{"url": "https://img.grouponcdn.com/.../t300x182.jpg", "role": "medium", "width": 300, "height": 182, "index": 0}]` |
| `locations` | The places where the offer is used (below); empty for an offer used anywhere | `[{"name": "Lincoln Park", "city": "Chicago", "state": "IL"}]` |
| `options` | The variants the shopper picks from (below) | `[{"id": "a40bef0d-2309-4a38-9042-338601020219", "title": "One 60-Minute Massage"}]` |
| `merchantRating` | The merchant's rating: `average` 0 to 5 to one decimal, and `count`; `null` without ratings | `{"average": 4.8, "count": 5315}` |
| `merchantWebsite` | The merchant's own website, an absolute `https` or `http` address; `null` when Groupon holds none | `"https://www.examplespa.com/"` |
| `rating` | The offer's own rating from its reviews: `average` 1 to 5 to one decimal, `count`, `newestReviewAt` and `asOf`; `null` without reviews | `{"average": 4.6, "count": 371, "newestReviewAt": "2026-09-28T17:02:11.000Z", "asOf": "2026-10-29T04:41:12.118Z"}` |
| `bought` | groupon.com's "bought" badge: `atLeast` (100, 1000, 5000 or 10000) as of `asOf`; `null` under 100 | `{"atLeast": 1000, "asOf": "2026-10-13T18:41:36.005Z"}` |
| `finePrint` | Groupon's terms of redemption, as plain-text paragraphs; `null` when there are none | `["Appointment required.", "Limit 1 per person."]` |
| `distanceKm`, `distanceMiles` | A search's hits only: the nearest place's distance from `near`; `null` without `near` | `2.43`, `1.51` |

Each entry of `media`:

| Field | What it holds | Example |
|---|---|---|
| `url` | The picture's address on Groupon's image CDN, ready to show | `"https://img.grouponcdn.com/.../v1/t300x182.jpg"` |
| `role` | The size: `small`, `medium`, `large`, `extra_large` or `wide_crop` | `"medium"` |
| `width`, `height` | The picture's size in pixels; `null` when Groupon does not say | `300`, `182` |
| `index` | Which picture: `0` the main one, `1` and on the gallery, in the page's order | `0` |

Each entry of `locations`:

| Field | What it holds | Example |
|---|---|---|
| `id` | Groupon's id of the place | `"a780b4fd-2d25-bed3-9b7d-016814d7ad2e"` |
| `name` | The place's name, often its neighbourhood or branch | `"Lincoln Park"` |
| `street`, `city`, `postalCode` | The address | `"1136 West Armitage Avenue"`, `"Chicago"`, `"60614"` |
| `state` | The state's two-letter code | `"IL"` |
| `country` | ISO 3166-1 alpha-2 | `"US"` |
| `latitude`, `longitude` | The place's point, in degrees | `41.9182047`, `-87.6568705` |
| `phone` | The place's phone number as groupon.com shows it; `null` when Groupon holds none | `"(773) 555-0142"` |
| `openingHours` | Its regular week, Sunday first: `dayOfWeek` (0 is Sunday), `closed`, `opens`, `closes` (`"HH:MM"`); `null` without hours | `[{"dayOfWeek": 0, "closed": false, "opens": "10:00", "closes": "20:00"}]` |
| `timeZone` | The place's IANA time zone; `null` when unknown | `"America/Chicago"` |

Each entry of `options`:

| Field | What it holds | Example |
|---|---|---|
| `id` | The `optionId` of a cart line | `"a40bef0d-2309-4a38-9042-338601020219"` |
| `title` | What the shopper buys | `"One 60-Minute Deep-Tissue or Swedish Massage"` |
| `isDefault` | `true` for the option Groupon's page shows first | `true` |
| `active` | `false` is not sellable; `null` is unknown, treat it as sellable | `true` |
| `minUnits`, `maxUnits` | The fewest and most units one cart line may hold; `maxUnits` `null` for no maximum | `1`, `30` |
| `price` | `retail` (what the shopper pays per unit, the `expectedPrice` of a cart line), `original` (the strike-through price), `currency`, `currencyPrecision`, in minor units | `{"retail": 8460, "original": 13000, "currency": "USD", "currencyPrecision": 2}` |
| `promotion` | `amount`, `promoCode` and `endsAt` of a code that may lower the price on Groupon's checkout, if eligible; `null` without one | `{"amount": 7190, "promoCode": "SAVE15", "endsAt": "2026-10-31T06:59:59Z"}` |
| `selections` | Choose-one attributes (`attributeId`, `title`, `required`, `values` of `id` and `title`); empty for most options | `[]` |
| `bookingUrl` | Groupon's booking page with this option chosen, for a ticket booked on groupon.com; `null` otherwise | `null` |

## What you may change

You may show the titles, descriptions, prices, fine print and pictures the API returns, and
resize and crop pictures to fit your layout. Groupon recommends that you never change a price or
what a picture shows. Shortening a description, by hand or with AI, is fine. Keep the fine print,
the terms of redemption, as it is, so a shopper is never confused about how to use what they
bought. Say that the offer is sold by Groupon and paid on Groupon's checkout, and disclose that
you earn a commission where the law asks you to.

## Keeping your catalog fresh

| Run | When | What it reads |
|---|---|---|
| Full sync | First, once | Every product in your scope |
| Full resync | Every 8 hours: the minimum | Every product again, then stop listing what the walk did not return |
| Delta refresh | Every hour: optional | Only what changed since your last refresh (`updatedSince`) |

A delta returns every product whose price, content or status changed since `updatedSince`,
expired products included: stop listing those. A delta alone is not enough: it cannot show you an
offer that left your scope or stopped being sellable for another reason, which only the full
resync removes. The catalog you walk is LivingSocial for Agents' copy of Groupon's,
refreshed every hour, so a delta more often than that finds nothing new. A change of only
`merchantRating`, `merchantWebsite`, `rating`, `bought`, a location's hours or its phone does not bring a product into a delta:
the full resync refreshes them.

One walk serves all three runs. Walk each market your storefront sells on its own (`country=US`, then
`country=CA`; `GET /partner_storefront/me` lists them in `inventoryCountries`):

```text
seen = empty set                                     # resync only
params = { country: "US", limit: 100 }               # delta: add updatedSince: lastRefreshAt
cursor = none
repeat:
    page = GET https://api-staging-core.livingsocial.com/partner_storefront/products?params (+ cursor if set)
    upsert every product in page.data by its id      # replace options, prices, status
    add every id in page.data to seen                # resync only
    cursor = page.nextCursor
until page.hasMore == false
stop listing every product whose id is not in seen   # resync only; keep the row
lastRefreshAt = page.timestamp                       # the final page's timestamp
```

## Rules for every walk

- Send the same parameters on every page; only `cursor` changes. Keep paging until `hasMore` is
  false: a page can be short, or empty, while more follow.
- A page holds at most 100 products (`limit`), and 10 when you send none.
- Save `lastRefreshAt` and stop listing missing products only after a whole walk succeeds. If a
  walk fails part-way, change nothing and run it again. `lastRefreshAt` is the final page's
  `timestamp` (the moment the walk began, less two minutes), never your own clock.
- Never send `active` on a delta: you need the deactivated rows to stop listing them.
- Run one walk at a time: skip a delta that falls due during a resync.
- If a page answers `BAD_REQUEST` for its cursor, discard the cursor and restart the walk.
- Your database is a cache. The cart re-checks price and availability live.

---

# Managing the cart

Last updated 15 Nov 2026.

This guide is for builders of a website or app on the Partner API.

Groupon keeps a mirror of your shopper's cart, and that mirror is the one that gets paid for. A
cart is created together with its first item.

## Operations

| Operation | Endpoint | When |
|---|---|---|
| Create cart | `POST /partner_storefront/carts` | Shopper adds the first item |
| Read cart | `GET /partner_storefront/carts/{cartId}` | Your cart page loads, or before Buy now after a long idle |
| Add items | `POST /partner_storefront/carts/{cartId}/items` | Shopper adds another item |
| Change quantity | `PATCH /partner_storefront/carts/{cartId}/items/{itemId}` | Shopper changes a quantity |
| Remove item | `DELETE /partner_storefront/carts/{cartId}/items/{itemId}` | Shopper removes a line |
| Abandon cart | `DELETE /partner_storefront/carts/{cartId}` | Shopper empties the cart, or the session ends |

Every operation except Abandon returns the full cart with a fresh `buyLink`: overwrite your local
cart with each response. Only an `ACTIVE` cart carries one: a cart that is `CHECKED_OUT` or
`ABANDONED` answers `buyLink: null`. A cart holds at most 20 different options, and 1 to 100 of each; an option
can set a lower limit of its own. Store the cart id against the shopper's session on your server.

## Creating a cart

```bash
curl -s -X POST "https://api-staging-core.livingsocial.com/partner_storefront/carts" \
  -H "Authorization: Bearer $GROUPON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "country": "US",
    "clientReference": "user-8421",
    "items": [{
      "productId": "0b6f7a52-3c1d-4e8a-9f20-5d7c1a2b3c4d",
      "optionId":  "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "quantity": 2,
      "expectedPrice": 4500
    }]
  }'
```

`expectedPrice` is the per-unit retail price your site shows. When Groupon's live price differs,
the call fails with `PRICE_MISMATCH` and the live price in `details.currentPrice`: update your
price, ask the shopper to confirm, and send it again.

`clientReference` is your own reference for the cart, 1 to 128 characters: your user's id, or your
own order's. It is optional. Every read of the cart answers it back, and so do the order placed from
the cart and your order list, which you can filter by it
(`GET /partner_storefront/bookings?clientReference=user-8421`), so an order ties to your user without
a table of your own. It stays with LivingSocial for Agents and is never sent to Groupon. An empty or
longer value is refused with `BAD_REQUEST`.

## Reading the response

- `buyLink`: your Buy now button's href, verbatim, from the latest response. Open it in the
  shopper's browser. Never fetch it from your server and never rewrite it.
- `available: false`: the line cannot be bought. Show `unavailableReason` and remove the line
  before checkout.
- `messages`: `price_unavailable` means a line's live price could not be resolved, so the line is
  left out of the totals. `item_declined` means Groupon declined an item although the call
  succeeded: it is not in `items`, so tell the shopper. When the message carries a `bookingUrl`, the
  item is bought on that Groupon page instead: send the shopper there.
- `totals.grandTotal` excludes tax and any promo code. The final amount is on Groupon's checkout
  page.

## Retries, and a cart that is gone

- Send an `Idempotency-Key` header with every add (8 to 200 characters, one per add you mean)
  and retry with the same key: the same key and items on the same cart, within 24 hours, answer
  the first answer and never add the items twice. The same key with other items answers
  `IDEMPOTENCY_KEY_REUSED`, and a retry while the first add still runs `IDEMPOTENCY_KEY_IN_PROGRESS`;
  nothing is added either way.
- Without a key, adding items is not idempotent: a line for the same option grows by `quantity`.
  On a timeout, read the cart and add only what is missing.
- After you abandon a cart, it reads `ABANDONED`, a second abandon answers 200 again, and adding,
  changing or removing a line answers `CART_ABANDONED`. Discard its `cartId`.
- Once a cart names an order, it reads `CHECKED_OUT` and answers `buyLink: null`. Never add to it
  again. When that order reads `REJECTED` or `EXPIRED` and the shopper is back on your site,
  create a new cart with the same lines and use its `buyLink` ([Checkout and order
  confirmation](/docs/checkout-and-order-confirmation.md)).
- The cart is gone when one you expect to hold items reads `itemCount: 0`, when a change to a line
  answers `INVALID_PRODUCT_ID`, or when any call answers `INVALID_CART_ID`. Create a new cart from
  your local copy and use its `buyLink`.

---

# Checkout and order confirmation

Last updated 24 Nov 2026.

This guide is for builders of a website or app on the Partner API.

Before showing Buy now, read the cart and check every line is available. The button links to
`buyLink`.

Groupon has two checkout pages. Its cobranded checkout shows your logo, sends the shopper back to
your redirect URL after paying and to your continue shopping URL when they leave without buying.
Groupon reviews every logo you upload, usually within a working day; once it approves your logo,
your storefront's `buyLink` opens the cobranded checkout. Until then, and while a logo you replace
it with waits for its own review, the `buyLink` opens Groupon's own checkout: it shows no logo,
and the shopper stays on Groupon's receipt page after paying, so your redirect URL and your
continue shopping URL are not used. A logo Groupon does not approve is taken down, with the reason
on your storefront's page. Read the cart from your server to learn the sale
([below](#without-the-return-read-the-cart)).

## The return redirect

With a redirect URL on your storefront, Groupon's cobranded checkout sends the shopper's browser
back to it after checkout, with the order id added:

```text
https://your-site.example/checkout/complete?grouponOrderUuid=5d0c2f3a-8b1e-4c7d-a9f0-1e2d3c4b5a69
```

Without one, your site receives no `grouponOrderUuid`. Your handler for that address:

1. Reads `grouponOrderUuid` and checks it is a UUID. It handles each one once: a repeat visit
   shows the result you saved.
2. Reads the order from your server (below).
3. Matches the order's items to the cart in the shopper's session, on `optionId`. With no
   session or no match, it shows a neutral "check your Groupon email" page and marks nothing as
   purchased.
4. Keeps the `cartId` and a snapshot of its lines until the status is final. On success it marks
   the cart as purchased. On `REJECTED` or `EXPIRED`, with the shopper back on your site, it
   creates a new cart from the snapshot and offers the shopper its `buyLink`: the declined cart
   answers `buyLink: null`.
5. Renders the confirmation page.

Treat `grouponOrderUuid` as sensitive: keep it out of analytics and off public pages.

## Leaving without buying

Your storefront holds two addresses, each for one way out of Groupon's cobranded checkout, the one
your storefront gets once Groupon has approved its logo:

- **Redirect URL**: the shopper paid. Groupon sends them there with `grouponOrderUuid`, to the
  handler above.
- **Continue shopping URL**: the shopper left without buying, through your logo or Continue
  shopping on the checkout page that shows your logo. Groupon sends them there as it is, with
  nothing added: point it at a page that expects no order, such as your catalog. Without it, they
  go to the site of your redirect URL, or to groupon.com when you have none.

Set both on your storefront's page: any absolute `https` address, and nobody approves them.
`GET /partner_storefront/me` answers them as `redirectUrl` and `continueShoppingUrl`.

## Without the return: read the cart

A shopper may close the tab, and an agent may never open your redirect URL. Your server can
still learn the sale: once Groupon records an order on a cart, every cart response carries it in
`grouponOrderUuid`, and the cart's `status` reads `CHECKED_OUT`. Keep the redirect as your main
path; reading the cart catches the shopper who does not come back.

```bash
curl -s "https://api-staging-core.livingsocial.com/partner_storefront/carts/<cartId>" \
  -H "Authorization: Bearer $GROUPON_API_KEY"
```

Read the carts whose shoppers left for Groupon, once a minute is enough. Once a cart names an
order it answers `buyLink: null`: after a fraud decline Groupon's checkout of that cart sends the
shopper to an empty cart, so the Partner API never hands it out again. Read the order (below):

- `CONFIRMED` or `REDEEMED`: match its items to the cart's lines, then mark the cart purchased as
  in steps 3 to 5 above.
- `REFUNDED`: the shopper paid and Groupon gave the money back. Mark the cart refunded, never as a
  purchase still open.
- `ON_HOLD` or `PENDING`: read it again later.
- `REJECTED` or `EXPIRED`: the payment did not go through. It is not the outcome on its own: after
  a card decline, Groupon's own decline page lets the shopper pay again on the same cart, and the
  cart keeps naming the declined order. Do not rebuild the cart or ask the shopper to pay again on
  this alone. When the shopper comes back to your site, offer a new cart with the same lines (step
  4 above); that is the one way to pay again through your site.
- `CANCELLED`: an order that was paid and then cancelled with nothing charged. Nothing to retry.

The order named is the first one the shopper's browser placed within 24 hours of the cart, which
can be a different purchase, or the newest order placed from this cart's checkout that Groupon
marked with the cart's id: never mark anything purchased without the item match.

## Commission through CJ

With a CJ publisher ID that Groupon confirmed on your storefront, every `buyLink` is CJ's click
link around Groupon's checkout:

```text
https://www.jdoqocy.com/click-<your publisher ID>-15230314?sid=<cartId>&url=<Groupon's checkout for the cart>
```

The same goes for every `bookingUrl` of a product booked on groupon.com (each option's and each free
slot's, with the product's id as the SID) and for a hold's `bookingUrl` (with the hold's id as the
SID).

The shopper's browser passes through CJ, which records the click, and lands on the same checkout.
Groupon reports the sale to CJ, and CJ credits it to your publisher account under its program
terms. In your CJ reports the sale's SID is the id its link carried: the cart's id for a
`buyLink`, the product's id for a product's or an option's `bookingUrl`, the hold's id for a
hold's `bookingUrl`; match a commission to your own records by it. CJ's redirect replaces the
page's `utm_campaign` with CJ's own, so the page inside the link also carries
`utm_content=LS_AI_partner_<your storefront id>`, which reaches Groupon unchanged and tells it the
sale came through your storefront. Use the link exactly as the response gives it: a link you
rebuild or shorten can lose the click, and with it the credit.

Your CJ publisher ID is the **website ID (PID)** CJ shows for your site in your account, not your
company ID (CID): CJ credits a click to a website. A CID entered instead earns nothing, because no
click link carries it.

An ID you entered and Groupon has not confirmed yet, or one it refused, never reaches the link:
until one is confirmed, `buyLink` is Groupon's checkout itself. `GET /partner_storefront/me`
answers the confirmed ID in `cjPublisherId`, null without one. One CJ publisher ID credits one
storefront.

## Holding a timed slot

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](/docs/connect-your-assistant.md#what-your-assistant-can-do)).
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).

## Reading the order

```bash
curl -s "https://api-staging-core.livingsocial.com/partner_storefront/bookings/5d0c2f3a-8b1e-4c7d-a9f0-1e2d3c4b5a69" \
  -H "Authorization: Bearer $GROUPON_API_KEY"
```

An order from a two-line cart, its second line still being processed:

```json
{
  "id": "5d0c2f3a-8b1e-4c7d-a9f0-1e2d3c4b5a69",
  "purchaserId": "f3a9c2d1-5b7e-4c8a-9d0f-1e2a3b4c5d6e",
  "status": "ON_HOLD",
  "grouponOrderReference": "1000-152881-782076",
  "supplierReference": "1000-152881-782076",
  "clientReference": "user-8421",
  "createdAt": "2026-09-18T12:10:44Z",
  "items": [
    {
      "productId": "0b6f7a52-3c1d-4e8a-9f20-5d7c1a2b3c4d",
      "optionId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "quantity": 2,
      "status": "CONFIRMED",
      "unitItems": [
        { "id": "a1b2c3d4-0000-4000-8000-000000000001", "status": "CONFIRMED",
          "myGrouponUrl": "https://www.groupon.com/mygroupons",
          "expiresAt": "2027-03-18T04:59:59Z" },
        { "id": "a1b2c3d4-0000-4000-8000-000000000002", "status": "CONFIRMED",
          "myGrouponUrl": "https://www.groupon.com/mygroupons",
          "expiresAt": "2027-03-18T04:59:59Z" }
      ]
    },
    {
      "productId": "1c7e8b63-4d2e-4f9b-a031-6e8d2b3c4d5e",
      "optionId": "8d0f7780-8536-41ef-a55f-f18fd2a01bf8",
      "quantity": 1,
      "status": "ON_HOLD",
      "unitItems": [
        { "id": "a1b2c3d4-0000-4000-8000-000000000003", "status": "ON_HOLD",
          "myGrouponUrl": "https://www.groupon.com/mygroupons",
          "expiresAt": null }
      ]
    }
  ]
}
```

## What to show

| Status | What to show |
|---|---|
| ON_HOLD, PENDING | "Finalizing your order..." and poll again |
| CONFIRMED | Success page |
| REDEEMED | Success page, marked as used |
| REFUNDED | "This order was refunded." The shopper paid, and Groupon gave the money back |
| REJECTED | "Payment failed" and a Try again button that creates a new cart with the same lines and opens its `buyLink`. Groupon's fraud review declining a payment reads REJECTED too |
| EXPIRED | "This order was not completed" and the same Try again button |
| CANCELLED | "This order was cancelled." It was paid, then cancelled, and nothing was charged |

The same statuses apply to the order, to each item and to each purchased unit. Treat a status you
do not recognise as unresolved: show the order as not completed, keep the cart, and start no new
purchase because of it.

## Polling

Right after the redirect the status is often `ON_HOLD` or `PENDING`. Poll from your server after
2, 4, 8, 15 and 30 seconds, and stop as soon as it is neither. If it still is after the last try,
show "Your order is being processed, you will receive a confirmation email from Groupon" with the
purchase buttons you have, and read it again every 10 minutes for up to a day. An order still
`ON_HOLD` or `PENDING` after a day is not completed: the shopper's email from Groupon is the
answer.

Stop reading an order once it is `CONFIRMED`, `REDEEMED`, `REFUNDED`, `REJECTED`, `EXPIRED` or
`CANCELLED`. A paid order can still be refunded later: Groupon's refund window is 3 days on a
local offer (until its code is viewed) and 30 days on goods. You need not poll for that.
LivingSocial reads each paid order again for 30 days and [the order list](#the-order-list) shows
the refund: read it once a day, or read one order again when the shopper opens it on your site.

## The order list

```bash
curl -s "https://api-staging-core.livingsocial.com/partner_storefront/bookings?status=REFUNDED&from=2026-10-15T00:00:00Z" \
  -H "Authorization: Bearer $GROUPON_API_KEY"
```

Every order placed from a cart your keys made since 15 October 2026, newest cart first:

```json
{
  "data": [
    {
      "bookingId": "5d0c2f3a-8b1e-4c7d-a9f0-1e2d3c4b5a69",
      "status": "REFUNDED",
      "cartCreatedAt": "2026-10-22T10:30:28Z",
      "paidAt": "2026-10-22T10:31:02Z",
      "refundedAt": "2026-10-22T11:40:00Z",
      "value": { "amount": 1299, "currency": "USD", "currencyPrecision": 2 },
      "statusReadAt": "2026-10-22T11:40:00Z",
      "clientReference": "user-8421"
    }
  ],
  "pagination": { "total": 1, "offset": 0, "limit": 25 }
}
```

- `status` is the order's status as Groupon last answered it, at `statusReadAt`. LivingSocial asks
  until the order is paid or its cart's day passes, then asks a paid order again for a refund for
  30 days. Read the order itself for its live status.
- `value` is the order's worth once paid: each line's price times its quantity, before tax and
  promo codes. It is null until the order is paid, and null for an order that was already
  refunded when LivingSocial first saw it, since Groupon then prices its lines at 0.
- `clientReference` is the reference you sent when you created the order's cart, `null` when you
  sent none; the order read answers it too. `clientReference=user-8421` lists only the orders of
  carts you created with exactly that reference: one user's orders, or the order of one of yours.
- Narrow the list with `status`, `clientReference` and `from` and `to` (when the cart was made). Page it with
  `offset` and `limit` (at most 100). The products list pages differently, by cursor
  (`nextCursor`). Sort it with `sortBy` (`cartCreatedAt`, the default, or
  `paidAt`) and `sortDirection` (`desc`, the default, or `asc`).
- `pagination.total` counts what you asked for: with `status=CONFIRMED` and a range, it is your
  confirmed sales in that range, with or without a CJ publisher ID. Ask again with
  `status=REDEEMED` for the sales whose codes were already used.

The list holds your storefront's orders only, never another storefront's.

## The purchase buttons

Show one button per entry of an item's `unitItems`, linking to that entry's `myGrouponUrl`. The
shopper signs in to Groupon to open it. A `CANCELLED`, `REJECTED` or `REFUNDED` unit gets no
button.

`myGrouponUrl` is the buyer's My Groupons list on the order's market
(`https://www.groupon.com/mygroupons` in the US), the same for every unit: Groupon's page for one
unit carries the buyer's account id in its address, which the Partner API never hands to you.
Name the product and the option on the button, so the shopper knows which one to open there.

`expiresAt` is null when Groupon names no expiry date for the unit, while the payment is still
being processed, and for a cancelled, rejected or refunded unit. Show no date then, never a guessed one.

## The redemption codes

Reading the order never returns a code, so you can poll it as often as you need. When you are
about to show the shopper their codes, issue them:

```bash
curl -s -X POST "https://api-staging-core.livingsocial.com/partner_storefront/bookings/5d0c2f3a-8b1e-4c7d-a9f0-1e2d3c4b5a69/codes" \
  -H "Authorization: Bearer $GROUPON_API_KEY" -H "Content-Type: application/json" -d '{}'
```

```json
{
  "bookingId": "5d0c2f3a-8b1e-4c7d-a9f0-1e2d3c4b5a69",
  "codes": [
    { "id": "a1b2c3d4-0000-4000-8000-000000000001", "status": "CONFIRMED",
      "redemptionCode": "000000000001", "barcodeFormat": "ean-13", "expiresAt": "2027-03-18T04:59:59Z" },
    { "id": "a1b2c3d4-0000-4000-8000-000000000002", "status": "CONFIRMED",
      "redemptionCode": "000000000002", "barcodeFormat": "ean-13", "expiresAt": "2027-03-18T04:59:59Z" }
  ],
  "withheld": [
    { "id": "a1b2c3d4-0000-4000-8000-000000000003", "reason": "not_issued" }
  ]
}
```

Each entry of `codes` is what the shopper shows at the merchant: `redemptionCode`, with
`barcodeFormat` (how to draw it as a barcode, such as `ean-13`) and `expiresAt`. Send
`{"unitIds": ["<unitItems id>"]}` to issue the codes of some purchased units only; without it,
every unit of the order is issued. Only your storefront issues the codes of an order placed from
its own cart.

Issuing a code marks it as viewed at Groupon, exactly as when the shopper opens it in My Groupons:
from then on the shopper cannot get a refund on their own, and Groupon's support decides any
refund. So issue the codes when you show them, never to check the order, and tell the shopper
before you do. Issuing the same unit again returns the same code and changes nothing more.

A unit in `withheld` got no code:

| `reason` | What to do |
|---|---|
| `not_issued` | Groupon has not issued it yet. Issue it again once the order reads `CONFIRMED`. |
| `third_party_inventory` | Groupon shows this code on its own site only. Send the shopper to the unit's `myGrouponUrl`. |
| `unsupported_region` | The same: send the shopper to the unit's `myGrouponUrl`. |

Whoever holds a code can use it. Keep it as you keep a payment credential: show it to the shopper
only, and never put it in a log, a URL or an analytics event.

The order's `purchaserId` is Groupon's id of the account that paid. Keep it to recognise the same
buyer's later orders, or quote it to Groupon's support; it identifies the buyer and gives access to
nothing.

The order's `grouponOrderReference` is Groupon's order number (`1000-...`), the one in Groupon's
mail and the shopper's My Groupon: show it on your order page, so the shopper can quote it to
Groupon's customer support. `supplierReference` carries the same number. Cancel an order answers
it too.

Keep what an order needs to serve the shopper and to reconcile your sales: `bookingId`, status,
value and dates. Keep a redemption code only while you show it to the shopper, and `purchaserId`
only while you serve that buyer. Beyond that, your agreement with Groupon and your own privacy
notice decide how long you keep order data.

---

# Handling errors

Last updated 24 Nov 2026.

This guide is for builders of a website or app on the Partner API.

Every endpoint answers an error in one shape. Branch on `details.error`; `code` is the general
class of the error.

```json
{
  "code": "aborted",
  "message": "Displayed price no longer valid",
  "details": {
    "error": "PRICE_MISMATCH",
    "errorMessage": "Displayed price no longer valid",
    "requestId": "c0ffee00-...",
    "path": "$.items[0]",
    "expectedPrice": 4500,
    "currentPrice": 4900,
    "currency": "USD",
    "currencyPrecision": 2
  }
}
```

## Error codes

| details.error | HTTP | What to do |
|---|---|---|
| BAD_REQUEST | 400 | A field is missing or invalid (`errorMessage` names it), or a cursor is bad. Fix the request, or restart the walk. |
| FORBIDDEN | 403 | Outside your inventory scope, or the storefront is closed. Do not retry. |
| INVALID_PRODUCT_ID | 404 | The product is gone: stop listing it. Or the cart has no such line: read the cart. |
| INVALID_CART_ID | 404 | Not a cart of your storefront. Create a new cart from your local copy. |
| INVALID_BOOKING_UUID | 404 | No such order placed from your carts. Show a neutral message. |
| PRODUCT_NOT_CARTABLE | 400 | Groupon's cart cannot take the offer: it needs a booked time slot, it is sold from a third party's inventory, it is a hotel stay booked by its dates on groupon.com, or it is sold in Canada, whose offers Groupon's cart does not take. `details.bookingUrl` is where it is bought instead: Groupon's booking page with the option chosen, or the offer's own page on groupon.com. Send the shopper there, and keep listing the product with the product's or the option's `bookingUrl`. |
| CART_ITEM_LIMIT | 400 | More than 20 different options in a cart. |
| CART_ABANDONED | 400 | You abandoned this cart, so it takes no change. Create a new cart with the same lines. |
| PRICE_MISMATCH | 409 | `expectedPrice` differs from the live price in `details.currentPrice`. Nothing was changed: update your price, ask the shopper to confirm, send it again. |
| RATE_LIMITED | 429 | More than the storefront's limit in a calendar minute (600 by default; Groupon raises it on request), counted across the storefront's keys. Wait `details.retryAfterSeconds` when the answer carries it; there is no `Retry-After` header. |
| UPSTREAM_UNAVAILABLE | 503 | Groupon could not answer, or the catalog cannot be read right now; `errorMessage` says which. Retry with backoff, except when adding cart items. |
| none | 401 | A missing, wrong, revoked or expired key; the message is the same for all four. Do not retry: alert an operator. |

## Name your client

Send a User-Agent header that names your agent or app on every call, so its calls can be told apart from others. Ordinary HTTP clients get through as they are, Python's urllib and a request with no User-Agent included: the User-Agent never decides access. In Python:

```python
import urllib.request

request = urllib.request.Request(url, headers={"User-Agent": "my-agent/1.0"})
```

## Retry policy

| Situation | Retry? |
|---|---|
| UPSTREAM_UNAVAILABLE, a network error, a timeout, or a 5xx with no Groupon code | Yes, with exponential backoff, at most 5 tries |
| RATE_LIMITED | Yes, after `details.retryAfterSeconds`; without it, back off |
| A failure while adding items to a cart | No. Read the cart and add only what is missing |
| A failure while creating a cart | Yes. A retry creates a separate new cart: use the id of the call that succeeded |
| Reading a cart or an order | Yes. A read changes nothing |
| Every other code | No |
