STAGINGOpen PROD

Build on the Partner API

View as Markdown

Syncing the catalog

Last updated ยท Page 1 of 5

Nobody reads documentation.

Here are the instructions for your agent. Give it this prompt: it reads the guides and the API contract, then walks you through the integration step by step, what to do, where and how.

Download agent instructions

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). 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.

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). 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.