Tock · Schema
tockDiscount
tockDiscount schema from Tock Reservation Model
HospitalityReservationsRestaurantWineriesTicketed EventsTakeoutDeliveryExperienceDiningAmerican Express
Properties
| Name | Type | Description |
|---|---|---|
| description | string | A textual description of the discount. |
| amountCents | integer | The amount of the discount applied in some manner to the total price. This value will always be a positive number. |
| discountType | object | Where and how the discount is applied to the total price. |
| giftCard | object | 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 | string | 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 | string | 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 | string | If the discount is applied through a promotional code, this field is a unique identifier assigned to promotional code. Used internally by Tock. |
| loyaltyProgram | object | If the discount is for redeeming loyalty rewards program points, this field will contain extra information about the loyalty program used. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/tock/refs/heads/main/json-schema/reservation-discount-schema.json",
"title": "tockDiscount",
"description": "tockDiscount schema from Tock Reservation Model",
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "A textual description of the discount."
},
"amountCents": {
"type": "integer",
"format": "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 Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema 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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/reservation-discount"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.