Information about a loyalty transaction from the loyalty provider. The Toast POS system uses this information to complete guests' loyalty transactions.
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.
All LoyaltyTransactionResponse
objects must include a
transactionStatus
value. The object must include one of
the following additional values depending on the transaction type:
LOYALTY_INQUIRE
- checkResponseLOYALTY_SEARCH
- searchResponseLOYALTY_REDEEM
- checkResponseLOYALTY_ACCRUE
- checkResponseLOYALTY_REVERSE
- noneLOYALTY_TRANSFER
- transferResponseobject (ResponseCheck) Response to an inquire, redeem, or accure request. For an inquire response this field is requried. For all other responses it is optional unless any of the redemptions were rejected. If the account corresponding to the identifier was not found, the service should return a 404 response. | |
object (ResponseSearch) Response to a search request. Contains the array of account information matching the search criteria. If no matching accounts were found, the service should return a 404 response. | |
transactionStatus | string Indicates the result of a loyalty transaction, reported by the loyalty service provider. Possible values are:
|
object (ResponseTransfer) Response to a transfer request. For a transfer response this field is required. Contains the loyalty identifier that the old account transferred to. |
{- "transactionStatus": "ACCEPT",
- "searchResponse": {
- "accounts": [
- {
- "identifier": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "email": "string",
- "pointsBalance": "string"
}
]
}, - "checkResponse": {
- "accountInfo": {
- "identifier": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "email": "string",
- "pointsBalance": "string"
}, - "offers": [
- {
- "identifier": "string",
- "name": "string",
- "applicable": true,
- "selectionType": "CHECK",
- "itemApplication": [
- {
- "selectionIdentifier": "string",
- "amount": 0,
- "appliedDiscountIdentifier": null
}
], - "amount": 0,
- "quantity": 0,
- "expiration": [
- {
- "date": "2019-08-24T14:15:22Z",
- "quantity": null
}
]
}
], - "rejectedRedemptions": [
- {
- "redemption": {
- "identifier": "string",
- "selectionGuid": "string",
- "appliedDiscountGuid": "string",
- "multiItemDiscountGuid": "string",
- "amount": 0,
- "itemApplication": [
- {
- "selectionIdentifier": "string",
- "amount": 0,
- "appliedDiscountIdentifier": null
}
], - "quantity": 0
}, - "message": "string"
}
], - "appliedRedemptions": [
- {
- "identifier": "string",
- "selectionGuid": "string",
- "appliedDiscountGuid": "string",
- "multiItemDiscountGuid": "string",
- "amount": 0,
- "itemApplication": [
- {
- "selectionIdentifier": "string",
- "amount": 0,
- "appliedDiscountIdentifier": null
}
], - "quantity": 0
}
], - "userMessage": "string"
}, - "transferResponse": {
- "loyaltyIdentifier": "string"
}
}