Partner API.

Server
channel.redeam.io
Server Variables

Fields
KeyIn
X-API-KeyHeader

Fields
KeyIn
X-API-SecretHeader

Retrieve a list of availabilities

Returns a list of availabilities.

Auth
Headers
X-Request-IDstring

Request ID for request tracking.

Path Params
product_idstring
supplier_idstring
Query String
endstring
startstring
rate_idstring
GET /suppliers/{supplier_id}/products/{product_id}/availabilities
Copy
Responses application/json
200

Retrieve a list of availabilities

objectobject
availabilitiesobject

The availabilities matching the request

byProductobject

List of availabilities

availabilityarray[object]
capacityint32

Remaining capacity of the availability

enddate-time

End of the availability

iduuid

ID of the availability

maxCapacityint32

Maximum capacity of the availability. If the maximum capacity hasn't been set by the operator, then its value will be -1.

startdate-time

Start of the availability

byRateobject

Availabilities by rate ID

expiresdate-time

Expiration date

productIduuid

Product ID for availabilities

retrieveddate-time

etrieval date

metaobject

Request meta data

reqIduuid

Request ID

400

Retrieve a list of availabilities

401

Retrieve a list of availabilities

Response
Copy

Retrieve a single availability

Checks the availability of a product.

Auth
Headers
X-Request-IDstring

Request ID for request tracking.

Path Params
product_idstring
supplier_idstring
Query String
atstring
qtyinteger
rate_idstring
GET /suppliers/{supplier_id}/products/{product_id}/availability
Copy
Responses application/json
200

Retrieve a single availability

objectobject
availabilityobject

The availability matching the request

capacityint32

Remaining capacity of the availability

enddate-time

End of the availability

iduuid

ID of the availability

maxCapacityint32

Maximum capacity of the availability. If the maximum capacity hasn't been set by the operator, then its value will be -1.

startdate-time

Start of the availability

bookableboolean

A true value means a bookable availability is found

metaobject

Request meta data

reqIduuid

Request ID

400

Retrieve a single availability

401

Retrieve a single availability

404

Retrieve a single availability

Response
Copy

Create a booking

Creates a booking.

Auth
Headers
X-Request-IDstring

Request ID for request tracking.

Request Body
POST /bookings
Responses application/json
201

Create a booking

400

Create a booking

401

Create a booking

409

Create a booking

413

Create a booking

Response
Copy

Cancel a booking

Cancels a booking.

Auth
Headers
X-Request-IDstring

Request ID for request tracking.

Path Params
booking_idstring
PUT /bookings/cancel/{booking_id}
Copy
Responses application/json
200

Cancel a booking

No response body
204

Cancel a booking

400

Cancel a booking

401

Cancel a booking

404

Cancel a booking

Response
Copy

Retrieve a single booking

Returns a booking.

Auth
Headers
X-Request-IDstring

Request ID for request tracking.

Path Params
booking_idstring
GET /bookings/{booking_id}
Copy
Responses application/json
200

Retrieve a single booking

401

Retrieve a single booking

404

Retrieve a single booking

Response
Copy

Acquire a hold

Acquires a hold.

Auth
Headers
X-Request-IDstring

Request ID for request tracking.

Request Body
objectobject
holdobject
expiresdate-time

Datetime of hold expiration

extobject

Extended data for the hold

iduuid

ID of the hold. This field can optionally be provided on create. If a valid UUID is provided on create, it will be saved as the object's ID. Otherwise, the object will receive a generated ID.

itemsarray[object]

Items in the hold

atdate-time

Availability time for the Hold item

availabilityIdstring

Availability selection for the Hold item

extobject

Extended data for the Hold item

iduuid

A unique identifier for this HoldItem

priceIdstring

ID of price selection for the booking item. This must match one of the price IDs within the rate that is being used to create this hold

productIduuid

Product selection for the Hold item

quantityint32

Amount of item to hold

rateIduuid

Rate ID for the hold item Rate

supplierIduuid

Supplier offering the product

travelerTypestring

Traveler type for the Hold item

Enum: ADULT,ANY,CHILD,INFANT,SENIOR,YOUTH

partnerIdstring

A Partner ID can be used to store a unique key in a partner's system.

metaobject

Request meta data

reqIduuid

Request ID

POST /holds
Copy
Responses application/json
201

Acquire a hold

400

Acquire a hold

401

Acquire a hold

409

Acquire a hold

413

Acquire a hold

Response
Copy

Release a hold

Releases a hold.

Auth
Headers
X-Request-IDstring

Request ID for request tracking.

Path Params
hold_idstring
DELETE /holds/{hold_id}
Copy
Responses application/json
204

Release a hold

No response body
401

Release a hold

404

Release a hold

Response
Copy

Retrieve a hold

Returns a hold.

Auth
Headers
X-Request-IDstring

Request ID for request tracking.

Path Params
hold_idstring
GET /holds/{hold_id}
Copy
Responses application/json
200

Retrieve a hold

401

Retrieve a hold

404

Retrieve a hold

Response
Copy