{
  "openapi": "3.1.0",
  "info": {
    "title": "Bonnie Talker public recommendations",
    "version": "1.0.0",
    "description": "Read-only UK flavour recommendations, evidence and dated retailer checks. A null live_offer means no current price was verified. Prices before delivery and delivered prices carry separate bases."
  },
  "servers": [
    {
      "url": "https://www.bonnietalker.com"
    }
  ],
  "paths": {
    "/api/v1/recommendations": {
      "get": {
        "operationId": "getRecommendations",
        "summary": "Find a bottle by flavour, gifting needs and current offers",
        "parameters": [
          {
            "name": "anchor",
            "in": "query",
            "required": false,
            "description": "Exact bottle ID, registered name or alias.",
            "schema": {
              "type": "string"
            },
            "example": "talisker-10-year-old"
          },
          {
            "name": "notes",
            "in": "query",
            "required": false,
            "description": "Comma-separated flavour axes or known flavour terms.",
            "schema": {
              "type": "string"
            },
            "example": "smoke,citrus"
          },
          {
            "name": "cast",
            "in": "query",
            "required": false,
            "description": "Cast character slug or recognised name.",
            "schema": {
              "type": "string"
            },
            "example": "tropic-thunder"
          },
          {
            "name": "goal",
            "in": "query",
            "required": false,
            "description": "Reason for the recommendation.",
            "schema": {
              "type": "string",
              "enum": [
                "gift",
                "swap",
                "discover",
                "mix"
              ],
              "default": "discover"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Bottle category. Omit or use any to compare across categories.",
            "schema": {
              "type": "string"
            },
            "example": "whisky"
          },
          {
            "name": "budget_max_gbp",
            "in": "query",
            "required": false,
            "description": "Maximum UK bottle price in GBP. Unpriced editorial matches may follow verified options with budget_status=unverified.",
            "schema": {
              "type": "number",
              "minimum": 0
            },
            "example": 50
          },
          {
            "name": "risk_profile",
            "in": "query",
            "required": false,
            "description": "Recipient’s taste for adventurous flavours.",
            "schema": {
              "type": "string",
              "enum": [
                "crowd_pleaser",
                "balanced",
                "adventurous_polarizing"
              ]
            }
          },
          {
            "name": "packaging_tier",
            "in": "query",
            "required": false,
            "description": "Packaging classification in the catalogue.",
            "schema": {
              "type": "string",
              "enum": [
                "bottle_only",
                "gift_box_or_tube",
                "collector_decanter",
                "tasting_set"
              ]
            }
          },
          {
            "name": "occasion",
            "in": "query",
            "required": false,
            "description": "An occasion tag from the catalogue.",
            "schema": {
              "type": "string"
            },
            "example": "christmas"
          },
          {
            "name": "free_only",
            "in": "query",
            "required": false,
            "description": "true/1 selects known ABV up to 0.5%. zero requires known 0.0%. false/0 disables the filter.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false",
                "1",
                "0",
                "zero"
              ]
            }
          },
          {
            "name": "without",
            "in": "query",
            "required": false,
            "description": "Comma-separated flavour dislikes or exclusions.",
            "schema": {
              "type": "string"
            },
            "example": "smoke"
          },
          {
            "name": "dislikes",
            "in": "query",
            "required": false,
            "description": "Additional flavour exclusions.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hates",
            "in": "query",
            "required": false,
            "description": "Additional flavour exclusions.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Returned results, capped at 20.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 5
            },
            "example": 5
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "Prefer a retailer pack in this market.",
            "schema": {
              "type": "string",
              "enum": [
                "UK",
                "US",
                "EU"
              ],
              "default": "UK"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "Display and budget currency.",
            "schema": {
              "type": "string",
              "enum": [
                "GBP",
                "USD",
                "EUR",
                "CAD",
                "AUD",
                "NZD",
                "SGD",
                "HKD"
              ],
              "default": "GBP"
            }
          },
          {
            "name": "budget_max",
            "in": "query",
            "required": false,
            "description": "Maximum price in the display currency. The legacy budget_max_gbp uses pounds.",
            "schema": {
              "type": "number",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown anchor or character",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Catalogue unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/alerts/deals": {
      "get": {
        "operationId": "getBottleWatchDeals",
        "summary": "Read the current Bottle Watch edition",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BottleWatch"
                }
              }
            }
          },
          "503": {
            "description": "Price service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/alerts/feed/{canonical_id}": {
      "get": {
        "operationId": "getBottleRSS",
        "summary": "Read one bottle’s checked shelf prices as RSS 2.0",
        "parameters": [
          {
            "name": "canonical_id",
            "in": "path",
            "required": true,
            "description": "Canonical bottle ID.",
            "schema": {
              "type": "string"
            },
            "example": "talisker-10-year-old"
          },
          {
            "name": "pence",
            "in": "query",
            "required": false,
            "description": "Optional UK price ceiling in pence.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "RSS 2.0, possibly with no current offers.",
            "content": {
              "application/rss+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid target price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown bottle",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/bundles": {
      "get": {
        "operationId": "buildCocktailGiftBundle",
        "summary": "Find complete cocktail gift sets with current retailer prices for each bottle",
        "parameters": [
          {
            "name": "cocktail",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Recipe name or gift set slug"
          },
          {
            "name": "notes",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated flavour notes"
          },
          {
            "name": "recipient_profile",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Cast name or slug"
          },
          {
            "name": "cast",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Alias for recipient_profile"
          },
          {
            "name": "budget_max",
            "in": "query",
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "description": "Maximum combined price in the selected currency"
          },
          {
            "name": "market",
            "in": "query",
            "schema": {
              "enum": [
                "UK",
                "US",
                "EU"
              ],
              "default": "UK"
            },
            "description": "Every bottle must have an offer in this market"
          },
          {
            "name": "currency",
            "in": "query",
            "schema": {
              "enum": [
                "EUR",
                "GBP",
                "USD",
                "CAD",
                "AUD",
                "NZD",
                "SGD",
                "HKD"
              ],
              "default": "GBP"
            },
            "description": "Display currency"
          },
          {
            "name": "free_only",
            "in": "query",
            "schema": {
              "enum": [
                "false",
                "0",
                "true",
                "1",
                "zero"
              ]
            },
            "description": "zero requires exact 0% ABV for both the drink and each bottle"
          },
          {
            "name": "basis",
            "in": "query",
            "schema": {
              "enum": [
                "shelf",
                "delivered"
              ],
              "default": "shelf"
            },
            "description": "Delivered uses separate single-bottle orders to one postcode"
          },
          {
            "name": "postcode",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Required for delivered comparisons"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 5
            },
            "description": "Maximum number of distinct recipes"
          }
        ],
        "responses": {
          "200": {
            "description": "A complete set for each matching recipe. No matches returns an empty array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "market": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "basis": {
                      "type": "string"
                    },
                    "pricing_status": {
                      "type": "string"
                    },
                    "bundles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "bundle_id",
                          "title",
                          "cocktail_name",
                          "alcohol_free",
                          "items",
                          "total_price",
                          "currency",
                          "budget_status",
                          "shared_flavour_notes",
                          "serving_card"
                        ],
                        "properties": {
                          "bundle_id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "cocktail_name": {
                            "type": "string"
                          },
                          "href": {
                            "type": "string"
                          },
                          "alcohol_free": {
                            "type": "boolean"
                          },
                          "items": {
                            "type": "array",
                            "minItems": 2,
                            "maxItems": 3,
                            "items": {
                              "type": "object",
                              "required": [
                                "role",
                                "canonical_id",
                                "name",
                                "abv",
                                "ml",
                                "live_offer"
                              ],
                              "properties": {
                                "role": {
                                  "type": "string"
                                },
                                "canonical_id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "abv": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "ml": {
                                  "type": "integer"
                                },
                                "live_offer": {
                                  "type": "object",
                                  "properties": {
                                    "url": {
                                      "type": "string",
                                      "format": "uri"
                                    },
                                    "retailer": {
                                      "type": "string"
                                    },
                                    "amount_minor": {
                                      "type": "integer"
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "checked_at": {},
                                    "expires_at": {}
                                  }
                                }
                              }
                            }
                          },
                          "total_minor": {
                            "type": "integer"
                          },
                          "total_price": {
                            "type": "number"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "market": {
                            "type": "string"
                          },
                          "budget_status": {
                            "type": "string"
                          },
                          "shared_flavour_notes": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "serving_card": {
                            "type": "object",
                            "properties": {
                              "recipe": {
                                "type": "string"
                              },
                              "measures": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "steps": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "source_url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "servings": {
                                "type": "number"
                              },
                              "ingredients_to_add": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "strength": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid query"
          },
          "404": {
            "description": "Unknown recipe or cast"
          },
          "503": {
            "description": "Catalogue unavailable"
          }
        }
      }
    },
    "/api/v1/health/coverage": {
      "get": {
        "operationId": "getRetailCoverage",
        "summary": "Verified shelf-price coverage by market",
        "parameters": [
          {
            "name": "market",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "UK",
                "US",
                "EU"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Native in-stock shelf prices verified within 24 hours. Includes missing bottles and queue progress.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "as_of": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "catalogue_bottles": {
                      "type": "integer"
                    },
                    "markets": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "fresh_verified_bottles": {
                            "type": "integer"
                          },
                          "fresh_verified_offers": {
                            "type": "integer"
                          },
                          "expired_bottles": {
                            "type": "integer"
                          },
                          "stale_bottles": {
                            "type": "integer"
                          },
                          "missing_fresh_bottles": {
                            "type": "integer"
                          },
                          "attempted_last_24h": {
                            "type": "integer"
                          },
                          "queued_bottles": {
                            "type": "integer"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Gifting": {
        "type": "object",
        "properties": {
          "packaging_tier": {
            "type": "string",
            "enum": [
              "bottle_only",
              "gift_box_or_tube",
              "collector_decanter",
              "tasting_set"
            ]
          },
          "risk_profile": {
            "type": "string",
            "enum": [
              "crowd_pleaser",
              "balanced",
              "adventurous_polarizing"
            ]
          },
          "occasion_tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "packaging_tier",
          "risk_profile",
          "occasion_tags"
        ]
      },
      "VerifiedOffer": {
        "type": "object",
        "properties": {
          "canonical_id": {
            "type": "string"
          },
          "retailer": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "price_gbp": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_pence": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currency": {
            "type": "string"
          },
          "stock": {
            "type": "string",
            "enum": [
              "in-stock"
            ]
          },
          "basis": {
            "type": "string",
            "enum": [
              "shelf",
              "delivered"
            ]
          },
          "checked_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "postcode": {
            "type": "string"
          },
          "delivery_terms": {
            "type": "string",
            "format": "uri"
          },
          "delivery_pence": {
            "type": "integer"
          },
          "delivery_checked_at": {
            "type": "string",
            "format": "date-time"
          },
          "seller": {
            "type": "string"
          },
          "dispatcher": {
            "type": "string"
          },
          "shelf_price_gbp": {
            "type": [
              "number",
              "null"
            ],
            "description": "Lowest current matched shelf price, or the shelf component of a checked delivered quote."
          },
          "delivered_price_gbp": {
            "type": [
              "number",
              "null"
            ],
            "description": "Lowest verified delivered total for the stated destination. Its shop and expiry are given in delivered_offer."
          },
          "delivery_extra": {
            "type": "boolean",
            "description": "True when the selected price_gbp is a shelf price with delivery extra or unverified. False when delivery is included or verified free on that listing."
          },
          "delivered_offer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DeliveryQuote"
              },
              {
                "type": "null"
              }
            ]
          },
          "market": {
            "type": "string",
            "enum": [
              "UK",
              "US",
              "EU"
            ]
          },
          "market_fallback": {
            "type": "boolean"
          },
          "native_amount_minor": {
            "type": "integer"
          },
          "native_currency": {
            "type": "string"
          },
          "amount_minor": {
            "type": "integer"
          },
          "unit_price_per_100ml_minor": {
            "type": [
              "integer",
              "null"
            ]
          },
          "converted_from_currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "fx_updated_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "ml": {
            "type": [
              "integer",
              "null"
            ]
          },
          "price": {
            "type": "number",
            "description": "Selected offer in the requested display currency."
          }
        },
        "required": [
          "canonical_id",
          "retailer",
          "url",
          "price_gbp",
          "price_pence",
          "currency",
          "stock",
          "basis",
          "checked_at",
          "expires_at",
          "shelf_price_gbp",
          "delivered_price_gbp",
          "delivery_extra",
          "delivered_offer"
        ]
      },
      "Recommendation": {
        "type": "object",
        "properties": {
          "canonical_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "abv": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "ml": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "match_score": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "match_basis": {
            "type": "string",
            "enum": [
              "curated_substitution",
              "sensory_similarity",
              "filter_only"
            ]
          },
          "bonnie_why": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tradeoff": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "gifting": {
            "$ref": "#/components/schemas/Gifting"
          },
          "flavour_vector": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "cast_affinities": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "evidence_quotes": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "awards": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "live_offer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VerifiedOffer"
              },
              {
                "type": "null"
              }
            ]
          },
          "budget_status": {
            "type": "string",
            "enum": [
              "within_budget",
              "unverified",
              "not_requested"
            ]
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          },
          "recipes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "name",
                "url"
              ]
            }
          },
          "max_abv": {
            "type": [
              "number",
              "null"
            ],
            "description": "Known upper bound when the label does not provide an exact ABV."
          },
          "volume_unverified": {
            "type": "boolean",
            "description": "True when a unique pack volume is unverified."
          },
          "evidence_tier": {
            "enum": [
              "critic_and_award_verified",
              "community_rated",
              "catalogue_profiled"
            ]
          }
        },
        "required": [
          "canonical_id",
          "name",
          "category",
          "abv",
          "ml",
          "match_score",
          "match_basis",
          "bonnie_why",
          "tradeoff",
          "gifting",
          "flavour_vector",
          "cast_affinities",
          "evidence_quotes",
          "awards",
          "live_offer",
          "budget_status",
          "canonical_url"
        ]
      },
      "QueryInterpretation": {
        "type": "object",
        "properties": {
          "anchor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cast": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "goal": {
            "type": "string",
            "enum": [
              "gift",
              "swap",
              "discover",
              "mix"
            ]
          },
          "category": {
            "type": "string"
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "without": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "risk_profile": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "crowd_pleaser",
                  "balanced",
                  "adventurous_polarizing"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "packaging_tier": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "bottle_only",
                  "gift_box_or_tube",
                  "collector_decanter",
                  "tasting_set"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "occasion": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "free_only": {
            "type": "boolean"
          },
          "free_only_max_abv": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "budget_max_gbp": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "limit": {
            "type": "integer"
          },
          "price_basis": {
            "type": "string"
          },
          "market": {
            "type": "string",
            "enum": [
              "UK",
              "US",
              "EU"
            ]
          },
          "currency": {
            "type": "string"
          },
          "budget_max": {
            "type": [
              "number",
              "null"
            ]
          },
          "seasonal_theme": {
            "type": [
              "string",
              "null"
            ],
            "description": "Calendar theme when seasonal gift ranking is active."
          }
        },
        "required": [
          "anchor",
          "cast",
          "goal",
          "category",
          "notes",
          "without",
          "risk_profile",
          "packaging_tier",
          "occasion",
          "free_only",
          "free_only_max_abv",
          "budget_max_gbp",
          "limit",
          "price_basis"
        ]
      },
      "RecommendationResult": {
        "type": "object",
        "properties": {
          "query_interpretation": {
            "$ref": "#/components/schemas/QueryInterpretation"
          },
          "recommendations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Recommendation"
            }
          },
          "methodology_url": {
            "type": "string",
            "format": "uri"
          },
          "pricing_status": {
            "type": "string",
            "enum": [
              "checked",
              "temporarily_unavailable"
            ]
          }
        },
        "required": [
          "query_interpretation",
          "recommendations",
          "methodology_url",
          "pricing_status"
        ]
      },
      "Deal": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "ml": {
            "type": "integer"
          },
          "abv": {
            "type": "number"
          },
          "now": {
            "type": "number"
          },
          "was": {
            "type": "number"
          },
          "saving": {
            "type": "number"
          },
          "retailer": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "checked": {
            "type": "string",
            "format": "date-time"
          },
          "expires": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "retailer",
          "url"
        ]
      },
      "ShelfOffer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "retailer": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "pence": {
            "type": "integer"
          },
          "checked": {
            "type": "string",
            "format": "date-time"
          },
          "expires": {
            "type": "integer",
            "description": "Unix epoch milliseconds."
          },
          "referenceLabel": {
            "type": "string"
          },
          "wasPence": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "retailer",
          "url",
          "pence",
          "checked",
          "expires"
        ]
      },
      "DeliveredOffer": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ShelfOffer"
          },
          {
            "type": "object",
            "properties": {
              "totalPence": {
                "type": "integer"
              },
              "postcode": {
                "type": "string"
              },
              "deliveryPence": {
                "type": "integer"
              },
              "deliveryChecked": {
                "type": "string",
                "format": "date-time"
              },
              "deliveryExpires": {
                "type": "integer"
              },
              "matchingOffers": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            },
            "required": [
              "totalPence",
              "postcode",
              "deliveryPence",
              "deliveryChecked",
              "deliveryExpires",
              "matchingOffers"
            ]
          }
        ]
      },
      "BottleWatch": {
        "type": "object",
        "properties": {
          "deals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Deal"
            }
          },
          "shelfOffers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShelfOffer"
            }
          },
          "deliveredOffers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeliveredOffer"
            }
          },
          "amazonOffers": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "featured": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "html": {
            "type": "string"
          },
          "amazonHtml": {
            "type": "string"
          },
          "budgetHtml": {
            "type": "string"
          },
          "awardsHtml": {
            "type": "string"
          }
        },
        "required": [
          "deals",
          "shelfOffers",
          "deliveredOffers",
          "amazonOffers",
          "featured",
          "html",
          "amazonHtml",
          "budgetHtml",
          "awardsHtml"
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ]
      },
      "DeliveryQuote": {
        "type": "object",
        "properties": {
          "canonical_id": {
            "type": "string"
          },
          "retailer": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "price_gbp": {
            "type": "number"
          },
          "price_pence": {
            "type": "integer"
          },
          "currency": {
            "type": "string",
            "enum": [
              "GBP"
            ]
          },
          "stock": {
            "type": "string",
            "enum": [
              "in-stock"
            ]
          },
          "basis": {
            "type": "string",
            "enum": [
              "shelf",
              "delivered"
            ]
          },
          "checked_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "postcode": {
            "type": "string"
          },
          "delivery_terms": {
            "type": "string",
            "format": "uri"
          },
          "delivery_pence": {
            "type": "integer"
          },
          "delivery_checked_at": {
            "type": "string",
            "format": "date-time"
          },
          "seller": {
            "type": "string"
          },
          "dispatcher": {
            "type": "string"
          }
        },
        "required": [
          "canonical_id",
          "retailer",
          "url",
          "price_gbp",
          "price_pence",
          "currency",
          "stock",
          "basis",
          "checked_at",
          "expires_at"
        ]
      }
    }
  }
}
