haggl_hotel_cashback_stay
After the user checked out: send the hotel's post-stay email (final receipt or folio, thank-you for staying, or review request), exactly as received. It shows the stay happened, and haggl.ai sends the cashback within 2 business days.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"haggl_id": "<haggl_id>",
"claim_id": "<claim_id>",
"raw_mime_b64": "<raw_mime_b64>"
},
"name": "haggl_hotel_cashback_stay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| claim_id | Yes | The claim_id from haggl_hotel_cashback_claim. | |
| haggl_id | Yes | The user's haggl ID. | |
| raw_mime_b64 | Yes | Base64 (standard or url-safe) of the original email, byte for byte (Gmail format=RAW, or Show original → Download original). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Present only when the call failed: a machine-readable error code, e.g. quote_uncertain or rate_limited. | |
| next | No | What happens next. | |
| claim | No | A hotel cashback claim. | |
| error | No | Present only when the call failed: what went wrong. | |
| recovery | No | When the outcome is uncertain: the tool and session_id to read before retrying. | |
| retryable | No | Whether the same call may be retried. | |
| retry_after_seconds | No | When rate limited: seconds to wait before retrying. |