TheFork · Schema

Offer

RestaurantReservationsBookingDiningPoint Of SaleMarketplace

Properties

Name Type Description
type string
name string
discount number Discount applied, where relevant.
price integer Price in the smallest currency unit (cents).
View JSON Schema on GitHub

JSON Schema

thefork-b2b-offer-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thefork/main/json-schema/thefork-b2b-offer-schema.json",
  "title": "Offer",
  "x-api-evangelist-source": "openapi/thefork-b2b-openapi.yml",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "example": "PERCENT_DISCOUNT"
    },
    "name": {
      "type": "string",
      "example": "Summer 2026"
    },
    "discount": {
      "type": "number",
      "description": "Discount applied, where relevant.",
      "example": 25
    },
    "price": {
      "type": "integer",
      "description": "Price in the smallest currency unit (cents).",
      "example": 4500
    }
  }
}