Cashback a Prize
Notify LoyaltyGyre that a player has chosen to cash back a prize. This call logs the player's decision, allowing LoyaltyGyre to track that the prize was redeemed as a cashback rather than retained or ignored.
Endpoint
Query Parameters
| Parameter | Type | Description |
|---|---|---|
player_idRequired |
string / number | The unique identifier for the player in the casino's system. |
prize_idRequired |
string / number | The unique identifier for the prize that the player has chosen to cash back. |
Example Request
cURL
curl -X POST "https://app.loyaltygyre.com/api/prize/cashback" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"player_id": "12345", "prize_id": "202"}'
Responses
200 OK
The cashback decision was successfully recorded.
400 Bad Request
The request is missing required parameters or contains invalid data.
401 Unauthorized
The API key is missing or invalid.
404 Not Found
The specified prize was not found or is unavailable for cashback.
500 Internal Server Error
An internal error occurred while processing the request.