The Toast loyalty integration API will retry a request if it does not receive a response from your API implementation (for example, because of a network failure). The Toast API does not indicate that the request is a duplicate of an earlier transaction request. When the Toast loyalty integration API sends a duplicate request, your API implementation must return a cached, duplicate response containing the result of the operation.
Toast's retry logic varies by transaction type:
- 
                              
If your endpoint returns a failure response to a
LOYALTY_REVERSErequest, the Toast loyalty integration API will retry the request and will send the sameToast-Transaction-GUIDas the original request. - 
                              
If your endpoint returns a failure response to a
LOYALTY_ACCRUErequest, the Toast loyalty integration API will retry the request and will send a differentToast-Transaction-GUIDthan the original request. - 
                              
If your endpoint returns a failure response to a
LOYALTY_REDEEMrequest, the Toast loyalty integration API will not retry the request.