Channex Shopping API
API Methods to get real time rates, availability and content from Channex.
These are API methods for META-like channel connections. If your application does not cache any information on your side about Properties, Availability and Restrictions, you can implement support for our Shopping API and use it to build your own Booking Engine or Meta Channel.
This API is for real time shopping of Channex API for all required details. Perfect for many applications as you don't need to cache anything on your side.
Coming Soon
Get available properties method
Provider API Key to protect channel
Create Open Shopping Channel
Please sign up for a user at: staging.channex.io to make an account and a test property with rooms and rates.
Then go to channels page and create a channel "Open Shopping Channel"
Please map some rooms and rates.
In our staging environment there will be a few properties on this channel so you will get results of many properties if you use property list API.
{{CHANNEL_NAME}}
will be "OpenShopping" for your API integration. This will be replaced with your own name once you certify officially.
Properties List
Method to get a list of connected Properties.
This endpoint supports filters by title
, city
, latitude
, longitude
, country
, zip_code
, state
, address
and is_available
.
To apply filter pass it as query argument:
/property_list?filter[city]=Moscow
To get best_offer
, please define checkin_date
and checkout_date
arguments:
Filter is_available
will work only with checkin_date
and checkout_date
arguments and will return only Properties, available for bookings at provided time frame.
Filter can be combined with eq
, gt
, lt
, gte
, lte
and has
filtration arguments.
Example: Get all properties where title contain TIT
You can use our Photo Transformations to get photos fit to your design.
Get Property Info
Method to get Property Info by ID
Get Closed Dates
Method to get unavailable dates, dates closed to arrival and departure, min stay arrival and min stay through values.
min_stay_arrival
and min_stay_through
will contain only dates where min stay value is greater than 1.
Get Rooms List
Method to get Rooms and Rates list
This method will return list of Rooms and Rate Plans. This method supports filter arguments:
checkin_date (Date at ISO format YYYY-MM-DD)
checkout_date (Date at ISO format YYYY-MM-DD)
length_of_stay (Integer)
Checkout_date is optional if you use length_of_stay and vice versa.
If the method is called without dates, it will return Rooms list without Rate Plans.
Push Booking
Method to create Bookings
Please, keep in mind, if you pass Credit Card Information, you MUST use the secure endpoint: secure-staging.channex.io
Field description
status [required]
String. Status of Booking, can be one of three values: new
, modified
, cancelled
.
reservation_id [optional]
String. Booking unique ID. For messages with status new
can be empty, in that case Channex will generate unique UUID for booking.
arrival_date [required]
String. Arrival Date represented as string with date in ISO 8601 format by mask YYYY-MM-DD
.
departure_date [required]
String. Departure Date represented as string with date in ISO 8601 format by mask YYYY-MM-DD
.
arrival_hour [optional]
String. Arrival Time represented as string with time in HH:MM
format at 24h.
currency [required]
String. Booking currency code. 3 symbols long string with Currency Alphabetic code based at ISO 4217.
payment_collect [optional]
String. Information about payment collect point. If payment collected via OTA, it should be ota
, in other case it should be property
. Default value is property
.
payment_type [optional]
String. Information about how payment should be collected. Support bank_transfer
or credit_card
. Can be null
if not specified. bank_transfer
value suitable for OTA collect case.
meta [optional]
Object. Free-form JSON object with additional information about booking.
Customer Fields
Information about the Customer (Who made the booking)
name [optional]
String with maximum length of 255 symbols. Name of Customer.
surname [required]
String with maximum length of 255 symbols. Surname of Customer.
country [optional]
String. 2 symbols long string with Country Alpha-2 code based at ISO-3166-1.
city [optional]
String with maximum length of 255 symbols. Customer City name.
address [optional]
String with maximum length of 255 symbols. Customer Address.
zip [optional]
String with maximum length of 32 symbols. Customer ZIP Code.
mail [optional]
String with a valid email address. Customer Email address.
phone [optional]
String with maximum length of 32 symbols. Can contain digits, spaces, brackets and special characters. Customer Phone number.
Please if possible pass in friendly format with country code like this example: +447749617211
This can be simple for the property to contact the guest.
language [optional]
String. 2 symbols long string with language locale code.
company [optional]
Object with information about Customer Company (if customer is Business). Can contain next fields:
title
[optional]
String with maximum length of 255 symbols.number
[optional]
String with maximum length of 255 symbols. Tax Number.number_type
[optional]
String with maximum length of 255 symbols. Tax Name (eg: VAT)
meta [optional]
Object without any specific structure where you can pass any additional information about Customer.
Guarantee Fields
Information about the Credit Card.
If you'd like to pass information about the credit card you must use secure-staging.channex.io
or secure.channex.io
(for production environment) endpoints. Otherwise the credit card will be masked without ability to restore the original card.
expiration_date [required]
String with Card Expiration date in MM/YYYY
format.
cvv [required]
String with 3 or 4 numbers. Service code for payment systems.
cardholder_name [required]
String. Cardholder name from Card front.
card_type [required]
String. Card type name.
card_number [required]
String. Card number.
meta [optional]
Object. Can contain any additional information for booking recipient. Also, if you work with Virtual Credit Cards, you can use next fields:
virtual_card_currency_code Currency of virtual card
virtual_card_current_balance Current balance of virtual card as Integer value
virtual_card_decimal_places Info about decimal places at provided current_balance field
virtual_card_effective_date Date when card will be available to charge
virtual_card_expiration_date Date when card is expired
Booking Rooms
Booking rooms should be passed as Array of Objects. Each room object should contain information about room_type_code
, occupancy
, and days breakdown.
index [optional]
Integer. Room Index to associate Services at Room level. Incremented value, start from 0.
room_type_code [required]
String. Code of Room Type received at Get Rooms List operation.
rate_plan_code [required]
String. Rate Plan Code received at Get Rooms List operation.
occupancy [required]
Object with information about occupancy. Should contain next fields:
adults
[required]
Integer. Count of adults (persons older then 16 years old)children
[required]
Integer. Count of children (persons between 2 and 16 years old)infants
[required]
Integer. Count of infants (persons younger then 2 years old)
meta [optional]
Object. Free-form JSON object with additional information about booking room.
Booking Services (Extras)
Services is Array of Objects to represent additional service or fees sold with bookings. Also, this field can contain Cancellation Fee when booking is cancelled with payment. Each object should contain next fields:
type [required]
String. Type of Service. One of possible values: Meal, Fee, Extra
total_price [required]
String. Total Service price.
price_per_unit [required]
String. Price per one unit of Service.
price_mode [required]
String. Service calculation price logic. One of possible values: Per stay, Per night, Per person, Per person per night
persons [required]
Integer. Count of persons associated with Service.
nights [required]
Integer. Count of nights associated with Service.
name [required]
String. Name of service.
room_index [optional]
Integer. Index of room which is associated with Service. Keep in mind, Room should have index
.
Agent Info
Agent section will contain information about sales agent for current booking. Field is optional.
name [required]
String. Sales agent company name.
code [optional]
String. Sales agent code.
code_context [optional]
String. Sales agent code context (IATA or else)
phone [optional]
String. Sales agent phone number.
email [optional]
String. Sales agent email address.
address [optional]
Object. Sales agent address.
address_line String. Address.
city String. City name.
country_code String. 2 symbols country code by ISO.
state_code String. Optional. State code.
post_code String. Optional. Post code.
Last updated