Partner Integration Requirement
Partner only needs:- One line of code integration
- One API call before booking
What We Provide vs What Partner Provides
PageOne Travel provides
collector-key(for browser signal collection only)api-key(for server-to-server risk check call)- API host and snippet URL
Partner provides
session-id(unique per booking attempt)- Booker/guest data for the check request
- Backend call to
POST /api/v1/radar/checksbefore creating booking
1) One Line of Code Integration (Snippet)
Add this on the partner booking page:- Use a fresh
SESSION_IDper booking attempt. - Do not put
api-keyin browser code. data-partner-idis not required.
2) One API Call Before Booking
Call this from partner backend before booking confirm:Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | application/json |
api-key | Yes | Partner server API key issued by PageOne |
session-id | Yes | Same value used in snippet |
idempotency-key | No | Recommended for retry safety |
Request body (example)
inventory_id and inventory_country are not required from partner in BRG integration.
Response body (example)
decision = deny: hide the rate / stop booking flowdecision = alloworbypass: continue booking flow
How Correlation Works
- Snippet and check API must share the same
session-id. - Snippet posts browser/device/network hints first.
- Check API merges that signal set with server payload and returns one risk decision.
Security Model (Two Keys)
collector-key: browser-side, limited to signal collection endpoint.api-key: server-side, required forPOST /api/v1/radar/checks.
api-key in frontend code.