Create Reservation
Creates a reservation.
Authorizations
Basic authentication where:
- user-id is a partner account ID
- user-password is an API key token associated with the partner account
Body
ISO 8601. This date will be stored in UTC but evaluated in the context of the hotel's local timezone.
"2024-05-20"
ISO 8601. This date will be stored in UTC but evaluated in the context of the hotel's local timezone.
"2024-05-25"
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 (\).
Optional. Customer Loyalty details
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.
created, confirmed "confirmed"
Response
Created
ISO 8601.
"2024-05-20T00:00:00Z"
ISO 8601.
"2024-05-25T00:00:00Z"
Custom data object. Returned only if included in CreateReservationRequest.
ISO 8601.
"2024-05-20T18:00:00Z"
32-character alphanumeric Selfbook identifier.
"ZHPOGBXVQVFRVXXCHXRJATLEJWKNBERS"
CANCELED, CONFIRMED, CREATED "CONFIRMED"