Using Repull from a Channex integration
If your PMS was built against Channex, it can run its daily work on Repull without a rewrite. There is one way to work with Repull, and this page follows it: your listings get into Repull through Repull itself, by connecting accounts or by creating and publishing listings. Then your Channex code points at Repull's base URL for reads, availability and restrictions, bookings and the revision feed, webhooks, and messages and reviews. Creating properties, room types, rate plans or channels through the Channex API is refused, with the Repull endpoint to use instead.
| Getting listings in | Repull Connect, or create and publish a listing |
| Base URL for daily work | https://api.repull.dev/channex/api/v1 (instead of https://app.channex.io/api/v1) |
| Auth | Your Repull API key in the user-api-key header |
| Channels | Booking.com, Airbnb and Vrbo |
1. Get your listings into Repull
Listings reach Repull in one of two ways. Both are Repull's own API, not the Channex one, and both use the same API key.
- Connect the accounts. Start a Connect session and send your user to it. They sign in to Airbnb, Booking.com or Vrbo, and Repull imports their listings with content, calendar and reservations. Handle the redirect when they come back.
- Create and publish. Create a listing with
POST /v1/listings, fill in its content, then publish it withPOST /v1/listings/{id}/publish/airbnb,bookingorvrbo.
curl -X POST https://api.repull.dev/v1/connect \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"redirectUrl": "https://yourapp.com/connect/done",
"allowedProviders": ["airbnb", "booking", "vrbo-login"]
}'
# { "url": "https://connect.repull.dev/..." } → send your user hereThen activate the listings you manage. Only active listings are readable and writable, and only they are billed. Activate one with PATCH /v1/listings/{id} and { "active": true }, or many with POST /v1/listings/status. See Activate or deactivate one listing and in bulk.
Your Channex ids come from Repull
GET /properties, GET /room_types and GET /rate_plans, store them, and use them in every call below. The ids stay the same for the life of the listing.2. Point your Channex code at Repull
- Create an API key in the Repull dashboard.
- Replace the base URL.
https://app.channex.io/api/v1becomeshttps://api.repull.dev/channex/api/v1. - Send the Repull key in the
user-api-keyheader, where your Channex key was.
BASE=https://api.repull.dev/channex/api/v1 curl -g "$BASE/properties?pagination[page]=1&pagination[limit]=10" \ -H "user-api-key: sk_live_YOUR_KEY"
The conventions are Channex's: filter[...], pagination[...] and order[...] query parameters, { data, meta } on success, { errors: { code, title, details } }on failure with the same HTTP status. A missing or unknown key returns Channex's 401; an unknown path returns 404 resource_not_found; a wrong method returns 405 with an Allow header. The base URL without /api (https://api.repull.dev/channex/v1) works too.
Read meta.warnings
meta.warnings, for example a rate that a channel cannot sell. Log them; they are how a partial endpoint tells you what it did.How Channex concepts map
| Channex | On Repull |
|---|---|
| Property | A hotel or a home. A hotel groups its room types; a multi-room Booking.com property is one property; a single home is its own property. Bookings, revisions, messages, reviews, webhooks and channels all print the same property_id for the same place. |
| Room type | A sellable unit type. count_of_rooms is how many identical units it has. |
| Rate plan | Every room type has a default plan, and that is where you send rates and restrictions. Airbnb and Vrbo sell one price per night, taken from it. |
| ARI | POST /availability sets rooms to sell per night, as a count. POST /restrictions sets rate, min_stay_arrival, min_stay_through, max_stay, closed_to_arrival, closed_to_departure and stop_sell per plan and date. |
| Task | Every ARI write returns a task. GET /tasks/:id shows the dates written, queued and refused, with an error per refused item. |
| Channel | Read-only. GET /channels lists the accounts connected in Repull and which listings each one sells. Per-channel close-outs go through /channel_availability_rules. |
curl -X POST "$BASE/restrictions" \
-H "user-api-key: sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{ "values": [
{ "property_id": "PROPERTY_ID", "rate_plan_id": "RATE_PLAN_ID",
"date_from": "2026-12-01", "date_to": "2026-12-14",
"rate": "189.00", "min_stay_arrival": 3, "closed_to_arrival": false }
] }'Webhooks
Register webhooks with POST /webhooks exactly as on Channex: callback_url, event_mask, property_id or is_global, send_data, headers, request_params, is_signed and signing_key_id, with Channex's defaults. Deliveries use Channex's event names and envelope. A property webhook wins over a global one on the same URL, so the endpoint gets one delivery, not two. Delivery is retried, and GET /webhooks/:id/logs shows every attempt.
{
"event": "booking",
"payload": {
"booking_id": "9c1a2b3c-...",
"property_id": "4f6e7d8c-...",
"revision_id": "e2d4f6a8-..."
},
"property_id": "4f6e7d8c-...",
"user_id": null,
"timestamp": "2026-10-22T14:03:11.204Z"
}HMAC signing
Signing is byte-for-byte Channex's, so your existing verifier works unchanged. A signed delivery carries:
x-hmac-timestamp: the Unix time used to sign.x-hmac-signature-256: lowercase hex HMAC-SHA256 of<timestamp>.<raw body>. During a rotation it holds two signatures, comma-separated, current first.x-hmac-keys-256:...plus the last six characters of each secret, in the same order.
To keep the secret your endpoints already verify with, pass it as secret (32 to 256 characters) to POST /signing_keys, or install it on an existing key with POST /signing_keys/:id/rotate and { "signing_key": { "secret": "..." } }. Leave it out and Repull generates one, shown once. generate adds a pending secret and rotate promotes it. Where Channex asks for billing_account_id, use your workspace id; the response names it if you send your old one.
import crypto from 'node:crypto'
// rawBody must be the exact bytes received, before JSON parsing.
export function verifyChannexWebhook(rawBody: string, headers: Headers, secret: string): boolean {
const ts = headers.get('x-hmac-timestamp')
const sigs = (headers.get('x-hmac-signature-256') ?? '').split(',')
if (!ts || Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false
const expected = crypto.createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex')
return sigs.some(s =>
s.length === expected.length && crypto.timingSafeEqual(Buffer.from(s), Buffer.from(expected)),
)
}Events
Every event Channex lists is accepted in event_mask (GET /webhooks/events). These are accepted but not sent, and registering one returns a warning:
published_review: review fires when a review is first seen; the publish moment is not observed.updated_channel: No event is sent when a connected account’s settings change.activate_channel, deactivate_channel: Use new_channel and disconnect_channel.booking_invalid_guarantee: Cards are not validated on arrival.airbnb_notification: Airbnb platform notifications are not relayed.booking_unmapped_rate: Accepted, but not produced yet.
Bookings and the revision feed
The revision feed works as on Channex. A booking webhook carries booking_id, property_id and revision_id, and the revision exists before the webhook is sent, so the loop needs no change: receive the webhook, fetch the revision, store it, ack it.
# 1. Fetch the revision named by the webhook curl "$BASE/booking_revisions/REVISION_ID" -H "user-api-key: sk_live_YOUR_KEY" # 2. Acknowledge it once stored curl -X POST "$BASE/booking_revisions/REVISION_ID/ack" -H "user-api-key: sk_live_YOUR_KEY" # Catch-up: every revision not yet acknowledged curl "$BASE/booking_revisions/feed" -H "user-api-key: sk_live_YOUR_KEY"
booking_new,booking_modificationandbooking_cancellationfollow the revision's status, so a cancellation always arrives asbooking_cancellation.- A change that leaves the booking's content unchanged creates no revision and sends no webhook.
non_acked_bookingfires for revisions left unacknowledged, and is dropped if you ack first. - A revision shows the booking's current content. Revisions are kept for 90 days; ack is idempotent.
amountisnullwhen the channel reported no money, never"0.00". The booking'sguaranteecarries the card where the channel provides one; no PCI app is needed. Webhooks never carry a card.reservation_request,accepted_reservationanddeclined_reservationcarrybmsin the booking revision structure.
Booking CRS
POST /bookings and PUT /bookings/:idcreate and change real reservations, which appear in the feed as CRS revisions. One room per booking: send a multi-room booking as one booking per room. The stay is priced by the property's rates; if your days total differs, the response names both amounts in meta.warnings. Fields such as meta, services, deposits and notes are stored and read back as written.
Messages and reviews
/message_threads, /message_threads/:id/messages, /bookings/:id/messages, /attachments, /reviews, /reviews/:id/reply and /scores work as on Channex, with message, review and updated_review webhooks. Replies go out on the channel the guest wrote on. The limits are in the coverage table.
3. What the Channex API refuses, and what to use instead
Setting up inventory and channels through the Channex API is refused, because it would create a second copy of listings that Repull already holds. Each of these calls returns 422 with the code use_native_api, and the message names the Repull endpoint to use. Nothing is written, and listings you already have are not affected.
HTTP/1.1 422 Unprocessable Entity
{
"errors": {
"code": "use_native_api",
"title": "Use Native API",
"details": {
"message": ["Create listings with POST /v1/listings or connect accounts with POST /v1/connect — https://repull.dev/docs/connect"]
}
}
}| Channex call (refused) | Use instead |
|---|---|
POST /properties, PUT /properties/:id, DELETE /properties/:id | Connect the account, and its listings are imported. Or POST /v1/listings to create, PUT /v1/listings/{id}/content to edit, and PATCH /v1/listings/{id} with { "active": false } to stop managing one. Creating a listing |
POST /room_types, PUT /room_types/:id, DELETE /room_types/:id | The same listing endpoints: POST /v1/listings, PUT /v1/listings/{id}/content, PATCH /v1/listings/{id}. Rooms and beds |
POST /rate_plans, PUT /rate_plans/:id, DELETE /rate_plans/:id | Send rates and restrictions to the room type’s default plan with POST /restrictions. How Channex concepts map |
POST /channels, PUT /channels/:id, DELETE /channels/:id, POST /channels/:id/mappings, DELETE /channels/:id/mappings/:id, POST /channels/:id/activate, /deactivate, /check_readiness, /channels/:id/execute/:action | POST /v1/connect to connect an account; POST /v1/listings/status to choose which of its listings are active. Repull Connect |
POST /channels/test_connection, /channels/connection_details, /channels/mapping_details | POST /v1/connect. The account is checked as the user signs in. Start a Connect session |
POST /meta/airbnb/connection_link, POST /auth/one_time_token, {server}/auth/exchange (the channel mapping iframe) | POST /v1/connect, which returns a hosted URL to send your user to. Start a Connect session |
POST /migration/import, POST /migration/cutover | Connect the accounts with POST /v1/connect; their listings, calendars and reservations are imported. Repull Connect |
4. Endpoint coverage
Everything your PMS needs for daily work, as served at https://api.repull.dev/channex/api/v1. Full behaves as on Channex. Partial works, with the limit named. Not available returns a Channex-shaped error with the reason, never a fake success. A value Repull does not hold is null, never 0, false or [].
Properties, rates and availability
| Endpoint | Status | Notes |
|---|---|---|
GET /properties, /properties/:id, /properties/options | Full | One property per hotel, multi-room Booking.com property or home. email, phone, website and logo_url are not held and read as null. |
GET /room_types, /room_types/:id, /room_types/options | Full | count_of_rooms is the number of units. |
GET /rate_plans, /rate_plans/:id, /rate_plans/options | Full | Every room type has a default plan. |
GET/POST /availability | Full | Rooms to sell are stored and pushed as counts, never collapsed to open/closed. Room counts owned by a connected hotel PMS refuse writes with 409. |
GET/POST /restrictions | Partial | Rates, min stay (arrival and through), max stay, CTA, CTD and stop-sell per plan and date. Airbnb and Vrbo take one nightly price, from the default plan. |
GET /tasks, /tasks/:id | Full | Every ARI write: dates written, queued and refused, with per-item errors. |
/currencies, /timezones, /whoami | Full | whoami returns the API key acting for the workspace (system_role: api). |
Bookings
| Endpoint | Status | Notes |
|---|---|---|
GET /bookings, /bookings/:id | Full | amount and currency are null when the channel reported no money. guarantee carries the card where the channel provides one. |
POST /bookings, PUT /bookings/:id (Booking CRS) | Partial | Creates or changes a real reservation and a CRS revision. One room per booking (422 otherwise). Priced by the property’s rates; a different days total is named in meta.warnings. |
/booking_revisions, /feed, /:id, POST /:id/ack | Full | A revision is a content change. Kept 90 days. It shows the booking’s current content; historical snapshots are not kept. Ack is idempotent. |
GET /bookings/:id/payments | Full | Charges, holds and refunds. |
price_breakdown, payout_details, bank_transfer_payout | Partial | Booking.com bookings only. Other channels return 422 method_not_supported. |
charge_payment, pre_auth_payment, settle_payment, void_payment, refund_payment | Not available | Card charging is not available through this API (403). |
stripe_payment_method, stripe_token, authorize_net_customer | Partial | Returns the payment method already on the property’s connected account; otherwise 422 or 403. |
no_show, invalid_card, cancel_due_invalid_card, guest_misconduct, stay_change, misconduct_categories | Not available | Booking.com guest reporting is not connected (422 method_not_supported). |
Messages and reviews
| Endpoint | Status | Notes |
|---|---|---|
/message_threads, /:id, /:id/messages | Full | message_count is null in the list and exact on a single thread. |
/bookings/:id/messages, POST …/messages/pull | Partial | pull returns the stored thread; it does not trigger a fresh channel fetch. A booking without a conversation returns 422. |
POST /attachments, GET /attachments/:id/:file | Full | Kept for 24 hours. |
POST /message_threads/:id/no_reply_needed | Partial | Booking.com conversations on a connectivity-provider connection only. |
POST /message_threads/:id/close | Not available | Threads have no closed state (422). |
/reviews, /:id, POST /:id/reply | Full | — |
POST /reviews/:id/guest_review | Partial | Airbnb only. |
GET /scores/:property_id, /detailed | Full | Computed from the reviews held, out of 10 (Airbnb scores doubled). |
Channels and close-outs
| Endpoint | Status | Notes |
|---|---|---|
GET /channels, /channels/:id | Partial | Read-only. Every account connected in Repull is a channel: each Booking.com hotel, Extranet login, Airbnb host and Vrbo login, with the listings it sells. Connect and disconnect accounts in Repull. |
/channel_availability_rules (CRUD, options) | Partial | Close-outs are enforced on Booking.com and Airbnb, and stored only on Vrbo and Extranet logins. availability_offset and max_availability are stored, not enforced. |
GET /live_feed, /:id, POST /:id/resolve | Partial | booking_revision_id is null until that revision has been created. |
Webhooks
| Endpoint | Status | Notes |
|---|---|---|
/webhooks (CRUD), GET /webhooks/events | Full | Every Channex attribute, with Channex’s defaults. A property webhook wins over a global one on the same URL. |
POST /webhooks/test, /webhooks/:id/test | Full | — |
GET /webhooks/:id/logs | Full | One entry per attempt, newest first. Custom header values are redacted. |
/signing_keys (CRUD, options, generate, rotate) | Full | Channex’s HMAC headers, verified with Channex’s own Node and Python code. |
Differences to know
- Airbnb and Vrbo sell one rate.They take one price per night, from the room type's default plan.
- No card charging. Cards are readable on the booking; charge, pre-authorise, settle, void and refund are not available.
- Rate limits are Repull's. A
429returnshttp_too_many_requestswithRetry-After. See Rate limits. - Repull's own API is always there too. The same key works on the Repull API for anything the Channex API does not cover, such as listing content.