Channel IFrame
This is the API to show an iframe for the Channex mapping screen in your application. The user will be able to create channels and map by themselves.
Generate a One-Time access token
To generate a One-Time access token you should call the next API Method:
property_id: This is the channex property ID the user should get access to
group_id: This is the channex group ID the user should get access to (optional)
username: This should be the name of the user that is logged into your PMS system
You should get the following response:
At data.token you should receive a One-Time access token to authorise your user in Channex without providing credentials.
After the first usage, token will be removed. The token will live for 15 minutes. Once iframe loaded it will not have an expiry time.
The user will be authenticated under the same user, who requested the Access Token!
Generate the Iframe Code
The next step is to generate the iframe to show to your user
Where {{server}}
is the address of the Channex server, {{ONE_TIME_ACCESS_TOKEN}}
is the token received at the previous step, {{PROPERTY_ID}}
is the ID of the Property in Channex which will be associated with the created channels.
Channex also support group_id
argument at URL, to correctly setup required Group for new channel.
Filter available channels
To allow user connect only specific channels, you can pass additional argument channels
inside URL:
Available list of channels:
Code | Channel |
ABB | Airbnb |
ACO | Abode Connect |
ADO | Advertising Online |
AGO | Agoda |
BDC | Booking.com |
CTZ | CultBooking |
DDC | Despegar |
EXP | Expedia |
FER | Feratel |
GDS | OpenGDS |
GHA | Google Hotel |
GIT | Go4IT |
HBD | Hotelbeds |
HG | HyperGuest |
HIC | Hey Iceland |
HRS | HRS |
HWL | Hostelworld |
LO | LocalOTA |
MMB | MemberButton |
OC | Open Channel |
OSA | Instant Booking Page |
RC | Room Cloud |
RSR | Reserva |
TSQ | The Square |
VB | VerticalBooking |
VRB | VRBO |
WBK | Wubook |
WBR | Webrooms |
IFrame functionality flags
To simplify UI and decrease complexity for clients who will work with Channex IFrame we hide some functionality from embedded mode. But you still able to enable that functionality by pass flags as part of URL.
Allow Notifications Edit
At Channel Management dialog we have a settings to enable / disable Property Booking Notifications. Because most of PMS use they own mailing system we hide that settings at Embedded mode. But if you would like to allow client to make decision about that option, please add GET Argument allow_notifications_edit=true
into URL when embed IFrame.
Language
By pass lng=XX
you can choose a language for IFrame UI.
Right now we support next languages:
English (
en
)Portugal (
pt
)Spanish (
es
)Russian (
ru
)German (
de
)Greek (
el
)Italian (
it
)Hungarian (
hu
)Thai (
th
)
If you are interested at new translation, please let us know by email.
Read Only Availability for Inventory Screen
By pass read_only_availability=true
you can block editing Availability at Inventory screen.
Notes
The provided iframe UI is limited and only allows the user to create / edit / remove channels with the provided Property ID.
There is no access policy yet for example “Read-Only” mode. Let us know your ideas or requirements if that is needed.
Other Pages from Channex
This API will allow you to iframe any page from Channex, you will need to edit the redirect. All pages will generally work with property ID option.
Example to get messages page:
Messages Page
As mentioned before, you are able to open any page of Channex via IFrame and our Applications can work with this manner too.
To open Messages, you should redirect user to /messages
page.
Open Messages for specific Booking
Messages page can be opened at Message Thread for a specific Booking. But to do that, you should to know Message Thread ID from Booking.
As a first step, you should request a Booking from Channex side via API (https://docs.channex.io/api-v.1-documentation/bookings-collection#get-booking-by-id), where at answer you will find a message_thread_id
at relationships.message_thread.data.id
.
This message_thread_id
should be used at redirect URL messages/{{message_thread_id}}
. So, as result, application will be loaded at page with Messages for requseted booking.
Last updated