{ "$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-discount-reason-schema.json", "title": "AppliedDiscountReason", "description": "AppliedDiscountReason schema from Toast Orders API", "type": "object", "properties": { "name": { "type": "string", "description": "The name of the reason for the applied discount.", "example": "Example Name" }, "description": { "type": "string", "description": "An optional description for the reason for the applied discount.", "example": "string" }, "comment": { "type": "string", "description": "An optional comment on the reason for the applied discount.", "example": "string" }, "discountReason": { "type": "object", "description": "A ToastReference object that contains the GUID for the discount reason configured for the discount.", "$ref": "#/$defs/ToastReference" } }, "required": [ "name" ], "$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" } } } } }