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 (\).
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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Selfbook API","colors":{"primary":"#0D9373","light":"#00D4C8","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/selfbook-48d94d82/4o1J15JpGQHeig9p/logo/Selfbook-Logo-Black.svg?fit=max\u0026auto=format\u0026n=4o1J15JpGQHeig9p\u0026q=85\u0026s=cf8e815f68d046c09d6a143cf4791abf","dark":"https://mintcdn.com/selfbook-48d94d82/4o1J15JpGQHeig9p/logo/Selfbook-Logo-White.svg?fit=max\u0026auto=format\u0026n=4o1J15JpGQHeig9p\u0026q=85\u0026s=99d2bf1a912aec5f347bf9e84e227e14"},"favicon":"https://mintcdn.com/selfbook-48d94d82/4o1J15JpGQHeig9p/favicon.svg?fit=max\u0026auto=format\u0026n=4o1J15JpGQHeig9p\u0026q=85\u0026s=e72fcfc3327cfecbbd5a1c14c51077fd","api":{"openapi":"api-reference/openapi.yaml"},"interaction":{"drilldown":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"selfbook-48d94d82","hasAudioNarration":false,"actualSubdomain":"selfbook-48d94d82","customDomains":["docs.selfbook.com"],"gitSource":{"type":"github","owner":"selfbook","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6abaac42cc4e50481ed92d25","collectionId":"ab4c7aad-d309-4609-a752-fa7cc051f578","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6abaac42cc4e50481ed92d25"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"REMOVE_BRANDING":{"status":"DISABLED"}},"buildId":"6abaac42cc4e50481ed92d25","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"API Reference","count":8},{"language":"default","tag":"Reservations","count":5},{"language":"default","tag":"API Documentation","count":4},{"language":"default","tag":"Search Use Cases","count":4},{"language":"default","tag":"Booking Use Cases","count":3},{"language":"default","tag":"Hotels","count":2},{"language":"default","tag":"Destinations","count":1},{"language":"default","tag":"Changelog","count":1},{"language":"default","tag":"Get Started","count":1},{"language":"default","tag":"Postman","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"sidebar-group-icon{border:1px solid transparent;border-radius:6px;padding:2px;transition:border-color .15s ease,color .15s ease}sidebar-group-header:hover sidebar-group-icon,sidebar-group:hover sidebar-group-icon{color:#0d9373;border-color:#0d9373}"}],"page":{"pagePath":"api-reference/endpoint/post-create-reservation","slug":"/api-reference/endpoint/post-create-reservation","pageMetadata":{"title":"Create Reservation","openapi":"post /rest/v1/reservation","description":"Creates a reservation.\n","href":"/api-reference/endpoint/post-create-reservation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creates a reservation.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Reservation","openapi":"post /rest/v1/reservation","description":"Creates a reservation.\n","href":"/api-reference/endpoint/post-create-reservation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Creates a reservation.\n","operationId":"CreateReservation","security":["f31cbcdc-6b95-4fe6-8d39-c70d67a1fadc"],"requestBody":"9cf52b44-c258-4c05-9d6f-bfccda50ca38","responses":{"201":"95b1f787-1a38-4b35-a458-d93449e65455","400":"e4aa5f6a-8024-48fc-afe5-b2f18a137480","401":"2bf8f169-e716-4fd7-9bd3-3363a5351624","403":"ede77a8d-d00b-489d-a807-a50124134541"},"method":"post","type":"path","servers":["50778eea-7065-405a-bf8d-4753b0e60a35","6e867da0-ab6e-4213-9d00-569531f53446"],"path":"/rest/v1/reservation","baseUrlOptions":["https://sandbox.travel.selfbook.com","https://travel.selfbook.com"],"title":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"check_in_date":{"description":"ISO 8601. This date will be stored in UTC but evaluated in the context of the hotel's local timezone.","example":"2024-05-20","type":"string","isRequired":true,"uniqueKey":"check_in_date","typeLabel":"string"},"check_out_date":{"description":"ISO 8601. This date will be stored in UTC but evaluated in the context of the hotel's local timezone.","example":"2024-05-25","type":"string","isRequired":true,"uniqueKey":"check_out_date","typeLabel":"string"},"guests":{"type":"object","required":["number_of_adults","primary"],"properties":{"number_of_adults":{"description":"Number of adults.","example":1,"type":"integer","isRequired":true,"uniqueKey":"guests.number_of_adults","typeLabel":"integer"},"primary":{"type":"object","required":["email","given_name","surname"],"properties":{"given_name":{"description":"Primary guest first name.","example":"John","type":"string","isRequired":true,"uniqueKey":"guests.primary.given_name","typeLabel":"string"},"email":{"description":"Email.","example":"guest@somedomain.com","type":"string","isRequired":true,"uniqueKey":"guests.primary.email","typeLabel":"string"},"surname":{"description":"Primary guest last name.","example":"Doe","type":"string","isRequired":true,"uniqueKey":"guests.primary.surname","typeLabel":"string"},"address":{"description":"Address.","example":"123 Main Street Apt 152","type":"string","uniqueKey":"guests.primary.address","typeLabel":"string"},"city":{"description":"City.","example":"Miami","type":"string","uniqueKey":"guests.primary.city","typeLabel":"string"},"country":{"description":"ISO 3166-1 alpha-2 Country code.","example":"US","type":"string","uniqueKey":"guests.primary.country","typeLabel":"string"},"telephone_number":{"description":"Phone number.","example":"+13055551234","type":"string","uniqueKey":"guests.primary.telephone_number","typeLabel":"string"},"state":{"description":"ISO 3166-2 province/region/state/subdivision.","example":"FL","type":"string","uniqueKey":"guests.primary.state","typeLabel":"string"},"postal_code":{"description":"Postal code.","example":"33123","type":"string","uniqueKey":"guests.primary.postal_code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"guests.primary","typeLabel":"object"},"number_of_children":{"description":"Optional. Number of children.","example":1,"type":"integer","uniqueKey":"guests.number_of_children","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"guests","typeLabel":"object"},"hotel":{"type":"object","required":["chain_code","name","property_code"],"properties":{"chain_code":{"description":"Alphanumeric, hotel chain code.","example":"HI","type":"string","isRequired":true,"uniqueKey":"hotel.chain_code","typeLabel":"string"},"name":{"description":"Hotel name.","example":"Holiday Inn","type":"string","isRequired":true,"uniqueKey":"hotel.name","typeLabel":"string"},"property_code":{"description":"Alphanumeric, hotel property code.","example":"E8597","type":"string","isRequired":true,"uniqueKey":"hotel.property_code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"hotel","typeLabel":"object"},"payment":{"type":"object","required":["guest"],"properties":{"guest":{"description":"Payment information for the guest.","type":"object","required":["amount"],"properties":{"amount":{"description":"Amount charged to the payment instrument represented by 'stripe' or 'token' attributes. Currency used will be the rate.price.currency_code.","example":164.24,"type":"number","isRequired":true,"uniqueKey":"payment.guest.amount","typeLabel":"number"},"cvv":{"description":"Card security code. This is optional. Only pass this when reusing a Spreedly token.","example":"123","type":"string","uniqueKey":"payment.guest.cvv","typeLabel":"string"},"stripe":{"description":"Stripe payment details. Pass this instead of 'token' if you intend to use a specific Stripe customer and payment method.","type":"object","required":["customer","payment_method"],"properties":{"customer":{"description":"Stripe customer id.","example":"cus_TestRce2zv5tRe","type":"string","isRequired":true,"uniqueKey":"payment.guest.stripe.customer","typeLabel":"string"},"payment_method":{"description":"Stripe payment method.","example":"pm_Test5aAWTcmv4K1R71vVugBD","type":"string","isRequired":true,"uniqueKey":"payment.guest.stripe.payment_method","typeLabel":"string"}},"uniqueKey":"payment.guest.stripe","typeLabel":"object"},"token":{"description":"A token representing the guest's payment method. Accepts Spreedly payment method tokens.","example":"01JKA2V3A58ZXN2EH5CK6B10AY","type":"string","uniqueKey":"payment.guest.token","typeLabel":"string"}},"isRequired":true,"uniqueKey":"payment.guest","typeLabel":"object"},"partner":{"description":"Payment information for a 2nd payer. If using a partner, you must also include a guest.","type":"object","properties":{"amount":{"description":"Amount charged to the payment instrument represented by 'stripe' or 'token' attributes. Currency used will be the rate.price.currency_code.","example":20,"type":"number","uniqueKey":"payment.partner.amount","typeLabel":"number"},"cvv":{"description":"Card security code. This is optional. Only pass this when reusing a Spreedly token.","example":"123","type":"string","uniqueKey":"payment.partner.cvv","typeLabel":"string"},"stripe":{"description":"Stripe payment details. Pass this instead of 'token' if you intend to use a specific Stripe customer and payment method.","type":"object","required":["customer","payment_method"],"properties":{"customer":{"description":"Stripe customer id.","example":"cus_Test5R5ajq0MZH","type":"string","isRequired":true,"uniqueKey":"payment.partner.stripe.customer","typeLabel":"string"},"payment_method":{"description":"Stripe payment method.","example":"pm_TestsWAWTcmv4K1ROuWIkGXP","type":"string","isRequired":true,"uniqueKey":"payment.partner.stripe.payment_method","typeLabel":"string"}},"uniqueKey":"payment.partner.stripe","typeLabel":"object"},"token":{"description":"A token representing the 2nd payer's payment method. Accepts Spreedly payment method tokens.","example":"01JKA13A6TWPV9R4VPWBTAV4KS","type":"string","uniqueKey":"payment.partner.token","typeLabel":"string"}},"uniqueKey":"payment.partner","typeLabel":"object"}},"isRequired":true,"uniqueKey":"payment","typeLabel":"object"},"rate":{"type":"object","required":["booking_code","channel_code","price"],"properties":{"booking_code":{"description":"Unique booking code.","example":"2QN57JU","type":"string","isRequired":true,"uniqueKey":"rate.booking_code","typeLabel":"string"},"channel_code":{"description":"Channel code.","example":"SBT1","type":"string","isRequired":true,"uniqueKey":"rate.channel_code","typeLabel":"string"},"price":{"type":"object","required":["currency_code","total_price"],"properties":{"total_price":{"description":"Total for the reservation.","example":164.24,"type":"number","isRequired":true,"uniqueKey":"rate.price.total_price","typeLabel":"number"},"currency_code":{"description":"ISO 4217.","example":"USD","type":"string","isRequired":true,"uniqueKey":"rate.price.currency_code","typeLabel":"string"},"base_price":{"description":"Base total of the reservation.","example":139,"type":"number","uniqueKey":"rate.price.base_price","typeLabel":"number"},"total_taxes":{"description":"Total taxes for the reservation.","example":25.24,"type":"number","uniqueKey":"rate.price.total_taxes","typeLabel":"number"}},"isRequired":true,"uniqueKey":"rate.price","typeLabel":"object"},"pcc":{"description":"Internal rate identifier","type":"string","example":"KR5","uniqueKey":"rate.pcc","typeLabel":"string"},"number_of_rooms":{"description":"Number of rooms requested.","example":1,"default":1,"type":"integer","uniqueKey":"rate.number_of_rooms","typeLabel":"integer"},"rate_description":{"description":"Description of rate.","type":"string","uniqueKey":"rate.rate_description","typeLabel":"string"},"room_description":{"description":"Description of room.","type":"string","uniqueKey":"rate.room_description","typeLabel":"string"},"terms":{"type":"object","properties":{"guarantee_type":{"description":"Type of guarantee required","example":"DepositRequired","type":"string","uniqueKey":"rate.terms.guarantee_type","typeLabel":"string"},"rate_payment_info":{"description":"Type of rate payment (usually PrePay or PostPay)","type":"string","example":"PrePay","uniqueKey":"rate.terms.rate_payment_info","typeLabel":"string"},"refundable":{"description":"Is the rate refundable? If SBT2 and marked false, the rate is also non-cancellable.","example":true,"type":"boolean","uniqueKey":"rate.terms.refundable","typeLabel":"boolean"},"cancel_note":{"description":"Note included for cancel penalties. May or may not be null.","type":"string","example":"","uniqueKey":"rate.terms.cancel_note","typeLabel":"string"},"cancel_penalties":{"description":"Penalties for cancellation","type":"array","items":{"type":"object","properties":{"deadline_local":{"description":"Local date time deadline for when the cancellation fee will be enforced","type":"string","example":"2024-09-17T00:00:00-05:00","uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].deadline_local","typeLabel":"string"},"cancel_short_description":{"description":"Short description of the cancellation policy and penalties","type":"string","example":"An estimated cancellation fee of 177.44 USD applies starting from 2024-09-17T00:00-05:00[America/Chicago].","uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].cancel_short_description","typeLabel":"string"},"penalty":{"description":"Object describing the penalty amount.","type":"object","properties":{"estimated_amount":{"description":"Is the penalty amount estimated?","type":"boolean","example":true,"uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].penalty.estimated_amount","typeLabel":"boolean"},"currency_amount":{"description":"Amount of currency for the penalty","type":"object","properties":{"amount":{"description":"Amount","type":"number","example":177.44,"uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].penalty.currency_amount.amount","typeLabel":"number"},"currency":{"description":"Currency code","type":"string","example":"USD","uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].penalty.currency_amount.currency","typeLabel":"string"}},"uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].penalty.currency_amount","typeLabel":"object"}},"uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].penalty","typeLabel":"object"},"original_penalty_info":{"description":"Original penalty information","type":"string","example":"100%","uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].original_penalty_info","typeLabel":"string"}},"uniqueKey":"rate.terms.cancel_penalties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"rate.terms.cancel_penalties","typeLabel":"object[]"}},"uniqueKey":"rate.terms","typeLabel":"object"}},"isRequired":true,"uniqueKey":"rate","typeLabel":"object"},"custom_data":{"description":"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.\n\nKeys have a max-length of 32 characters. Allowable characters are letters, numbers, underscore(_) or hyphen (-). \n\nValues can be strings, numbers, or booleans. Max-length of 128 characters. Allowable characters are any except: greater-than symbol (>), less-than symbol (\u003c), double quote(\"), single quote(') or backslash (\\\\).\n","type":"object","additionalProperties":true,"uniqueKey":"custom_data","typeLabel":"object"},"customer_loyalty":{"description":"Optional. Customer Loyalty details","type":"object","required":["code"],"properties":{"code":{"description":"Required if passing customer_loyalty. Loyalty account code or number.","example":123456789,"type":"string","isRequired":true,"uniqueKey":"customer_loyalty.code","typeLabel":"string"}},"uniqueKey":"customer_loyalty","typeLabel":"object"},"mock_reservation_with_status":{"description":"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.\n\n- `created`: returns a reservation with status CREATED (no confirmation data).\n- `confirmed`: returns a reservation with status CONFIRMED, including a generated confirmation number and PNR locator.\n\nThe request must still pass full validation.\n","enum":["created","confirmed"],"example":"confirmed","type":"string","uniqueKey":"mock_reservation_with_status","typeLabel":"enum\u003cstring>"}},"required":["check_in_date","check_out_date","guests","hotel","payment","rate"],"uniqueKey":"","typeLabel":"object"},"examples":{"Create a Reservation, first time tokenization (no cvv)":{"title":"Create a Reservation, first time tokenization (no cvv)","value":{"check_in_date":"2024-05-20","check_out_date":"2024-05-25","guests":{"number_of_adults":1,"number_of_children":1,"primary":{"address":"123 Main St, Apt 152","city":"Miami","country":"US","email":"guest@somedomain.com","given_name":"John","postal_code":"33123","state":"FL","surname":"Doe","telephone_number":"+13055551234"}},"hotel":{"chain_code":"HI","name":"Holiday Inn","property_code":"E8597"},"payment":{"guest":{"amount":164.24,"token":"01JKA2V3A58ZXN2EH5CK6B10AY"}},"rate":{"booking_code":"2QN57JU","channel_code":"SBT1","number_of_rooms":1,"price":{"total_price":164.24,"base_price":139,"total_taxes":25.24,"currency_code":"USD"},"terms":{"rate_payment_info":"PrePay","guarantee_type":"DepositRequired","refundable":true,"cancel_note":null,"cancel_penalties":[{"deadline_local":"2024-04-19T00:00-06:00","cancel_short_description":"An estimated cancellation fee of 106.90 USD applies starting from 2024-04-20T00:00-06:00[America/Chicago].","penalty":{"estimated_amount":true,"currency_amount":{"amount":106.9,"currency":"USD"},"original_penalty_info":"100%"}}]}}}},"Create a Reservation, reuse token (include cvv)":{"title":"Create a Reservation, reuse token (include cvv)","value":{"check_in_date":"2024-05-20","check_out_date":"2024-05-25","guests":{"number_of_adults":1,"number_of_children":1,"primary":{"address":"123 Main St, Apt 152","city":"Miami","country":"US","email":"guest@somedomain.com","given_name":"John","postal_code":"33123","state":"FL","surname":"Doe","telephone_number":"+13055551234"}},"hotel":{"chain_code":"HI","name":"Holiday Inn","property_code":"E8597"},"payment":{"guest":{"amount":164.24,"cvv":"123","token":"01JKA2V3A58ZXN2EH5CK6B10AY"}},"rate":{"booking_code":"2QN57JU","channel_code":"SBT1","number_of_rooms":1,"price":{"total_price":164.24,"base_price":139,"total_taxes":25.24,"currency_code":"USD"},"terms":{"rate_payment_info":"PrePay","guarantee_type":"DepositRequired","refundable":true,"cancel_note":null,"cancel_penalties":[{"deadline_local":"2024-04-19T00:00-06:00","cancel_short_description":"An estimated cancellation fee of 106.90 USD applies starting from 2024-04-19T00:00-06:00[America/Chicago].","penalty":{"estimated_amount":true,"currency_amount":{"amount":106.9,"currency":"USD"},"original_penalty_info":"100%"}}]}}}},"Create a Reservation, include 2nd payment method":{"title":"Create a Reservation, include 2nd payment method","value":{"check_in_date":"2024-05-20","check_out_date":"2024-05-25","guests":{"number_of_adults":1,"number_of_children":1,"primary":{"address":"123 Main St, Apt 152","city":"Miami","country":"US","email":"guest@somedomain.com","given_name":"John","postal_code":"33123","state":"FL","surname":"Doe","telephone_number":"+13055551234"}},"hotel":{"chain_code":"HI","name":"Holiday Inn","property_code":"E8597"},"payment":{"guest":{"amount":164.24,"token":"01JKA2V3A58ZXN2EH5CK6B10AY"},"partner":{"amount":20,"token":"01JKA13A6TWPV9R4VPWBTAV4KS"}},"rate":{"booking_code":"2QN57JU","channel_code":"SBT1","number_of_rooms":1,"price":{"total_price":184.24,"base_price":159,"total_taxes":25.24,"currency_code":"USD"},"terms":{"rate_payment_info":"PrePay","guarantee_type":"DepositRequired","refundable":true,"cancel_note":null,"cancel_penalties":[{"deadline_local":"2024-04-19T00:00-06:00","cancel_short_description":"An estimated cancellation fee of 106.90 USD applies starting from 2024-04-19T00:00-06:00[America/Chicago].","penalty":{"estimated_amount":true,"currency_amount":{"amount":106.9,"currency":"USD"},"original_penalty_info":"100%"}}]}}}},"Create a Reservation, using stripe object for payment":{"title":"Create a Reservation, using stripe object for payment","value":{"check_in_date":"2024-05-20","check_out_date":"2024-05-25","guests":{"number_of_adults":1,"number_of_children":1,"primary":{"address":"123 Main St, Apt 152","city":"Miami","country":"US","email":"guest@somedomain.com","given_name":"John","postal_code":"33123","state":"FL","surname":"Doe","telephone_number":"+13055551234"}},"hotel":{"chain_code":"HI","name":"Holiday Inn","property_code":"E8597"},"payment":{"guest":{"amount":164.24,"stripe":{"customer":"cus_TestRce2zv5tRe","payment_method":"pm_Test5aAWTcmv4K1R71vVugBD"}},"partner":{"amount":20,"stripe":{"customer":"cus_Test5R5ajq0MZH","payment_method":"pm_Test5aAWTcmv4K1R71vVugBD"}}},"rate":{"booking_code":"2QN57JU","channel_code":"SBT1","number_of_rooms":1,"price":{"total_price":184.24,"base_price":159,"total_taxes":25.24,"taxes_and_fees_included":false,"currency_code":"USD"},"terms":{"rate_payment_info":"PrePay","guarantee_type":"DepositRequired","refundable":true,"cancel_note":null,"cancel_penalties":[{"deadline_local":"2024-04-19T00:00-06:00","cancel_short_description":"An estimated cancellation fee of 106.90 USD applies starting from 2024-04-19T00:00-06:00[America/Chicago].","penalty":{"estimated_amount":true,"currency_amount":{"amount":106.9,"currency":"USD"},"original_penalty_info":"100%"}}]}}}},"Create a Reservation, include custom_data":{"title":"Create a Reservation, include custom_data","value":{"check_in_date":"2024-05-20","check_out_date":"2024-05-25","custom_data":{"tag1":"value1","other_tag":"value2"},"guests":{"number_of_adults":1,"number_of_children":1,"primary":{"address":"123 Main St, Apt 152","city":"Miami","country":"US","email":"guest@somedomain.com","given_name":"John","postal_code":"33123","state":"FL","surname":"Doe","telephone_number":"+13055551234"}},"hotel":{"chain_code":"HI","name":"Holiday Inn","property_code":"E8597"},"payment":{"guest":{"amount":164.24,"stripe":{"customer":"cus_TestRce2zv5tRe","payment_method":"pm_Test5aAWTcmv4K1R71vVugBD"}},"partner":{"amount":20,"stripe":{"customer":"cus_Test5R5ajq0MZH","payment_method":"pm_Test5aAWTcmv4K1R71vVugBD"}}},"rate":{"booking_code":"2QN57JU","channel_code":"SBT1","number_of_rooms":1,"price":{"total_price":184.24,"base_price":159,"total_taxes":25.24,"taxes_and_fees_included":false,"currency_code":"USD"},"terms":{"rate_payment_info":"PrePay","guarantee_type":"DepositRequired","refundable":true,"cancel_note":null,"cancel_penalties":[{"deadline_local":"2024-04-19T00:00-06:00","cancel_short_description":"An estimated cancellation fee of 106.90 USD applies starting from 2024-04-19T00:00-06:00[America/Chicago].","penalty":{"estimated_amount":true,"currency_amount":{"amount":106.9,"currency":"USD"},"original_penalty_info":"100%"}}]}}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"95b1f787-1a38-4b35-a458-d93449e65455":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"check_in_date":{"description":"ISO 8601.","type":"string","example":"2024-05-20T00:00:00Z","uniqueKey":"check_in_date","typeLabel":"string"},"check_out_date":{"description":"ISO 8601.","example":"2024-05-25T00:00:00Z","type":"string","uniqueKey":"check_out_date","typeLabel":"string"},"confirmation":{"type":"object","properties":{"hotel_confirmation_number":{"description":"Hotel's confirmation id. This is returned only if Reservation status is CONFIRMED.","example":"CONFIRMATION_ID","type":"string","uniqueKey":"confirmation.hotel_confirmation_number","typeLabel":"string"},"record_locator":{"description":"Additional identifier for the reservation. This is returned only if Reservation status is CONFIRMED.","example":"LOCATOR_CODE","type":"string","uniqueKey":"confirmation.record_locator","typeLabel":"string"}},"uniqueKey":"confirmation","typeLabel":"object"},"custom_data":{"description":"Custom data object. Returned only if included in CreateReservationRequest.","type":"object","properties":{"key":{"example":"value","type":"string","uniqueKey":"custom_data.key","typeLabel":"string"}},"uniqueKey":"custom_data","typeLabel":"object"},"created_at":{"description":"ISO 8601.","example":"2024-05-20T18:00:00Z","type":"string","uniqueKey":"created_at","typeLabel":"string"},"guests":{"type":"object","properties":{"number_of_adults":{"description":"Number of adults.","example":1,"type":"integer","uniqueKey":"guests.number_of_adults","typeLabel":"integer"},"number_of_children":{"description":"Number of children.","example":1,"type":"integer","uniqueKey":"guests.number_of_children","typeLabel":"integer"},"primary":{"type":"object","properties":{"address":{"description":"Address.","example":"123 Main Street Apt 152","type":"string","uniqueKey":"guests.primary.address","typeLabel":"string"},"city":{"description":"City.","example":"Miami","type":"string","uniqueKey":"guests.primary.city","typeLabel":"string"},"country":{"description":"ISO 3166-1 alpha-2 Country code.","example":"US","type":"string","uniqueKey":"guests.primary.country","typeLabel":"string"},"email":{"description":"Email.","example":"guest@somedomain.com","type":"string","uniqueKey":"guests.primary.email","typeLabel":"string"},"given_name":{"description":"Primary guest first name.","example":"John","type":"string","uniqueKey":"guests.primary.given_name","typeLabel":"string"},"surname":{"description":"Primary guest last name.","example":"Doe","type":"string","uniqueKey":"guests.primary.surname","typeLabel":"string"},"telephone_number":{"description":"Phone number.","example":"+13055551234","type":"string","uniqueKey":"guests.primary.telephone_number","typeLabel":"string"},"state":{"description":"ISO 3166-2 province/region/state/subdivision.","example":"FL","type":"string","uniqueKey":"guests.primary.state","typeLabel":"string"},"postal_code":{"description":"Postal code.","example":"33123","type":"string","uniqueKey":"guests.primary.postal_code","typeLabel":"string"}},"uniqueKey":"guests.primary","typeLabel":"object"}},"uniqueKey":"guests","typeLabel":"object"},"hotel":{"type":"object","properties":{"chain_code":{"description":"Alphanumeric, hotel chain code.","example":"HI","type":"string","uniqueKey":"hotel.chain_code","typeLabel":"string"},"name":{"description":"Hotel name.","example":"Holiday Inn","type":"string","uniqueKey":"hotel.name","typeLabel":"string"},"property_code":{"description":"Alphanumeric, hotel code.","example":"E8597","type":"string","uniqueKey":"hotel.property_code","typeLabel":"string"}},"uniqueKey":"hotel","typeLabel":"object"},"id":{"description":"32-character alphanumeric Selfbook identifier.","example":"ZHPOGBXVQVFRVXXCHXRJATLEJWKNBERS","type":"string","uniqueKey":"id","typeLabel":"string"},"payment":{"type":"object","properties":{"guest":{"type":"object","properties":{"amount":{"description":"Amount charged to the payment instrument represented by guest payment method.","example":164.24,"type":"number","uniqueKey":"payment.guest.amount","typeLabel":"number"},"stripe":{"description":"Stripe payment details. Pass this want to use a specific Stripe customer and payment method.","type":"object","properties":{"customer":{"description":"Stripe customer id.","example":"cus_TestRce2zv5tRe","type":"string","uniqueKey":"payment.guest.stripe.customer","typeLabel":"string"},"payment_method":{"description":"Stripe payment method.","example":"pm_Test5aAWTcmv4K1R71vVugBD","type":"string","uniqueKey":"payment.guest.stripe.payment_method","typeLabel":"string"}},"uniqueKey":"payment.guest.stripe","typeLabel":"object"},"token":{"description":"A token representing the guest payment method. This is not returned if a stripe object is returned.","example":"01JKA2V3A58ZXN2EH5CK6B10AY","type":"string","uniqueKey":"payment.guest.token","typeLabel":"string"}},"uniqueKey":"payment.guest","typeLabel":"object"},"partner":{"type":"object","properties":{"amount":{"description":"Amount charged to the payment instrument represented by a 2nd payer's payment method. This is included only if included when creating a reservation.","example":20,"type":"number","uniqueKey":"payment.partner.amount","typeLabel":"number"},"stripe":{"description":"This object is returned only when it is used to create the reservation.","type":"object","properties":{"customer":{"description":"Stripe customer id.","example":"cus_Test5R5ajq0MZH","type":"string","uniqueKey":"payment.partner.stripe.customer","typeLabel":"string"},"payment_method":{"description":"Stripe payment method.","example":"pm_TestsWAWTcmv4K1ROuWIkGXP","type":"string","uniqueKey":"payment.partner.stripe.payment_method","typeLabel":"string"}},"uniqueKey":"payment.partner.stripe","typeLabel":"object"},"token":{"description":"A token representing a 2nd payer's payment method. This is not returned if a stripe object is returned.","example":"01JKA13A6TWPV9R4VPWBTAV4KS","type":"string","uniqueKey":"payment.partner.token","typeLabel":"string"}},"uniqueKey":"payment.partner","typeLabel":"object"}},"uniqueKey":"payment","typeLabel":"object"},"rate":{"type":"object","properties":{"booking_code":{"description":"Unique booking code.","example":"2QN57JU","type":"string","uniqueKey":"rate.booking_code","typeLabel":"string"},"channel_code":{"description":"Channel code for room rate","type":"string","example":"SBT1","uniqueKey":"rate.channel_code","typeLabel":"string"},"number_of_rooms":{"description":"Number of rooms requested.","example":1,"default":1,"type":"integer","uniqueKey":"rate.number_of_rooms","typeLabel":"integer"},"price":{"type":"object","properties":{"base_price":{"description":"Base total of the reservation.","example":159,"type":"number","uniqueKey":"rate.price.base_price","typeLabel":"number"},"total_price":{"description":"Total for the reservation.","example":184.24,"type":"number","uniqueKey":"rate.price.total_price","typeLabel":"number"},"total_taxes":{"description":"Total taxes for the reservation.","example":25.24,"type":"number","uniqueKey":"rate.price.total_taxes","typeLabel":"number"},"currency_code":{"description":"ISO 4217.","example":"USD","type":"string","uniqueKey":"rate.price.currency_code","typeLabel":"string"}},"uniqueKey":"rate.price","typeLabel":"object"},"terms":{"type":"object","properties":{"guarantee_type":{"description":"Type of guarantee required","example":"DepositRequired","type":"string","uniqueKey":"rate.terms.guarantee_type","typeLabel":"string"},"rate_payment_info":{"description":"Type of rate payment (usually PrePay or PostPay)","type":"string","example":"PrePay","uniqueKey":"rate.terms.rate_payment_info","typeLabel":"string"},"refundable":{"description":"Is the rate refundable?","type":"boolean","uniqueKey":"rate.terms.refundable","typeLabel":"boolean"},"cancel_note":{"description":"Note left if cancel penalties are unavailable","type":"string","example":"Rate returned without cancel policy requires a rule request for complete information","uniqueKey":"rate.terms.cancel_note","typeLabel":"string"},"cancel_penalties":{"description":"Penalties for cancellation","type":"array","items":{"type":"object","properties":{"deadline_local":{"description":"Local date time deadline for when the cancellation fee will be enforced","type":"string","example":"2024-09-17T00:00:00-05:00","uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].deadline_local","typeLabel":"string"},"cancel_short_description":{"description":"Short description of the cancellation policy and penalties","type":"string","example":"An estimated cancellation fee of 177.44 USD applies starting from 2024-09-17T00:00-05:00[America/Chicago].","uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].cancel_short_description","typeLabel":"string"},"penalty":{"description":"Object describing the penalty amount.","type":"object","properties":{"estimated_amount":{"description":"Is the penalty amount estimated?","type":"boolean","example":true,"uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].penalty.estimated_amount","typeLabel":"boolean"},"currency_amount":{"description":"Amount of currency for the penalty","type":"object","properties":{"amount":{"description":"Amount","type":"number","example":177.44,"uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].penalty.currency_amount.amount","typeLabel":"number"},"currency":{"description":"Currency code","type":"string","example":"USD","uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].penalty.currency_amount.currency","typeLabel":"string"}},"uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].penalty.currency_amount","typeLabel":"object"},"original_penalty_info":{"description":"Original penalty information","type":"string","example":"100%","uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].penalty.original_penalty_info","typeLabel":"string"}},"uniqueKey":"rate.terms.cancel_penalties.items.[INDEX].penalty","typeLabel":"object"}},"uniqueKey":"rate.terms.cancel_penalties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"rate.terms.cancel_penalties","typeLabel":"object[]"}},"uniqueKey":"rate.terms","typeLabel":"object"}},"uniqueKey":"rate","typeLabel":"object"},"status":{"type":"string","enum":["CANCELED","CONFIRMED","CREATED"],"example":"CONFIRMED","uniqueKey":"status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"check_in_date":"2024-05-20T00:00:00Z","check_out_date":"2024-05-25T00:00:00Z","confirmation":{"hotel_confirmation_number":"CONFIRMATION_ID","record_locator":"LOCATOR_CODE"},"custom_data":{"key":"value"},"created_at":"2024-05-20T18:00:00Z","guests":{"number_of_adults":1,"number_of_children":1,"primary":{"address":"123 Main Street Apt 152","city":"Miami","country":"US","email":"guest@somedomain.com","given_name":"John","surname":"Doe","telephone_number":"+13055551234","state":"FL","postal_code":"33123"}},"hotel":{"chain_code":"HI","name":"Holiday Inn","property_code":"E8597"},"id":"ZHPOGBXVQVFRVXXCHXRJATLEJWKNBERS","payment":{"guest":{"amount":164.24,"stripe":{"customer":"cus_TestRce2zv5tRe","payment_method":"pm_Test5aAWTcmv4K1R71vVugBD"},"token":"01JKA2V3A58ZXN2EH5CK6B10AY"},"partner":{"amount":20,"stripe":{"customer":"cus_Test5R5ajq0MZH","payment_method":"pm_TestsWAWTcmv4K1ROuWIkGXP"},"token":"01JKA13A6TWPV9R4VPWBTAV4KS"}},"rate":{"booking_code":"2QN57JU","channel_code":"SBT1","number_of_rooms":1,"price":{"base_price":159,"total_price":184.24,"total_taxes":25.24,"currency_code":"USD"},"terms":{"guarantee_type":"DepositRequired","rate_payment_info":"PrePay","refundable":true,"cancel_note":"Rate returned without cancel policy requires a rule request for complete information","cancel_penalties":[{"deadline_local":"2024-09-17T00:00:00-05:00","cancel_short_description":"An estimated cancellation fee of 177.44 USD applies starting from 2024-09-17T00:00-05:00[America/Chicago].","penalty":{"estimated_amount":true,"currency_amount":{"amount":177.44,"currency":"USD"},"original_penalty_info":"100%"}}]}},"status":"CONFIRMED"}}},"exampleType":"generated"}},"exampleType":"generated"},"e4aa5f6a-8024-48fc-afe5-b2f18a137480":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Numeric error code.","example":2001,"uniqueKey":"code","typeLabel":"integer"},"details":{"type":"array","description":"One or more additional details about error condtion.","items":{"type":"object","properties":{"message":{"description":"A more detailed error message.","type":"string","example":"check_out_date is missing","uniqueKey":"details.items.[INDEX].message","typeLabel":"string"},"field":{"description":"Included for validation errors. Indicating the path to the problem field.","type":"array","items":{"type":"string","example":"check_out_date","uniqueKey":"details.items.[INDEX].field.items.[INDEX]","typeLabel":"string"},"uniqueKey":"details.items.[INDEX].field","typeLabel":"string[]"}},"uniqueKey":"details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"details","typeLabel":"object[]"},"message":{"type":"string","description":"A summary of the error.","example":"Unable to process your request. Missing or invalid request parameters.","uniqueKey":"message","typeLabel":"string"},"type":{"type":"string","enum":["APPLICATION_ERROR","BOOKING_CANCELLATION_ERROR","BOOKING_CREATION_ERROR","BOOKING_ERROR","PAYMENT_PROCESSING_ERROR","VALIDATION"],"example":"VALIDATION","uniqueKey":"type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":2001,"details":[{"message":"check_out_date is missing","field":["check_out_date"]}],"message":"Unable to process your request. Missing or invalid request parameters.","type":"VALIDATION"}}},"exampleType":"generated"}},"exampleType":"generated"},"2bf8f169-e716-4fd7-9bd3-3363a5351624":{"description":"Unauthorized\nthe API key token is missing, invalid, or expired\n","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"ede77a8d-d00b-489d-a807-a50124134541":{"description":"Forbidden\nthe API key token cannot access the specified resource\n","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"f31cbcdc-6b95-4fe6-8d39-c70d67a1fadc":{"BasicAuthentication":{"type":"http","description":"Basic authentication where:\n - user-id is a partner account ID\n - user-password is an API key token associated with the partner account\n","scheme":"basic","scopes":[]}}},"servers":{"50778eea-7065-405a-bf8d-4753b0e60a35":{"url":"https://sandbox.travel.selfbook.com","description":"Sandbox server"},"6e867da0-ab6e-4213-9d00-569531f53446":{"url":"https://travel.selfbook.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","description":"Basic authentication where:\n - user-id is a partner account ID\n - user-password is an API key token associated with the partner account\n","scheme":"basic","scopes":[]},"schema":{"title":"Basic Auth","type":"object","description":"Basic authentication where:\n - user-id is a partner account ID\n - user-password is an API key token associated with the partner account\n","isRequired":true,"properties":{"username":{"type":"string","uniqueKey":"username","isRequired":true,"typeLabel":"string","deprecated":false},"password":{"type":"string","uniqueKey":"password","isRequired":true,"typeLabel":"string","deprecated":false}},"additionalProperties":false,"deprecated":false},"schemeName":"BasicAuthentication","name":"Authorization"}],"title":"BasicAuthentication"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"selfbook-48d94d82","siteName":"Selfbook API","title":"Create Reservation - Selfbook API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-08-07T03:06:51.301Z","originalFileLocation":"api-reference/endpoint/post-create-reservation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a reservation.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Selfbook API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/selfbook-48d94d82/41JX03fsc0c2k_-z/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/selfbook-48d94d82/41JX03fsc0c2k_-z/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/selfbook-48d94d82/41JX03fsc0c2k_-z/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/selfbook-48d94d82/41JX03fsc0c2k_-z/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/selfbook-48d94d82/41JX03fsc0c2k_-z/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/selfbook-48d94d82/41JX03fsc0c2k_-z/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/selfbook-48d94d82/41JX03fsc0c2k_-z/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/selfbook-48d94d82/41JX03fsc0c2k_-z/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/selfbook-48d94d82/41JX03fsc0c2k_-z/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Reservation - Selfbook API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a reservation.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Selfbook API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.selfbook.com/api-reference/endpoint/post-create-reservation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://selfbook-48d94d82.mintlify.app/_mintlify/api/og/v2?division=Reservations\u0026amp;title=Create+Reservation\u0026amp;description=Creates+a+reservation.%0A\u0026amp;theme=e829b42cf3ab651ca4d7d321\u0026amp;signature=e21f911e42dc9fdc75ca7ded3a46ffd0d6f2f803522730bdee3460db53b4f02c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Reservation - Selfbook API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a reservation.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://selfbook-48d94d82.mintlify.app/_mintlify/api/og/v2?division=Reservations\u0026amp;title=Create+Reservation\u0026amp;description=Creates+a+reservation.%0A\u0026amp;theme=e829b42cf3ab651ca4d7d321\u0026amp;signature=e21f911e42dc9fdc75ca7ded3a46ffd0d6f2f803522730bdee3460db53b4f02c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/selfbook-48d94d82/41JX03fsc0c2k_-z/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Selfbook API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.selfbook.com/api-reference/endpoint/post-create-reservation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/post-create-reservation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.selfbook.com/#organization\",\"name\":\"Selfbook API\",\"url\":\"https://docs.selfbook.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/selfbook-48d94d82/4o1J15JpGQHeig9p/logo/Selfbook-Logo-Black.svg?fit=max\u0026auto=format\u0026n=4o1J15JpGQHeig9p\u0026q=85\u0026s=cf8e815f68d046c09d6a143cf4791abf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.selfbook.com#website\",\"name\":\"Selfbook API\",\"url\":\"https://docs.selfbook.com\",\"publisher\":{\"@id\":\"https://docs.selfbook.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.selfbook.com/api-reference/endpoint/post-create-reservation#webpage\",\"url\":\"https://docs.selfbook.com/api-reference/endpoint/post-create-reservation\",\"name\":\"Create Reservation\",\"description\":\"Creates a reservation.\",\"dateModified\":\"2025-08-07T03:06:51.301Z\",\"isPartOf\":{\"@id\":\"https://docs.selfbook.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.selfbook.com/api-reference/endpoint/post-create-reservation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.selfbook.com/api-reference/endpoint/post-create-reservation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.selfbook.com/api-reference/endpoint/get-destinations-search\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Reservation\",\"item\":\"https://docs.selfbook.com/api-reference/endpoint/post-create-reservation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.selfbook.com/api-reference/endpoint/post-create-reservation#apireference\",\"headline\":\"Create Reservation\",\"name\":\"Create Reservation\",\"description\":\"Creates a reservation.\",\"url\":\"https://docs.selfbook.com/api-reference/endpoint/post-create-reservation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.selfbook.com/api-reference/endpoint/post-create-reservation#webpage\"},\"dateModified\":\"2025-08-07T03:06:51.301Z\",\"publisher\":{\"@id\":\"https://docs.selfbook.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.selfbook.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Selfbook API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Selfbook API","nav":{"global":null,"groups":[{"group":"Get Started","pages":[{"title":null,"href":"/introduction"}]},{"group":"Search Use Cases","pages":[{"title":"Search by Property code","href":"/search_ids"},{"title":"Search by Multiple Property codes","href":"/search_multiple_ids"},{"title":"Search by Geo Coordinates","href":"/search_geo"},{"title":"Search by Airport code","href":"/search_airport"}]},{"group":"Booking Use Cases","pages":[{"title":"Create a Reservation","href":"/create_reservation"},{"title":"Find a Reservation","href":"/find_reservation"},{"title":"Cancel a Reservation","href":"/cancel_reservation"}]},{"group":"Reservation Modification Use Cases","pages":[{"title":"Modifications Overview","href":"/reservation_modification_use_cases"}]},{"group":"API Documentation","pages":[{"title":"Getting Started","href":"/api-reference/introduction"},{"title":"Errors","href":"/api-reference/error"},{"title":"Response Time","href":"/api-reference/response"},{"title":"Code References","href":"/api-reference/code-references"}]},{"group":"Webhooks","pages":[{"title":"Webhooks Overview","href":"/webhooks"}]},{"group":"API Reference","pages":[{"group":"Destinations","expanded":true,"pages":[{"title":"Destinations Search","openapi":"get /rest/v1/destinations/search","href":"/api-reference/endpoint/get-destinations-search"}]},{"group":"Hotels","expanded":true,"pages":[{"title":"Hotel Search","openapi":"post /rest/v1/hotel/search","href":"/api-reference/endpoint/post-hotel-search"},{"title":"Rate Verification","openapi":"post /rest/v1/hotel/rate_verification","description":"Returns pricing and complete terms for a rate.","href":"/api-reference/endpoint/post-hotel-rate-verification"}]},{"group":"Reservations","expanded":true,"pages":[{"title":"Create Reservation","openapi":"post /rest/v1/reservation","href":"/api-reference/endpoint/post-create-reservation"},{"title":"Get Reservation","openapi":"get /rest/v1/reservation/{reservation_id}","description":"Returns a single reservation.\n","href":"/api-reference/endpoint/get-hotel-reservation"},{"title":"List Reservations","openapi":"get /rest/v1/reservations","href":"/api-reference/endpoint/get-list-reservations"},{"title":"Modify Reservation","openapi":"patch /rest/v1/reservation/{reservation_id}","href":"/api-reference/endpoint/patch-modify-reservation"},{"title":"Cancel Reservation","openapi":"post /rest/v1/reservation/{reservation_id}/cancel","href":"/api-reference/endpoint/post-cancel-reservation"}]}]},{"group":"Postman","icon":"download","pages":[{"title":"Postman Collection","href":"/postman"}]},{"group":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"title":"Create Reservation - Selfbook API","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-rfhihCWU.js","utils-BmH1XFxk.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BcNsxPKB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BAES3tkd.js","snippetPresets-DCMQBKLP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D6l_bzE9.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BOktbnNh.js","shallow-BCs8SgM7.js","getApiPlaygroundDisplay-DEmW5bJB.js","CodeSnippet-CpZOpB9C.js","CodeSnippets-BOBDqibl.js","Page-D5fEM6aW.js","getPastedJson-DH2JBvmr.js","icon-BBJH-kKh.js","MethodPill-D2Sd5NLC.js","DuplicateIcon-CGgfL2qN.js","createIcon-BKudBBzi.js","DynamicMarkdown-85clUA0i.js","SectionHeading-D0JiMgDx.js","axios-vUo_bRtp.js","Markdown-Cfiy0xZO.js","clsx-rL8ZCCw4.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-aeztFa9U.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BywkCr5C.js"]}