haggl_hotel_cashback_claim
After the user booked the hotel whose agent's offer they accepted, before its reference code expired: claim the cashback with the hotel's booking confirmation email, exactly as received. Show the user these conditions first, and call this only if they agree: "haggl.ai (MOOJO.ID, INC.) pays cashback on stays at independent and boutique hotels in San Francisco booked while your quote holds (72 hours), for a stay starting within 60 days. Your rate depends on the trips to San Francisco you prove with signed flight or hotel emails from the last 12 months. Booking on the hotel's own site pays the full rate; booking through a travel site pays half. One booking per person. Your agent sends us the hotel's booking confirmation email as the hotel sent it, then, after you check out, the hotel's receipt or thank-you email; we check their signatures and read the hotel, dates, total and trips from them with an AI model, and keep those and fingerprints of the emails, not the emails. We pay within 2 business days of the post-stay email, to the email address you give, by bank transfer through Stripe (Stripe emails you a secure link to enter your bank details) or by PayPal; we delete that address 6 months later. Cancelled stays aren't paid. We may refuse a claim that looks fraudulent, and the offer ends when its budget is spent. Privacy policy: https://www.haggl.ai/privacy." Send terms_version "2026-10-29.2", statement (their words of agreement, quoted, without names or contact details) and payout_email: their email address for the payout, where haggl.ai sends the cashback after the stay (by bank transfer through Stripe, which emails them a link to enter bank details, or by PayPal).
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>",
"raw_mime_b64": "<raw_mime_b64>",
"terms_version": "<terms_version>",
"statement": "<statement>",
"payout_email": "<payout_email>"
},
"name": "haggl_hotel_cashback_claim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | How the user agreed: in this conversation (default), or in standing instructions. | |
| haggl_id | Yes | The user's haggl ID. | |
| statement | Yes | The user's words of agreement, quoted; no names, emails or phone numbers. | |
| payout_email | Yes | The user's email address for the payout. | |
| raw_mime_b64 | Yes | Base64 (standard or url-safe) of the original email, byte for byte (Gmail format=RAW, or Show original → Download original). | |
| terms_version | Yes | "2026-10-29.2". |
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 to do next. | |
| claim | No | A hotel cashback claim. | |
| error | No | Present only when the call failed: what went wrong. | |
| terms | No | When terms_required: the terms to show the traveler. | |
| 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. | |
| status_url | No | Where the claim can be read again. | |
| retry_after_seconds | No | When rate limited: seconds to wait before retrying. |