Toast · Schema
AppliedLoyaltyInfo
Information about the customer loyalty program account associated with a check.
RestaurantsPoint Of SalePaymentsOnline OrderingDeliveryLoyaltyGift CardsMenusOrdersKitchenLaborSchedulingInventoryHospitalityPartner Integrations
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/toast-tab/refs/heads/main/json-schema/orders-applied-loyalty-info-schema.json",
"title": "AppliedLoyaltyInfo",
"description": "Information about the customer loyalty program account associated with a check.",
"type": "object",
"required": [
"loyaltyIdentifier",
"vendor"
],
"allOf": [
{
"$ref": "#/$defs/ToastReference"
},
{
"type": "object",
"properties": {
"loyaltyIdentifier": {
"type": "string",
"description": "An identifier for the loyalty program account. For `POST` orders, this identifier is transmitted to the loyalty program service provider to associate the check with the loyalty account."
},
"maskedLoyaltyIdentifier": {
"type": "string",
"description": "A representation of the identifier of the loyalty program\naccount that can be displayed securely. For example:\n`************1234`. The Toast POS displays this string to\nrestaurant employees and guests.\n\nYou can optionally include this\nvalue when you `POST` an order. It is\navailable in response data when you `GET` the order.\n\nIf you do not provide a `maskedLoyaltyIdentifier` when you\n`POST` an order, this value is `null` in response data.\n\nThe Toast POS app displays a masked representation of the\n`loyaltyIdentifier`. All characters except the last four\nare hidden.\n"
},
"vendor": {
"type": "string",
"description": "The specific loyalty program service provider that supports the loyalty account.",
"enum": [
"TOAST",
"PUNCHH",
"PUNCHH2",
"PAYTRONIX",
"APPFRONT",
"INTEGRATION"
]
},
"accrualFamilyGuid": {
"x-toast-read-only": true,
"type": "string",
"description": "Response only. An internal Toast platform identifier for loyalty\nprogram transactions.\n\nThis is not returned from the initial\n`POST` order request and is available at a later time.\n"
},
"accrualText": {
"x-toast-read-only": true,
"type": "string",
"description": "Response only. A description of the loyalty program transaction\nto print on the customer's receipt. For example,\n\"Earned 27 points.\"\n\nThe maximum length of the description string\nis 255 characters.\n\nThis is not returned from the initial\n`POST` order request and is available at a later time.\n"
}
}
}
],
"$defs": {
"ToastReference": {
"type": "object",
"description": "A wrapper object with fields that allow reference to a Toast entity by Toast GUID.",
"required": [
"guid",
"entityType"
],
"properties": {
"guid": {
"description": "The GUID maintained by the Toast platform.",
"type": "string",
"example": "5a401af8-d2e2-4090-8c45-9f87b8b6c4d1"
},
"entityType": {
"x-toast-read-only": true,
"description": "The type of object this is. Response only.",
"type": "string",
"example": "string"
}
}
}
}
}