Lock a hotel quote
brij_create_hotel_intentFree over MCP (the x402 price quoted below applies to the HTTP API only; MCP calls are rate-limited instead). offer_id is the quote's offer_id. KEEP customer_support_code from the answer: orders and cancellation need it. Next: brij_book_hotel. If the user gave you a discount code, send it as promo_code (checked before any payment; fee waived when it applies).
Create the escrow for a quoted hotel stay
Paid x402 endpoint: $0.10 USDC. Identical to POST /air/intents with the offer_id from POST /hotels/quote. The escrow amount is the quote's ALL-IN total. Persist customer_support_code: it cannot be read again, and POST /hotels/orders and /hotels/cancel need it.
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": {
"funding_wallet": "<funding_wallet>",
"offer_id": "<offer_id>"
},
"name": "brij_create_hotel_intent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer_id | Yes | The offer to book, sent back EXACTLY as received from POST /air/search or POST /air/offer-details — never reassembled by hand. | |
| referrer | No | Optional affiliate code (see POST /affiliates). Not a discount: it credits the referrer a share of the platform fee. Unknown or self-referring codes are silently ignored. | |
| promo_code | No | Optional discount code the user gave you (e.g. from a community or campaign). Send it exactly as the user wrote it; case does not matter. Waives the BRIJ service fee on flights and hotels. Checked BEFORE any payment: an unusable code refuses the intent, free, with promo_invalid (404), promo_expired (410), promo_exhausted (409, no seats left) or already_member (409, this wallet already redeemed a code) — tell the user and retry without it. When it applies, the answer carries intent.promo_code and a fee_amount of 0. The code is redeemed for the funding wallet once that wallet funds the escrow; after that every booking from the wallet is fee-free until the benefit ends, with no code to resend. | |
| refund_wallet | No | Optional Solana wallet for refunds. Defaults to funding_wallet. | |
| funding_wallet | Yes | Solana wallet expected to fund the escrow. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | No | Read-only projection of a booking intent. Omits customer_support_code, promo_code and passenger PII; those fields are returned once at intent-creation and /book time. |