{
  "openapi": "3.0.3",
  "info": {
    "title": "LivingSocial Partner API",
    "version": "1.0.0",
    "description": "Pull eligible Groupon offers in the United States and Canada into your own storefront, keep a shopper's cart in sync, and read the order after Groupon's checkout.\n\nAuthenticate every request with `Authorization: Bearer <your API key>`. Create keys on the Storefronts and keys page of this site. Call the API from your server, never from a browser or an app.\n\nEvery error carries `details.error`, the code to branch on. Money is an integer in minor units; divide by 10^`currencyPrecision` to display.",
    "contact": {
      "name": "LivingSocial API support",
      "email": "req.partner.api@groupon.com",
      "url": "https://agent.grpn.site/docs/for-agents/support"
    },
    "termsOfService": "https://legal.grpn.site"
  },
  "servers": [
    {
      "url": "https://api-staging-core.livingsocial.com",
      "description": "LivingSocial Partner API"
    }
  ],
  "tags": [
    {
      "name": "partner_storefront",
      "description": "Products, carts and bookings"
    }
  ],
  "paths": {
    "/partner_storefront/bookings/{bookingId}/cancel": {
      "post": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_bookingCancel",
        "summary": "Cancel an order you sold, by Groupon's own rules, refunding the shopper's original payment.",
        "description": "Cancel an order you sold, by Groupon's own rules, refunding the shopper's original payment. Call\nit first without `confirmed`: it answers whether Groupon would cancel the order now, the amount\nthe cancel covers, and for each unit (a ticket or a code) why Groupon refuses it when it does (the\nrefund period after buying has passed, the code was viewed or used, or a booked time is past its\ncancellation cutoff). Nothing changes. Tell the shopper the amount; only on their yes call again\nwith `confirmed: true` and that `amountMinor` and `currency`: Groupon then cancels the order and\nrefunds the payment to the original payment method as its orders service decides, and the order\nreads REFUNDED once Groupon records the refund. Groupon cannot move a booked time to another day\nor time: to change one, cancel it where Groupon allows and book the new time. `bookingId` is the\norder's id (`grouponOrderUuid`) or, for a time booked against a hold, the `holdId` the hold\nanswered. Repeating a cancel answers `already_cancelled`.\n\n**Errors:** notFound (INVALID_BOOKING_UUID) for an order or booked time this storefront did\nnot sell; invalidArgument (BAD_REQUEST) for a malformed id, a `confirmed` without the amount,\nor a confirmed amount that is not the one the cancel covers (nothing changed).",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingCancelResponse"
                }
              }
            }
          },
          "400": {
            "description": "notFound (INVALID_BOOKING_UUID) for an order or booked time this storefront did not sell; invalidArgument (BAD_REQUEST) for a malformed id, a `confirmed` without the amount, or a confirmed amount that is not the one the cancel covers (nothing changed).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "notFound (INVALID_BOOKING_UUID) for an order or booked time this storefront did not sell; invalidArgument (BAD_REQUEST) for a malformed id, a `confirmed` without the amount, or a confirmed amount that is not the one the cancel covers (nothing changed).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "bookingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingCancelRequestBody"
              }
            }
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/bookings/{bookingId}/codes": {
      "post": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_bookingCodesIssue",
        "summary": "Issue an order's codes: for every voucher of the order, or the `unitIds` you name, the code the shopper presents at the merchant, its barcode format and its expiry.",
        "description": "Issue an order's codes: for every voucher of the order, or the `unitIds` you name, the code the\nshopper presents at the merchant, its barcode format and its expiry. Issuing a code marks the\nvoucher viewed at Groupon: from then on the shopper cannot get a refund on their own, as when\nthey reveal it on My Groupons; Groupon's customer support still decides any refund. Call it when\nyou are about to show the code to the shopper, not to check the order (read the order for that).\nA voucher Groupon has not issued yet comes back in `withheld` as `not_issued` (ask again once the\norder reads CONFIRMED); one whose code Groupon shows only itself comes back as\n`third_party_inventory` or `unsupported_region` (send the shopper to its `myGrouponUrl`).\nRepeating the call answers the same codes. Only the storefront whose cart the order was placed\nfrom issues them. A code is a bearer value: keep it as you keep a payment credential and show it\nto the shopper only.\n\n**Errors:** notFound (INVALID_BOOKING_UUID) for an order not placed from this storefront's\ncarts; invalidArgument for a `unitIds` entry that is not a voucher of the order.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingCodesIssueResponse"
                }
              }
            }
          },
          "400": {
            "description": "notFound (INVALID_BOOKING_UUID) for an order not placed from this storefront's carts; invalidArgument for a `unitIds` entry that is not a voucher of the order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "notFound (INVALID_BOOKING_UUID) for an order not placed from this storefront's carts; invalidArgument for a `unitIds` entry that is not a voucher of the order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "bookingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingCodesIssueRequestBody"
              }
            }
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/bookings/{bookingId}": {
      "get": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_bookingGet",
        "summary": "Read an order: its status, Groupon's purchaser id, and per purchased unit its voucher link and expiry.",
        "description": "Read an order: its status, Groupon's purchaser id, and per purchased unit its voucher link and\nexpiry. `bookingId` is the `grouponOrderUuid` Groupon adds to your redirect URL. Only the\nstorefront whose cart the order was placed from reads it. Poll while the status is ON_HOLD or\nPENDING (after 2, 4, 8, 15 and 30 seconds, then every 10 minutes for up to a day), then stop: the\norder list (`GET /partner_storefront/bookings`) shows a later refund, which reads REFUNDED here too.\nA payment Groupon declined, its fraud review's cancel before capture included, reads REJECTED:\nonce the shopper is back on your site, a new cart with the same lines lets them pay again.\nA read never changes the order, so it is always safe to retry. It answers no redemption code: get\nthe codes with Issue an order's codes, which ends each voucher's self-service refund.\n\n**Errors:** notFound (INVALID_BOOKING_UUID) for an order not placed from this storefront's carts.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingGetResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/APIError"
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "notFound (INVALID_BOOKING_UUID) for an order not placed from this storefront's carts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "bookingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/bookings": {
      "get": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_bookingsList",
        "summary": "List your storefront's orders: every order placed from a cart your keys made since 2026-10-15, and every order Groupon's checkout paid against a hold your keys placed (it names the hold in `holdId`), newest cart or hold first, with its status as Groupon last answered it (REFUNDED for a refund, REJECTED for a cancel of an order never seen paid, a declined payment), its value once paid, when it was paid and its `bookingId`.",
        "description": "List your storefront's orders: every order placed from a cart your keys made since 2026-10-15,\nand every order Groupon's checkout paid against a hold your keys placed (it names the hold in\n`holdId`), newest cart or hold first, with its status as Groupon last answered it (REFUNDED for a refund, REJECTED\nfor a cancel of an order never seen paid, a declined payment), its value once paid, when it was\npaid and its `bookingId`. Groupon is asked about an order until it is paid\nor its cart's day passes, and a paid order again for a refund for 30 days, so `statusReadAt` says\nhow fresh each status is; read the order itself for its live status. Narrow it with `status`,\nwith `from` and `to` (when the cart was made or the hold placed) and with `clientReference` (the\nreference you sent on the cart, matched exactly; it leaves out every order paid against a hold); `pagination.total` with `status=CONFIRMED` counts your confirmed\nsales. Each order carries its cart's `clientReference`. Sort with `sortBy` `cartCreatedAt` (the default) or `paidAt`, and\n`sortDirection` `desc` (the default) or `asc`. Never another storefront's orders.\n\n**Returns:** one page: `data` and `pagination` (`total`, `offset`, `limit`).\n**Errors:** invalidArgument (BAD_REQUEST) for a bad page, sort or range, or a\n`clientReference` that is empty or longer than 128 characters; permissionDenied\n(FORBIDDEN) for a key of no active storefront; resourceExhausted (RATE_LIMITED); unavailable\n(UPSTREAM_UNAVAILABLE).",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingsListResponse"
                }
              }
            }
          },
          "400": {
            "description": "invalidArgument (BAD_REQUEST) for a bad page, sort or range, or a `clientReference` that is empty or longer than 128 characters; permissionDenied (FORBIDDEN) for a key of no active storefront; resourceExhausted (RATE_LIMITED); unavailable (UPSTREAM_UNAVAILABLE).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "403": {
            "description": "invalidArgument (BAD_REQUEST) for a bad page, sort or range, or a `clientReference` that is empty or longer than 128 characters; permissionDenied (FORBIDDEN) for a key of no active storefront; resourceExhausted (RATE_LIMITED); unavailable (UPSTREAM_UNAVAILABLE).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "invalidArgument (BAD_REQUEST) for a bad page, sort or range, or a `clientReference` that is empty or longer than 128 characters; permissionDenied (FORBIDDEN) for a key of no active storefront; resourceExhausted (RATE_LIMITED); unavailable (UPSTREAM_UNAVAILABLE).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "clientReference",
            "in": "query",
            "description": "Only orders placed from carts you created with this `clientReference`, matched exactly (1 to 128 characters).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Only orders whose cart was made at or after this instant.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Only orders in this status.",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/BookingStatus"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Only orders whose cart was made before this instant.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/carts/{cartId}": {
      "delete": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_cartAbandon",
        "summary": "Abandon a cart.",
        "description": "Abandon a cart. It then reads ABANDONED with `buyLink` null, abandoning it again answers 200,\nand any change to its lines is refused with CART_ABANDONED: discard its id.\n\n**Errors:** notFound (INVALID_CART_ID) for a cart this storefront never created.",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "$ref": "#/components/responses/APIError"
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "notFound (INVALID_CART_ID) for a cart this storefront never created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "cartId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      },
      "get": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_cartGet",
        "summary": "Read a cart.",
        "description": "Read a cart. Call it when your cart page loads and before showing Buy now after a long idle.\nA cart that no longer exists reads as an empty cart (`itemCount: 0`). Only an ACTIVE cart\ncarries a `buyLink`: one Groupon placed an order from (CHECKED_OUT) or you abandoned (ABANDONED)\nanswers null, and a shopper back on your site after a decline pays again on a new cart with the\nsame lines.\n\n**Errors:** notFound (INVALID_CART_ID) for a cart this storefront never created.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartGetResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/APIError"
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "notFound (INVALID_CART_ID) for a cart this storefront never created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "cartId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/carts": {
      "post": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_cartCreate",
        "summary": "Create a cart with its first items.",
        "description": "Create a cart with its first items. Store the returned `id` against the shopper's session and\nuse the latest `buyLink` verbatim as the Buy now link. A retry after a failure is harmless: it\ncreates a separate new cart. Send `clientReference` (your user's or your order's id) to tie the\ncart, and the order placed from it, to your own record: the cart, its order and your order list\nanswer it back, and the order list filters by it.\n\n**Returns:** the full cart.\n**Errors:** invalidArgument (BAD_REQUEST); notFound (INVALID_PRODUCT_ID);\nfailedPrecondition (PRODUCT_NOT_CARTABLE, CART_ITEM_LIMIT); aborted (PRICE_MISMATCH, the live\nprice in `details.currentPrice`).",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartCreateResponse"
                }
              }
            }
          },
          "400": {
            "description": "invalidArgument (BAD_REQUEST); notFound (INVALID_PRODUCT_ID); failedPrecondition (PRODUCT_NOT_CARTABLE, CART_ITEM_LIMIT); aborted (PRICE_MISMATCH, the live price in `details.currentPrice`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "invalidArgument (BAD_REQUEST); notFound (INVALID_PRODUCT_ID); failedPrecondition (PRODUCT_NOT_CARTABLE, CART_ITEM_LIMIT); aborted (PRICE_MISMATCH, the live price in `details.currentPrice`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CartCreateRequestBody"
              }
            }
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/carts/{cartId}/items/{itemId}": {
      "delete": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_cartItemRemove",
        "summary": "Remove a line.",
        "description": "Remove a line. Removing the last one keeps the cart, with `itemCount: 0`.\n\n**Errors:** notFound (INVALID_PRODUCT_ID) when the cart has no such line;\nfailedPrecondition (CART_ABANDONED) for a cart you abandoned.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartItemRemoveResponse"
                }
              }
            }
          },
          "400": {
            "description": "notFound (INVALID_PRODUCT_ID) when the cart has no such line; failedPrecondition (CART_ABANDONED) for a cart you abandoned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "notFound (INVALID_PRODUCT_ID) when the cart has no such line; failedPrecondition (CART_ABANDONED) for a cart you abandoned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "cartId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      },
      "patch": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_cartItemUpdate",
        "summary": "Set a line's quantity (1-100).",
        "description": "Set a line's quantity (1-100). The quantity is absolute, not a change, so a retry is safe.\n`itemId` is the line's id, which equals its `optionId`.\n\n**Errors:** notFound (INVALID_PRODUCT_ID) when the cart has no such line;\naborted (PRICE_MISMATCH) when `expectedPrice` is stale; failedPrecondition (CART_ABANDONED)\nfor a cart you abandoned.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartItemUpdateResponse"
                }
              }
            }
          },
          "400": {
            "description": "notFound (INVALID_PRODUCT_ID) when the cart has no such line; aborted (PRICE_MISMATCH) when `expectedPrice` is stale; failedPrecondition (CART_ABANDONED) for a cart you abandoned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "notFound (INVALID_PRODUCT_ID) when the cart has no such line; aborted (PRICE_MISMATCH) when `expectedPrice` is stale; failedPrecondition (CART_ABANDONED) for a cart you abandoned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "cartId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CartItemUpdateRequestBody"
              }
            }
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/carts/{cartId}/items": {
      "post": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_cartItemsAdd",
        "summary": "Add items.",
        "description": "Add items. Send an `Idempotency-Key` header (8 to 200 characters, one per add you mean) and a\nretry is safe: the same key with the same items, on the same cart, within 24 hours, answers the\nfirst answer and never adds the items twice. Without a key the add is not idempotent: on a\ntimeout, read the cart and add only what is missing; never retry blindly.\nA 200 does not promise every item was added: compare `items` with what you asked for and read\n`messages` for `item_declined`.\n\n**Errors:** as for creating a cart, plus notFound (INVALID_CART_ID) and\nfailedPrecondition (CART_ABANDONED) for a cart you abandoned.\n**Errors:** invalidArgument (BAD_REQUEST) for an `Idempotency-Key` outside 8 to 200\ncharacters.\n**Errors:** failedPrecondition (IDEMPOTENCY_KEY_REUSED) when the key was already used on\nthis cart with other items: nothing was added; send a new key for a new add.\n**Errors:** failedPrecondition (IDEMPOTENCY_KEY_IN_PROGRESS) while the first add with the\nkey still runs: nothing was added; retry the same request shortly.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartItemsAddResponse"
                }
              }
            }
          },
          "400": {
            "description": "as for creating a cart, plus notFound (INVALID_CART_ID) and failedPrecondition (CART_ABANDONED) for a cart you abandoned.\ninvalidArgument (BAD_REQUEST) for an `Idempotency-Key` outside 8 to 200 characters.\nfailedPrecondition (IDEMPOTENCY_KEY_REUSED) when the key was already used on this cart with other items: nothing was added; send a new key for a new add.\nfailedPrecondition (IDEMPOTENCY_KEY_IN_PROGRESS) while the first add with the key still runs: nothing was added; retry the same request shortly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "as for creating a cart, plus notFound (INVALID_CART_ID) and failedPrecondition (CART_ABANDONED) for a cart you abandoned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "cartId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "idempotency-key",
            "in": "header",
            "description": "Your own key for this add, 8 to 200 characters: reuse it when you retry the same add, and the\nadd runs once. Optional; without it the add is not idempotent.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CartItemsAddRequestBody"
              }
            }
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/categories": {
      "get": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_categoriesList",
        "summary": "Every category path of the deals on sale in your scope, by path: send its `category0`, `category1` or `category2` as the filter of the same name on the products walk or the search.",
        "description": "Every category path of the deals on sale in your scope, by path: send its `category0`,\n`category1` or `category2` as the filter of the same name on the products walk or the search.\n`products` counts the deals on sale under exactly that path now. Read it once a day; it changes\nas deals come and go.\n\n**Returns:** `categories`, every path once.\n**Errors:** resourceExhausted (RATE_LIMITED); unavailable (UPSTREAM_UNAVAILABLE) when the\ncatalog cannot be read right now.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerCategoriesListResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/APIError"
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "429": {
            "description": "resourceExhausted (RATE_LIMITED); unavailable (UPSTREAM_UNAVAILABLE) when the catalog cannot be read right now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/products/{productId}/availability": {
      "get": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_productAvailability",
        "summary": "The free slots of a product booked on groupon.com (its options carry a `bookingUrl`), for the next seven days or the days you name: `date` for one day, or `dateFrom` and `dateTo` for up to seven days, at the venue.",
        "description": "The free slots of a product booked on groupon.com (its options carry a `bookingUrl`), for the\nnext seven days or the days you name: `date` for one day, or `dateFrom` and `dateTo` for up to\nseven days, at the venue. Each slot carries its start time at the venue, the places left, the\nprice of one ticket and a `bookingUrl`, which opens Groupon's booking page with the option chosen:\nthe shopper picks the day and time there and pays. The slots are read from Groupon's booking\ncalendar and kept for a few minutes; they are seen, never held, so one can go before the shopper\nbooks it. An option whose calendar cannot be read right now is `unknown`: never show it as sold out.\nEvery price is the slot price before Groupon's taxes and fees, which Groupon adds at its checkout\n(`priceNote` says so): never state a total.\n\n**Returns:** the product's free slots, and `priceNote`.\n**Errors:** invalidArgument (BAD_REQUEST) for an id that is not a uuid, or days that are\nnot real `YYYY-MM-DD` days, span more than seven days, fall outside yesterday to 60 days ahead,\nor mix `date` with `dateFrom`; notFound\n(INVALID_PRODUCT_ID) for a product this storefront cannot read; resourceExhausted (RATE_LIMITED).",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductAvailabilityResponse"
                }
              }
            }
          },
          "400": {
            "description": "invalidArgument (BAD_REQUEST) for an id that is not a uuid, or days that are not real `YYYY-MM-DD` days, span more than seven days, fall outside yesterday to 60 days ahead, or mix `date` with `dateFrom`; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; resourceExhausted (RATE_LIMITED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "invalidArgument (BAD_REQUEST) for an id that is not a uuid, or days that are not real `YYYY-MM-DD` days, span more than seven days, fall outside yesterday to 60 days ahead, or mix `date` with `dateFrom`; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; resourceExhausted (RATE_LIMITED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "invalidArgument (BAD_REQUEST) for an id that is not a uuid, or days that are not real `YYYY-MM-DD` days, span more than seven days, fall outside yesterday to 60 days ahead, or mix `date` with `dateFrom`; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; resourceExhausted (RATE_LIMITED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date",
            "in": "query",
            "description": "One day, `YYYY-MM-DD` at the venue. Not with `dateFrom` or `dateTo`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dateFrom",
            "in": "query",
            "description": "The first day, `YYYY-MM-DD` at the venue; the next seven days when neither this nor `date` is given.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dateTo",
            "in": "query",
            "description": "The last day, included, at most six days after `dateFrom`; `dateFrom` alone when absent. Needs `dateFrom`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/products/{productId}": {
      "get": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_productGet",
        "summary": "One product, on sale or sold out, as the walk answers it: refresh a stored product, or check one before you put it in front of a shopper.",
        "description": "One product, on sale or sold out, as the walk answers it: refresh a stored product, or check one\nbefore you put it in front of a shopper. Read on its own, it also carries the deal's customer\nreviews (`reviews`): the newest as the shoppers wrote them (5 by default, up to 20 with\n`latestReviews`), how many give each star, and a summary a model wrote from the newest 50, with\nwhat it read and which model wrote it. Show reviews as customers' words and the summary as a\ngenerated summary. A block is null when nothing stands behind it (no summary under 5 reviews).\n\n**Returns:** the product.\n**Errors:** invalidArgument (BAD_REQUEST) for an id that is not a uuid or a `latestReviews`\noutside 1 to 20; notFound\n(INVALID_PRODUCT_ID) for a product this storefront cannot read; resourceExhausted (RATE_LIMITED).",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductGetResponse"
                }
              }
            }
          },
          "400": {
            "description": "invalidArgument (BAD_REQUEST) for an id that is not a uuid or a `latestReviews` outside 1 to 20; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; resourceExhausted (RATE_LIMITED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "invalidArgument (BAD_REQUEST) for an id that is not a uuid or a `latestReviews` outside 1 to 20; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; resourceExhausted (RATE_LIMITED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "invalidArgument (BAD_REQUEST) for an id that is not a uuid or a `latestReviews` outside 1 to 20; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; resourceExhausted (RATE_LIMITED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "latestReviews",
            "in": "query",
            "description": "How many of the deal's newest reviews `reviews.latest` carries, 1 to 20; 5 when absent.",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/products/{productId}/holds": {
      "post": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_productHoldCreate",
        "summary": "Hold the tickets of one free slot of a product booked on groupon.com, so the shopper pays for exactly that day and time.",
        "description": "Hold the tickets of one free slot of a product booked on groupon.com, so the shopper pays for\nexactly that day and time. Name the option (`optionId`), the slot (`date`, and its `time`, null\nfor a day or an open-day ticket) and the tickets (each `ticketTypeId` from the slot's `tickets`,\nwith a `quantity`; at most 20 in all), as the product's availability lists them. Groupon reads its\ncalendar again, holds the seats for 15 minutes (`expiresAt`; nothing releases a hold earlier) and\nanswers the price of each ticket and `bookingUrl`, groupon.com's page where the shopper pays for\nthis hold: send the shopper there unchanged, only when they are about to pay, and hold at most one\nslot per shopper at a time. With a confirmed CJ publisher id, `bookingUrl` is CJ's click link around\nthat page, as a cart's `buyLink` is, with the hold's id as its `sid`. At most 20 holds of your\nstorefront are open at once.\n\n`idempotencyKey`: a value you make once for this shopper's choice (8 to 200 characters) and reuse\nwhen you retry it: the same key and the same slot and tickets answer the same hold, never a second\none. A changed choice holds anew. `validateOnly: true` checks the slot and prices the tickets\nwithout holding anything (`status: validated`, `bookingUrl` Groupon's booking page for the option).\n\nEvery refusal the shopper can book around (HOLDS_NOT_AVAILABLE, SLOT_NOT_AVAILABLE, HOLD_REFUSED)\ncarries `details.bookingUrl`, Groupon's booking page for the option, where they pick the slot and pay.\n\n**Returns:** the hold, or its check.\n**Errors:** invalidArgument (BAD_REQUEST) for an id that is not a uuid, an option of the\nproduct not booked on groupon.com, a day that is not a real `YYYY-MM-DD` day from yesterday to\n60 days ahead, a time not written `HH:mm`, a ticket type named twice or more than 20 tickets;\nnotFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; failedPrecondition\n(HOLDS_NOT_AVAILABLE; SLOT_NOT_AVAILABLE with `details.reason`, the start, a ticket type or the\nplaces gone, never repeat that slot as it is; HOLD_REFUSED, the ticket cannot be held here),\neach with `details.bookingUrl`; aborted (HOLD_IN_PROGRESS): repeat the same request after\n`details.retryAfterSeconds`; resourceExhausted (RATE_LIMITED; OPEN_HOLDS_LIMIT past 20 open holds\nof the storefront, with `details.retryAfterSeconds` until the oldest lapses); unavailable (UPSTREAM_UNAVAILABLE):\nrepeat the same request, it never holds twice.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductHoldCreateResponse"
                }
              }
            }
          },
          "400": {
            "description": "invalidArgument (BAD_REQUEST) for an id that is not a uuid, an option of the product not booked on groupon.com, a day that is not a real `YYYY-MM-DD` day from yesterday to 60 days ahead, a time not written `HH:mm`, a ticket type named twice or more than 20 tickets; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; failedPrecondition (HOLDS_NOT_AVAILABLE; SLOT_NOT_AVAILABLE with `details.reason`, the start, a ticket type or the places gone, never repeat that slot as it is; HOLD_REFUSED, the ticket cannot be held here), each with `details.bookingUrl`; aborted (HOLD_IN_PROGRESS): repeat the same request after `details.retryAfterSeconds`; resourceExhausted (RATE_LIMITED; OPEN_HOLDS_LIMIT past 20 open holds of the storefront, with `details.retryAfterSeconds` until the oldest lapses); unavailable (UPSTREAM_UNAVAILABLE): repeat the same request, it never holds twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "invalidArgument (BAD_REQUEST) for an id that is not a uuid, an option of the product not booked on groupon.com, a day that is not a real `YYYY-MM-DD` day from yesterday to 60 days ahead, a time not written `HH:mm`, a ticket type named twice or more than 20 tickets; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; failedPrecondition (HOLDS_NOT_AVAILABLE; SLOT_NOT_AVAILABLE with `details.reason`, the start, a ticket type or the places gone, never repeat that slot as it is; HOLD_REFUSED, the ticket cannot be held here), each with `details.bookingUrl`; aborted (HOLD_IN_PROGRESS): repeat the same request after `details.retryAfterSeconds`; resourceExhausted (RATE_LIMITED; OPEN_HOLDS_LIMIT past 20 open holds of the storefront, with `details.retryAfterSeconds` until the oldest lapses); unavailable (UPSTREAM_UNAVAILABLE): repeat the same request, it never holds twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "invalidArgument (BAD_REQUEST) for an id that is not a uuid, an option of the product not booked on groupon.com, a day that is not a real `YYYY-MM-DD` day from yesterday to 60 days ahead, a time not written `HH:mm`, a ticket type named twice or more than 20 tickets; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; failedPrecondition (HOLDS_NOT_AVAILABLE; SLOT_NOT_AVAILABLE with `details.reason`, the start, a ticket type or the places gone, never repeat that slot as it is; HOLD_REFUSED, the ticket cannot be held here), each with `details.bookingUrl`; aborted (HOLD_IN_PROGRESS): repeat the same request after `details.retryAfterSeconds`; resourceExhausted (RATE_LIMITED; OPEN_HOLDS_LIMIT past 20 open holds of the storefront, with `details.retryAfterSeconds` until the oldest lapses); unavailable (UPSTREAM_UNAVAILABLE): repeat the same request, it never holds twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductHoldCreateRequestBody"
              }
            }
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/products/{productId}/stays": {
      "get": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_productStays",
        "summary": "The rooms of a hotel stay (`hotelStay: true`) for the dates you name: `checkIn` and `checkOut` (`YYYY-MM-DD`, 1 to 28 nights, check-in from yesterday to a year ahead) and, for a market-rate stay, one room's guests: `adults` (1 to 4, 2 by default) and `children` (up to 2 ages from 0 to 17, `4,9`).",
        "description": "The rooms of a hotel stay (`hotelStay: true`) for the dates you name: `checkIn` and `checkOut`\n(`YYYY-MM-DD`, 1 to 28 nights, check-in from yesterday to a year ahead) and, for a market-rate\nstay, one room's guests: `adults` (1 to 4, 2 by default) and `children` (up to 2 ages from 0 to\n17, `4,9`). `kind` says which of Groupon's two hotel inventories sells the stay: `market_rate`,\nwhere a hotel partner prices every room for the guests you name, or `contracted`, Groupon's own\ncontract with the hotel, where the guests are always 2 adults and no children (`guests`, `fixed`\ntrue) and the guests you name make no difference. `rooms` lists every room the shopper can book\nfor the stay, cheapest first. Each room carries its price for the whole stay before taxes and\nfees (for a contracted room, the sum of its nights at the contracted rate), for a market-rate\nroom its `total` with taxes and every fee and, of that, the fees paid at the hotel\n(`payAtHotel`), each night's rate, the cancellation terms and a `bookingUrl`: Groupon's checkout\nfor that room, dates and guests, where the shopper pays, tagged with your storefront and, with a\nCJ publisher id, wrapped in CJ's click link. For a contracted stay, `unavailableRooms` lists the\noptions that cannot be booked for those dates with each night's `available` flag, so you can\ntell the shopper which nights are sold out or closed. Rooms are read live from Groupon and kept\na few minutes; they are seen, never held. A stay whose rooms cannot be read right now is\n`unknown`: never show it as fully booked, hand the shopper the product's `bookingUrl`, where\nthey pick the dates on groupon.com.\n\n**Returns:** the stay's rooms, and `priceNote`.\n**Errors:** invalidArgument (BAD_REQUEST) for an id that is not a uuid, a product that is\nnot a hotel stay, dates that are not real `YYYY-MM-DD` days, a check-out not after the check-in,\na stay over 28 nights or out of reach, or guests outside 1 to 4 adults and 2 children aged 0 to\n17; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; resourceExhausted\n(RATE_LIMITED).",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductStaysResponse"
                }
              }
            }
          },
          "400": {
            "description": "invalidArgument (BAD_REQUEST) for an id that is not a uuid, a product that is not a hotel stay, dates that are not real `YYYY-MM-DD` days, a check-out not after the check-in, a stay over 28 nights or out of reach, or guests outside 1 to 4 adults and 2 children aged 0 to 17; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; resourceExhausted (RATE_LIMITED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "404": {
            "description": "invalidArgument (BAD_REQUEST) for an id that is not a uuid, a product that is not a hotel stay, dates that are not real `YYYY-MM-DD` days, a check-out not after the check-in, a stay over 28 nights or out of reach, or guests outside 1 to 4 adults and 2 children aged 0 to 17; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; resourceExhausted (RATE_LIMITED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "invalidArgument (BAD_REQUEST) for an id that is not a uuid, a product that is not a hotel stay, dates that are not real `YYYY-MM-DD` days, a check-out not after the check-in, a stay over 28 nights or out of reach, or guests outside 1 to 4 adults and 2 children aged 0 to 17; notFound (INVALID_PRODUCT_ID) for a product this storefront cannot read; resourceExhausted (RATE_LIMITED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "adults",
            "in": "query",
            "description": "Adults in the room of a market-rate stay, 1 to 4; 2 when absent. A contracted stay is always 2 adults.",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "checkIn",
            "in": "query",
            "description": "The check-in day, `YYYY-MM-DD`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "checkOut",
            "in": "query",
            "description": "The check-out day, `YYYY-MM-DD`, 1 to 28 nights after `checkIn`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "children",
            "in": "query",
            "description": "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 has no children.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/products": {
      "get": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_productsList",
        "summary": "One page of deals.",
        "description": "One page of deals. To find deals for a shopper, search instead (`GET\n/partner_storefront/products/search`); walk when you keep a copy of the whole catalog: in full at\nleast every 8 hours, and in between only what changed with `updatedSince`. Send every other\nparameter unchanged on every page of one walk and pass `nextCursor` back as `cursor` until\n`hasMore` is false. `timestamp` is on the final page only. A walk without `updatedSince`\nanswers deals on sale or sold out; with it, every change, expired deals included.\n\n**Returns:** one page: `data`, `nextCursor`, `hasMore`, and on the last page `timestamp`.\n**Errors:** invalidArgument (BAD_REQUEST) for a bad filter or cursor; permissionDenied\n(FORBIDDEN) outside the storefront's scope; resourceExhausted (RATE_LIMITED); unavailable\n(UPSTREAM_UNAVAILABLE).",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductsListResponse"
                }
              }
            }
          },
          "400": {
            "description": "invalidArgument (BAD_REQUEST) for a bad filter or cursor; permissionDenied (FORBIDDEN) outside the storefront's scope; resourceExhausted (RATE_LIMITED); unavailable (UPSTREAM_UNAVAILABLE).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "403": {
            "description": "invalidArgument (BAD_REQUEST) for a bad filter or cursor; permissionDenied (FORBIDDEN) outside the storefront's scope; resourceExhausted (RATE_LIMITED); unavailable (UPSTREAM_UNAVAILABLE).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "invalidArgument (BAD_REQUEST) for a bad filter or cursor; permissionDenied (FORBIDDEN) outside the storefront's scope; resourceExhausted (RATE_LIMITED); unavailable (UPSTREAM_UNAVAILABLE).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "active",
            "in": "query",
            "description": "true for deals on sale only, false for sold-out and expired ones only. Never send it on a delta walk: you need the deactivations.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "category0",
            "in": "query",
            "description": "Category permalink at depth 0: `local`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category1",
            "in": "query",
            "description": "Category permalink at depth 1, such as `things-to-do`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category2",
            "in": "query",
            "description": "Category permalink at depth 2, such as `massage`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "ISO 3166-1 alpha-2: `US` or `CA`, as your storefront's registration lists them (`GET /partner_storefront/me`).\nA Canadian product is priced in CAD and bought on its groupon.com page (`bookingUrl`), never in a cart.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque boundary from the previous page's `nextCursor`. Omitted for the first page.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Page size. Clamped by the repository to `CURSOR_PAGINATION_DEFAULTS.maxLimit`.",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "state",
            "in": "query",
            "description": "Full US state name, exactly as listed (case-sensitive), such as `Illinois`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "updatedSince",
            "in": "query",
            "description": "Only deals whose price, content or status changed at or after this instant (the previous walk's `timestamp`).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/products/search": {
      "get": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_productsSearch",
        "summary": "One page of the deals that match the shopper's words, best first: send `q` (a place in the words is read: `massage in Chicago`), narrow with `city` or `near` (a radius in km or mi), `minPrice` and `maxPrice`, `minRating` (only merchants rated at least this), a category (`GET /partner_storefront/categories` lists yours) or a state inside your scope, order them with `sort` (`rating`, `price_asc`, `price_desc`; Groupon's relevance when absent), and pass `nextCursor` back as `cursor` with the same parameters until `hasMore` is false.",
        "description": "One page of the deals that match the shopper's words, best first: send `q` (a place in the words\nis read: `massage in Chicago`), narrow with `city` or `near` (a radius in km or mi), `minPrice`\nand `maxPrice`, `minRating` (only merchants rated at least this), a category\n(`GET /partner_storefront/categories` lists yours) or a state inside your scope, order them with\n`sort` (`rating`, `price_asc`, `price_desc`; Groupon's relevance when absent), and pass\n`nextCursor` back as `cursor` with the same parameters until `hasMore` is false. A cursor works\nfor 15 minutes; after that, search again and skip the products you already hold by `id`. Each hit\nis the same product the walk answers, with `distanceKm` and `distanceMiles` when you sent `near`.\n\n**Returns:** one page: `data`, `nextCursor`, `hasMore`, `total` (the matches inside your scope), `asOf`\nand `scope` (what was searched: a search no place names is ranked around Chicago, as groupon.com\nranks one).\n**Errors:** invalidArgument (BAD_REQUEST) for bad words, a bad filter, a `minRating`\noutside 0 to 5, or a cursor of another search or older than 15 minutes; invalidArgument without\n`details.error` for a `sort` that is not one of the four, refused before the call; permissionDenied (FORBIDDEN) outside the storefront's scope; resourceExhausted\n(RATE_LIMITED); unavailable (UPSTREAM_UNAVAILABLE) when Groupon's search cannot answer.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductsSearchResponse"
                }
              }
            }
          },
          "400": {
            "description": "invalidArgument (BAD_REQUEST) for bad words, a bad filter, a `minRating` outside 0 to 5, or a cursor of another search or older than 15 minutes; invalidArgument without `details.error` for a `sort` that is not one of the four, refused before the call; permissionDenied (FORBIDDEN) outside the storefront's scope; resourceExhausted (RATE_LIMITED); unavailable (UPSTREAM_UNAVAILABLE) when Groupon's search cannot answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "403": {
            "description": "invalidArgument (BAD_REQUEST) for bad words, a bad filter, a `minRating` outside 0 to 5, or a cursor of another search or older than 15 minutes; invalidArgument without `details.error` for a `sort` that is not one of the four, refused before the call; permissionDenied (FORBIDDEN) outside the storefront's scope; resourceExhausted (RATE_LIMITED); unavailable (UPSTREAM_UNAVAILABLE) when Groupon's search cannot answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "invalidArgument (BAD_REQUEST) for bad words, a bad filter, a `minRating` outside 0 to 5, or a cursor of another search or older than 15 minutes; invalidArgument without `details.error` for a `sort` that is not one of the four, refused before the call; permissionDenied (FORBIDDEN) outside the storefront's scope; resourceExhausted (RATE_LIMITED); unavailable (UPSTREAM_UNAVAILABLE) when Groupon's search cannot answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "category0",
            "in": "query",
            "description": "Category permalink at depth 0, such as `local`: one `GET /partner_storefront/categories` lists.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category1",
            "in": "query",
            "description": "Category permalink at depth 1, such as `things-to-do`: one `GET /partner_storefront/categories` lists.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category2",
            "in": "query",
            "description": "Category permalink at depth 2, such as `massage`: one `GET /partner_storefront/categories` lists.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "description": "A city of the `country` searched, used when the words name no place. It matches the whole city\nname, capitals and accents ignored (`montreal` finds Montréal), never part of a name and no\nwildcards; named alone, it is the town of that name with the most offers on sale in `country`. A state may follow: a two-letter code (`Portland OR`,\n`Portland, OR`) or a full name after a comma (`Portland, Oregon`), and only that city in that\nstate is then searched, keeping a place whose state is not on record; anything else after the\ncomma is ignored.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "ISO 3166-1 alpha-2: `US` or `CA`, as your storefront's registration lists them (`GET /partner_storefront/me`).\nA Canadian product is priced in CAD and bought on its groupon.com page (`bookingUrl`), never in a cart.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque boundary from the previous page's `nextCursor`. Omitted for the first page.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Page size. Clamped by the repository to `CURSOR_PAGINATION_DEFAULTS.maxLimit`.",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxPrice",
            "in": "query",
            "description": "Whole US dollars: only deals with an option at or under it.",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "minPrice",
            "in": "query",
            "description": "Whole US dollars: only deals with an option at or above it; with `maxPrice`, one option inside both.",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "minRating",
            "in": "query",
            "description": "Only deals whose merchant is rated at least this, 0 to 5, as `merchantRating.average` reads\n(`4.5`); a deal with no rating is left out.",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "near",
            "in": "query",
            "description": "`lat,lng,radius`: the radius in kilometres (`41.88,-87.63,10` or `...,10km`) or in miles with\n`mi` (`41.88,-87.63,6mi`), at most 200 km (124 mi). Closer deals rank higher, and each hit\ncarries `distanceKm` and `distanceMiles`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "The shopper's words, 1 to 200 characters, such as `massage` or `massage in Chicago`. The words `deal` and `deals` are not ranked.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "How the hits are ordered: `relevance` (the default), `rating` (the merchant's rating, best\nfirst), `price_asc` or `price_desc` (by the price Groupon's search holds for the deal, which can\ntrail its live price, so a neighbour now and then sits a little out of order). A cursor belongs\nto one sort; any other value is refused with 400 before the search runs.",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ProductSearchSort"
            }
          },
          {
            "name": "state",
            "in": "query",
            "description": "Full US state name, exactly as listed (case-sensitive), such as `Illinois`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/partner_storefront/me": {
      "get": {
        "tags": [
          "partner_storefront"
        ],
        "operationId": "partner_storefront_storefrontMe",
        "summary": "Read your storefront's registration: its partner id, scope, logo and redirect URL, CJ publisher id and status.",
        "description": "Read your storefront's registration: its partner id, scope, logo and redirect URL, CJ\npublisher id and status. Use it to confirm a key is the storefront you think it is.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontMeResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/APIError"
          },
          "401": {
            "$ref": "#/components/responses/APIError"
          },
          "500": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "parameters": [
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "A UUID you make per request. Groupon echoes it back as `details.requestId` in every error body that carries `details.error`; a value that is not a UUID is replaced by one Groupon makes.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "SortDirection": {
        "type": "string",
        "enum": [
          "asc",
          "desc"
        ]
      },
      "AvailabilityKind": {
        "type": "object"
      },
      "AvailabilityStatus": {
        "type": "object"
      },
      "BookingStatus": {
        "type": "string",
        "enum": [
          "ON_HOLD",
          "PENDING",
          "CONFIRMED",
          "REDEEMED",
          "REFUNDED",
          "REJECTED",
          "EXPIRED",
          "CANCELLED"
        ]
      },
      "CodeWithheldReason": {
        "type": "string",
        "enum": [
          "not_issued",
          "third_party_inventory",
          "unsupported_region"
        ]
      },
      "HotelStayKind": {
        "type": "string",
        "enum": [
          "market_rate",
          "contracted"
        ]
      },
      "LsOfferBookingKind": {
        "type": "string",
        "enum": [
          "bookable_with_live_times",
          "no_time_held",
          "stay",
          "shipped"
        ]
      },
      "PriceCertainty": {
        "type": "string",
        "enum": [
          "final",
          "estimate",
          "added_at_checkout"
        ]
      },
      "ProductHoldStatus": {
        "type": "string",
        "enum": [
          "held",
          "validated"
        ]
      },
      "ProductSearchSort": {
        "type": "string",
        "enum": [
          "relevance",
          "rating",
          "price_asc",
          "price_desc"
        ]
      },
      "PurchaseCancelRefusal": {
        "type": "string",
        "enum": [
          "already_cancelled",
          "redeemed",
          "not_eligible",
          "not_readable",
          "refused_by_groupon"
        ]
      },
      "PurchaseCancelState": {
        "type": "string",
        "enum": [
          "cancellable",
          "not_cancellable",
          "already_cancelled",
          "cancelled",
          "cancel_failed"
        ]
      },
      "SearchScopeKind": {
        "type": "string",
        "enum": [
          "words",
          "near",
          "city",
          "default",
          "national",
          "outside_market"
        ]
      },
      "CurrencyCodeString": {
        "type": "string"
      },
      "IsoDateString": {
        "type": "string"
      },
      "BookingCancelResponse": {
        "type": "object",
        "properties": {
          "bookingId": {
            "type": "string",
            "description": "The order, or the booked time, as named in the path."
          },
          "state": {
            "$ref": "#/components/schemas/PurchaseCancelState"
          },
          "grouponOrderReference": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's order number, the one in Groupon's mail and the shopper's My Groupon (`1000-...`): what\nthe shopper quotes to Groupon's customer support. Null when Groupon gave none."
          },
          "changed": {
            "type": "boolean",
            "description": "True when this call changed something at Groupon."
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PurchaseCancelAmountDTO"
              }
            ],
            "nullable": true,
            "description": "The price Groupon recorded for what a cancel covers: what the shopper confirms. Null without a single currency."
          },
          "units": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BookingCancelUnit"
            }
          },
          "note": {
            "type": "string",
            "description": "One sentence for the shopper: what happened or what Groupon's rule is, and what to do next."
          },
          "helpUrl": {
            "type": "string",
            "description": "Groupon's customer support, for anything this cancel cannot do."
          }
        },
        "required": [
          "bookingId",
          "state",
          "grouponOrderReference",
          "changed",
          "amount",
          "units",
          "note",
          "helpUrl"
        ]
      },
      "BookingCodesIssueResponse": {
        "type": "object",
        "properties": {
          "bookingId": {
            "type": "string",
            "description": "The order: the `grouponOrderUuid` Groupon adds to the redirect URL."
          },
          "codes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BookingCode"
            }
          },
          "withheld": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BookingWithheldUnit"
            }
          }
        },
        "required": [
          "bookingId",
          "codes",
          "withheld"
        ]
      },
      "BookingGetResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The `grouponOrderUuid` Groupon adds to the redirect URL."
          },
          "purchaserId": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's id of the account that paid for the order. Keep it to recognise the same buyer's\nlater orders, or quote it to Groupon's support: it identifies a buyer, it grants nothing. null\nwhen Groupon names none."
          },
          "status": {
            "type": "string",
            "description": "Known values: ON_HOLD, PENDING (poll again); CONFIRMED, REDEEMED (paid); REFUNDED (paid, then\nrefunded by Groupon); REJECTED (Groupon declined the payment, its fraud review included: with\nthe shopper back on your site, a new cart with the same lines lets them pay again); EXPIRED\n(not paid); CANCELLED (paid, then cancelled before Groupon took the money: nothing was\ncharged). Treat any other value as unresolved."
          },
          "grouponOrderReference": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's order number, the one in Groupon's mail and the shopper's My Groupon (`1000-...`):\nwhat the shopper quotes to Groupon's customer support. Null when Groupon gives none."
          },
          "supplierReference": {
            "type": "string",
            "nullable": true,
            "description": "The same number as `grouponOrderReference`, under the name Groupon's booking answer gives it."
          },
          "clientReference": {
            "type": "string",
            "nullable": true,
            "description": "Your own reference of the cart the order was placed from, as you sent it on the cart; null when you sent none."
          },
          "createdAt": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BookingItem"
            }
          }
        },
        "required": [
          "id",
          "purchaserId",
          "status",
          "grouponOrderReference",
          "supplierReference",
          "clientReference",
          "createdAt",
          "items"
        ]
      },
      "BookingsListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BookingSummary"
            }
          },
          "pagination": {
            "type": "object"
          },
          "total": {
            "type": "number"
          },
          "offset": {
            "type": "number"
          },
          "limit": {
            "type": "number"
          }
        },
        "required": [
          "data",
          "pagination",
          "total",
          "offset",
          "limit"
        ]
      },
      "CartCreateResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "Known values: ACTIVE (it can be paid), CHECKED_OUT (Groupon placed an order from it),\nABANDONED (you abandoned it), LOCKED, EXPIRED."
          },
          "buyLink": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's checkout for this cart, null once the cart is not ACTIVE: once it names an order, or\nafter you abandoned it. Use the latest one verbatim as the Buy now link. For a shopper back on\nyour site after a REJECTED or EXPIRED order, create a new cart with the same lines and use its\n`buyLink`. It carries\n`utm_source=LS_AI`, `utm_medium=partner` and `utm_campaign` set to your storefront's id, so\nGroupon counts the orders your shoppers place. With a confirmed CJ publisher id on the storefront\nit is CJ's click link around that checkout, which credits the sale to that publisher; the\ncheckout inside then carries `utm_source=cj`, `utm_medium=afl` and\n`utm_campaign=LS_AI_partner_<storefront id>`, the form Groupon reports to CJ, and the same\nmarker in `utm_content`: CJ's redirect replaces the campaign with its own and leaves\n`utm_content`, so Groupon still sees your storefront. The click's SID is the cart's id."
          },
          "country": {
            "type": "string"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCodeString"
          },
          "clientReference": {
            "type": "string",
            "nullable": true,
            "description": "Your own reference of the cart, as you sent it when you created it (your user's or your\norder's id): answered on every read of the cart, on its order and in your order list, and never\nsent to Groupon. Null when you sent none."
          },
          "itemCount": {
            "type": "number"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartLine"
            }
          },
          "totals": {
            "$ref": "#/components/schemas/CartTotals"
          },
          "priceBreakdown": {
            "$ref": "#/components/schemas/PriceBreakdown"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartMessage"
            }
          },
          "createdAt": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "nullable": true
          },
          "grouponOrderUuid": {
            "type": "string",
            "nullable": true,
            "description": "The order Groupon recorded on this cart (the status then reads `CHECKED_OUT`); null until\nthen, and null where Groupon does not record one for this cart. Read it with\n`GET /partner_storefront/bookings/:bookingId`: `CONFIRMED` is the sale, made without the\nshopper coming back. The order named is the first one the shopper's browser placed within 24\nhours of the cart, which can be a different purchase, or the newest order placed from this\ncart's checkout that Groupon marked with the cart's id, which takes the place of any order\nnamed before it. So match its items to the cart's before you trust it, and keep the return\nredirect as the way you learn any other outcome. After a card decline, Groupon's decline page\nmay take another payment on this cart while it keeps naming the declined order: never ask the\nshopper to pay again on a `REJECTED` read of the cart alone."
          }
        },
        "required": [
          "id",
          "status",
          "buyLink",
          "country",
          "currency",
          "clientReference",
          "itemCount",
          "items",
          "totals",
          "priceBreakdown",
          "messages",
          "createdAt",
          "updatedAt",
          "expiresAt",
          "grouponOrderUuid"
        ]
      },
      "CartGetResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "Known values: ACTIVE (it can be paid), CHECKED_OUT (Groupon placed an order from it),\nABANDONED (you abandoned it), LOCKED, EXPIRED."
          },
          "buyLink": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's checkout for this cart, null once the cart is not ACTIVE: once it names an order, or\nafter you abandoned it. Use the latest one verbatim as the Buy now link. For a shopper back on\nyour site after a REJECTED or EXPIRED order, create a new cart with the same lines and use its\n`buyLink`. It carries\n`utm_source=LS_AI`, `utm_medium=partner` and `utm_campaign` set to your storefront's id, so\nGroupon counts the orders your shoppers place. With a confirmed CJ publisher id on the storefront\nit is CJ's click link around that checkout, which credits the sale to that publisher; the\ncheckout inside then carries `utm_source=cj`, `utm_medium=afl` and\n`utm_campaign=LS_AI_partner_<storefront id>`, the form Groupon reports to CJ, and the same\nmarker in `utm_content`: CJ's redirect replaces the campaign with its own and leaves\n`utm_content`, so Groupon still sees your storefront. The click's SID is the cart's id."
          },
          "country": {
            "type": "string"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCodeString"
          },
          "clientReference": {
            "type": "string",
            "nullable": true,
            "description": "Your own reference of the cart, as you sent it when you created it (your user's or your\norder's id): answered on every read of the cart, on its order and in your order list, and never\nsent to Groupon. Null when you sent none."
          },
          "itemCount": {
            "type": "number"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartLine"
            }
          },
          "totals": {
            "$ref": "#/components/schemas/CartTotals"
          },
          "priceBreakdown": {
            "$ref": "#/components/schemas/PriceBreakdown"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartMessage"
            }
          },
          "createdAt": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "nullable": true
          },
          "grouponOrderUuid": {
            "type": "string",
            "nullable": true,
            "description": "The order Groupon recorded on this cart (the status then reads `CHECKED_OUT`); null until\nthen, and null where Groupon does not record one for this cart. Read it with\n`GET /partner_storefront/bookings/:bookingId`: `CONFIRMED` is the sale, made without the\nshopper coming back. The order named is the first one the shopper's browser placed within 24\nhours of the cart, which can be a different purchase, or the newest order placed from this\ncart's checkout that Groupon marked with the cart's id, which takes the place of any order\nnamed before it. So match its items to the cart's before you trust it, and keep the return\nredirect as the way you learn any other outcome. After a card decline, Groupon's decline page\nmay take another payment on this cart while it keeps naming the declined order: never ask the\nshopper to pay again on a `REJECTED` read of the cart alone."
          }
        },
        "required": [
          "id",
          "status",
          "buyLink",
          "country",
          "currency",
          "clientReference",
          "itemCount",
          "items",
          "totals",
          "priceBreakdown",
          "messages",
          "createdAt",
          "updatedAt",
          "expiresAt",
          "grouponOrderUuid"
        ]
      },
      "CartItemRemoveResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "Known values: ACTIVE (it can be paid), CHECKED_OUT (Groupon placed an order from it),\nABANDONED (you abandoned it), LOCKED, EXPIRED."
          },
          "buyLink": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's checkout for this cart, null once the cart is not ACTIVE: once it names an order, or\nafter you abandoned it. Use the latest one verbatim as the Buy now link. For a shopper back on\nyour site after a REJECTED or EXPIRED order, create a new cart with the same lines and use its\n`buyLink`. It carries\n`utm_source=LS_AI`, `utm_medium=partner` and `utm_campaign` set to your storefront's id, so\nGroupon counts the orders your shoppers place. With a confirmed CJ publisher id on the storefront\nit is CJ's click link around that checkout, which credits the sale to that publisher; the\ncheckout inside then carries `utm_source=cj`, `utm_medium=afl` and\n`utm_campaign=LS_AI_partner_<storefront id>`, the form Groupon reports to CJ, and the same\nmarker in `utm_content`: CJ's redirect replaces the campaign with its own and leaves\n`utm_content`, so Groupon still sees your storefront. The click's SID is the cart's id."
          },
          "country": {
            "type": "string"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCodeString"
          },
          "clientReference": {
            "type": "string",
            "nullable": true,
            "description": "Your own reference of the cart, as you sent it when you created it (your user's or your\norder's id): answered on every read of the cart, on its order and in your order list, and never\nsent to Groupon. Null when you sent none."
          },
          "itemCount": {
            "type": "number"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartLine"
            }
          },
          "totals": {
            "$ref": "#/components/schemas/CartTotals"
          },
          "priceBreakdown": {
            "$ref": "#/components/schemas/PriceBreakdown"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartMessage"
            }
          },
          "createdAt": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "nullable": true
          },
          "grouponOrderUuid": {
            "type": "string",
            "nullable": true,
            "description": "The order Groupon recorded on this cart (the status then reads `CHECKED_OUT`); null until\nthen, and null where Groupon does not record one for this cart. Read it with\n`GET /partner_storefront/bookings/:bookingId`: `CONFIRMED` is the sale, made without the\nshopper coming back. The order named is the first one the shopper's browser placed within 24\nhours of the cart, which can be a different purchase, or the newest order placed from this\ncart's checkout that Groupon marked with the cart's id, which takes the place of any order\nnamed before it. So match its items to the cart's before you trust it, and keep the return\nredirect as the way you learn any other outcome. After a card decline, Groupon's decline page\nmay take another payment on this cart while it keeps naming the declined order: never ask the\nshopper to pay again on a `REJECTED` read of the cart alone."
          }
        },
        "required": [
          "id",
          "status",
          "buyLink",
          "country",
          "currency",
          "clientReference",
          "itemCount",
          "items",
          "totals",
          "priceBreakdown",
          "messages",
          "createdAt",
          "updatedAt",
          "expiresAt",
          "grouponOrderUuid"
        ]
      },
      "CartItemUpdateResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "Known values: ACTIVE (it can be paid), CHECKED_OUT (Groupon placed an order from it),\nABANDONED (you abandoned it), LOCKED, EXPIRED."
          },
          "buyLink": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's checkout for this cart, null once the cart is not ACTIVE: once it names an order, or\nafter you abandoned it. Use the latest one verbatim as the Buy now link. For a shopper back on\nyour site after a REJECTED or EXPIRED order, create a new cart with the same lines and use its\n`buyLink`. It carries\n`utm_source=LS_AI`, `utm_medium=partner` and `utm_campaign` set to your storefront's id, so\nGroupon counts the orders your shoppers place. With a confirmed CJ publisher id on the storefront\nit is CJ's click link around that checkout, which credits the sale to that publisher; the\ncheckout inside then carries `utm_source=cj`, `utm_medium=afl` and\n`utm_campaign=LS_AI_partner_<storefront id>`, the form Groupon reports to CJ, and the same\nmarker in `utm_content`: CJ's redirect replaces the campaign with its own and leaves\n`utm_content`, so Groupon still sees your storefront. The click's SID is the cart's id."
          },
          "country": {
            "type": "string"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCodeString"
          },
          "clientReference": {
            "type": "string",
            "nullable": true,
            "description": "Your own reference of the cart, as you sent it when you created it (your user's or your\norder's id): answered on every read of the cart, on its order and in your order list, and never\nsent to Groupon. Null when you sent none."
          },
          "itemCount": {
            "type": "number"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartLine"
            }
          },
          "totals": {
            "$ref": "#/components/schemas/CartTotals"
          },
          "priceBreakdown": {
            "$ref": "#/components/schemas/PriceBreakdown"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartMessage"
            }
          },
          "createdAt": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "nullable": true
          },
          "grouponOrderUuid": {
            "type": "string",
            "nullable": true,
            "description": "The order Groupon recorded on this cart (the status then reads `CHECKED_OUT`); null until\nthen, and null where Groupon does not record one for this cart. Read it with\n`GET /partner_storefront/bookings/:bookingId`: `CONFIRMED` is the sale, made without the\nshopper coming back. The order named is the first one the shopper's browser placed within 24\nhours of the cart, which can be a different purchase, or the newest order placed from this\ncart's checkout that Groupon marked with the cart's id, which takes the place of any order\nnamed before it. So match its items to the cart's before you trust it, and keep the return\nredirect as the way you learn any other outcome. After a card decline, Groupon's decline page\nmay take another payment on this cart while it keeps naming the declined order: never ask the\nshopper to pay again on a `REJECTED` read of the cart alone."
          }
        },
        "required": [
          "id",
          "status",
          "buyLink",
          "country",
          "currency",
          "clientReference",
          "itemCount",
          "items",
          "totals",
          "priceBreakdown",
          "messages",
          "createdAt",
          "updatedAt",
          "expiresAt",
          "grouponOrderUuid"
        ]
      },
      "CartItemsAddResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "Known values: ACTIVE (it can be paid), CHECKED_OUT (Groupon placed an order from it),\nABANDONED (you abandoned it), LOCKED, EXPIRED."
          },
          "buyLink": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's checkout for this cart, null once the cart is not ACTIVE: once it names an order, or\nafter you abandoned it. Use the latest one verbatim as the Buy now link. For a shopper back on\nyour site after a REJECTED or EXPIRED order, create a new cart with the same lines and use its\n`buyLink`. It carries\n`utm_source=LS_AI`, `utm_medium=partner` and `utm_campaign` set to your storefront's id, so\nGroupon counts the orders your shoppers place. With a confirmed CJ publisher id on the storefront\nit is CJ's click link around that checkout, which credits the sale to that publisher; the\ncheckout inside then carries `utm_source=cj`, `utm_medium=afl` and\n`utm_campaign=LS_AI_partner_<storefront id>`, the form Groupon reports to CJ, and the same\nmarker in `utm_content`: CJ's redirect replaces the campaign with its own and leaves\n`utm_content`, so Groupon still sees your storefront. The click's SID is the cart's id."
          },
          "country": {
            "type": "string"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCodeString"
          },
          "clientReference": {
            "type": "string",
            "nullable": true,
            "description": "Your own reference of the cart, as you sent it when you created it (your user's or your\norder's id): answered on every read of the cart, on its order and in your order list, and never\nsent to Groupon. Null when you sent none."
          },
          "itemCount": {
            "type": "number"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartLine"
            }
          },
          "totals": {
            "$ref": "#/components/schemas/CartTotals"
          },
          "priceBreakdown": {
            "$ref": "#/components/schemas/PriceBreakdown"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartMessage"
            }
          },
          "createdAt": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "nullable": true
          },
          "grouponOrderUuid": {
            "type": "string",
            "nullable": true,
            "description": "The order Groupon recorded on this cart (the status then reads `CHECKED_OUT`); null until\nthen, and null where Groupon does not record one for this cart. Read it with\n`GET /partner_storefront/bookings/:bookingId`: `CONFIRMED` is the sale, made without the\nshopper coming back. The order named is the first one the shopper's browser placed within 24\nhours of the cart, which can be a different purchase, or the newest order placed from this\ncart's checkout that Groupon marked with the cart's id, which takes the place of any order\nnamed before it. So match its items to the cart's before you trust it, and keep the return\nredirect as the way you learn any other outcome. After a card decline, Groupon's decline page\nmay take another payment on this cart while it keeps naming the declined order: never ask the\nshopper to pay again on a `REJECTED` read of the cart alone."
          }
        },
        "required": [
          "id",
          "status",
          "buyLink",
          "country",
          "currency",
          "clientReference",
          "itemCount",
          "items",
          "totals",
          "priceBreakdown",
          "messages",
          "createdAt",
          "updatedAt",
          "expiresAt",
          "grouponOrderUuid"
        ]
      },
      "PartnerCategoriesListResponse": {
        "type": "object",
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductCategory"
            }
          }
        },
        "required": [
          "categories"
        ],
        "description": "Every category path of your catalog, by path: the whole list, never a page."
      },
      "ProductAvailabilityResponse": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "string"
          },
          "from": {
            "$ref": "#/components/schemas/IsoDateString"
          },
          "to": {
            "$ref": "#/components/schemas/IsoDateString"
          },
          "status": {
            "$ref": "#/components/schemas/AvailabilityStatus"
          },
          "asOf": {
            "type": "string",
            "nullable": true,
            "description": "When Groupon's calendar was read; null when it could not be read."
          },
          "priceNote": {
            "type": "string",
            "description": "What every price here is: \"The slot price before Groupon's taxes and fees, added at checkout.\"\nGroupon adds its taxes and fees at its own checkout, by the shopper's address; no amount of them\nis read here, so never state a total."
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OptionAvailability"
            },
            "description": "Each option booked on groupon.com, in the product's order; empty for a product that is not."
          }
        },
        "required": [
          "productId",
          "from",
          "to",
          "status",
          "asOf",
          "priceNote",
          "options"
        ]
      },
      "ProductGetResponse": {
        "type": "object",
        "properties": {
          "reviews": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProductReviews"
              }
            ],
            "description": "The deal's customer reviews: the newest as written, the count per star, and a generated summary, each with its source and moment.",
            "example": {
              "latest": null,
              "byStar": null,
              "summary": null
            }
          },
          "policy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProductPolicy"
              }
            ],
            "description": "The refund, cancellation and change rules in plain fields: whether money comes back and within how long, who cancels or moves a booked time, when the purchase stops being redeemable, where the shopper gets help, and the fine print's own sentences about them. A rule no source states is `unknown`.",
            "example": {
              "refund": {
                "rule": "all_sales_final",
                "windowDays": null
              },
              "cancellation": {
                "route": "cancel_purchase"
              },
              "reschedule": {
                "route": "cancel_and_rebook"
              },
              "expires": {
                "kind": "date",
                "at": "2027-04-01T04:59:59.000Z",
                "paidValue": "unknown"
              },
              "support": {
                "orderHelpUrl": "https://www.groupon.com/customer_support",
                "ordersUrl": "https://www.groupon.com/mygroupons",
                "termsUrl": "https://www.groupon.com/legal/grouponpromise",
                "merchant": null
              },
              "terms": [
                "All sales final."
              ]
            }
          },
          "id": {
            "type": "string",
            "description": "The `productId` of a cart line.",
            "example": "e4d9fb19-3de1-4b36-8398-6d54f197a2e3"
          },
          "title": {
            "type": "string",
            "description": "The deal's title as groupon.com shows it.",
            "example": "60-minute Tailored Deep-Tissue or Swedish Massage at Pure Serenity Spa"
          },
          "shortDescription": {
            "type": "string",
            "description": "A short plain-text summary of the deal, for a card or a list.",
            "example": "4.8-Star Rating, over 4,200 reviews. Lincoln Park."
          },
          "description": {
            "type": "string",
            "description": "The deal's description, plain text.",
            "example": "A peaceful oasis in Lincoln Park: free hot stones with every massage."
          },
          "status": {
            "type": "string",
            "description": "Known values: active, sold_out, expired. List a product only when it is active.",
            "example": "active"
          },
          "country": {
            "type": "string",
            "nullable": true,
            "description": "The market the deal is sold in, ISO 3166-1 alpha-2: US or CA, the `country` you read it under.\nA deal outside the US (CA) is priced in its own currency (CAD) and is never put in a cart: it is\nbought on its groupon.com page, `bookingUrl`.",
            "example": "US"
          },
          "availabilityRequired": {
            "type": "boolean",
            "description": "true means the deal is booked, not carted: it cannot be added to a cart. When its options carry a\n`bookingUrl`, it is booked on groupon.com, and its free days and times are read from\n`GET /partner_storefront/products/:productId/availability`; otherwise the product's own\n`bookingUrl` is where it is bought.",
            "example": false
          },
          "bookingUrl": {
            "type": "string",
            "nullable": true,
            "description": "Where a product Groupon's cart cannot take is bought when its options carry no `bookingUrl` of\ntheir own: its page on groupon.com (a hotel stay is booked there by its dates, a shipped product,\n`bookingKind` shipped, bought there with its delivery, a deal outside the US, `country` CA,\nbought there at its Canadian price), tagged with your\nstorefront and, with a CJ publisher id, wrapped in CJ's click link like a cart's `buyLink`.\nnull for a product you put in a cart.",
            "example": null
          },
          "hotelStay": {
            "type": "boolean",
            "description": "true for a hotel stay of either kind, booked by its dates: read its rooms for a stay with\n`GET /partner_storefront/products/:productId/stays`, the stay's one price; its options carry no\n`price` and no `promotion`. Its `bookingUrl` is the deal's own page on groupon.com, and\n`availabilityRequired` is true: a stay is never put in a cart.",
            "example": false
          },
          "bookingKind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LsOfferBookingKind"
              }
            ],
            "description": "How the shopper gets a time with the deal, the one label to read before promising a day or a\ntime. bookable_with_live_times: its free days and times are read live\n(`GET /partner_storefront/products/:productId/availability`), one can be held\n(`POST /partner_storefront/products/:productId/holds`) and it is paid on Groupon's page.\nno_time_held: buying it holds no time; the shopper buys it, then books the time with the\nmerchant afterwards, as the fine print says. stay: a hotel stay, its dates chosen when it is\nbooked. shipped: a product shipped to the shopper's address; it has no time and no place, is never\nput in a cart, and is bought with its delivery at `bookingUrl`, the deal's own page on groupon.com.\nRead it rather than `availabilityRequired` alone.",
            "example": "no_time_held"
          },
          "categoryLabels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Groupon's category labels of the deal, most specific first as Groupon lists them.",
            "example": [
              "Deep Tissue Massage",
              "Swedish Massage"
            ]
          },
          "media": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductMedia"
            },
            "description": "Every picture of the deal's page, each once per size: `index` names the picture, `role` the size.",
            "example": [
              {
                "url": "https://img.grouponcdn.com/deal/z8kRBLEKRvzUVtJQ48Qu14nSFuY/z8-1810x1090/v1/t300x182.jpg",
                "role": "medium",
                "width": 300,
                "height": 182,
                "index": 0
              }
            ]
          },
          "locations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RedemptionLocation"
            },
            "description": "The places the vouchers are redeemed at; empty for a deal redeemed anywhere (shipped goods, online).",
            "example": [
              {
                "id": "a780b4fd-2d25-bed3-9b7d-016814d7ad2e",
                "name": "Lincoln Park",
                "street": "1136 West Armitage Avenue",
                "city": "Chicago",
                "state": "IL",
                "postalCode": "60614",
                "country": "US",
                "latitude": 41.9182047,
                "longitude": -87.6568705,
                "openingHours": null,
                "timeZone": "America/Chicago"
              }
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductOption"
            },
            "description": "The variants the shopper picks from, Groupon's first one first.",
            "example": [
              {
                "id": "a40bef0d-2309-4a38-9042-338601020219",
                "title": "One 60-Minute Deep-Tissue or Swedish Massage",
                "isDefault": true,
                "active": true,
                "minUnits": 1,
                "maxUnits": 30,
                "price": {
                  "retail": 8460,
                  "original": 13000,
                  "currency": "USD",
                  "currencyPrecision": 2
                },
                "promotion": null,
                "selections": [],
                "bookingUrl": null
              }
            ]
          },
          "merchantRating": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MerchantRating"
              }
            ],
            "nullable": true,
            "description": "The merchant's rating groupon.com shows on the offer's page; null when it has no ratings yet.",
            "example": {
              "average": 4.8,
              "count": 5315
            }
          },
          "merchantId": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's merchant uuid, stable across every product of the merchant: match a merchant across\nproducts by it, never by its name. The agent API's offer answers the same value as its\n`merchantId`. Null when Groupon's catalog carries none.",
            "example": "5a1f0c2e-8d3b-4e7a-9c1d-2b6f4e8a0d13"
          },
          "merchantWebsite": {
            "type": "string",
            "nullable": true,
            "description": "The merchant's own website, an absolute http(s) address; null when Groupon holds none.",
            "example": "https://www.examplespa.com/"
          },
          "rating": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DealRating"
              }
            ],
            "nullable": true,
            "description": "The deal's own rating from its customer reviews; null when Groupon holds no review of the deal.",
            "example": {
              "average": 4.6,
              "count": 371,
              "newestReviewAt": "2026-09-28T17:02:11.000Z",
              "asOf": "2026-10-29T04:41:12.118Z"
            }
          },
          "bought": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Bought"
              }
            ],
            "nullable": true,
            "description": "How many bought it, as groupon.com's badge says it; null under 100, when hidden, or unknown.",
            "example": {
              "atLeast": 1000,
              "asOf": "2026-10-13T18:41:36.005Z"
            }
          },
          "finePrint": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "description": "Groupon's fine print, the terms of redemption, as plain-text paragraphs; null when Groupon gives none. Show it as it is.",
            "example": [
              "Appointment required.",
              "Limit 1 per person."
            ]
          }
        },
        "required": [
          "reviews",
          "policy",
          "id",
          "title",
          "shortDescription",
          "description",
          "status",
          "country",
          "availabilityRequired",
          "bookingUrl",
          "hotelStay",
          "bookingKind",
          "categoryLabels",
          "media",
          "locations",
          "options",
          "merchantRating",
          "merchantId",
          "merchantWebsite",
          "rating",
          "bought",
          "finePrint"
        ]
      },
      "ProductHoldCreateResponse": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/ProductHoldStatus"
          },
          "productId": {
            "type": "string"
          },
          "optionId": {
            "type": "string"
          },
          "date": {
            "$ref": "#/components/schemas/IsoDateString"
          },
          "time": {
            "type": "string",
            "nullable": true,
            "description": "The start time at the venue, `HH:mm`; null for a day or an open-day ticket."
          },
          "startsAt": {
            "type": "string"
          },
          "tickets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductHoldTicket"
            }
          },
          "total": {
            "$ref": "#/components/schemas/SlotPrice"
          },
          "priceBreakdown": {
            "$ref": "#/components/schemas/PriceBreakdown"
          },
          "holdId": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's id of the hold; null when only checked."
          },
          "expiresAt": {
            "type": "string",
            "nullable": true,
            "description": "When Groupon lets the hold go, 15 minutes after it was placed; null when only checked. Nothing releases it earlier."
          },
          "priceChanged": {
            "type": "boolean",
            "description": "Groupon flagged a price change since the slot was read: the hold stands, and Groupon's page shows the new price."
          },
          "bookingUrl": {
            "type": "string",
            "description": "Where the shopper pays. Held: groupon.com's confirmation page for this hold, valid until\n`expiresAt`. Checked only: Groupon's booking page with the option chosen. Hand it over unchanged."
          }
        },
        "required": [
          "status",
          "productId",
          "optionId",
          "date",
          "time",
          "startsAt",
          "tickets",
          "total",
          "priceBreakdown",
          "holdId",
          "expiresAt",
          "priceChanged",
          "bookingUrl"
        ]
      },
      "ProductStaysResponse": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/HotelStayKind"
          },
          "checkIn": {
            "$ref": "#/components/schemas/IsoDateString"
          },
          "checkOut": {
            "$ref": "#/components/schemas/IsoDateString"
          },
          "nights": {
            "type": "number"
          },
          "adults": {
            "type": "number",
            "description": "Adults in one room: as asked for a market-rate stay, and 2 for a contracted stay (see `guests`)."
          },
          "childrenAges": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "Each child's age: as asked for a market-rate stay, and empty for a contracted stay (see `guests`)."
          },
          "guests": {
            "$ref": "#/components/schemas/StayGuests"
          },
          "status": {
            "$ref": "#/components/schemas/AvailabilityStatus"
          },
          "asOf": {
            "type": "string",
            "nullable": true,
            "description": "When Groupon's hotel partner was read; null when it could not be read."
          },
          "priceNote": {
            "type": "string",
            "description": "What the prices are: each room's `price` before taxes and fees, and for a market-rate stay its\n`total` with them; Groupon's checkout states what it charges."
          },
          "rooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StayRoom"
            },
            "description": "Every room you can book for this stay, cheapest first; empty when `status` is `unknown`, and\nwhen no room can be booked for these dates."
          },
          "unavailableRooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnavailableStayRoom"
            },
            "description": "The contracted stay's options that cannot be booked for these dates, with the nights that are\nthe problem. Always empty for a market-rate stay (it lists only rooms it can offer), and when\n`status` is `unknown`."
          }
        },
        "required": [
          "productId",
          "kind",
          "checkIn",
          "checkOut",
          "nights",
          "adults",
          "childrenAges",
          "guests",
          "status",
          "asOf",
          "priceNote",
          "rooms",
          "unavailableRooms"
        ]
      },
      "ProductsListResponse": {
        "type": "object",
        "properties": {
          "hasMore": {
            "type": "boolean",
            "description": "True while more pages remain. Keep paging until false, even after an empty page."
          },
          "timestamp": {
            "type": "string",
            "description": "On the final page of a walk: the next walk's `updatedSince` (the instant this walk began, less two minutes)."
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Product"
            }
          },
          "nextCursor": {
            "type": "string",
            "nullable": true,
            "description": "Boundary for the next page, or null when the feed is exhausted."
          }
        },
        "required": [
          "hasMore",
          "data",
          "nextCursor"
        ]
      },
      "ProductsSearchResponse": {
        "type": "object",
        "properties": {
          "hasMore": {
            "type": "boolean",
            "description": "True while more pages remain."
          },
          "total": {
            "type": "number",
            "description": "How many products match inside your scope: exact when the first page is also the last, else Groupon's estimate; a page can be short while `hasMore` is true."
          },
          "asOf": {
            "type": "string",
            "description": "The instant the list was ranked at; every page of one search is ranked at the first page's."
          },
          "scope": {
            "$ref": "#/components/schemas/SearchScope"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductHit"
            }
          },
          "nextCursor": {
            "type": "string",
            "nullable": true,
            "description": "Boundary for the next page, or null when the feed is exhausted."
          }
        },
        "required": [
          "hasMore",
          "total",
          "asOf",
          "scope",
          "data",
          "nextCursor"
        ],
        "description": "`data` holds the hits, best first; `nextCursor` is null on the last page."
      },
      "StorefrontMeResponse": {
        "type": "object",
        "properties": {
          "storefront": {
            "$ref": "#/components/schemas/StorefrontRegistration"
          }
        },
        "required": [
          "storefront"
        ]
      },
      "AvailabilityDay": {
        "type": "object",
        "properties": {
          "date": {
            "$ref": "#/components/schemas/IsoDateString"
          },
          "slots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvailabilitySlot"
            },
            "description": "Every free slot of the day, in start order; empty when nothing is free."
          }
        },
        "required": [
          "date",
          "slots"
        ],
        "description": "One day of an option's availability."
      },
      "AvailabilitySlot": {
        "type": "object",
        "properties": {
          "time": {
            "type": "string",
            "nullable": true,
            "description": "The start time at the venue, `HH:mm`; null for a day or an open-day ticket."
          },
          "startsAt": {
            "type": "string"
          },
          "placesLeft": {
            "type": "number",
            "nullable": true,
            "description": "Places Groupon says are left for the ticket `priceFor` names; null when it does not say."
          },
          "price": {
            "$ref": "#/components/schemas/SlotPrice"
          },
          "priceFor": {
            "type": "string",
            "nullable": true,
            "description": "The ticket type this slot's `price` and `placesLeft` are for (`Adult [ Ages 13 - 61 ]`); null when Groupon names none."
          },
          "bookingUrl": {
            "type": "string",
            "description": "Groupon's booking page with the slot's option chosen, where the shopper picks this day and time and pays; seen, not held. Hand it over unchanged."
          },
          "tickets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvailabilitySlotTicket"
            },
            "description": "Every ticket type priced at this start, in the option's `ticketTypes` order, each with its own price and places left; a sold-out one with 0 places."
          }
        },
        "required": [
          "time",
          "startsAt",
          "placesLeft",
          "price",
          "priceFor",
          "bookingUrl",
          "tickets"
        ],
        "description": "One free slot of an option."
      },
      "AvailabilitySlotTicket": {
        "type": "object",
        "properties": {
          "ticketTypeId": {
            "type": "string",
            "description": "One of the option's `ticketTypes[].id`."
          },
          "price": {
            "$ref": "#/components/schemas/SlotPrice"
          },
          "placesLeft": {
            "type": "number",
            "nullable": true,
            "description": "Places left for this ticket type at this slot: 0 when it is sold out here, null when Groupon does not say."
          }
        },
        "required": [
          "ticketTypeId",
          "price",
          "placesLeft"
        ],
        "description": "One ticket type's own price and places left at one slot."
      },
      "AvailabilityTicketType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title"
        ],
        "description": "One ticket type of an option (`Adult [ Ages 13 - 61 ]`): what a hold's `tickets[].ticketTypeId` names."
      },
      "BookingCancelUnit": {
        "type": "object",
        "properties": {
          "eligible": {
            "type": "boolean",
            "nullable": true,
            "description": "True when Groupon would cancel it now; null when Groupon decides only at the cancel; false with a `reason`."
          },
          "reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PurchaseCancelRefusal"
              }
            ],
            "nullable": true,
            "description": "Why Groupon refuses it: `already_cancelled` (Groupon already cancelled or refunded it),\n`redeemed` (it was used), `not_eligible` (Groupon's terms no longer allow a cancel: its refund\nperiod after buying passed, its code was viewed, or a booked time is past its cancellation\ncutoff), `not_readable` (Groupon could not read it), `refused_by_groupon` (Groupon's orders\nservice refused the cancel). Null when it is not refused."
          },
          "partnerReasonCode": {
            "type": "string",
            "nullable": true,
            "description": "The booking partner's own reason for refusing, as it states it (for example a cancellation cutoff); null otherwise."
          }
        },
        "required": [
          "eligible",
          "reason",
          "partnerReasonCode"
        ],
        "description": "One unit of the order (one ticket or one code), as Groupon judged it."
      },
      "BookingCode": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The voucher's id: an `unitItems[].id` of the order."
          },
          "status": {
            "type": "string",
            "description": "The voucher's status, same values as the order's."
          },
          "redemptionCode": {
            "type": "string",
            "description": "The code the shopper presents at the merchant. Whoever holds it can redeem the voucher: keep it\nas you keep a payment credential, show it to the shopper only, never in a log or a URL."
          },
          "barcodeFormat": {
            "type": "string",
            "nullable": true,
            "description": "How `redemptionCode` is drawn as a barcode, as Groupon names it (`ean-13`, `code128`); null when Groupon names none."
          },
          "expiresAt": {
            "type": "string",
            "nullable": true,
            "description": "When the voucher stops being redeemable; null when Groupon names no date."
          }
        },
        "required": [
          "id",
          "status",
          "redemptionCode",
          "barcodeFormat",
          "expiresAt"
        ],
        "description": "One voucher's code, issued."
      },
      "BookingItem": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "string",
            "nullable": true,
            "description": "null when the deal has since left Groupon's catalog; `optionId` still names what was bought."
          },
          "optionId": {
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "status": {
            "type": "string",
            "description": "The item's status, same values as the order's: REFUNDED when Groupon refunded a voucher of it."
          },
          "unitItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BookingUnitItem"
            }
          }
        },
        "required": [
          "productId",
          "optionId",
          "quantity",
          "status",
          "unitItems"
        ],
        "description": "One product and option bought in an order."
      },
      "BookingSummary": {
        "type": "object",
        "properties": {
          "bookingId": {
            "type": "string",
            "description": "The order: read it in full with `GET /partner_storefront/bookings/{bookingId}`."
          },
          "status": {
            "type": "string",
            "description": "`Booking.status`'s values, REFUNDED included, as Groupon answered when `statusReadAt` says.\nRead the order itself for its live status."
          },
          "cartCreatedAt": {
            "type": "string",
            "description": "When your key made the cart the order was placed from, or placed the hold it was paid against."
          },
          "paidAt": {
            "type": "string",
            "nullable": true,
            "description": "When Groupon placed the order, once it is paid; null while it is not."
          },
          "refundedAt": {
            "type": "string",
            "nullable": true,
            "description": "When Groupon's refund of the order was first seen; null unless it is REFUNDED."
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingValue"
              }
            ],
            "nullable": true,
            "description": "What the order was worth once paid; null while it is not paid, when Groupon priced its lines in\nmore than one currency, or when the order was already refunded when LivingSocial first saw it\npaid (Groupon then prices its lines at 0)."
          },
          "statusReadAt": {
            "type": "string",
            "nullable": true,
            "description": "When Groupon was last asked about this order; null before the first answer."
          },
          "clientReference": {
            "type": "string",
            "nullable": true,
            "description": "Your own reference of the cart the order was placed from, as you sent it on the cart; null when\nyou sent none, and for an order paid against a hold. Filter the list by it with `clientReference`."
          },
          "holdId": {
            "type": "string",
            "nullable": true,
            "description": "The hold the order was paid against (`holdId` of `POST /partner_storefront/products/{productId}/holds`);\nnull for an order placed from a cart. Such an order is listed CONFIRMED once Groupon's checkout\nreserved its tickets, read again within minutes of the hold; it is not read in full with\n`GET /partner_storefront/bookings/{bookingId}`."
          }
        },
        "required": [
          "bookingId",
          "status",
          "cartCreatedAt",
          "paidAt",
          "refundedAt",
          "value",
          "statusReadAt",
          "clientReference",
          "holdId"
        ],
        "description": "One order placed from one of the storefront's carts, or paid against one of its holds, as Groupon last answered it."
      },
      "BookingUnitItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "The voucher's status, same values as the order's: REFUNDED when Groupon refunded it, REJECTED\nwhen the payment was declined, CANCELLED when a paid order's voucher was cancelled with nothing\ncharged."
          },
          "myGrouponUrl": {
            "type": "string",
            "description": "Where the shopper views and redeems the voucher, after signing in to Groupon."
          },
          "expiresAt": {
            "type": "string",
            "nullable": true,
            "description": "When the voucher stops being redeemable; null when Groupon names no date."
          }
        },
        "required": [
          "id",
          "status",
          "myGrouponUrl",
          "expiresAt"
        ],
        "description": "One voucher of an order item. No code: a code is issued by `POST /partner_storefront/bookings/:bookingId/codes`."
      },
      "BookingValue": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "In minor units."
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCodeString"
          },
          "currencyPrecision": {
            "type": "number",
            "description": "Decimal places: display amount = amount / 10^currencyPrecision."
          }
        },
        "required": [
          "amount",
          "currency",
          "currencyPrecision"
        ],
        "description": "An order's value as Groupon priced its lines: each line's unit price times its quantity, before tax and promo codes."
      },
      "BookingWithheldUnit": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The voucher's id: an `unitItems[].id` of the order."
          },
          "reason": {
            "$ref": "#/components/schemas/CodeWithheldReason"
          }
        },
        "required": [
          "id",
          "reason"
        ],
        "description": "A voucher asked for and answered without a code."
      },
      "Bought": {
        "type": "object",
        "properties": {
          "atLeast": {
            "type": "number",
            "description": "At least this many bought it on Groupon: 100, 1000, 5000 or 10000.",
            "example": 1000
          },
          "asOf": {
            "type": "string",
            "description": "When Groupon's count behind it was observed; a bucket only grows, so an old one understates.",
            "example": "2026-10-13T18:41:36.005Z"
          }
        },
        "required": [
          "atLeast",
          "asOf"
        ],
        "description": "groupon.com's \"bought\" badge of the offer: a dated lower bound, never the exact count."
      },
      "CartItemInput": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "string"
          },
          "optionId": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "description": "1 to 100."
          },
          "expectedPrice": {
            "type": "number",
            "description": "The per-unit retail your site shows, in minor units. Strongly recommended."
          }
        },
        "required": [
          "productId",
          "optionId",
          "quantity"
        ],
        "description": "One line to add to a cart."
      },
      "CartLine": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "productId": {
            "type": "string"
          },
          "optionId": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "optionTitle": {
            "type": "string",
            "nullable": true
          },
          "media": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductMedia"
            }
          },
          "quantity": {
            "type": "number"
          },
          "available": {
            "type": "boolean"
          },
          "unavailableReason": {
            "type": "string",
            "nullable": true,
            "description": "Why the line cannot be bought (known values: SOLD_OUT, DEAL_ENDED, OPTION_REMOVED); null when it can."
          },
          "price": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Price"
              }
            ],
            "nullable": true,
            "description": "null when the live price could not be read (see `messages`); such a line is not in the totals."
          },
          "lineTotal": {
            "type": "number",
            "nullable": true,
            "description": "`price.retail * quantity`, or null with the price."
          }
        },
        "required": [
          "id",
          "productId",
          "optionId",
          "title",
          "optionTitle",
          "media",
          "quantity",
          "available",
          "unavailableReason",
          "price",
          "lineTotal"
        ],
        "description": "One line of a cart. Its `id` equals its `optionId`."
      },
      "CartMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "bookingUrl": {
            "type": "string",
            "description": "`item_declined` only: the Groupon page the declined item's deal is bought on instead. Send the\nshopper there; absent when Groupon's cart declined an item of a deal we could not read."
          }
        },
        "required": [
          "type",
          "code",
          "content",
          "path"
        ],
        "description": "A non-fatal note about this response, such as `item_declined` or `price_unavailable`."
      },
      "CartTotals": {
        "type": "object",
        "properties": {
          "subtotal": {
            "type": "number"
          },
          "savings": {
            "type": "number"
          },
          "grandTotal": {
            "type": "number"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCodeString"
          },
          "currencyPrecision": {
            "type": "number"
          }
        },
        "required": [
          "subtotal",
          "savings",
          "grandTotal",
          "currency",
          "currencyPrecision"
        ],
        "description": "Cart totals in minor units, before tax and promo codes."
      },
      "DealRating": {
        "type": "object",
        "properties": {
          "average": {
            "type": "number",
            "description": "From 1 to 5, rounded to one decimal.",
            "example": 4.6
          },
          "count": {
            "type": "number",
            "description": "The reviews behind it, at least 1.",
            "example": 371
          },
          "newestReviewAt": {
            "type": "string",
            "nullable": true,
            "description": "When the newest of those reviews was written; null when Groupon gave no readable date.",
            "example": "2026-09-28T17:02:11.000Z"
          },
          "asOf": {
            "type": "string",
            "description": "When Groupon last read the deal's reviews for this rating.",
            "example": "2026-10-29T04:41:12.118Z"
          }
        },
        "required": [
          "average",
          "count",
          "newestReviewAt",
          "asOf"
        ],
        "description": "The deal's own rating from its customer reviews on Groupon, computed by Groupon from the reviews it\ncopied, rounded the way groupon.com rounds a rating. `merchantRating` is the merchant's, across all\nits deals."
      },
      "HoldTicketInput": {
        "type": "object",
        "properties": {
          "ticketTypeId": {
            "type": "string",
            "description": "One of the option's `ticketTypes[].id`, priced at the slot (the slot's `tickets[].ticketTypeId`)."
          },
          "quantity": {
            "type": "number",
            "description": "1 to 20; at most 20 tickets in all."
          }
        },
        "required": [
          "ticketTypeId",
          "quantity"
        ],
        "description": "One ticket type of a hold and how many of it."
      },
      "LatestReviews": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "Where the reviews come from.",
            "example": "Groupon customer reviews"
          },
          "asOf": {
            "type": "string",
            "description": "When Groupon last read the deal's reviews.",
            "example": "2026-10-30T12:05:25.283Z"
          },
          "reviews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductReview"
            },
            "description": "The newest reviews, as many as asked with `latestReviews` (5 by default, at most 20), fewer when the deal has fewer.",
            "example": [
              {
                "id": "00000000-0000-0000-0000-00005657d136",
                "stars": 5,
                "text": "Great tour guide, informative and funny.",
                "writtenAt": "2026-10-24T18:51:40.164Z",
                "reviewer": "Ashley",
                "verifiedPurchase": true,
                "writtenOn": "Groupon"
              }
            ]
          }
        },
        "required": [
          "source",
          "asOf",
          "reviews"
        ],
        "description": "The deal's newest customer reviews, newest first."
      },
      "MerchantRating": {
        "type": "object",
        "properties": {
          "average": {
            "type": "number",
            "description": "From 0 to 5, rounded to one decimal as groupon.com rounds it.",
            "example": 4.8
          },
          "count": {
            "type": "number",
            "description": "The ratings behind it, at least 1.",
            "example": 5315
          }
        },
        "required": [
          "average",
          "count"
        ],
        "description": "The merchant's rating by Groupon's verified customers across all its offers: the stars groupon.com shows."
      },
      "OpeningHoursDay": {
        "type": "object",
        "properties": {
          "dayOfWeek": {
            "type": "number",
            "description": "The day: 0 is Sunday, 6 Saturday.",
            "example": 1
          },
          "closed": {
            "type": "boolean",
            "description": "True when the place is closed all day.",
            "example": false
          },
          "opens": {
            "type": "string",
            "nullable": true,
            "description": "When the place opens, 24-hour \"HH:MM\" in the place's own time zone; null on a closed day.",
            "example": "10:00"
          },
          "closes": {
            "type": "string",
            "nullable": true,
            "description": "When the place closes, 24-hour \"HH:MM\" in the place's own time zone; null on a closed day.",
            "example": "20:00"
          }
        },
        "required": [
          "dayOfWeek",
          "closed",
          "opens",
          "closes"
        ],
        "description": "One day of a place's regular week."
      },
      "OptionAvailability": {
        "type": "object",
        "properties": {
          "optionId": {
            "type": "string",
            "description": "The option's `id`."
          },
          "status": {
            "$ref": "#/components/schemas/AvailabilityStatus"
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AvailabilityKind"
              }
            ],
            "nullable": true,
            "description": "Null when `status` is `unknown`."
          },
          "priceFor": {
            "type": "string",
            "nullable": true,
            "description": "The ticket type the prices are quoted for (`Adult [ Ages 13 - 61 ]`): groupon.com's lead ticket when it quotes any slot; each slot names its own. Null when Groupon names none."
          },
          "ticketTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvailabilityTicketType"
            },
            "description": "The option's ticket types, in Groupon's order; empty when Groupon names none or `status` is `unknown`."
          },
          "days": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvailabilityDay"
            },
            "description": "Every day read, in order; empty when `status` is `unknown`."
          }
        },
        "required": [
          "optionId",
          "status",
          "kind",
          "priceFor",
          "ticketTypes",
          "days"
        ],
        "description": "One option's availability over the days read."
      },
      "OptionSelection": {
        "type": "object",
        "properties": {
          "attributeId": {
            "type": "string",
            "description": "Groupon's id of the attribute.",
            "example": "calendar_date"
          },
          "title": {
            "type": "string",
            "description": "The attribute as Groupon names it to the shopper.",
            "example": "Visit Start Date"
          },
          "required": {
            "type": "boolean",
            "description": "True when the shopper must pick a value on Groupon's page.",
            "example": true
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OptionSelectionValue"
            },
            "description": "The values the shopper may pick, in Groupon's order; may be empty when Groupon offers them on its own page only.",
            "example": []
          }
        },
        "required": [
          "attributeId",
          "title",
          "required",
          "values"
        ],
        "description": "A choose-one attribute of an option (a size, a date slot label). Most options have none."
      },
      "OptionSelectionValue": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The value's id at Groupon.",
            "example": "LARGE"
          },
          "title": {
            "type": "string",
            "description": "The value as Groupon shows it.",
            "example": "Large"
          }
        },
        "required": [
          "id",
          "title"
        ],
        "description": "One value of a choose-one attribute."
      },
      "Price": {
        "type": "object",
        "properties": {
          "retail": {
            "type": "number",
            "description": "What the shopper pays per unit. Send it as `expectedPrice` on cart lines.",
            "example": 8460
          },
          "original": {
            "type": "number",
            "description": "The strike-through price.",
            "example": 13000
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyCodeString"
              }
            ],
            "description": "The currency, ISO 4217.",
            "example": "USD"
          },
          "currencyPrecision": {
            "type": "number",
            "description": "Decimal places: display amount = amount / 10^currencyPrecision.",
            "example": 2
          }
        },
        "required": [
          "retail",
          "original",
          "currency",
          "currencyPrecision"
        ],
        "description": "A per-unit price, in minor units."
      },
      "PriceBreakdown": {
        "type": "object",
        "properties": {
          "currency": {
            "$ref": "#/components/schemas/CurrencyCodeString"
          },
          "currencyExponent": {
            "type": "number",
            "description": "Minor units per major unit as a power of ten: 2 means 9800 is 98.00."
          },
          "items": {
            "$ref": "#/components/schemas/PriceBreakdownAmount"
          },
          "discounts": {
            "$ref": "#/components/schemas/PriceBreakdownAmount"
          },
          "taxes": {
            "$ref": "#/components/schemas/PriceBreakdownAmount"
          },
          "fees": {
            "$ref": "#/components/schemas/PriceBreakdownAmount"
          },
          "total": {
            "$ref": "#/components/schemas/PriceBreakdownAmount"
          },
          "note": {
            "type": "string",
            "description": "The same in one sentence to relay to the person."
          }
        },
        "required": [
          "currency",
          "currencyExponent",
          "items",
          "discounts",
          "taxes",
          "fees",
          "total",
          "note"
        ],
        "description": "What the shopper will pay, as far as it is known before Groupon's checkout. Never add these up\ninto a total: `total` says whether one is known."
      },
      "PriceBreakdownAmount": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "number",
            "nullable": true,
            "description": "Minor units of the breakdown's `currency`; null when `certainty` is `added_at_checkout`."
          },
          "certainty": {
            "$ref": "#/components/schemas/PriceCertainty"
          }
        },
        "required": [
          "amountMinor",
          "certainty"
        ],
        "description": "One amount of a price breakdown and how far it can be relied on."
      },
      "Product": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The `productId` of a cart line.",
            "example": "e4d9fb19-3de1-4b36-8398-6d54f197a2e3"
          },
          "title": {
            "type": "string",
            "description": "The deal's title as groupon.com shows it.",
            "example": "60-minute Tailored Deep-Tissue or Swedish Massage at Pure Serenity Spa"
          },
          "shortDescription": {
            "type": "string",
            "description": "A short plain-text summary of the deal, for a card or a list.",
            "example": "4.8-Star Rating, over 4,200 reviews. Lincoln Park."
          },
          "description": {
            "type": "string",
            "description": "The deal's description, plain text.",
            "example": "A peaceful oasis in Lincoln Park: free hot stones with every massage."
          },
          "status": {
            "type": "string",
            "description": "Known values: active, sold_out, expired. List a product only when it is active.",
            "example": "active"
          },
          "country": {
            "type": "string",
            "nullable": true,
            "description": "The market the deal is sold in, ISO 3166-1 alpha-2: US or CA, the `country` you read it under.\nA deal outside the US (CA) is priced in its own currency (CAD) and is never put in a cart: it is\nbought on its groupon.com page, `bookingUrl`.",
            "example": "US"
          },
          "availabilityRequired": {
            "type": "boolean",
            "description": "true means the deal is booked, not carted: it cannot be added to a cart. When its options carry a\n`bookingUrl`, it is booked on groupon.com, and its free days and times are read from\n`GET /partner_storefront/products/:productId/availability`; otherwise the product's own\n`bookingUrl` is where it is bought.",
            "example": false
          },
          "bookingUrl": {
            "type": "string",
            "nullable": true,
            "description": "Where a product Groupon's cart cannot take is bought when its options carry no `bookingUrl` of\ntheir own: its page on groupon.com (a hotel stay is booked there by its dates, a shipped product,\n`bookingKind` shipped, bought there with its delivery, a deal outside the US, `country` CA,\nbought there at its Canadian price), tagged with your\nstorefront and, with a CJ publisher id, wrapped in CJ's click link like a cart's `buyLink`.\nnull for a product you put in a cart.",
            "example": null
          },
          "hotelStay": {
            "type": "boolean",
            "description": "true for a hotel stay of either kind, booked by its dates: read its rooms for a stay with\n`GET /partner_storefront/products/:productId/stays`, the stay's one price; its options carry no\n`price` and no `promotion`. Its `bookingUrl` is the deal's own page on groupon.com, and\n`availabilityRequired` is true: a stay is never put in a cart.",
            "example": false
          },
          "bookingKind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LsOfferBookingKind"
              }
            ],
            "description": "How the shopper gets a time with the deal, the one label to read before promising a day or a\ntime. bookable_with_live_times: its free days and times are read live\n(`GET /partner_storefront/products/:productId/availability`), one can be held\n(`POST /partner_storefront/products/:productId/holds`) and it is paid on Groupon's page.\nno_time_held: buying it holds no time; the shopper buys it, then books the time with the\nmerchant afterwards, as the fine print says. stay: a hotel stay, its dates chosen when it is\nbooked. shipped: a product shipped to the shopper's address; it has no time and no place, is never\nput in a cart, and is bought with its delivery at `bookingUrl`, the deal's own page on groupon.com.\nRead it rather than `availabilityRequired` alone.",
            "example": "no_time_held"
          },
          "categoryLabels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Groupon's category labels of the deal, most specific first as Groupon lists them.",
            "example": [
              "Deep Tissue Massage",
              "Swedish Massage"
            ]
          },
          "media": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductMedia"
            },
            "description": "Every picture of the deal's page, each once per size: `index` names the picture, `role` the size.",
            "example": [
              {
                "url": "https://img.grouponcdn.com/deal/z8kRBLEKRvzUVtJQ48Qu14nSFuY/z8-1810x1090/v1/t300x182.jpg",
                "role": "medium",
                "width": 300,
                "height": 182,
                "index": 0
              }
            ]
          },
          "locations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RedemptionLocation"
            },
            "description": "The places the vouchers are redeemed at; empty for a deal redeemed anywhere (shipped goods, online).",
            "example": [
              {
                "id": "a780b4fd-2d25-bed3-9b7d-016814d7ad2e",
                "name": "Lincoln Park",
                "street": "1136 West Armitage Avenue",
                "city": "Chicago",
                "state": "IL",
                "postalCode": "60614",
                "country": "US",
                "latitude": 41.9182047,
                "longitude": -87.6568705,
                "openingHours": null,
                "timeZone": "America/Chicago"
              }
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductOption"
            },
            "description": "The variants the shopper picks from, Groupon's first one first.",
            "example": [
              {
                "id": "a40bef0d-2309-4a38-9042-338601020219",
                "title": "One 60-Minute Deep-Tissue or Swedish Massage",
                "isDefault": true,
                "active": true,
                "minUnits": 1,
                "maxUnits": 30,
                "price": {
                  "retail": 8460,
                  "original": 13000,
                  "currency": "USD",
                  "currencyPrecision": 2
                },
                "promotion": null,
                "selections": [],
                "bookingUrl": null
              }
            ]
          },
          "merchantRating": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MerchantRating"
              }
            ],
            "nullable": true,
            "description": "The merchant's rating groupon.com shows on the offer's page; null when it has no ratings yet.",
            "example": {
              "average": 4.8,
              "count": 5315
            }
          },
          "merchantId": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's merchant uuid, stable across every product of the merchant: match a merchant across\nproducts by it, never by its name. The agent API's offer answers the same value as its\n`merchantId`. Null when Groupon's catalog carries none.",
            "example": "5a1f0c2e-8d3b-4e7a-9c1d-2b6f4e8a0d13"
          },
          "merchantWebsite": {
            "type": "string",
            "nullable": true,
            "description": "The merchant's own website, an absolute http(s) address; null when Groupon holds none.",
            "example": "https://www.examplespa.com/"
          },
          "rating": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DealRating"
              }
            ],
            "nullable": true,
            "description": "The deal's own rating from its customer reviews; null when Groupon holds no review of the deal.",
            "example": {
              "average": 4.6,
              "count": 371,
              "newestReviewAt": "2026-09-28T17:02:11.000Z",
              "asOf": "2026-10-29T04:41:12.118Z"
            }
          },
          "bought": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Bought"
              }
            ],
            "nullable": true,
            "description": "How many bought it, as groupon.com's badge says it; null under 100, when hidden, or unknown.",
            "example": {
              "atLeast": 1000,
              "asOf": "2026-10-13T18:41:36.005Z"
            }
          },
          "finePrint": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "description": "Groupon's fine print, the terms of redemption, as plain-text paragraphs; null when Groupon gives none. Show it as it is.",
            "example": [
              "Appointment required.",
              "Limit 1 per person."
            ]
          }
        },
        "required": [
          "id",
          "title",
          "shortDescription",
          "description",
          "status",
          "country",
          "availabilityRequired",
          "bookingUrl",
          "hotelStay",
          "bookingKind",
          "categoryLabels",
          "media",
          "locations",
          "options",
          "merchantRating",
          "merchantId",
          "merchantWebsite",
          "rating",
          "bought",
          "finePrint"
        ],
        "description": "A Groupon deal."
      },
      "ProductCategory": {
        "type": "object",
        "properties": {
          "category0": {
            "type": "string",
            "description": "The `category0` value (`local`)."
          },
          "category1": {
            "type": "string",
            "nullable": true,
            "description": "The `category1` value (`things-to-do`); null when the products here carry none."
          },
          "category2": {
            "type": "string",
            "nullable": true,
            "description": "The `category2` value (`escape-rooms`); null when the products here carry none."
          },
          "products": {
            "type": "number",
            "description": "Products on sale now under exactly this path, inside your scope."
          }
        },
        "required": [
          "category0",
          "category1",
          "category2",
          "products"
        ],
        "description": "One category path of a storefront's catalog: the value of each `category` filter, and how much sits under it."
      },
      "ProductChangePolicy": {
        "type": "object",
        "properties": {
          "route": {
            "type": "string",
            "description": "Known values: `merchant` (the shopper books the time with the merchant after buying, so the\nmerchant cancels or moves it by its own terms; the purchase stays usable until `expires`),\n`cancel_purchase` (the day and time are booked and paid on Groupon: `POST\n/partner_storefront/bookings/{bookingId}/cancel` asks Groupon whether its rules allow cancelling it\nnow, the booking partner's cutoff included, and cancels it on the shopper's yes; whatever Groupon\nrefuses goes to Groupon's customer support), `cancel_and_rebook` (Groupon never moves a booked\nday or time: a new time is a cancel, where Groupon allows it, and a new booking),\n`groupon_support` (LivingSocial offers no cancel or change of it: Groupon's customer support\ndecides), `per_room` (a hotel stay: a room is cancelled by its rate's terms, and\nGroupon does not change a booked stay's dates: cancel within the terms and book the new dates),\n`unknown`. Treat a value you do not know as `unknown`.",
            "example": "merchant"
          }
        },
        "required": [
          "route"
        ],
        "description": "Who cancels, or who moves, a time once it is booked."
      },
      "ProductHit": {
        "type": "object",
        "properties": {
          "distanceKm": {
            "type": "number",
            "nullable": true,
            "description": "Kilometres to the product's nearest redemption location, rounded to ten metres; null when the search named no `near`.",
            "example": 2.43
          },
          "distanceMiles": {
            "type": "number",
            "nullable": true,
            "description": "The same distance in miles, rounded to a hundredth of a mile; null when the search named no `near`.",
            "example": 1.51
          },
          "id": {
            "type": "string",
            "description": "The `productId` of a cart line.",
            "example": "e4d9fb19-3de1-4b36-8398-6d54f197a2e3"
          },
          "title": {
            "type": "string",
            "description": "The deal's title as groupon.com shows it.",
            "example": "60-minute Tailored Deep-Tissue or Swedish Massage at Pure Serenity Spa"
          },
          "shortDescription": {
            "type": "string",
            "description": "A short plain-text summary of the deal, for a card or a list.",
            "example": "4.8-Star Rating, over 4,200 reviews. Lincoln Park."
          },
          "description": {
            "type": "string",
            "description": "The deal's description, plain text.",
            "example": "A peaceful oasis in Lincoln Park: free hot stones with every massage."
          },
          "status": {
            "type": "string",
            "description": "Known values: active, sold_out, expired. List a product only when it is active.",
            "example": "active"
          },
          "country": {
            "type": "string",
            "nullable": true,
            "description": "The market the deal is sold in, ISO 3166-1 alpha-2: US or CA, the `country` you read it under.\nA deal outside the US (CA) is priced in its own currency (CAD) and is never put in a cart: it is\nbought on its groupon.com page, `bookingUrl`.",
            "example": "US"
          },
          "availabilityRequired": {
            "type": "boolean",
            "description": "true means the deal is booked, not carted: it cannot be added to a cart. When its options carry a\n`bookingUrl`, it is booked on groupon.com, and its free days and times are read from\n`GET /partner_storefront/products/:productId/availability`; otherwise the product's own\n`bookingUrl` is where it is bought.",
            "example": false
          },
          "bookingUrl": {
            "type": "string",
            "nullable": true,
            "description": "Where a product Groupon's cart cannot take is bought when its options carry no `bookingUrl` of\ntheir own: its page on groupon.com (a hotel stay is booked there by its dates, a shipped product,\n`bookingKind` shipped, bought there with its delivery, a deal outside the US, `country` CA,\nbought there at its Canadian price), tagged with your\nstorefront and, with a CJ publisher id, wrapped in CJ's click link like a cart's `buyLink`.\nnull for a product you put in a cart.",
            "example": null
          },
          "hotelStay": {
            "type": "boolean",
            "description": "true for a hotel stay of either kind, booked by its dates: read its rooms for a stay with\n`GET /partner_storefront/products/:productId/stays`, the stay's one price; its options carry no\n`price` and no `promotion`. Its `bookingUrl` is the deal's own page on groupon.com, and\n`availabilityRequired` is true: a stay is never put in a cart.",
            "example": false
          },
          "bookingKind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LsOfferBookingKind"
              }
            ],
            "description": "How the shopper gets a time with the deal, the one label to read before promising a day or a\ntime. bookable_with_live_times: its free days and times are read live\n(`GET /partner_storefront/products/:productId/availability`), one can be held\n(`POST /partner_storefront/products/:productId/holds`) and it is paid on Groupon's page.\nno_time_held: buying it holds no time; the shopper buys it, then books the time with the\nmerchant afterwards, as the fine print says. stay: a hotel stay, its dates chosen when it is\nbooked. shipped: a product shipped to the shopper's address; it has no time and no place, is never\nput in a cart, and is bought with its delivery at `bookingUrl`, the deal's own page on groupon.com.\nRead it rather than `availabilityRequired` alone.",
            "example": "no_time_held"
          },
          "categoryLabels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Groupon's category labels of the deal, most specific first as Groupon lists them.",
            "example": [
              "Deep Tissue Massage",
              "Swedish Massage"
            ]
          },
          "media": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductMedia"
            },
            "description": "Every picture of the deal's page, each once per size: `index` names the picture, `role` the size.",
            "example": [
              {
                "url": "https://img.grouponcdn.com/deal/z8kRBLEKRvzUVtJQ48Qu14nSFuY/z8-1810x1090/v1/t300x182.jpg",
                "role": "medium",
                "width": 300,
                "height": 182,
                "index": 0
              }
            ]
          },
          "locations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RedemptionLocation"
            },
            "description": "The places the vouchers are redeemed at; empty for a deal redeemed anywhere (shipped goods, online).",
            "example": [
              {
                "id": "a780b4fd-2d25-bed3-9b7d-016814d7ad2e",
                "name": "Lincoln Park",
                "street": "1136 West Armitage Avenue",
                "city": "Chicago",
                "state": "IL",
                "postalCode": "60614",
                "country": "US",
                "latitude": 41.9182047,
                "longitude": -87.6568705,
                "openingHours": null,
                "timeZone": "America/Chicago"
              }
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductOption"
            },
            "description": "The variants the shopper picks from, Groupon's first one first.",
            "example": [
              {
                "id": "a40bef0d-2309-4a38-9042-338601020219",
                "title": "One 60-Minute Deep-Tissue or Swedish Massage",
                "isDefault": true,
                "active": true,
                "minUnits": 1,
                "maxUnits": 30,
                "price": {
                  "retail": 8460,
                  "original": 13000,
                  "currency": "USD",
                  "currencyPrecision": 2
                },
                "promotion": null,
                "selections": [],
                "bookingUrl": null
              }
            ]
          },
          "merchantRating": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MerchantRating"
              }
            ],
            "nullable": true,
            "description": "The merchant's rating groupon.com shows on the offer's page; null when it has no ratings yet.",
            "example": {
              "average": 4.8,
              "count": 5315
            }
          },
          "merchantId": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's merchant uuid, stable across every product of the merchant: match a merchant across\nproducts by it, never by its name. The agent API's offer answers the same value as its\n`merchantId`. Null when Groupon's catalog carries none.",
            "example": "5a1f0c2e-8d3b-4e7a-9c1d-2b6f4e8a0d13"
          },
          "merchantWebsite": {
            "type": "string",
            "nullable": true,
            "description": "The merchant's own website, an absolute http(s) address; null when Groupon holds none.",
            "example": "https://www.examplespa.com/"
          },
          "rating": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DealRating"
              }
            ],
            "nullable": true,
            "description": "The deal's own rating from its customer reviews; null when Groupon holds no review of the deal.",
            "example": {
              "average": 4.6,
              "count": 371,
              "newestReviewAt": "2026-09-28T17:02:11.000Z",
              "asOf": "2026-10-29T04:41:12.118Z"
            }
          },
          "bought": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Bought"
              }
            ],
            "nullable": true,
            "description": "How many bought it, as groupon.com's badge says it; null under 100, when hidden, or unknown.",
            "example": {
              "atLeast": 1000,
              "asOf": "2026-10-13T18:41:36.005Z"
            }
          },
          "finePrint": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "description": "Groupon's fine print, the terms of redemption, as plain-text paragraphs; null when Groupon gives none. Show it as it is.",
            "example": [
              "Appointment required.",
              "Limit 1 per person."
            ]
          }
        },
        "required": [
          "distanceKm",
          "distanceMiles",
          "id",
          "title",
          "shortDescription",
          "description",
          "status",
          "country",
          "availabilityRequired",
          "bookingUrl",
          "hotelStay",
          "bookingKind",
          "categoryLabels",
          "media",
          "locations",
          "options",
          "merchantRating",
          "merchantId",
          "merchantWebsite",
          "rating",
          "bought",
          "finePrint"
        ],
        "description": "A Groupon deal a search found: the walk's product, and how far it is from the point the search named."
      },
      "ProductHoldTicket": {
        "type": "object",
        "properties": {
          "ticketTypeId": {
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "price": {
            "$ref": "#/components/schemas/SlotPrice"
          }
        },
        "required": [
          "ticketTypeId",
          "quantity",
          "price"
        ],
        "description": "One ticket type of a hold, priced at its slot."
      },
      "ProductMedia": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The picture's address on Groupon's image CDN, ready to show as it is.",
            "example": "https://img.grouponcdn.com/deal/z8kRBLEKRvzUVtJQ48Qu14nSFuY/z8-1810x1090/v1/t300x182.jpg"
          },
          "role": {
            "type": "string",
            "description": "A size name: small, medium, large, extra_large or wide_crop. Not every size is present.",
            "example": "medium"
          },
          "width": {
            "type": "number",
            "nullable": true,
            "description": "The picture's width in pixels; null when Groupon does not say.",
            "example": 300
          },
          "height": {
            "type": "number",
            "nullable": true,
            "description": "The picture's height in pixels; null when Groupon does not say.",
            "example": 182
          },
          "index": {
            "type": "number",
            "description": "The picture this entry belongs to, in the deal page's order: 0 is the main picture, 1 and on the gallery.",
            "example": 0
          }
        },
        "required": [
          "url",
          "role",
          "width",
          "height"
        ],
        "description": "One picture of a deal at one size: every picture of the deal page comes once per size."
      },
      "ProductNoShowPolicy": {
        "type": "object",
        "properties": {
          "rule": {
            "type": "string",
            "description": "Known values: `fine_print` (the fine print states its own no-show terms, quoted in `terms`),\n`unknown` (no source states a no-show rule: Groupon's standard terms say nothing about a missed\ntime). Treat a value you do not know as `unknown`.",
            "example": "fine_print"
          },
          "terms": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "description": "The fine print's own sentences about a no-show, quoted as written; null with `unknown`.",
            "example": [
              "No-shows forfeit the purchase."
            ]
          }
        },
        "required": [
          "rule",
          "terms"
        ],
        "description": "What happens when the shopper does not turn up for a booked time."
      },
      "ProductOption": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The `optionId` of a cart line, and the `itemId` in cart item paths.",
            "example": "a40bef0d-2309-4a38-9042-338601020219"
          },
          "title": {
            "type": "string",
            "description": "The option's own title, what the shopper buys.",
            "example": "One 60-Minute Deep-Tissue or Swedish Massage"
          },
          "isDefault": {
            "type": "boolean",
            "description": "True for the option Groupon's page shows first.",
            "example": true
          },
          "active": {
            "type": "boolean",
            "nullable": true,
            "description": "false is not sellable; null means Groupon does not know: treat it as sellable.",
            "example": true
          },
          "minUnits": {
            "type": "number",
            "description": "The fewest units one cart line may hold.",
            "example": 1
          },
          "maxUnits": {
            "type": "number",
            "nullable": true,
            "description": "The most units one cart line may hold; null means no maximum.",
            "example": 30
          },
          "price": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Price"
              }
            ],
            "nullable": true,
            "description": "The option's per-unit price; null when Groupon published no price for the option, and always\nnull for a hotel stay (`hotelStay` true): Groupon prices a stay only for its dates, so quote it\nfrom `GET /partner_storefront/products/:productId/stays`.",
            "example": {
              "retail": 8460,
              "original": 13000,
              "currency": "USD",
              "currencyPrecision": 2
            }
          },
          "priceVariesByDate": {
            "type": "boolean",
            "description": "True when Groupon's booking calendar prices this option by date and start time: `price` is then\nGroupon's list price and a day or a time can cost another amount. Quote a date's price from\n`GET /partner_storefront/products/:productId/availability`, which a hold then equals. True too for\na hotel stay's option, which carries no `price`: its rooms are priced by\n`GET /partner_storefront/products/:productId/stays` for the dates.",
            "example": false
          },
          "promotion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Promotion"
              }
            ],
            "nullable": true,
            "description": "A promotional price a code may reach on Groupon's checkout, if the shopper is eligible; null when there is none, and for a hotel stay.",
            "example": {
              "amount": 7190,
              "promoCode": "SAVE15",
              "endsAt": "2026-10-31T06:59:59Z"
            }
          },
          "selections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OptionSelection"
            },
            "description": "The option's choose-one attributes; empty for most options.",
            "example": []
          },
          "bookingUrl": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's booking page with this option chosen, where the shopper picks the day and time and\npays: set on an option of a product booked there (`availabilityRequired` true, a third-party\nticket), null on an option a cart takes. Hand it to the shopper unchanged.",
            "example": null
          }
        },
        "required": [
          "id",
          "title",
          "isDefault",
          "active",
          "minUnits",
          "maxUnits",
          "price",
          "priceVariesByDate",
          "promotion",
          "selections",
          "bookingUrl"
        ],
        "description": "One purchasable variant of a deal, such as \"One 60-Minute Massage\"."
      },
      "ProductPolicy": {
        "type": "object",
        "properties": {
          "refund": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProductRefundPolicy"
              }
            ],
            "description": "Whether money comes back for the purchase, by whose rule, and within how long.",
            "example": {
              "rule": "groupon_standard",
              "windowDays": 3
            }
          },
          "cancellation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProductChangePolicy"
              }
            ],
            "description": "Who cancels a time once it is booked.",
            "example": {
              "route": "merchant"
            }
          },
          "reschedule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProductChangePolicy"
              }
            ],
            "description": "Who moves a booked time to another day or time.",
            "example": {
              "route": "merchant"
            }
          },
          "noShow": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProductNoShowPolicy"
              }
            ],
            "description": "What happens when the shopper does not turn up for a booked time: the fine print's own words, or unknown.",
            "example": {
              "rule": "unknown",
              "terms": null
            }
          },
          "expires": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProductPolicyExpiry"
              }
            ],
            "description": "When the purchase stops being redeemable, from the options' own end dates.",
            "example": {
              "kind": "date",
              "at": "2027-03-08T00:00:00.000Z",
              "paidValue": "kept"
            }
          },
          "support": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProductPolicySupport"
              }
            ],
            "description": "Where the shopper gets help.",
            "example": {
              "orderHelpUrl": "https://www.groupon.com/customer_support",
              "ordersUrl": "https://www.groupon.com/mygroupons",
              "termsUrl": "https://www.groupon.com/legal/grouponpromise",
              "merchant": "Color Cocktail Factory"
            }
          },
          "terms": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "description": "The fine print's own sentences about refunds, cancelling, rescheduling and final sale, quoted as written; null when it says nothing about them.",
            "example": [
              "Merchant's standard cancellation policy applies (any fees not to exceed the purchase price)."
            ]
          }
        },
        "required": [
          "refund",
          "cancellation",
          "reschedule",
          "noShow",
          "expires",
          "support",
          "terms"
        ],
        "description": "The product's refund, cancellation and change rules in plain fields, each from a named source or `unknown`."
      },
      "ProductPolicyExpiry": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "Known values: `date` (every option on the same day, `at`), `varies_by_option` (the options end on\ndifferent days), `no_fixed_date` (no fixed day; the fine print states any limit counted from the\nday of purchase), `unknown`.",
            "example": "date"
          },
          "at": {
            "type": "string",
            "nullable": true,
            "description": "The day every option stops being redeemable, with `date`; null with any other kind.",
            "example": "2027-03-08T00:00:00.000Z"
          },
          "paidValue": {
            "type": "string",
            "description": "What the amount paid is worth after `at`. Known values: `kept` (Groupon's standard terms for a\npurchase redeemed at the merchant: it may always be redeemed there for at least the amount paid),\n`unknown`.",
            "example": "kept"
          }
        },
        "required": [
          "kind",
          "at",
          "paidValue"
        ],
        "description": "When the purchase stops being redeemable, and what the amount paid is worth after."
      },
      "ProductPolicySupport": {
        "type": "object",
        "properties": {
          "orderHelpUrl": {
            "type": "string",
            "description": "Groupon's customer support, for anything about the order: a refund, a cancellation, a problem with the purchase.",
            "example": "https://www.groupon.com/customer_support"
          },
          "ordersUrl": {
            "type": "string",
            "description": "The shopper's purchases in their Groupon account, where an order Groupon may still cancel shows its cancel button.",
            "example": "https://www.groupon.com/mygroupons"
          },
          "termsUrl": {
            "type": "string",
            "description": "Groupon's standard refund terms, the Groupon Promise.",
            "example": "https://www.groupon.com/legal/grouponpromise"
          },
          "merchant": {
            "type": "string",
            "nullable": true,
            "description": "Who to ask about a time booked with the merchant (`cancellation.route` `merchant`); null with any other route or when unknown.",
            "example": "Color Cocktail Factory"
          }
        },
        "required": [
          "orderHelpUrl",
          "ordersUrl",
          "termsUrl",
          "merchant"
        ],
        "description": "Where the shopper gets help: Groupon sells every product and takes the payment, so the order's help is Groupon's."
      },
      "ProductRefundPolicy": {
        "type": "object",
        "properties": {
          "rule": {
            "type": "string",
            "description": "Whose rule applies. Known values: `groupon_standard` (Groupon's standard terms for a purchase\nredeemed at the merchant, the fine print stating no exception: Groupon refunds the amount paid\nwhen the order is cancelled within `windowDays` days of buying, unredeemed and before any time is\nbooked with the merchant; after that all sales are final), `all_sales_final` (the fine print says\nall sales are final: Groupon neither cancels nor refunds the order), `fine_print` (the fine print\nstates its own refund terms, quoted in `terms`, which Groupon's standard terms give way to),\n`per_room` (a hotel stay: each room's rate says, in the stays read), `unknown` (no source states\nit). Treat a value you do not know as `unknown`.",
            "example": "groupon_standard"
          },
          "windowDays": {
            "type": "number",
            "nullable": true,
            "description": "With `groupon_standard`, the days after buying within which Groupon refunds the order; null with any other rule.",
            "example": 3
          }
        },
        "required": [
          "rule",
          "windowDays"
        ],
        "description": "Whether money comes back for the purchase, by whose rule, and within how long."
      },
      "ProductReview": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Groupon's own id of the review, stable across reads.",
            "example": "00000000-0000-0000-0000-00005657d136"
          },
          "stars": {
            "type": "number",
            "description": "The stars the shopper gave, 1 to 5.",
            "example": 5
          },
          "text": {
            "type": "string",
            "nullable": true,
            "description": "The review's text as written; null when it has none. Show it as the customer's words.",
            "example": "Great tour guide, informative and funny. One of the highlights of our trip!"
          },
          "writtenAt": {
            "type": "string",
            "nullable": true,
            "description": "When the shopper wrote it; null when Groupon gives no readable date.",
            "example": "2026-10-24T18:51:40.164Z"
          },
          "reviewer": {
            "type": "string",
            "nullable": true,
            "description": "The reviewer's name as Groupon shows it (a first name, an initial or a site's user name), never an email or a full name; null when none is shown.",
            "example": "Ashley"
          },
          "verifiedPurchase": {
            "type": "boolean",
            "nullable": true,
            "description": "true when Groupon marks the review as from a verified purchase, false when it marks it as not; null when it states nothing.",
            "example": true
          },
          "writtenOn": {
            "type": "string",
            "nullable": true,
            "description": "The site the review was written on: Groupon, or a partner such as Viator; null when Groupon does not say.",
            "example": "Groupon"
          }
        },
        "required": [
          "id",
          "stars",
          "text",
          "writtenAt",
          "reviewer",
          "verifiedPurchase",
          "writtenOn"
        ],
        "description": "One customer review of the deal, as its shopper wrote it."
      },
      "ProductReviews": {
        "type": "object",
        "properties": {
          "latest": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LatestReviews"
              }
            ],
            "nullable": true,
            "description": "The newest reviews; null when the deal has no review.",
            "example": {
              "source": "Groupon customer reviews",
              "asOf": "2026-10-30T12:05:25.283Z",
              "reviews": [
                {
                  "id": "00000000-0000-0000-0000-00005657d136",
                  "stars": 5,
                  "text": "Great tour guide, informative and funny.",
                  "writtenAt": "2026-10-24T18:51:40.164Z",
                  "reviewer": "Ashley",
                  "verifiedPurchase": true,
                  "writtenOn": "Groupon"
                }
              ]
            }
          },
          "byStar": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewsByStar"
              }
            ],
            "nullable": true,
            "description": "The count per star; null when the deal has no review.",
            "example": {
              "source": "Groupon customer reviews",
              "asOf": "2026-10-30T12:05:25.283Z",
              "total": 6825,
              "counts": [
                {
                  "stars": 5,
                  "count": 6188
                },
                {
                  "stars": 4,
                  "count": 312
                },
                {
                  "stars": 3,
                  "count": 141
                },
                {
                  "stars": 2,
                  "count": 63
                },
                {
                  "stars": 1,
                  "count": 121
                }
              ],
              "oldestReviewAt": "2018-02-02T21:47:27.346Z",
              "newestReviewAt": "2026-10-24T18:51:40.164Z"
            }
          },
          "summary": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewSummary"
              }
            ],
            "nullable": true,
            "description": "The generated summary; null under 5 reviews or before one is built.",
            "example": {
              "source": "Groupon customer reviews",
              "asOf": "2026-10-30T19:02:44.512Z",
              "text": "Reviewers praise the knowledgeable, funny guides. A few say the boat felt crowded on weekends.",
              "basedOn": {
                "reviewCount": 50,
                "oldestReviewAt": "2026-09-02T14:10:05.000Z",
                "newestReviewAt": "2026-10-24T18:51:40.164Z"
              },
              "generatedBy": {
                "model": "gpt-4.1-mini",
                "promptVersion": 1
              }
            }
          }
        },
        "required": [
          "latest",
          "byStar",
          "summary"
        ],
        "description": "The deal's customer reviews: each block null when nothing stands behind it."
      },
      "Promotion": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "The per-unit price the code may reach, if the shopper is eligible, in the same minor units and\ncurrency as `price.retail`.",
            "example": 7190
          },
          "promoCode": {
            "type": "string",
            "nullable": true,
            "description": "The code the shopper enters on Groupon's checkout page; null when Groupon names none.",
            "example": "SAVE15"
          },
          "endsAt": {
            "type": "string",
            "nullable": true,
            "description": "When the promotion stops working, not when the offer ends (that is the product's `status`); null when unknown.",
            "example": "2026-10-31T06:59:59Z"
          }
        },
        "required": [
          "amount",
          "promoCode",
          "endsAt"
        ],
        "description": "A promotional price a shopper may get with a code on Groupon's checkout page, if eligible: Groupon\ndecides when the shopper pays, and some promotions are for new customers only or work only in the\nGroupon app. Informational."
      },
      "PurchaseCancelAmountDTO": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "number"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCodeString"
          },
          "currencyExponent": {
            "type": "number",
            "description": "The currency's minor-unit exponent (2 for USD)."
          }
        },
        "required": [
          "amountMinor",
          "currency",
          "currencyExponent"
        ],
        "description": "The price Groupon recorded for the units a cancel covers, in minor units of `currency`."
      },
      "RedemptionLocation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "description": "Groupon's id of the place; null when Groupon names none.",
            "example": "a780b4fd-2d25-bed3-9b7d-016814d7ad2e"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "The place's name as Groupon shows it, often its neighbourhood or branch.",
            "example": "Lincoln Park"
          },
          "street": {
            "type": "string",
            "nullable": true,
            "description": "The street and number.",
            "example": "1136 West Armitage Avenue"
          },
          "city": {
            "type": "string",
            "nullable": true,
            "description": "The city.",
            "example": "Chicago"
          },
          "state": {
            "type": "string",
            "nullable": true,
            "description": "The state's two-letter code, as Groupon's catalog carries it (every one of 816 places read on\n2026-10-29 had one).",
            "example": "IL"
          },
          "postalCode": {
            "type": "string",
            "nullable": true,
            "description": "The postal code.",
            "example": "60614"
          },
          "country": {
            "type": "string",
            "nullable": true,
            "description": "The country, ISO 3166-1 alpha-2.",
            "example": "US"
          },
          "latitude": {
            "type": "number",
            "nullable": true,
            "description": "Latitude in degrees (WGS 84).",
            "example": 41.9182047
          },
          "longitude": {
            "type": "number",
            "nullable": true,
            "description": "Longitude in degrees (WGS 84).",
            "example": -87.6568705
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "description": "The place's phone number as groupon.com shows it; null when Groupon holds none.",
            "example": "(773) 555-0142"
          },
          "openingHours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpeningHoursDay"
            },
            "nullable": true,
            "description": "The place's regular week, Sunday first, in its own time zone, as groupon.com shows it; holidays\nare not included. Null when Groupon holds no hours for the place.",
            "example": [
              {
                "dayOfWeek": 0,
                "closed": false,
                "opens": "10:00",
                "closes": "20:00"
              }
            ]
          },
          "timeZone": {
            "type": "string",
            "nullable": true,
            "description": "The place's IANA time zone, to tell whether it is open now; null when unknown.",
            "example": "America/Chicago"
          }
        },
        "required": [
          "id",
          "name",
          "street",
          "city",
          "state",
          "postalCode",
          "country",
          "latitude",
          "longitude",
          "phone",
          "openingHours",
          "timeZone"
        ],
        "description": "Where a voucher is redeemed. Any field can be unknown."
      },
      "ReviewSummary": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "Where the reviews it summarizes come from.",
            "example": "Groupon customer reviews"
          },
          "asOf": {
            "type": "string",
            "description": "When the summary was generated.",
            "example": "2026-10-30T19:02:44.512Z"
          },
          "text": {
            "type": "string",
            "description": "Two to four plain sentences a model wrote from the reviews. Label it as a generated summary.",
            "example": "Reviewers praise the knowledgeable, funny guides and seeing alligators up close. A few say the boat felt crowded on weekends."
          },
          "basedOn": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewSummaryBasis"
              }
            ],
            "description": "The reviews the model read.",
            "example": {
              "reviewCount": 50,
              "oldestReviewAt": "2026-09-02T14:10:05.000Z",
              "newestReviewAt": "2026-10-24T18:51:40.164Z"
            }
          },
          "generatedBy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewSummaryGenerator"
              }
            ],
            "description": "The model and prompt that wrote it.",
            "example": {
              "model": "gpt-4.1-mini",
              "promptVersion": 1
            }
          }
        },
        "required": [
          "source",
          "asOf",
          "text",
          "basedOn",
          "generatedBy"
        ],
        "description": "A short AI-generated summary of what the deal's reviewers praise and complain about. Generated text, never a review."
      },
      "ReviewSummaryBasis": {
        "type": "object",
        "properties": {
          "reviewCount": {
            "type": "number",
            "description": "How many of the deal's newest reviews the model read, at most 50.",
            "example": 50
          },
          "oldestReviewAt": {
            "type": "string",
            "nullable": true,
            "description": "When the oldest of them was written; null when none states a date.",
            "example": "2026-09-02T14:10:05.000Z"
          },
          "newestReviewAt": {
            "type": "string",
            "nullable": true,
            "description": "When the newest of them was written; null when none states a date.",
            "example": "2026-10-24T18:51:40.164Z"
          }
        },
        "required": [
          "reviewCount",
          "oldestReviewAt",
          "newestReviewAt"
        ],
        "description": "The reviews a summary was built from."
      },
      "ReviewSummaryGenerator": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "nullable": true,
            "description": "The model, as Groupon's AI gateway names it; null when it did not say.",
            "example": "gpt-4.1-mini"
          },
          "promptVersion": {
            "type": "number",
            "nullable": true,
            "description": "The prompt's version; null when the gateway did not say.",
            "example": 1
          }
        },
        "required": [
          "model",
          "promptVersion"
        ],
        "description": "The model and prompt that wrote a summary."
      },
      "ReviewsByStar": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "Where the reviews come from.",
            "example": "Groupon customer reviews"
          },
          "asOf": {
            "type": "string",
            "description": "When Groupon last read the deal's reviews.",
            "example": "2026-10-30T12:05:25.283Z"
          },
          "total": {
            "type": "number",
            "description": "Every counted review: the sum of `counts`, the same number as `rating.count` once both are read.",
            "example": 6825
          },
          "counts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StarCount"
            },
            "description": "Five entries, 5 stars first.",
            "example": [
              {
                "stars": 5,
                "count": 6188
              },
              {
                "stars": 4,
                "count": 312
              },
              {
                "stars": 3,
                "count": 141
              },
              {
                "stars": 2,
                "count": 63
              },
              {
                "stars": 1,
                "count": 121
              }
            ]
          },
          "oldestReviewAt": {
            "type": "string",
            "nullable": true,
            "description": "When the oldest counted review was written; null when none states a date.",
            "example": "2018-02-02T21:47:27.346Z"
          },
          "newestReviewAt": {
            "type": "string",
            "nullable": true,
            "description": "When the newest counted review was written; null when none states a date.",
            "example": "2026-10-24T18:51:40.164Z"
          }
        },
        "required": [
          "source",
          "asOf",
          "total",
          "counts",
          "oldestReviewAt",
          "newestReviewAt"
        ],
        "description": "The deal's customer reviews counted per star."
      },
      "SearchScope": {
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/SearchScopeKind"
          },
          "place": {
            "type": "string",
            "nullable": true,
            "description": "The place: the area read in `q` (`New York`) or the US state it names (`Florida`), the `city` as\nyou sent it, Chicago (Toronto for `country` CA) for `default`, the place abroad for `outside_market` (`London`, `France`);\nnull for `near` and `national`."
          },
          "country": {
            "type": "string",
            "nullable": true,
            "description": "ISO 3166 alpha-2 of the place abroad for `outside_market` (`GB`); null for every other kind."
          },
          "note": {
            "type": "string",
            "description": "One sentence saying what was searched, to tell the shopper."
          }
        },
        "required": [
          "kind",
          "place",
          "country",
          "note"
        ],
        "description": "What a search covered, so your assistant can tell the shopper where it looked."
      },
      "SlotPrice": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "In minor units."
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCodeString"
          },
          "currencyPrecision": {
            "type": "number",
            "description": "Decimal places: display amount = amount / 10^currencyPrecision."
          }
        },
        "required": [
          "amount",
          "currency",
          "currencyPrecision"
        ],
        "description": "One ticket's price for a slot, in minor units."
      },
      "StarCount": {
        "type": "object",
        "properties": {
          "stars": {
            "type": "number",
            "description": "1 to 5.",
            "example": 5
          },
          "count": {
            "type": "number",
            "description": "Reviews giving it, 0 or more.",
            "example": 6188
          }
        },
        "required": [
          "stars",
          "count"
        ],
        "description": "How many of the deal's reviews give one star."
      },
      "StayGuests": {
        "type": "object",
        "properties": {
          "adults": {
            "type": "number",
            "description": "Adults in the room."
          },
          "children": {
            "type": "number",
            "description": "Children in the room."
          },
          "fixed": {
            "type": "boolean",
            "description": "true when Groupon's checkout books exactly these guests whatever was asked (a contracted stay:\n2 adults, no children). false when the rooms were priced for the guests asked."
          }
        },
        "required": [
          "adults",
          "children",
          "fixed"
        ],
        "description": "The guests a hotel stay's rooms are priced and booked for."
      },
      "StayNight": {
        "type": "object",
        "properties": {
          "date": {
            "$ref": "#/components/schemas/IsoDateString"
          },
          "price": {
            "$ref": "#/components/schemas/SlotPrice"
          }
        },
        "required": [
          "date",
          "price"
        ],
        "description": "One night of a room's stay at its base rate, before taxes and fees."
      },
      "StayRoom": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The room and rate, unique within one answer. A contracted stay's room is Groupon's option for\nthese dates (the same id as in `unavailableRooms`)."
          },
          "title": {
            "type": "string",
            "description": "The room as the hotel names it (`Standard Room, 1 King Bed`); for a contracted stay's room, the\nname of the deal's option it is."
          },
          "description": {
            "type": "string",
            "description": "The room's description. Empty for a contracted stay's room: Groupon states none."
          },
          "refundable": {
            "type": "boolean",
            "description": "Whether the rate can be cancelled for a refund; the terms are `cancellationPolicy`. A\ncontracted stay's room with no terms stated is false."
          },
          "cancellationPolicy": {
            "type": "string",
            "description": "The cancellation terms, in the hotel partner's words, or Groupon's for a contracted stay's\nroom. Empty for a contracted stay's room when Groupon states none."
          },
          "price": {
            "$ref": "#/components/schemas/SlotPrice"
          },
          "total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SlotPrice"
              }
            ],
            "nullable": true,
            "description": "The whole stay with taxes and every fee, the fees paid at the hotel (`payAtHotel`) included; null\nwhen Groupon does not state it, and always null for a contracted stay's room."
          },
          "payAtHotel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SlotPrice"
              }
            ],
            "nullable": true,
            "description": "Of `total`, the fees the hotel collects at the stay (a resort fee and the like); null when\nGroupon does not state them, and always null for a contracted stay's room."
          },
          "nights": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StayNight"
            },
            "description": "Each night at its base rate, before taxes and fees."
          },
          "bookingUrl": {
            "type": "string",
            "description": "Groupon's checkout for this room, these dates and these guests, where the shopper pays, tagged\nwith your storefront and, with a CJ publisher id, wrapped in CJ's click link like a cart's\n`buyLink`. Seen, not held. Hand it over unchanged: its dates and guests are the quote Groupon's\ncheckout books, so a link edited to other dates or guests books the original stay. For another\nstay, read the stays again."
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "refundable",
          "cancellationPolicy",
          "price",
          "total",
          "payAtHotel",
          "nights",
          "bookingUrl"
        ],
        "description": "One room and rate of a hotel stay for the dates asked: bookable now, with its price and its link."
      },
      "StorefrontRegistration": {
        "type": "object",
        "properties": {
          "storefrontId": {
            "type": "string"
          },
          "partnerId": {
            "type": "string",
            "description": "The storefront's partner id: quote it to support. A storefront registered since 2026-10-13\ngets one of LivingSocial for Agents' own; one registered before keeps the id it was given."
          },
          "displayName": {
            "type": "string"
          },
          "contactName": {
            "type": "string"
          },
          "contactEmail": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true,
            "description": "The logo as Groupon holds it. A logo registered from your own host is copied to Groupon's\nimage CDN, so this is the copy's address, not the one you gave. Groupon's cobranded checkout\nshows it; that checkout serves a storefront Groupon has marked Trusted, and only with a logo."
          },
          "redirectUrl": {
            "type": "string",
            "nullable": true,
            "description": "Where Groupon's cobranded checkout sends a shopper back to after paying, with\n`grouponOrderUuid` added: a Trusted storefront with a logo. Any other storefront's shopper\npays on Groupon's own checkout and stays on Groupon's receipt page."
          },
          "continueShoppingUrl": {
            "type": "string",
            "nullable": true,
            "description": "Where Groupon's cobranded checkout (a Trusted storefront with a logo) sends a shopper who\nleaves without buying (its logo, \"Continue shopping\"). Null: the origin of `redirectUrl`, or\ngroupon.com without one. Set on the storefront's page."
          },
          "inventoryCountries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "inventoryStates": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "category0": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "category1": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "category2": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "maxPageSize": {
            "type": "number",
            "nullable": true,
            "description": "The most products one page returns to this storefront; null for the default."
          },
          "cjPublisherId": {
            "type": "string",
            "nullable": true,
            "description": "The CJ publisher id your buy links credit: the one Groupon confirmed for this storefront, which\nturns every `buyLink` into CJ's click link. Null until one is confirmed; an id entered on the\nstorefront's page and still awaiting confirmation, or refused, is not here."
          },
          "status": {
            "type": "string",
            "description": "Known values: active, deactivated."
          }
        },
        "required": [
          "storefrontId",
          "partnerId",
          "displayName",
          "contactName",
          "contactEmail",
          "logoUrl",
          "redirectUrl",
          "continueShoppingUrl",
          "inventoryCountries",
          "inventoryStates",
          "category0",
          "category1",
          "category2",
          "maxPageSize",
          "cjPublisherId",
          "status"
        ],
        "description": "The storefront's registration as it stands now."
      },
      "UnavailableStayNight": {
        "type": "object",
        "properties": {
          "date": {
            "$ref": "#/components/schemas/IsoDateString"
          },
          "available": {
            "type": "boolean",
            "description": "False when the night is sold out, a blackout night, or not in Groupon's calendar."
          }
        },
        "required": [
          "date",
          "available"
        ],
        "description": "One night of a contracted stay's room that is not bookable for the dates asked."
      },
      "UnavailableStayRoom": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Groupon's option for these dates (the id it would have in `rooms`)."
          },
          "title": {
            "type": "string",
            "description": "The name of the deal's option it is."
          },
          "nights": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnavailableStayNight"
            },
            "description": "Each night of the stay with whether it can be booked, so the shopper can be told which nights\nare the problem. When every night is available, the length of the stay is what the room\ndoes not allow: try other dates."
          }
        },
        "required": [
          "id",
          "title",
          "nights"
        ],
        "description": "A contracted stay's room that cannot be booked for the dates asked: at least one night is sold\nout or blacked out, not in Groupon's calendar, or the stay's length is outside what the room allows."
      },
      "BookingCancelRequestBody": {
        "type": "object",
        "properties": {
          "confirmed": {
            "type": "boolean",
            "description": "True only once the shopper said yes to cancelling for the amount the call without it answered. Left out or false, nothing changes."
          },
          "amountMinor": {
            "type": "number",
            "description": "With `confirmed`: the amount the call without it answered (`amount.amountMinor`), repeated exactly."
          },
          "currency": {
            "type": "string",
            "description": "With `confirmed`: the currency the call without it answered (`amount.currency`), repeated exactly: three letters, upper or lower case."
          }
        }
      },
      "BookingCodesIssueRequestBody": {
        "type": "object",
        "properties": {
          "unitIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The `unitItems[].id` values to issue, 1 to 100 of them; leave it out to issue every voucher of the order."
          }
        }
      },
      "CartCreateRequestBody": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2: `US`. Groupon's partner checkout sells US deals only; a line of a deal outside\nthe US (`country` CA on the product) is refused with `PRODUCT_NOT_CARTABLE` and its `bookingUrl`."
          },
          "clientReference": {
            "type": "string",
            "description": "Your own reference for the cart, 1 to 128 characters (`user-8421`, your order's id): answered on\nthe cart, on its order and in your order list, which filters by it; never sent to Groupon."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartItemInput"
            },
            "description": "1 to 20 lines."
          }
        },
        "required": [
          "country",
          "items"
        ]
      },
      "CartItemUpdateRequestBody": {
        "type": "object",
        "properties": {
          "quantity": {
            "type": "number",
            "description": "The new absolute quantity, 1 to 100. Remove the line instead of sending 0."
          },
          "expectedPrice": {
            "type": "number",
            "description": "The per-unit retail your site shows, in minor units."
          }
        },
        "required": [
          "quantity"
        ]
      },
      "CartItemsAddRequestBody": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartItemInput"
            },
            "description": "1 to 20 lines."
          }
        },
        "required": [
          "items"
        ]
      },
      "ProductHoldCreateRequestBody": {
        "type": "object",
        "properties": {
          "optionId": {
            "type": "string",
            "description": "The option's `id`, as the product's availability lists it."
          },
          "date": {
            "type": "string",
            "description": "The slot's day at the venue, `YYYY-MM-DD`."
          },
          "time": {
            "type": "string",
            "nullable": true,
            "description": "The slot's `time` at the venue, `HH:mm`; null for a day or an open-day ticket."
          },
          "tickets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HoldTicketInput"
            },
            "description": "1 to 20 ticket types, each named once, at most 20 tickets in all."
          },
          "idempotencyKey": {
            "type": "string",
            "description": "Your own key for this shopper's choice, 8 to 200 characters: reuse it when you retry."
          },
          "validateOnly": {
            "type": "boolean",
            "description": "True: check the slot and price the tickets, hold nothing. False when left out."
          },
          "answers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true,
            "description": "The shopper's answers to the supplier's booking questions, keyed by each question's key (`tourLanguage`), at most 20, each a text of 1 to 500 characters.\nA hold refused with `HOLD_REFUSED` and `details.reason` `booking_requirement_not_met` names the\nquestions to answer in `details.missingAnswers`."
          }
        },
        "required": [
          "optionId",
          "date",
          "time",
          "tickets",
          "idempotencyKey"
        ]
      },
      "APIErrorResponse": {
        "type": "object",
        "description": "The body of every error response.",
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "canceled",
              "unknown",
              "invalid_argument",
              "deadline_exceeded",
              "not_found",
              "already_exists",
              "permission_denied",
              "resource_exhausted",
              "failed_precondition",
              "aborted",
              "out_of_range",
              "unimplemented",
              "internal",
              "unavailable",
              "data_loss",
              "unauthenticated"
            ],
            "description": "The error code in its wire form: an operation's errors name `notFound`, the body carries `not_found`."
          },
          "message": {
            "type": "string",
            "description": "What went wrong, in words."
          },
          "details": {
            "type": "object",
            "description": "Structured detail, on the errors that carry any."
          }
        },
        "required": [
          "code",
          "message"
        ]
      }
    },
    "securitySchemes": {
      "Authorization": {
        "type": "apiKey",
        "in": "header",
        "name": "authorization",
        "description": "`Bearer <token>`: a session token, or an API key (`grpn_...`)."
      }
    },
    "responses": {
      "APIError": {
        "description": "Error response",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/APIErrorResponse"
            }
          }
        }
      }
    }
  }
}
