Information about a loyalty transaction in the Toast POS system. Loyalty providers are expected to handle that transaction.
The set of information in this object depends on the loyalty
transaction type. The transaction type is specified in the
Toast-Transaction-Type
header parameter for the request,
and within the body of the request.
The LoyaltyTransaction
object includes the toastTransactionType
value, which will be the same as the value in the header. It will also
include one of the following values depending on the transaction type:
LOYALTY_INQUIRE
- checkTransactionInformationLOYALTY_SEARCH
- searchTransactionInformationLOYALTY_REDEEM
- checkTransactionInformationLOYALTY_ACCRUE
- checkTransactionInformationLOYALTY_REVERSE
- reverseTransactionInformationLOYALTY_TRANSFER
- transferTransactionInformationobject (TransactionInformationCheck) Information needed to complete an inquire, redeem, or accrue transaction. Included if the toastTransactionType is one of LOYALTY_INQUIRE, LOYALTY_REDEEM, or LOYALTY_ACCRUE, absent otherwise. | |
object (TransactionInformationReverse) Information needed to complete a reverse transaction. Included if the toastTransactionType is LOYALTY_REVERSE, absent otherwise. | |
object (TransactionInformationSearch) Information needed to complete a search transaction. Included if the toastTransactionType is LOYALTY_SEARCH, absent otherwise. | |
toastTransactionType | string The transaction type that is included in the header is duplicated here in the body of the request. |
object (TransactionInformationTransfer) Information needed to complete a transfer transaction. Included if the toastTransactionType is LOYALTY_TRANSFER, absent otherwise. |
{- "toastTransactionType": "LOYALTY_INQUIRE",
- "searchTransactionInformation": {
- "searchCriteria": {
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "phone": "string"
}
}, - "checkTransactionInformation": {
- "loyaltyIdentifier": "string",
- "orderGuid": "string",
- "check": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "openedDate": "2019-08-24T14:15:22Z",
- "closedDate": "2019-08-24T14:15:22Z",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "deletedDate": "2019-08-24T14:15:22Z",
- "deleted": true,
- "selections": [
- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "item": {
- "guid": "string",
- "entityType": "string",
- "multiLocationId": null,
- "externalId": "string"
}, - "itemGroup": {
- "guid": "string",
- "entityType": "string",
- "multiLocationId": null,
- "externalId": "string"
}, - "optionGroup": {
- "guid": "string",
- "entityType": "string",
- "multiLocationId": null,
- "externalId": "string"
}, - "preModifier": {
- "guid": "string",
- "entityType": "string",
- "multiLocationId": null,
- "externalId": "string"
}, - "quantity": 0,
- "unitOfMeasure": "NONE",
- "selectionType": "NONE",
- "salesCategory": {
- "guid": "string",
- "entityType": "string",
- "multiLocationId": null,
- "externalId": "string"
}, - "appliedDiscounts": [
- {
- "guid": "string",
- "entityType": "string",
- "name": "string",
- "discountAmount": 0,
- "nonTaxDiscountAmount": 0,
- "discount": {
- "guid": null,
- "entityType": null
}, - "triggers": [
- null
], - "approver": {
- "guid": null,
- "entityType": null,
- "externalId": null
}, - "processingState": "PENDING_APPLIED",
- "loyaltyDetails": {
- "vendor": null,
- "referenceId": null
}, - "comboItems": [
- null
], - "appliedPromoCode": "string"
}
], - "deferred": true,
- "preDiscountPrice": 0,
- "price": 0,
- "tax": 0,
- "voided": true,
- "voidDate": "2019-08-24T14:15:22Z",
- "voidBusinessDate": 0,
- "voidReason": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "displayName": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiers": [
- { }
], - "fulfillmentStatus": "NEW",
- "taxInclusion": "INCLUDED",
- "appliedTaxes": [
- {
- "guid": "string",
- "entityType": "string",
- "taxRate": {
- "guid": null,
- "entityType": null
}, - "name": "string",
- "rate": 0,
- "taxAmount": 0,
- "type": "PERCENT"
}
]
}
], - "appliedLoyaltyInfo": {
- "guid": "string",
- "entityType": "string",
- "loyaltyIdentifier": "string",
- "vendor": "INTEGRATION",
- "accrualFamilyGuid": "string",
- "accrualText": "string"
}, - "taxExempt": false,
- "displayNumber": "string",
- "appliedServiceCharges": [
- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "chargeAmount": 0,
- "serviceCharge": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "chargeType": "FIXED",
- "name": "string",
- "delivery": true,
- "gratuity": true,
- "taxable": true,
- "appliedTaxes": [
- {
- "guid": "string",
- "entityType": "string",
- "taxRate": {
- "guid": null,
- "entityType": null
}, - "name": "string",
- "rate": 0,
- "taxAmount": 0,
- "type": "PERCENT"
}
]
}
], - "amount": 0,
- "taxAmount": 0,
- "totalAmount": 0,
- "payments": [
- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "paidDate": "2019-08-24T14:15:22Z",
- "paidBusinessDate": 0,
- "type": "CASH",
- "cardEntryMode": "SWIPED",
- "amount": 0,
- "tipAmount": 0,
- "amountTendered": 0,
- "cardType": "VISA",
- "last4Digits": "string",
- "originalProcessingFee": 0,
- "server": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "cashDrawer": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "refundStatus": "NONE",
- "refund": {
- "refundAmount": 0,
- "tipRefundAmount": 0,
- "refundDate": "2019-08-24T14:15:22Z",
- "refundBusinessDate": 0
}, - "paymentStatus": "OPEN",
- "voidInfo": {
- "voidUser": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "voidApprover": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "voidDate": "2019-08-24T14:15:22Z",
- "voidBusinessDate": 0,
- "voidReason": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}
}, - "houseAccount": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "otherPayment": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "createdDevice": {
- "id": "string"
}, - "lastModifiedDevice": {
- "id": "string"
}, - "mcaRepaymentAmount": 0
}
], - "tabName": "string",
- "paymentStatus": "OPEN",
- "appliedDiscounts": [
- {
- "guid": "string",
- "entityType": "string",
- "name": "string",
- "discountAmount": 0,
- "nonTaxDiscountAmount": 0,
- "discount": {
- "guid": "string",
- "entityType": "string"
}, - "triggers": [
- {
- "selection": {
- "guid": null,
- "entityType": null,
- "externalId": null
}, - "quantity": 0
}
], - "approver": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "processingState": "PENDING_APPLIED",
- "loyaltyDetails": {
- "vendor": "INTEGRATION",
- "referenceId": "string"
}, - "comboItems": [
- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}
], - "appliedPromoCode": "string"
}
], - "voided": true,
- "voidDate": "2019-08-24T14:15:22Z",
- "voidBusinessDate": 0,
- "paidDate": "2019-08-24T14:15:22Z",
- "createdDevice": {
- "id": "string"
}, - "lastModifiedDevice": {
- "id": "string"
}
}, - "redemptions": [
- {
- "identifier": "string",
- "selectionGuid": "string",
- "appliedDiscountGuid": "string",
- "multiItemDiscountGuid": "string",
- "amount": 0,
- "itemApplication": [
- {
- "selectionIdentifier": "string",
- "amount": 0,
- "appliedDiscountIdentifier": null
}
], - "quantity": 0
}
]
}, - "reverseTransactionInformation": {
- "loyaltyIdentifier": "string",
- "transactionId": "string",
- "redemptions": [
- {
- "identifier": "string",
- "selectionGuid": "string",
- "appliedDiscountGuid": "string",
- "multiItemDiscountGuid": "string",
- "amount": 0,
- "itemApplication": [
- {
- "selectionIdentifier": "string",
- "amount": 0,
- "appliedDiscountIdentifier": null
}
], - "quantity": 0
}
]
}, - "transferTransactionInformation": {
- "fromLoyaltyIdentifier": "string",
- "toLoyaltyIdentifier": "string"
}
}