Skip to main content
POST

Authorizations

Authorization
string
header
required

Basic authentication where:

  • user-id is a partner account ID
  • user-password is an API key token associated with the partner account

Body

application/json
check_in_date
string
required

ISO 8601. This date will be stored in UTC but evaluated in the context of the hotel's local timezone.

Example:

"2024-05-20"

check_out_date
string
required

ISO 8601. This date will be stored in UTC but evaluated in the context of the hotel's local timezone.

Example:

"2024-05-25"

guests
object
required
hotel
object
required
payment
object
required
rate
object
required
custom_data
object

Optional, custom object. Use to include additional data with the reservation. This data is not passed to hotels and will only be stored with Selfbook. Allows up to 10 key value pairs.

Keys have a max-length of 32 characters. Allowable characters are letters, numbers, underscore(_) or hyphen (-).

Values can be strings, numbers, or booleans. Max-length of 128 characters. Allowable characters are any except: greater-than symbol (>), less-than symbol (<), double quote("), single quote(') or backslash (\).

customer_loyalty
object

Optional. Customer Loyalty details

mock_reservation_with_status
enum<string>

Sandbox only. When set, returns a simulated reservation without contacting the GDS or charging payment — useful for testing your integration end-to-end. Ignored in all other environments and if set to any other value.

  • created: returns a reservation with status CREATED (no confirmation data).
  • confirmed: returns a reservation with status CONFIRMED, including a generated confirmation number and PNR locator.

The request must still pass full validation.

Available options:
created,
confirmed
Example:

"confirmed"

Response

Created

check_in_date
string

ISO 8601.

Example:

"2024-05-20T00:00:00Z"

check_out_date
string

ISO 8601.

Example:

"2024-05-25T00:00:00Z"

confirmation
object
custom_data
object

Custom data object. Returned only if included in CreateReservationRequest.

created_at
string

ISO 8601.

Example:

"2024-05-20T18:00:00Z"

guests
object
hotel
object
id
string

32-character alphanumeric Selfbook identifier.

Example:

"ZHPOGBXVQVFRVXXCHXRJATLEJWKNBERS"

payment
object
rate
object
status
enum<string>
Available options:
CANCELED,
CONFIRMED,
CREATED
Example:

"CONFIRMED"