> For the complete documentation index, see [llms.txt](https://docs.hos.accessacloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hos.accessacloud.com/atreemo-api/api-reference/atreemo-api-reference/reservation.md).

# Reservation

Api Methods for Reservation

## Cancel

> Cancel a Reservation

```json
{"openapi":"3.0.3","info":{"title":"Atreemo API","version":"0.1.0"},"tags":[{"name":"Reservation","description":"Api Methods for Reservation"}],"servers":[{"url":"https://apim-hospitality-dev-uksouth.azure-api.net/atreemo-api","description":"Local DEV APIM import draft only; not a deployed endpoint announcement."}],"security":[{"AtreemoBearer":[]}],"components":{"securitySchemes":{"AtreemoBearer":{"type":"http","scheme":"bearer","description":"Atreemo access token obtained by the caller from the Atreemo instance `POST /token` endpoint (OAuth2 password grant) and sent as `Authorization: Bearer <token>`. See the Authorisation guide."}},"schemas":{"ReservationResult":{"type":"object","properties":{"Error":{"type":"string","description":"Error description"},"Response":{"type":"boolean","description":"The call status (if true so the call was successfully submitted, if false an error was occured and you will find the description in the field \"Error\")"}}}}},"paths":{"/api/Reservation/Cancel":{"post":{"operationId":"ReservationCancel","summary":"Cancel","tags":["Reservation"],"description":"Cancel a Reservation","parameters":[{"name":"ReservationID","in":"query","schema":{"type":"integer","format":"int32"},"description":"Native query parameter. CLR int ReservationID in the pinned controller signature.","required":true}],"responses":{"200":{"description":"OK (sample status in the public collection).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationResult"}}}}}}}}}
```

## Get

> Get a Reservation

```json
{"openapi":"3.0.3","info":{"title":"Atreemo API","version":"0.1.0"},"tags":[{"name":"Reservation","description":"Api Methods for Reservation"}],"servers":[{"url":"https://apim-hospitality-dev-uksouth.azure-api.net/atreemo-api","description":"Local DEV APIM import draft only; not a deployed endpoint announcement."}],"security":[{"AtreemoBearer":[]}],"components":{"securitySchemes":{"AtreemoBearer":{"type":"http","scheme":"bearer","description":"Atreemo access token obtained by the caller from the Atreemo instance `POST /token` endpoint (OAuth2 password grant) and sent as `Authorization: Bearer <token>`. See the Authorisation guide."}},"schemas":{"ReservationExtended":{"type":"object","properties":{"Analytics":{"allOf":[{"$ref":"#/components/schemas/ReservationAnalytics"}],"description":"Analytics Details"},"BookingCalendar_URL":{"type":"string","description":"Calendar URL"},"BookingChannel":{"type":"string","description":"Booking Channel"},"BookingContract_URL":{"type":"string","description":"Contract URL"},"BookingDateTime":{"type":"string","format":"date-time","nullable":true,"description":"Reservation Date"},"BookingManagePreorder_URL":{"type":"string","description":"Manage Pre-Order URL"},"BookingOffer":{"type":"string","description":"Booking Offer"},"BookingPayment_URL":{"type":"string","description":"Payment URL"},"BookingPreorder_URL":{"type":"string","description":"Pre-Order URL"},"BookingSector":{"description":"Restaurant=1, Hotel=2, Other=3 (Documented as type `BookingSectorEnum`. The published description lists the values captured in `x-atreemo-documented-values`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"},"BookingStatusID":{"description":"Booked = 1, Completed = 2, Cancelled = 3, NoShow = 4, Enquiry = 5 (Documented as type `BookingStatus`. The published description lists the values captured in `x-atreemo-documented-values`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"},"BookingType":{"type":"string","description":"Booking Type"},"CancelBookingURL":{"type":"string","description":"Cancellation URL"},"Canceled_By":{"type":"integer","format":"int32","nullable":true,"description":"Canceled By"},"Canceled_On":{"type":"string","format":"date-time","nullable":true,"description":"Canceled On"},"Comment":{"type":"string","description":"Reservation Comment"},"CommsPreference":{"allOf":[{"$ref":"#/components/schemas/CommsPreferenceBasic"}],"description":"Communication Preference Details"},"Customer":{"allOf":[{"$ref":"#/components/schemas/Contact"}],"description":"Customer Details"},"CustomField1":{"type":"string","description":"Customer Field 1"},"CustomField2":{"type":"string","description":"Customer Field 2"},"CustomField3":{"type":"string","description":"Customer Field 3"},"CustomField4":{"type":"string","description":"Customer Field 4"},"CustomField5":{"type":"string","description":"Customer Field 5"},"CustomField6":{"type":"string","description":"Customer Field 6"},"Details":{"allOf":[{"$ref":"#/components/schemas/ReservationDetails"}],"description":"Reservation Details"},"DurationDetails":{"allOf":[{"$ref":"#/components/schemas/Duration"}],"description":"Duration spent details: specify the number of Days, Hours and Minutes"},"EstimatedValue":{"type":"number","format":"double","nullable":true,"description":"Estimated Value Amount"},"EventID":{"type":"integer","format":"int32","nullable":true,"description":"Event ID"},"LeftTime":{"type":"string","format":"date-time","nullable":true,"description":"Specifies the leaving time"},"LocationID":{"type":"string","description":"Reservation Location ID"},"ModifyBookingURL":{"type":"string","description":"Modification URL"},"ReservationDateTime":{"type":"string","format":"date-time","description":"Reservation Date"},"ReservationRef":{"type":"string","description":"Reservation Reference"},"SeatingDateTime":{"type":"string","format":"date-time","nullable":true,"description":"Searting Date"},"SourceID":{"type":"string","description":"Reservation Source ID"},"SupplierCode":{"type":"integer","format":"int32","nullable":true,"description":"Reservation Supplier Code : Call Api/Reservation/GetSuppliers to get full list"},"Updated_At":{"type":"string","format":"date-time","nullable":true,"description":"Update Date"},"UpdateMode":{"description":"Update Mode : PUT (override existing data by the sent one) / PATCH (append sent data to the existing: empty values will be ignored) (Documented as type `UpdateModeEnum`. The published description lists the values captured in `x-atreemo-documented-names`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"}},"required":["Customer","LocationID","ReservationRef","SourceID"]},"ReservationAnalytics":{"type":"object","properties":{"utm_campaign":{"type":"string","description":"UTM Campaign"},"utm_content":{"type":"string","description":"UTM Content"},"utm_medium":{"type":"string","description":"UTM Meduim"},"utm_source":{"type":"string","description":"UTM Source"},"utm_term":{"type":"string","description":"UTM Term"}}},"CommsPreferenceBasic":{"type":"object","properties":{"ChangeDate":{"type":"string","format":"date-time","nullable":true,"description":"Change date (current date if empty)"},"EmailOptin":{"type":"boolean","nullable":true,"description":"True if would receive an email"},"MailOptin":{"type":"boolean","nullable":true,"description":"True if would receive a mail"},"PhoneOptin":{"type":"boolean","nullable":true,"description":"True if would receive a call"},"PushNotificationOptin":{"type":"boolean","nullable":true,"description":"True if would receive a mobile app push notification"},"SmsOptin":{"type":"boolean","nullable":true,"description":"True if would receive an Sms"},"WebPushNotificationOptin":{"type":"boolean","nullable":true,"description":"True if would receive a mobile app push notification"}}},"Contact":{"type":"object","properties":{"_Title":{"type":"string","description":"Person title"},"BirthDate":{"type":"string","format":"date-time","nullable":true,"description":"Date of birth"},"BrandID":{"type":"integer","format":"int32","nullable":true,"description":"The ID of the Brand the customer should belongs to"},"CardTokensList":{"type":"array","items":{"type":"string"},"description":"return the list of card tokens linked to this contact"},"Company":{"allOf":[{"$ref":"#/components/schemas/Company"}],"description":"Collection of company information"},"CpyID":{"type":"integer","format":"int32","description":"Houshold ID in B2C intance Company ID in B2B intance"},"CreateDate":{"type":"string","format":"date-time","nullable":true,"description":"Creation Date (used only in PostContact)"},"CtcID":{"type":"integer","format":"int32","description":"The ID of the customer (CtcID)"},"CtcNotes":{"allOf":[{"$ref":"#/components/schemas/CtcCpyNotes"}],"description":"Collection of complementary notes"},"CurrentMemberNumber":{"type":"string","description":"return the last member number linked to this contact"},"CurrentReferrerCode":{"type":"string","description":"Get the referrer code of the contact"},"DeleteMyData":{"type":"boolean","nullable":true,"description":"Confirmation to delete the personal data of this contact (USED ONLY in PUTCONTACT)"},"DoNotExport":{"type":"boolean","description":"Shows if contact can be exported"},"Email":{"type":"string","description":"Email address"},"FirstName":{"type":"string","description":"First Name"},"HomeSiteID":{"type":"string","description":"The Site ID added will be used to flag the customer against a Selected Site"},"LastName":{"type":"string","description":"Last Name"},"MemberNumbersList":{"type":"array","items":{"type":"string"},"description":"return the list of member numbers linked to this contact"},"MobilPhone":{"type":"string","description":"Mobile number"},"ModifDate":{"type":"string","format":"date-time","nullable":true,"description":"Last modification date (used only in PostContact)"},"ModifiedBy":{"type":"integer","format":"int32","nullable":true,"description":"CtcID of the user who applied the last modification"},"OriginID":{"type":"string","description":"OriginID"},"ParentEmailAddress":{"type":"string","description":"Parent Email Address (To be used when the contact age under 16)"},"Phone":{"type":"string","description":"Landline number"},"Picture":{"type":"string","format":"byte","description":"The Image of the contact"},"PositionFreeText":{"type":"string","description":"Job Free Text"},"PredefinedGender":{"description":"Gender : Unknown, Male, Female, PreferNotToSay, (Documented as type `GenderEnum`. The published description lists the values captured in `x-atreemo-documented-names`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"},"ProcessMydata":{"type":"boolean","nullable":true,"description":"Confirmation to process the data of this contact (USED ONLY in PUTCONTACT)"},"ReferredByCode":{"type":"string","description":"Get or Update the referred by code of the contact"},"ReferrerCode":{"type":"string","description":"Update the referrer code of the contact"},"ReferrerCodeList":{"type":"array","items":{"type":"string"},"description":"return the list of referre codes linked to this contact"},"SourceID":{"type":"string","description":"Source ID"},"SupInfo":{"type":"array","items":{"$ref":"#/components/schemas/SupInfo"},"description":"Collection of contact supplementary information"},"UpdateIfPopulated":{"type":"boolean","description":"Used only in PutContact method (Default = false). This will allow the user to update just a specifc contact field(s) IF false : the request will be considered as PUT HTTP request (updates the entire resource) IF true : the request will be considered as PATCH HTTP request (partial update). Only populated fields will be updated."}}},"Company":{"type":"object","nullable":true,"description":"Source-backed JSON members. IgnoreDataMember members are omitted even when the controller populates them. CpyNotes is a virtual CtcCpyNotes property, not a CLR type named virtual. No required property presence is inferred from CLR types.","properties":{"Building":{"type":"string","nullable":true,"description":"Address 1"},"City":{"type":"string","nullable":true,"description":"City"},"CpyID":{"type":"integer","format":"int32","description":"Houshold ID in B2C intance Company ID in B2B intance"},"Name":{"type":"string","nullable":true,"description":"Houshold name in B2C intance Company name in B2B intance"},"PostCode":{"type":"string","nullable":true,"description":"Postcode"},"StateCode":{"type":"string","nullable":true,"description":"StateCode"},"StateName":{"type":"string","nullable":true,"description":"County"},"Street":{"type":"string","nullable":true,"description":"Address 2"},"Zone":{"type":"string","nullable":true,"description":"Address 3"},"CountryCode":{"type":"string","nullable":true,"description":"Country code; source documentation describes two-character values."},"CountryName":{"type":"string","nullable":true},"Phone":{"type":"string","nullable":true},"Fax":{"type":"string","nullable":true},"Web":{"type":"string","nullable":true},"Email":{"type":"string","nullable":true},"NationalID":{"type":"string","nullable":true},"SourceID":{"type":"string","nullable":true},"OriginID":{"type":"string","nullable":true},"CreateDate":{"type":"string","format":"date-time","nullable":true},"LastModifDate":{"type":"string","format":"date-time","nullable":true},"ModifiedBy":{"type":"integer","format":"int32","nullable":true},"CpyNotes":{"allOf":[{"$ref":"#/components/schemas/CtcCpyNotes"}]},"SupInfo":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/SupInfo"}}}},"CtcCpyNotes":{"type":"object","nullable":true,"properties":{"Comment":{"type":"string","nullable":true,"description":"Comment Text"},"CtcCpyID":{"type":"integer","format":"int32","description":"Contact ID"},"NoteUserID":{"type":"integer","format":"int32"},"SourceNote":{"type":"integer","format":"int32"},"LastModifiedBy":{"type":"string","nullable":true},"LastModifiedOn":{"type":"string","format":"date-time"},"AttachmentFilesList":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/CtcCpyNotesAttachment"}},"AttachmentFilesListString":{"type":"array","nullable":true,"items":{"type":"string","nullable":true}}},"description":"Source-backed note model; individual actions may use only a subset of these members. No property presence is inferred solely from CLR types."},"CtcCpyNotesAttachment":{"type":"object","nullable":true,"properties":{"<AttachmentName>k__BackingField":{"type":"string","nullable":true},"<AttachmentID>k__BackingField":{"type":"string","nullable":true},"<FileName>k__BackingField":{"type":"string","nullable":true},"<FileContent>k__BackingField":{"type":"string","nullable":true},"<ContentType>k__BackingField":{"type":"string","nullable":true},"<FileSize>k__BackingField":{"type":"integer","format":"int32","nullable":true},"<ID>k__BackingField":{"type":"integer","format":"int32","nullable":true},"<HasContent>k__BackingField":{"type":"boolean"}},"description":"The nested Atreemo.Models.CtcCpyNotes.Attachment class is Serializable. The ordinary Web API formatter therefore exposes compiler backing-field names, not the property names used by a default Json.NET resolver. Runtime-unverified."},"SupInfo":{"type":"object","nullable":true,"properties":{"FieldContent":{"type":"string","nullable":true,"description":"Field value"},"FieldName":{"type":"string","nullable":true,"description":"Field name"}}},"ReservationDetails":{"type":"object","properties":{"BookingTags":{"type":"array","items":{"type":"string"},"description":"List of Tags"},"CampaignKey":{"type":"string","description":"Campaign Key"},"GuestTags":{"type":"array","items":{"type":"string"},"description":"List of Tags"},"NoOfAdults":{"type":"integer","format":"int32","description":"Number of Adults"},"NoOfChildren":{"type":"integer","format":"int32","description":"Number of Children"},"NoOfHighChairs":{"type":"integer","format":"int32","description":"Number of High Chairs"},"TableNumbers":{"type":"array","items":{"type":"string"},"description":"List Of Table Numbers"},"TotalCustomerCount":{"type":"integer","format":"int32","nullable":true,"description":"Total Customers Count"},"VoucherCode":{"type":"string","description":"Voucher Code"}}},"Duration":{"type":"object","nullable":true,"properties":{"NumberOfDays":{"type":"integer","format":"int32"},"NumberOfHours":{"type":"integer","format":"int32"},"NumberOfMinutes":{"type":"integer","format":"int32"}},"description":"Source-backed JSON members, including inheritance and JSON naming/ignore attributes. No property is required solely because its CLR value type is non-nullable. Runtime and deployment alignment are unverified."}}},"paths":{"/api/Reservation/Get":{"get":{"operationId":"ReservationGet","summary":"Get","tags":["Reservation"],"description":"Get a Reservation","parameters":[{"name":"ReservationRef","in":"query","schema":{"type":"string","nullable":true},"description":"Native query parameter. CLR string ReservationRef in the pinned controller signature.","required":true},{"name":"SourceID","in":"query","schema":{"type":"string","nullable":true},"description":"Native query parameter. CLR string SourceID in the pinned controller signature.","required":true}],"responses":{"200":{"description":"OK (sample status in the public collection).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationExtended"}}}}}}}}}
```

## GetReservationsByCtcID

> Get Reservations By CtcID

```json
{"openapi":"3.0.3","info":{"title":"Atreemo API","version":"0.1.0"},"tags":[{"name":"Reservation","description":"Api Methods for Reservation"}],"servers":[{"url":"https://apim-hospitality-dev-uksouth.azure-api.net/atreemo-api","description":"Local DEV APIM import draft only; not a deployed endpoint announcement."}],"security":[{"AtreemoBearer":[]}],"components":{"securitySchemes":{"AtreemoBearer":{"type":"http","scheme":"bearer","description":"Atreemo access token obtained by the caller from the Atreemo instance `POST /token` endpoint (OAuth2 password grant) and sent as `Authorization: Bearer <token>`. See the Authorisation guide."}},"schemas":{"ReservationExtended":{"type":"object","properties":{"Analytics":{"allOf":[{"$ref":"#/components/schemas/ReservationAnalytics"}],"description":"Analytics Details"},"BookingCalendar_URL":{"type":"string","description":"Calendar URL"},"BookingChannel":{"type":"string","description":"Booking Channel"},"BookingContract_URL":{"type":"string","description":"Contract URL"},"BookingDateTime":{"type":"string","format":"date-time","nullable":true,"description":"Reservation Date"},"BookingManagePreorder_URL":{"type":"string","description":"Manage Pre-Order URL"},"BookingOffer":{"type":"string","description":"Booking Offer"},"BookingPayment_URL":{"type":"string","description":"Payment URL"},"BookingPreorder_URL":{"type":"string","description":"Pre-Order URL"},"BookingSector":{"description":"Restaurant=1, Hotel=2, Other=3 (Documented as type `BookingSectorEnum`. The published description lists the values captured in `x-atreemo-documented-values`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"},"BookingStatusID":{"description":"Booked = 1, Completed = 2, Cancelled = 3, NoShow = 4, Enquiry = 5 (Documented as type `BookingStatus`. The published description lists the values captured in `x-atreemo-documented-values`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"},"BookingType":{"type":"string","description":"Booking Type"},"CancelBookingURL":{"type":"string","description":"Cancellation URL"},"Canceled_By":{"type":"integer","format":"int32","nullable":true,"description":"Canceled By"},"Canceled_On":{"type":"string","format":"date-time","nullable":true,"description":"Canceled On"},"Comment":{"type":"string","description":"Reservation Comment"},"CommsPreference":{"allOf":[{"$ref":"#/components/schemas/CommsPreferenceBasic"}],"description":"Communication Preference Details"},"Customer":{"allOf":[{"$ref":"#/components/schemas/Contact"}],"description":"Customer Details"},"CustomField1":{"type":"string","description":"Customer Field 1"},"CustomField2":{"type":"string","description":"Customer Field 2"},"CustomField3":{"type":"string","description":"Customer Field 3"},"CustomField4":{"type":"string","description":"Customer Field 4"},"CustomField5":{"type":"string","description":"Customer Field 5"},"CustomField6":{"type":"string","description":"Customer Field 6"},"Details":{"allOf":[{"$ref":"#/components/schemas/ReservationDetails"}],"description":"Reservation Details"},"DurationDetails":{"allOf":[{"$ref":"#/components/schemas/Duration"}],"description":"Duration spent details: specify the number of Days, Hours and Minutes"},"EstimatedValue":{"type":"number","format":"double","nullable":true,"description":"Estimated Value Amount"},"EventID":{"type":"integer","format":"int32","nullable":true,"description":"Event ID"},"LeftTime":{"type":"string","format":"date-time","nullable":true,"description":"Specifies the leaving time"},"LocationID":{"type":"string","description":"Reservation Location ID"},"ModifyBookingURL":{"type":"string","description":"Modification URL"},"ReservationDateTime":{"type":"string","format":"date-time","description":"Reservation Date"},"ReservationRef":{"type":"string","description":"Reservation Reference"},"SeatingDateTime":{"type":"string","format":"date-time","nullable":true,"description":"Searting Date"},"SourceID":{"type":"string","description":"Reservation Source ID"},"SupplierCode":{"type":"integer","format":"int32","nullable":true,"description":"Reservation Supplier Code : Call Api/Reservation/GetSuppliers to get full list"},"Updated_At":{"type":"string","format":"date-time","nullable":true,"description":"Update Date"},"UpdateMode":{"description":"Update Mode : PUT (override existing data by the sent one) / PATCH (append sent data to the existing: empty values will be ignored) (Documented as type `UpdateModeEnum`. The published description lists the values captured in `x-atreemo-documented-names`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"}},"required":["Customer","LocationID","ReservationRef","SourceID"]},"ReservationAnalytics":{"type":"object","properties":{"utm_campaign":{"type":"string","description":"UTM Campaign"},"utm_content":{"type":"string","description":"UTM Content"},"utm_medium":{"type":"string","description":"UTM Meduim"},"utm_source":{"type":"string","description":"UTM Source"},"utm_term":{"type":"string","description":"UTM Term"}}},"CommsPreferenceBasic":{"type":"object","properties":{"ChangeDate":{"type":"string","format":"date-time","nullable":true,"description":"Change date (current date if empty)"},"EmailOptin":{"type":"boolean","nullable":true,"description":"True if would receive an email"},"MailOptin":{"type":"boolean","nullable":true,"description":"True if would receive a mail"},"PhoneOptin":{"type":"boolean","nullable":true,"description":"True if would receive a call"},"PushNotificationOptin":{"type":"boolean","nullable":true,"description":"True if would receive a mobile app push notification"},"SmsOptin":{"type":"boolean","nullable":true,"description":"True if would receive an Sms"},"WebPushNotificationOptin":{"type":"boolean","nullable":true,"description":"True if would receive a mobile app push notification"}}},"Contact":{"type":"object","properties":{"_Title":{"type":"string","description":"Person title"},"BirthDate":{"type":"string","format":"date-time","nullable":true,"description":"Date of birth"},"BrandID":{"type":"integer","format":"int32","nullable":true,"description":"The ID of the Brand the customer should belongs to"},"CardTokensList":{"type":"array","items":{"type":"string"},"description":"return the list of card tokens linked to this contact"},"Company":{"allOf":[{"$ref":"#/components/schemas/Company"}],"description":"Collection of company information"},"CpyID":{"type":"integer","format":"int32","description":"Houshold ID in B2C intance Company ID in B2B intance"},"CreateDate":{"type":"string","format":"date-time","nullable":true,"description":"Creation Date (used only in PostContact)"},"CtcID":{"type":"integer","format":"int32","description":"The ID of the customer (CtcID)"},"CtcNotes":{"allOf":[{"$ref":"#/components/schemas/CtcCpyNotes"}],"description":"Collection of complementary notes"},"CurrentMemberNumber":{"type":"string","description":"return the last member number linked to this contact"},"CurrentReferrerCode":{"type":"string","description":"Get the referrer code of the contact"},"DeleteMyData":{"type":"boolean","nullable":true,"description":"Confirmation to delete the personal data of this contact (USED ONLY in PUTCONTACT)"},"DoNotExport":{"type":"boolean","description":"Shows if contact can be exported"},"Email":{"type":"string","description":"Email address"},"FirstName":{"type":"string","description":"First Name"},"HomeSiteID":{"type":"string","description":"The Site ID added will be used to flag the customer against a Selected Site"},"LastName":{"type":"string","description":"Last Name"},"MemberNumbersList":{"type":"array","items":{"type":"string"},"description":"return the list of member numbers linked to this contact"},"MobilPhone":{"type":"string","description":"Mobile number"},"ModifDate":{"type":"string","format":"date-time","nullable":true,"description":"Last modification date (used only in PostContact)"},"ModifiedBy":{"type":"integer","format":"int32","nullable":true,"description":"CtcID of the user who applied the last modification"},"OriginID":{"type":"string","description":"OriginID"},"ParentEmailAddress":{"type":"string","description":"Parent Email Address (To be used when the contact age under 16)"},"Phone":{"type":"string","description":"Landline number"},"Picture":{"type":"string","format":"byte","description":"The Image of the contact"},"PositionFreeText":{"type":"string","description":"Job Free Text"},"PredefinedGender":{"description":"Gender : Unknown, Male, Female, PreferNotToSay, (Documented as type `GenderEnum`. The published description lists the values captured in `x-atreemo-documented-names`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"},"ProcessMydata":{"type":"boolean","nullable":true,"description":"Confirmation to process the data of this contact (USED ONLY in PUTCONTACT)"},"ReferredByCode":{"type":"string","description":"Get or Update the referred by code of the contact"},"ReferrerCode":{"type":"string","description":"Update the referrer code of the contact"},"ReferrerCodeList":{"type":"array","items":{"type":"string"},"description":"return the list of referre codes linked to this contact"},"SourceID":{"type":"string","description":"Source ID"},"SupInfo":{"type":"array","items":{"$ref":"#/components/schemas/SupInfo"},"description":"Collection of contact supplementary information"},"UpdateIfPopulated":{"type":"boolean","description":"Used only in PutContact method (Default = false). This will allow the user to update just a specifc contact field(s) IF false : the request will be considered as PUT HTTP request (updates the entire resource) IF true : the request will be considered as PATCH HTTP request (partial update). Only populated fields will be updated."}}},"Company":{"type":"object","nullable":true,"description":"Source-backed JSON members. IgnoreDataMember members are omitted even when the controller populates them. CpyNotes is a virtual CtcCpyNotes property, not a CLR type named virtual. No required property presence is inferred from CLR types.","properties":{"Building":{"type":"string","nullable":true,"description":"Address 1"},"City":{"type":"string","nullable":true,"description":"City"},"CpyID":{"type":"integer","format":"int32","description":"Houshold ID in B2C intance Company ID in B2B intance"},"Name":{"type":"string","nullable":true,"description":"Houshold name in B2C intance Company name in B2B intance"},"PostCode":{"type":"string","nullable":true,"description":"Postcode"},"StateCode":{"type":"string","nullable":true,"description":"StateCode"},"StateName":{"type":"string","nullable":true,"description":"County"},"Street":{"type":"string","nullable":true,"description":"Address 2"},"Zone":{"type":"string","nullable":true,"description":"Address 3"},"CountryCode":{"type":"string","nullable":true,"description":"Country code; source documentation describes two-character values."},"CountryName":{"type":"string","nullable":true},"Phone":{"type":"string","nullable":true},"Fax":{"type":"string","nullable":true},"Web":{"type":"string","nullable":true},"Email":{"type":"string","nullable":true},"NationalID":{"type":"string","nullable":true},"SourceID":{"type":"string","nullable":true},"OriginID":{"type":"string","nullable":true},"CreateDate":{"type":"string","format":"date-time","nullable":true},"LastModifDate":{"type":"string","format":"date-time","nullable":true},"ModifiedBy":{"type":"integer","format":"int32","nullable":true},"CpyNotes":{"allOf":[{"$ref":"#/components/schemas/CtcCpyNotes"}]},"SupInfo":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/SupInfo"}}}},"CtcCpyNotes":{"type":"object","nullable":true,"properties":{"Comment":{"type":"string","nullable":true,"description":"Comment Text"},"CtcCpyID":{"type":"integer","format":"int32","description":"Contact ID"},"NoteUserID":{"type":"integer","format":"int32"},"SourceNote":{"type":"integer","format":"int32"},"LastModifiedBy":{"type":"string","nullable":true},"LastModifiedOn":{"type":"string","format":"date-time"},"AttachmentFilesList":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/CtcCpyNotesAttachment"}},"AttachmentFilesListString":{"type":"array","nullable":true,"items":{"type":"string","nullable":true}}},"description":"Source-backed note model; individual actions may use only a subset of these members. No property presence is inferred solely from CLR types."},"CtcCpyNotesAttachment":{"type":"object","nullable":true,"properties":{"<AttachmentName>k__BackingField":{"type":"string","nullable":true},"<AttachmentID>k__BackingField":{"type":"string","nullable":true},"<FileName>k__BackingField":{"type":"string","nullable":true},"<FileContent>k__BackingField":{"type":"string","nullable":true},"<ContentType>k__BackingField":{"type":"string","nullable":true},"<FileSize>k__BackingField":{"type":"integer","format":"int32","nullable":true},"<ID>k__BackingField":{"type":"integer","format":"int32","nullable":true},"<HasContent>k__BackingField":{"type":"boolean"}},"description":"The nested Atreemo.Models.CtcCpyNotes.Attachment class is Serializable. The ordinary Web API formatter therefore exposes compiler backing-field names, not the property names used by a default Json.NET resolver. Runtime-unverified."},"SupInfo":{"type":"object","nullable":true,"properties":{"FieldContent":{"type":"string","nullable":true,"description":"Field value"},"FieldName":{"type":"string","nullable":true,"description":"Field name"}}},"ReservationDetails":{"type":"object","properties":{"BookingTags":{"type":"array","items":{"type":"string"},"description":"List of Tags"},"CampaignKey":{"type":"string","description":"Campaign Key"},"GuestTags":{"type":"array","items":{"type":"string"},"description":"List of Tags"},"NoOfAdults":{"type":"integer","format":"int32","description":"Number of Adults"},"NoOfChildren":{"type":"integer","format":"int32","description":"Number of Children"},"NoOfHighChairs":{"type":"integer","format":"int32","description":"Number of High Chairs"},"TableNumbers":{"type":"array","items":{"type":"string"},"description":"List Of Table Numbers"},"TotalCustomerCount":{"type":"integer","format":"int32","nullable":true,"description":"Total Customers Count"},"VoucherCode":{"type":"string","description":"Voucher Code"}}},"Duration":{"type":"object","nullable":true,"properties":{"NumberOfDays":{"type":"integer","format":"int32"},"NumberOfHours":{"type":"integer","format":"int32"},"NumberOfMinutes":{"type":"integer","format":"int32"}},"description":"Source-backed JSON members, including inheritance and JSON naming/ignore attributes. No property is required solely because its CLR value type is non-nullable. Runtime and deployment alignment are unverified."}}},"paths":{"/api/Reservation/GetReservationsByCtcID":{"get":{"operationId":"ReservationGetReservationsByCtcId","summary":"GetReservationsByCtcID","tags":["Reservation"],"description":"Get Reservations By CtcID","parameters":[{"name":"CtcID","in":"query","schema":{"type":"integer","format":"int32"},"description":"Native query parameter. CLR int CtcID in the pinned controller signature.","required":true}],"responses":{"200":{"description":"OK (sample status in the public collection).","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReservationExtended"}}}}}}}}}}
```

## GetSuppliers

> Get Reservations Suppliers List

```json
{"openapi":"3.0.3","info":{"title":"Atreemo API","version":"0.1.0"},"tags":[{"name":"Reservation","description":"Api Methods for Reservation"}],"servers":[{"url":"https://apim-hospitality-dev-uksouth.azure-api.net/atreemo-api","description":"Local DEV APIM import draft only; not a deployed endpoint announcement."}],"security":[{"AtreemoBearer":[]}],"components":{"securitySchemes":{"AtreemoBearer":{"type":"http","scheme":"bearer","description":"Atreemo access token obtained by the caller from the Atreemo instance `POST /token` endpoint (OAuth2 password grant) and sent as `Authorization: Bearer <token>`. See the Authorisation guide."}},"schemas":{"Supplier":{"type":"object","properties":{"SupplierCode":{"type":"integer","format":"int32","description":"The Supplier Unique ID"},"SupplierName":{"type":"string","description":"The Supplier Name"}}}}},"paths":{"/api/Reservation/GetSuppliers":{"get":{"operationId":"ReservationGetSuppliers","summary":"GetSuppliers","tags":["Reservation"],"description":"Get Reservations Suppliers List","responses":{"200":{"description":"OK (sample status in the public collection).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Supplier"}}}}}}}}}
```

## Post

> Add or Update a Reservation

```json
{"openapi":"3.0.3","info":{"title":"Atreemo API","version":"0.1.0"},"tags":[{"name":"Reservation","description":"Api Methods for Reservation"}],"servers":[{"url":"https://apim-hospitality-dev-uksouth.azure-api.net/atreemo-api","description":"Local DEV APIM import draft only; not a deployed endpoint announcement."}],"security":[{"AtreemoBearer":[]}],"components":{"securitySchemes":{"AtreemoBearer":{"type":"http","scheme":"bearer","description":"Atreemo access token obtained by the caller from the Atreemo instance `POST /token` endpoint (OAuth2 password grant) and sent as `Authorization: Bearer <token>`. See the Authorisation guide."}},"schemas":{"Reservation":{"type":"object","properties":{"Analytics":{"allOf":[{"$ref":"#/components/schemas/ReservationAnalytics"}],"description":"Analytics Details"},"BookingCalendar_URL":{"type":"string","description":"Calendar URL"},"BookingChannel":{"type":"string","description":"Booking Channel"},"BookingContract_URL":{"type":"string","description":"Contract URL"},"BookingDateTime":{"type":"string","format":"date-time","nullable":true,"description":"Reservation Date"},"BookingManagePreorder_URL":{"type":"string","description":"Manage Pre-Order URL"},"BookingOffer":{"type":"string","description":"Booking Offer"},"BookingPayment_URL":{"type":"string","description":"Payment URL"},"BookingPreorder_URL":{"type":"string","description":"Pre-Order URL"},"BookingSector":{"description":"Restaurant=1, Hotel=2, Other=3 (Documented as type `BookingSectorEnum`. The published description lists the values captured in `x-atreemo-documented-values`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"},"BookingStatusID":{"description":"Booked = 1, Completed = 2, Cancelled = 3, NoShow = 4, Enquiry = 5 (Documented as type `BookingStatus`. The published description lists the values captured in `x-atreemo-documented-values`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"},"BookingType":{"type":"string","description":"Booking Type"},"CancelBookingURL":{"type":"string","description":"Cancellation URL"},"Canceled_By":{"type":"integer","format":"int32","nullable":true,"description":"Canceled By"},"Canceled_On":{"type":"string","format":"date-time","nullable":true,"description":"Canceled On"},"Comment":{"type":"string","description":"Reservation Comment"},"CommsPreference":{"allOf":[{"$ref":"#/components/schemas/CommsPreferenceBasic"}],"description":"Communication Preference Details"},"Customer":{"allOf":[{"$ref":"#/components/schemas/Contact"}],"description":"Customer Details"},"CustomField1":{"type":"string","description":"Customer Field 1"},"CustomField2":{"type":"string","description":"Customer Field 2"},"CustomField3":{"type":"string","description":"Customer Field 3"},"CustomField4":{"type":"string","description":"Customer Field 4"},"CustomField5":{"type":"string","description":"Customer Field 5"},"CustomField6":{"type":"string","description":"Customer Field 6"},"Details":{"allOf":[{"$ref":"#/components/schemas/ReservationDetails"}],"description":"Reservation Details"},"DurationDetails":{"allOf":[{"$ref":"#/components/schemas/Duration"}],"description":"Duration spent details: specify the number of Days, Hours and Minutes"},"EstimatedValue":{"type":"number","format":"double","nullable":true,"description":"Estimated Value Amount"},"EventID":{"type":"integer","format":"int32","nullable":true,"description":"Event ID"},"LeftTime":{"type":"string","format":"date-time","nullable":true,"description":"Specifies the leaving time"},"LocationID":{"type":"string","description":"Reservation Location ID"},"ModifyBookingURL":{"type":"string","description":"Modification URL"},"ReservationDateTime":{"type":"string","format":"date-time","description":"Reservation Date"},"ReservationRef":{"type":"string","description":"Reservation Reference"},"SeatingDateTime":{"type":"string","format":"date-time","nullable":true,"description":"Searting Date"},"SourceID":{"type":"string","description":"Reservation Source ID"},"SupplierCode":{"type":"integer","format":"int32","nullable":true,"description":"Reservation Supplier Code : Call Api/Reservation/GetSuppliers to get full list"},"Updated_At":{"type":"string","format":"date-time","nullable":true,"description":"Update Date"},"UpdateMode":{"description":"Update Mode : PUT (override existing data by the sent one) / PATCH (append sent data to the existing: empty values will be ignored) (Documented as type `UpdateModeEnum`. The published description lists the values captured in `x-atreemo-documented-names`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"}},"required":["Customer","LocationID","ReservationRef","SourceID"]},"ReservationAnalytics":{"type":"object","properties":{"utm_campaign":{"type":"string","description":"UTM Campaign"},"utm_content":{"type":"string","description":"UTM Content"},"utm_medium":{"type":"string","description":"UTM Meduim"},"utm_source":{"type":"string","description":"UTM Source"},"utm_term":{"type":"string","description":"UTM Term"}}},"CommsPreferenceBasic":{"type":"object","properties":{"ChangeDate":{"type":"string","format":"date-time","nullable":true,"description":"Change date (current date if empty)"},"EmailOptin":{"type":"boolean","nullable":true,"description":"True if would receive an email"},"MailOptin":{"type":"boolean","nullable":true,"description":"True if would receive a mail"},"PhoneOptin":{"type":"boolean","nullable":true,"description":"True if would receive a call"},"PushNotificationOptin":{"type":"boolean","nullable":true,"description":"True if would receive a mobile app push notification"},"SmsOptin":{"type":"boolean","nullable":true,"description":"True if would receive an Sms"},"WebPushNotificationOptin":{"type":"boolean","nullable":true,"description":"True if would receive a mobile app push notification"}}},"Contact":{"type":"object","properties":{"_Title":{"type":"string","description":"Person title"},"BirthDate":{"type":"string","format":"date-time","nullable":true,"description":"Date of birth"},"BrandID":{"type":"integer","format":"int32","nullable":true,"description":"The ID of the Brand the customer should belongs to"},"CardTokensList":{"type":"array","items":{"type":"string"},"description":"return the list of card tokens linked to this contact"},"Company":{"allOf":[{"$ref":"#/components/schemas/Company"}],"description":"Collection of company information"},"CpyID":{"type":"integer","format":"int32","description":"Houshold ID in B2C intance Company ID in B2B intance"},"CreateDate":{"type":"string","format":"date-time","nullable":true,"description":"Creation Date (used only in PostContact)"},"CtcID":{"type":"integer","format":"int32","description":"The ID of the customer (CtcID)"},"CtcNotes":{"allOf":[{"$ref":"#/components/schemas/CtcCpyNotes"}],"description":"Collection of complementary notes"},"CurrentMemberNumber":{"type":"string","description":"return the last member number linked to this contact"},"CurrentReferrerCode":{"type":"string","description":"Get the referrer code of the contact"},"DeleteMyData":{"type":"boolean","nullable":true,"description":"Confirmation to delete the personal data of this contact (USED ONLY in PUTCONTACT)"},"DoNotExport":{"type":"boolean","description":"Shows if contact can be exported"},"Email":{"type":"string","description":"Email address"},"FirstName":{"type":"string","description":"First Name"},"HomeSiteID":{"type":"string","description":"The Site ID added will be used to flag the customer against a Selected Site"},"LastName":{"type":"string","description":"Last Name"},"MemberNumbersList":{"type":"array","items":{"type":"string"},"description":"return the list of member numbers linked to this contact"},"MobilPhone":{"type":"string","description":"Mobile number"},"ModifDate":{"type":"string","format":"date-time","nullable":true,"description":"Last modification date (used only in PostContact)"},"ModifiedBy":{"type":"integer","format":"int32","nullable":true,"description":"CtcID of the user who applied the last modification"},"OriginID":{"type":"string","description":"OriginID"},"ParentEmailAddress":{"type":"string","description":"Parent Email Address (To be used when the contact age under 16)"},"Phone":{"type":"string","description":"Landline number"},"Picture":{"type":"string","format":"byte","description":"The Image of the contact"},"PositionFreeText":{"type":"string","description":"Job Free Text"},"PredefinedGender":{"description":"Gender : Unknown, Male, Female, PreferNotToSay, (Documented as type `GenderEnum`. The published description lists the values captured in `x-atreemo-documented-names`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"},"ProcessMydata":{"type":"boolean","nullable":true,"description":"Confirmation to process the data of this contact (USED ONLY in PUTCONTACT)"},"ReferredByCode":{"type":"string","description":"Get or Update the referred by code of the contact"},"ReferrerCode":{"type":"string","description":"Update the referrer code of the contact"},"ReferrerCodeList":{"type":"array","items":{"type":"string"},"description":"return the list of referre codes linked to this contact"},"SourceID":{"type":"string","description":"Source ID"},"SupInfo":{"type":"array","items":{"$ref":"#/components/schemas/SupInfo"},"description":"Collection of contact supplementary information"},"UpdateIfPopulated":{"type":"boolean","description":"Used only in PutContact method (Default = false). This will allow the user to update just a specifc contact field(s) IF false : the request will be considered as PUT HTTP request (updates the entire resource) IF true : the request will be considered as PATCH HTTP request (partial update). Only populated fields will be updated."}}},"Company":{"type":"object","nullable":true,"description":"Source-backed JSON members. IgnoreDataMember members are omitted even when the controller populates them. CpyNotes is a virtual CtcCpyNotes property, not a CLR type named virtual. No required property presence is inferred from CLR types.","properties":{"Building":{"type":"string","nullable":true,"description":"Address 1"},"City":{"type":"string","nullable":true,"description":"City"},"CpyID":{"type":"integer","format":"int32","description":"Houshold ID in B2C intance Company ID in B2B intance"},"Name":{"type":"string","nullable":true,"description":"Houshold name in B2C intance Company name in B2B intance"},"PostCode":{"type":"string","nullable":true,"description":"Postcode"},"StateCode":{"type":"string","nullable":true,"description":"StateCode"},"StateName":{"type":"string","nullable":true,"description":"County"},"Street":{"type":"string","nullable":true,"description":"Address 2"},"Zone":{"type":"string","nullable":true,"description":"Address 3"},"CountryCode":{"type":"string","nullable":true,"description":"Country code; source documentation describes two-character values."},"CountryName":{"type":"string","nullable":true},"Phone":{"type":"string","nullable":true},"Fax":{"type":"string","nullable":true},"Web":{"type":"string","nullable":true},"Email":{"type":"string","nullable":true},"NationalID":{"type":"string","nullable":true},"SourceID":{"type":"string","nullable":true},"OriginID":{"type":"string","nullable":true},"CreateDate":{"type":"string","format":"date-time","nullable":true},"LastModifDate":{"type":"string","format":"date-time","nullable":true},"ModifiedBy":{"type":"integer","format":"int32","nullable":true},"CpyNotes":{"allOf":[{"$ref":"#/components/schemas/CtcCpyNotes"}]},"SupInfo":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/SupInfo"}}}},"CtcCpyNotes":{"type":"object","nullable":true,"properties":{"Comment":{"type":"string","nullable":true,"description":"Comment Text"},"CtcCpyID":{"type":"integer","format":"int32","description":"Contact ID"},"NoteUserID":{"type":"integer","format":"int32"},"SourceNote":{"type":"integer","format":"int32"},"LastModifiedBy":{"type":"string","nullable":true},"LastModifiedOn":{"type":"string","format":"date-time"},"AttachmentFilesList":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/CtcCpyNotesAttachment"}},"AttachmentFilesListString":{"type":"array","nullable":true,"items":{"type":"string","nullable":true}}},"description":"Source-backed note model; individual actions may use only a subset of these members. No property presence is inferred solely from CLR types."},"CtcCpyNotesAttachment":{"type":"object","nullable":true,"properties":{"<AttachmentName>k__BackingField":{"type":"string","nullable":true},"<AttachmentID>k__BackingField":{"type":"string","nullable":true},"<FileName>k__BackingField":{"type":"string","nullable":true},"<FileContent>k__BackingField":{"type":"string","nullable":true},"<ContentType>k__BackingField":{"type":"string","nullable":true},"<FileSize>k__BackingField":{"type":"integer","format":"int32","nullable":true},"<ID>k__BackingField":{"type":"integer","format":"int32","nullable":true},"<HasContent>k__BackingField":{"type":"boolean"}},"description":"The nested Atreemo.Models.CtcCpyNotes.Attachment class is Serializable. The ordinary Web API formatter therefore exposes compiler backing-field names, not the property names used by a default Json.NET resolver. Runtime-unverified."},"SupInfo":{"type":"object","nullable":true,"properties":{"FieldContent":{"type":"string","nullable":true,"description":"Field value"},"FieldName":{"type":"string","nullable":true,"description":"Field name"}}},"ReservationDetails":{"type":"object","properties":{"BookingTags":{"type":"array","items":{"type":"string"},"description":"List of Tags"},"CampaignKey":{"type":"string","description":"Campaign Key"},"GuestTags":{"type":"array","items":{"type":"string"},"description":"List of Tags"},"NoOfAdults":{"type":"integer","format":"int32","description":"Number of Adults"},"NoOfChildren":{"type":"integer","format":"int32","description":"Number of Children"},"NoOfHighChairs":{"type":"integer","format":"int32","description":"Number of High Chairs"},"TableNumbers":{"type":"array","items":{"type":"string"},"description":"List Of Table Numbers"},"TotalCustomerCount":{"type":"integer","format":"int32","nullable":true,"description":"Total Customers Count"},"VoucherCode":{"type":"string","description":"Voucher Code"}}},"Duration":{"type":"object","nullable":true,"properties":{"NumberOfDays":{"type":"integer","format":"int32"},"NumberOfHours":{"type":"integer","format":"int32"},"NumberOfMinutes":{"type":"integer","format":"int32"}},"description":"Source-backed JSON members, including inheritance and JSON naming/ignore attributes. No property is required solely because its CLR value type is non-nullable. Runtime and deployment alignment are unverified."},"ReservationOutput":{"type":"object","properties":{"CtcID":{"type":"integer","format":"int32","nullable":true,"description":"the ID of the contacts"},"Error":{"type":"string","description":"Error description"},"ReservationID":{"type":"integer","format":"int32","nullable":true,"description":"this is the Atreemo ID linked to the reservation submitted, this will be used to cancel or update a reservation"},"Response":{"type":"boolean","description":"The call status (if true so the reservation was successfully added to CRM, if false an error was occured and you will find the description in the field \"Error\")"}}}}},"paths":{"/api/Reservation/Post":{"post":{"operationId":"ReservationPost","summary":"Post","tags":["Reservation"],"description":"Add or Update a Reservation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reservation"}}}},"responses":{"200":{"description":"OK (sample status in the public collection).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationOutput"}}}}}}}}}
```

## Put

> Update a Reservation

```json
{"openapi":"3.0.3","info":{"title":"Atreemo API","version":"0.1.0"},"tags":[{"name":"Reservation","description":"Api Methods for Reservation"}],"servers":[{"url":"https://apim-hospitality-dev-uksouth.azure-api.net/atreemo-api","description":"Local DEV APIM import draft only; not a deployed endpoint announcement."}],"security":[{"AtreemoBearer":[]}],"components":{"securitySchemes":{"AtreemoBearer":{"type":"http","scheme":"bearer","description":"Atreemo access token obtained by the caller from the Atreemo instance `POST /token` endpoint (OAuth2 password grant) and sent as `Authorization: Bearer <token>`. See the Authorisation guide."}},"schemas":{"ReservationExtended":{"type":"object","properties":{"Analytics":{"allOf":[{"$ref":"#/components/schemas/ReservationAnalytics"}],"description":"Analytics Details"},"BookingCalendar_URL":{"type":"string","description":"Calendar URL"},"BookingChannel":{"type":"string","description":"Booking Channel"},"BookingContract_URL":{"type":"string","description":"Contract URL"},"BookingDateTime":{"type":"string","format":"date-time","nullable":true,"description":"Reservation Date"},"BookingManagePreorder_URL":{"type":"string","description":"Manage Pre-Order URL"},"BookingOffer":{"type":"string","description":"Booking Offer"},"BookingPayment_URL":{"type":"string","description":"Payment URL"},"BookingPreorder_URL":{"type":"string","description":"Pre-Order URL"},"BookingSector":{"description":"Restaurant=1, Hotel=2, Other=3 (Documented as type `BookingSectorEnum`. The published description lists the values captured in `x-atreemo-documented-values`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"},"BookingStatusID":{"description":"Booked = 1, Completed = 2, Cancelled = 3, NoShow = 4, Enquiry = 5 (Documented as type `BookingStatus`. The published description lists the values captured in `x-atreemo-documented-values`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"},"BookingType":{"type":"string","description":"Booking Type"},"CancelBookingURL":{"type":"string","description":"Cancellation URL"},"Canceled_By":{"type":"integer","format":"int32","nullable":true,"description":"Canceled By"},"Canceled_On":{"type":"string","format":"date-time","nullable":true,"description":"Canceled On"},"Comment":{"type":"string","description":"Reservation Comment"},"CommsPreference":{"allOf":[{"$ref":"#/components/schemas/CommsPreferenceBasic"}],"description":"Communication Preference Details"},"Customer":{"allOf":[{"$ref":"#/components/schemas/Contact"}],"description":"Customer Details"},"CustomField1":{"type":"string","description":"Customer Field 1"},"CustomField2":{"type":"string","description":"Customer Field 2"},"CustomField3":{"type":"string","description":"Customer Field 3"},"CustomField4":{"type":"string","description":"Customer Field 4"},"CustomField5":{"type":"string","description":"Customer Field 5"},"CustomField6":{"type":"string","description":"Customer Field 6"},"Details":{"allOf":[{"$ref":"#/components/schemas/ReservationDetails"}],"description":"Reservation Details"},"DurationDetails":{"allOf":[{"$ref":"#/components/schemas/Duration"}],"description":"Duration spent details: specify the number of Days, Hours and Minutes"},"EstimatedValue":{"type":"number","format":"double","nullable":true,"description":"Estimated Value Amount"},"EventID":{"type":"integer","format":"int32","nullable":true,"description":"Event ID"},"LeftTime":{"type":"string","format":"date-time","nullable":true,"description":"Specifies the leaving time"},"LocationID":{"type":"string","description":"Reservation Location ID"},"ModifyBookingURL":{"type":"string","description":"Modification URL"},"ReservationDateTime":{"type":"string","format":"date-time","description":"Reservation Date"},"ReservationRef":{"type":"string","description":"Reservation Reference"},"SeatingDateTime":{"type":"string","format":"date-time","nullable":true,"description":"Searting Date"},"SourceID":{"type":"string","description":"Reservation Source ID"},"SupplierCode":{"type":"integer","format":"int32","nullable":true,"description":"Reservation Supplier Code : Call Api/Reservation/GetSuppliers to get full list"},"Updated_At":{"type":"string","format":"date-time","nullable":true,"description":"Update Date"},"UpdateMode":{"description":"Update Mode : PUT (override existing data by the sent one) / PATCH (append sent data to the existing: empty values will be ignored) (Documented as type `UpdateModeEnum`. The published description lists the values captured in `x-atreemo-documented-names`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"}},"required":["Customer","LocationID","ReservationRef","SourceID"]},"ReservationAnalytics":{"type":"object","properties":{"utm_campaign":{"type":"string","description":"UTM Campaign"},"utm_content":{"type":"string","description":"UTM Content"},"utm_medium":{"type":"string","description":"UTM Meduim"},"utm_source":{"type":"string","description":"UTM Source"},"utm_term":{"type":"string","description":"UTM Term"}}},"CommsPreferenceBasic":{"type":"object","properties":{"ChangeDate":{"type":"string","format":"date-time","nullable":true,"description":"Change date (current date if empty)"},"EmailOptin":{"type":"boolean","nullable":true,"description":"True if would receive an email"},"MailOptin":{"type":"boolean","nullable":true,"description":"True if would receive a mail"},"PhoneOptin":{"type":"boolean","nullable":true,"description":"True if would receive a call"},"PushNotificationOptin":{"type":"boolean","nullable":true,"description":"True if would receive a mobile app push notification"},"SmsOptin":{"type":"boolean","nullable":true,"description":"True if would receive an Sms"},"WebPushNotificationOptin":{"type":"boolean","nullable":true,"description":"True if would receive a mobile app push notification"}}},"Contact":{"type":"object","properties":{"_Title":{"type":"string","description":"Person title"},"BirthDate":{"type":"string","format":"date-time","nullable":true,"description":"Date of birth"},"BrandID":{"type":"integer","format":"int32","nullable":true,"description":"The ID of the Brand the customer should belongs to"},"CardTokensList":{"type":"array","items":{"type":"string"},"description":"return the list of card tokens linked to this contact"},"Company":{"allOf":[{"$ref":"#/components/schemas/Company"}],"description":"Collection of company information"},"CpyID":{"type":"integer","format":"int32","description":"Houshold ID in B2C intance Company ID in B2B intance"},"CreateDate":{"type":"string","format":"date-time","nullable":true,"description":"Creation Date (used only in PostContact)"},"CtcID":{"type":"integer","format":"int32","description":"The ID of the customer (CtcID)"},"CtcNotes":{"allOf":[{"$ref":"#/components/schemas/CtcCpyNotes"}],"description":"Collection of complementary notes"},"CurrentMemberNumber":{"type":"string","description":"return the last member number linked to this contact"},"CurrentReferrerCode":{"type":"string","description":"Get the referrer code of the contact"},"DeleteMyData":{"type":"boolean","nullable":true,"description":"Confirmation to delete the personal data of this contact (USED ONLY in PUTCONTACT)"},"DoNotExport":{"type":"boolean","description":"Shows if contact can be exported"},"Email":{"type":"string","description":"Email address"},"FirstName":{"type":"string","description":"First Name"},"HomeSiteID":{"type":"string","description":"The Site ID added will be used to flag the customer against a Selected Site"},"LastName":{"type":"string","description":"Last Name"},"MemberNumbersList":{"type":"array","items":{"type":"string"},"description":"return the list of member numbers linked to this contact"},"MobilPhone":{"type":"string","description":"Mobile number"},"ModifDate":{"type":"string","format":"date-time","nullable":true,"description":"Last modification date (used only in PostContact)"},"ModifiedBy":{"type":"integer","format":"int32","nullable":true,"description":"CtcID of the user who applied the last modification"},"OriginID":{"type":"string","description":"OriginID"},"ParentEmailAddress":{"type":"string","description":"Parent Email Address (To be used when the contact age under 16)"},"Phone":{"type":"string","description":"Landline number"},"Picture":{"type":"string","format":"byte","description":"The Image of the contact"},"PositionFreeText":{"type":"string","description":"Job Free Text"},"PredefinedGender":{"description":"Gender : Unknown, Male, Female, PreferNotToSay, (Documented as type `GenderEnum`. The published description lists the values captured in `x-atreemo-documented-names`; their wire representation (number or name) and whether the list is exhaustive are not documented.)","type":"integer","format":"int32"},"ProcessMydata":{"type":"boolean","nullable":true,"description":"Confirmation to process the data of this contact (USED ONLY in PUTCONTACT)"},"ReferredByCode":{"type":"string","description":"Get or Update the referred by code of the contact"},"ReferrerCode":{"type":"string","description":"Update the referrer code of the contact"},"ReferrerCodeList":{"type":"array","items":{"type":"string"},"description":"return the list of referre codes linked to this contact"},"SourceID":{"type":"string","description":"Source ID"},"SupInfo":{"type":"array","items":{"$ref":"#/components/schemas/SupInfo"},"description":"Collection of contact supplementary information"},"UpdateIfPopulated":{"type":"boolean","description":"Used only in PutContact method (Default = false). This will allow the user to update just a specifc contact field(s) IF false : the request will be considered as PUT HTTP request (updates the entire resource) IF true : the request will be considered as PATCH HTTP request (partial update). Only populated fields will be updated."}}},"Company":{"type":"object","nullable":true,"description":"Source-backed JSON members. IgnoreDataMember members are omitted even when the controller populates them. CpyNotes is a virtual CtcCpyNotes property, not a CLR type named virtual. No required property presence is inferred from CLR types.","properties":{"Building":{"type":"string","nullable":true,"description":"Address 1"},"City":{"type":"string","nullable":true,"description":"City"},"CpyID":{"type":"integer","format":"int32","description":"Houshold ID in B2C intance Company ID in B2B intance"},"Name":{"type":"string","nullable":true,"description":"Houshold name in B2C intance Company name in B2B intance"},"PostCode":{"type":"string","nullable":true,"description":"Postcode"},"StateCode":{"type":"string","nullable":true,"description":"StateCode"},"StateName":{"type":"string","nullable":true,"description":"County"},"Street":{"type":"string","nullable":true,"description":"Address 2"},"Zone":{"type":"string","nullable":true,"description":"Address 3"},"CountryCode":{"type":"string","nullable":true,"description":"Country code; source documentation describes two-character values."},"CountryName":{"type":"string","nullable":true},"Phone":{"type":"string","nullable":true},"Fax":{"type":"string","nullable":true},"Web":{"type":"string","nullable":true},"Email":{"type":"string","nullable":true},"NationalID":{"type":"string","nullable":true},"SourceID":{"type":"string","nullable":true},"OriginID":{"type":"string","nullable":true},"CreateDate":{"type":"string","format":"date-time","nullable":true},"LastModifDate":{"type":"string","format":"date-time","nullable":true},"ModifiedBy":{"type":"integer","format":"int32","nullable":true},"CpyNotes":{"allOf":[{"$ref":"#/components/schemas/CtcCpyNotes"}]},"SupInfo":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/SupInfo"}}}},"CtcCpyNotes":{"type":"object","nullable":true,"properties":{"Comment":{"type":"string","nullable":true,"description":"Comment Text"},"CtcCpyID":{"type":"integer","format":"int32","description":"Contact ID"},"NoteUserID":{"type":"integer","format":"int32"},"SourceNote":{"type":"integer","format":"int32"},"LastModifiedBy":{"type":"string","nullable":true},"LastModifiedOn":{"type":"string","format":"date-time"},"AttachmentFilesList":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/CtcCpyNotesAttachment"}},"AttachmentFilesListString":{"type":"array","nullable":true,"items":{"type":"string","nullable":true}}},"description":"Source-backed note model; individual actions may use only a subset of these members. No property presence is inferred solely from CLR types."},"CtcCpyNotesAttachment":{"type":"object","nullable":true,"properties":{"<AttachmentName>k__BackingField":{"type":"string","nullable":true},"<AttachmentID>k__BackingField":{"type":"string","nullable":true},"<FileName>k__BackingField":{"type":"string","nullable":true},"<FileContent>k__BackingField":{"type":"string","nullable":true},"<ContentType>k__BackingField":{"type":"string","nullable":true},"<FileSize>k__BackingField":{"type":"integer","format":"int32","nullable":true},"<ID>k__BackingField":{"type":"integer","format":"int32","nullable":true},"<HasContent>k__BackingField":{"type":"boolean"}},"description":"The nested Atreemo.Models.CtcCpyNotes.Attachment class is Serializable. The ordinary Web API formatter therefore exposes compiler backing-field names, not the property names used by a default Json.NET resolver. Runtime-unverified."},"SupInfo":{"type":"object","nullable":true,"properties":{"FieldContent":{"type":"string","nullable":true,"description":"Field value"},"FieldName":{"type":"string","nullable":true,"description":"Field name"}}},"ReservationDetails":{"type":"object","properties":{"BookingTags":{"type":"array","items":{"type":"string"},"description":"List of Tags"},"CampaignKey":{"type":"string","description":"Campaign Key"},"GuestTags":{"type":"array","items":{"type":"string"},"description":"List of Tags"},"NoOfAdults":{"type":"integer","format":"int32","description":"Number of Adults"},"NoOfChildren":{"type":"integer","format":"int32","description":"Number of Children"},"NoOfHighChairs":{"type":"integer","format":"int32","description":"Number of High Chairs"},"TableNumbers":{"type":"array","items":{"type":"string"},"description":"List Of Table Numbers"},"TotalCustomerCount":{"type":"integer","format":"int32","nullable":true,"description":"Total Customers Count"},"VoucherCode":{"type":"string","description":"Voucher Code"}}},"Duration":{"type":"object","nullable":true,"properties":{"NumberOfDays":{"type":"integer","format":"int32"},"NumberOfHours":{"type":"integer","format":"int32"},"NumberOfMinutes":{"type":"integer","format":"int32"}},"description":"Source-backed JSON members, including inheritance and JSON naming/ignore attributes. No property is required solely because its CLR value type is non-nullable. Runtime and deployment alignment are unverified."},"ReservationResult":{"type":"object","properties":{"Error":{"type":"string","description":"Error description"},"Response":{"type":"boolean","description":"The call status (if true so the call was successfully submitted, if false an error was occured and you will find the description in the field \"Error\")"}}}}},"paths":{"/api/Reservation/Put":{"put":{"operationId":"ReservationPut","summary":"Put","tags":["Reservation"],"description":"Update a Reservation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationExtended"}}}},"responses":{"200":{"description":"OK (sample status in the public collection).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationResult"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hos.accessacloud.com/atreemo-api/api-reference/atreemo-api-reference/reservation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
