v1
latestSwagger 2.02026-08-0613565.6 KBProvide information on a loyalty transaction
Provides information about a loyalty transaction processed by the Toast platform. The transaction information in the message body is intended to allow a loyalty provider to perform corresponding operations on the loyalty account, maintained by that provider.
You define the endpoint name for this implementation. The Toast POS system makes requests to the REST path that you supply during integration setup.
Each POST request to the endpoint includes a Toast-Transaction-Type header parameter value to indicate the type of loyalty transaction it represents. The possible transaction types are:
- Inquire to get information about a given loyalty account given the items currently on the check.
- Search for a loyalty account.
- Signup to create a new loyalty account.
- Redeem offers.
- Accrue rewards based on a given check.
- Reverse a previous redeem or accrue transaction.
The LoyaltyTransaction object in the message body includes a set of information that is specific for each transaction type.
The response time for a loyalty transaction request must be less than 500ms on average. A response time of greater than 5000ms will be considered a timeout and will be retried. There is a limit on the number of retries which depends on the context of the call.
All loyalty transactions must be considered idempotent. The implementation must handle multiple requests with the same Toast-Transaction-GUID and the same loyaltyIdentifier.
Headers
A unique identifier of the loyalty transaction, defined by the Toast POS system.
The unique identifier of the restaurant, defined by the Toast POS system.
The type of loyalty transaction that occurred. Values are:
<ul> <li>LOYALTY_INQUIRE</li> <li>LOYALTY_SEARCH</li> <li>LOYALTY_SIGNUP</li> <li>LOYALTY_REDEEM</li> <li>LOYALTY_ACCRUE</li> <li>LOYALTY_REVERSE</li> <li>LOYALTY_TRANSFER</li> </ul>A JSON Web Token (JWT) that you can use to authenticate the request. Verify the token using the public key that you get from the Toast user management service.
Request body
Response
OK. The transactionStatus value of the LoyaltyTransactionResponse object is ACCEPT.