Build on the Partner API
View as MarkdownSyncing the catalog
Last updated ยท Page 1 of 5
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
statusisactive, and an option only when itsactiveis not false (nullmeans unknown: treat it as sellable). A product withavailabilityRequired: truecannot be added to a cart: when its options carry abookingUrl, 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 fromGET /partner_storefront/products/:productId/availability(seen, not held;unknownis 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'sasOfsays 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 answerunknown, and the option'sbookingUrlis 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 optionbookingUrl: it is listed withavailabilityRequired: trueand the product's ownbookingUrl, 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 ownbookingUrlopens 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'sbuyLinkdoes. option.price.retailis the per-unit price the shopper pays: send it asexpectedPriceon cart calls.option.price.originalis the strike-through price.option.promotionis informational: a shopper who enterspromotion.promoCodeon Groupon's checkout page may getpromotion.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.endsAtis when the promotion stops working, not when the offer ends: after it, show retail only. Whether the offer is still on sale is itsstatus.mediaholds every picture of the offer's page on Groupon, its gallery included, each once per size:indexsays which picture an entry is (0the main one,1and on the gallery, in that page's order) androleits size (small,medium,large,extra_large,wide_crop). Pick a size by itsrole, falling back to the largestwidth. Not every size exists on every offer.merchantRatingis the merchant's rating from Groupon's verified customers across all its offers, the stars groupon.com shows on the offer's page:averagefrom 0 to 5 to one decimal andcount, the ratings behind it. It is null when the merchant has no ratings yet.ratingis the offer's own rating from its customer reviews on Groupon, which LivingSocial for Agents computes from the reviews it copies:averagefrom 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, andasOf, when they were read. Use it to compare offers;merchantRatingis 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 itssource("Groupon customer reviews") andasOf.latestis the newest reviews as their shoppers wrote them, 5 by default and up to 20 withlatestReviews: each with itsstars,text,writtenAt, thereviewer's name as Groupon shows it (never an email or a full name),verifiedPurchase, andwrittenOn, the site it was written on (Groupon, or a partner such as Viator).byStarcounts the reviews per star, 5 stars first, with the days they span.summaryis 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.boughtis groupon.com's "bought" badge: at leastatLeast(100, 1000, 5000 or 10000) bought on Groupon, counted as ofasOf. 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.finePrintis Groupon's terms of redemption as plain-text paragraphs; null when Groupon gives none. Each location'sopeningHoursis its regular week, Sunday first, in the location's owntimeZone, without holidays; null when Groupon holds no hours for the place.