Skip to main content
initial release

raindrop_balance.requested webhook

Added the raindrop_balance.requested webhook. Rain sends this synchronous webhook to PARTNER_ONCHAIN tenants when it needs a user’s current Raindrops balance. Your endpoint must return the user’s availableBalance within 1500ms.
This is a synchronous request/response webhook, not an event notification. Rain waits for your response before proceeding with the travel redemption flow. PARTNER_OFFCHAIN tenants do not receive this webhook because Rain manages their balance ledger.
Rain signs the raw JSON request body with your webhook signing key and sends the hex HMAC-SHA256 digest in the Signature header. Verify this signature before returning a balance.

Request Payload

Headers

Example Request

Expected Response

Your endpoint must return a JSON response with the user’s available balance as a string.Return a non-2xx status, malformed JSON, or no response within 1500ms and Rain treats the balance as unavailable. The calling travel-balance or travel-redemption request receives 503 Service Unavailable.

Example Response