Tock · JSON Structure

Reservation Discount Structure

tockDiscount schema from Tock Reservation Model

Type: object Properties: 8
HospitalityReservationsRestaurantWineriesTicketed EventsTakeoutDeliveryExperienceDiningAmerican Express

tockDiscount is a JSON Structure definition published by Tock, describing 8 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

description amountCents discountType giftCard confirmationNumber promoCode ticketTypePromoCodeId loyaltyProgram

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/tock/refs/heads/main/json-structure/reservation-discount-structure.json",
  "name": "tockDiscount",
  "description": "tockDiscount schema from Tock Reservation Model",
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "description": "A textual description of the discount."
    },
    "amountCents": {
      "type": "int32",
      "description": "The amount of the discount applied in some manner to the total price. This value will always be a positive number."
    },
    "discountType": {
      "$ref": "reservation-discount-discount-type-schema.json",
      "description": "Where and how the discount is applied to the total price."
    },
    "giftCard": {
      "$ref": "reservation-gift-card-schema.json",
      "description": "If a gift card was used to apply the discount to the total price, this field will contain extra information about the gift card used."
    },
    "confirmationNumber": {
      "type": "string",
      "description": "If a gift card was used to apply the discount to the total price, this field will contain a confirmation number from the gift card provider that can be used to reconcile between Tock and the provider."
    },
    "promoCode": {
      "type": "string",
      "description": "If the discount is applied through a promotional code, this field will be the short name of promo code as configured in the Tock Dashboard."
    },
    "ticketTypePromoCodeId": {
      "type": "string",
      "format": "uint64",
      "description": "If the discount is applied through a promotional code, this field is a unique identifier assigned to promotional code. Used internally by Tock."
    },
    "loyaltyProgram": {
      "$ref": "reservation-loyalty-program-schema.json",
      "description": "If the discount is for redeeming loyalty rewards program points, this field will contain extra information about the loyalty program used."
    }
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/reservation-discount-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.