Add new ReservationGroup [POST]

Operation

Information of the operation

POST
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/reservationGroup


Request

PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter

propertyIdIntegertruepath parameter

Example request

POST https://publicapi-providers.ulysescloud.com:9797/public/api/con/v1/chain/1/property/1/reservationGroup


Body

A full element of ReservationGroup.

Example body

The body that will be sent in the operation

{
  "reservationSituationType": null,
  "name": "test",
  "expiredDate": null,
  "arrival": "2020-05-30",
  "departure": "2020-06-01",
  "arrivalTime": null,
  "departureTime": null,
  "pmsLocator": null,
  "crsLocator": null,
  "otaLocator": null,
  "cmLocator": null,
  "remark": "this is a reservation remark",
  "privateRemark": null,
  "reservationGroupRoomBlockList": [
    {
        "id": 1,
        "productAccommodation": {
            "id": 722,
            "chainProductId": 49,
            "code": "DBL",
            "name": "Double",
            "nameI18n": "Double",
            "productType": {
                "id": 1,
                "code": "ACC",
                "name": "Accommodation",
                "nameI18n": "Accommodation"
            }
        },
        "propertyRoomSubType": null,
        "adult": 2,
        "junior": 0,
        "child": 0,
        "infant": 0,
        "reservationGroupRoomBlockDailyList": [
            {
                "id": 1,
                "date": "2024-01-02",
                "quantity": 1,
                "price": 800.000000,
                "quantityConsumed": 1,
                "quantityAvailable": 0
            },
            {
                "id": 3,
                "date": "2024-01-03",
                "quantity": 0,
                "price": 0.000000,
                "quantityConsumed": 0,
                "quantityAvailable": 0
            },
            {
                "id": 4,
                "date": "2024-01-04",
                "quantity": 0,
                "price": 0.000000,
                "quantityConsumed": 0,
                "quantityAvailable": 0
            },
            {
                "id": 5,
                "date": "2024-01-05",
                "quantity": 0,
                "price": 0.000000,
                "quantityConsumed": 0,
                "quantityAvailable": 0
            }
        ]
    }
  ],
  "allotment": null,
  "rate": {
    "id": 2,
    "code": "BAR",
    "name": "Best Available Rate"
  },
  "currency": {
    "id": 1,
    "code": "EUR",
    "name": "Euro",
    "nameI18n": "Euro"
  },
  "offer": {
    "id": 17,
    "code": "MIN3N",
    "name": "Minimum 3 nights"
  },
  "offerAmountDiscount": 0.000000,
  "offerPercentDiscount": 15.000000,
  "promotion": null,
  "promotionAmountDiscount": null,
  "promotionPercentDiscount": null,
  "board": {
    "id": 6,
    "code": "BB",
    "name": "Bed And Breakfast",
    "serviceList": [
      {
        "id": 63,
        "code": "BRK",
        "name": "Breakfast"
      }
    ]
  },
  "boardPriceAdult": 11.000000,
  "boardPriceJunior": 37.000000,
  "boardPriceChild": 0.000000,
  "boardPriceInfant": 0.000000,
  "booker": {
    "id": 27,
    "name": "Abata",
    "code": "ABATA",
    "taxId": "2322814",
    "companyEmailList": [
      {
        "id": 27,
        "primary": true,
        "emailAddressType": {
          "id": 1,
          "code": "1",
          "name": "Personal",
          "nameI18n": "Personal"
        },
        "email": "eburnsd@wikia.com",
        "remark": null
      }
    ],
    "companyAddressList": [
      {
        "id": 27,
        "primary": true,
        "communicationLocationType": {
          "id": 1,
          "code": "1",
          "name": "Home"
        },
        "street": "4 Independence Lane",
        "city": "Richmond",
        "stateProvName": "Virginia",
        "stateProvCode": null,
        "postalCode": "23228",
        "countryCode": "IN",
        "remark": "Address Remark"
      }
    ],
    "companyPhoneList": [
      {
        "id": 27,
        "primary": true,
        "phoneLocationType": {
          "id": 6,
          "code": "6",
          "name": "Home",
          "nameI18n": "Home"
        },
        "phoneTechType": {
          "id": 1,
          "code": "1",
          "name": "Voice",
          "nameI18n": "Voice"
        },
        "countryAccessCode": "+34",
        "areaCityCode": "B",
        "phoneNumber": "1-(804)542-5801",
        "extension": "1",
        "remark": "Phone Remark"
      }
    ],
    "companyTaxAddress": {
      "id": 17,
      "communicationLocationType": null,
      "street": "4 Independence Lane",
      "city": "Richmond",
      "stateProvName": "Virginia",
      "stateProvCode": null,
      "postalCode": "23228",
      "countryCode": "IR",
      "remark": "Address Remark"
    },
    "remark": "Company Remarks"
  },
  "bookerAccommodationPercentageCommission": null,
  "bookerAccommodationAmountCommission": null,
  "bookerBoardPercentageCommission": null,
  "bookerBoardAmountCommission": null,
  "billTo": {
    "id": 11,
    "name": "Tesipro",
    "code": "TESIP",
    "taxId": "1234",
    "companyEmailList": [
      {
        "id": 11,
        "primary": true,
        "emailAddressType": {
          "id": 1,
          "code": "1",
          "name": "Personal",
          "nameI18n": "Personal"
        },
        "email": "creynolds21@g.co",
        "remark": null
      }
    ],
    "companyAddressList": [
      {
        "id": 11,
        "primary": true,
        "communicationLocationType": {
          "id": 1,
          "code": "1",
          "name": "Home"
        },
        "street": "199 Hermina Place",
        "city": "Mobile",
        "stateProvName": "Gerona",
        "stateProvCode": "ES-GI",
        "postalCode": "36610",
        "countryCode": "ES",
        "remark": "Address Remark"
      }
    ],
    "companyPhoneList": [
      {
        "id": 11,
        "primary": true,
        "phoneLocationType": {
          "id": 6,
          "code": "6",
          "name": "Home",
          "nameI18n": "Home"
        },
        "phoneTechType": {
          "id": 1,
          "code": "1",
          "name": "Voice",
          "nameI18n": "Voice"
        },
        "countryAccessCode": "+34",
        "areaCityCode": "B",
        "phoneNumber": "1-(251)190-6133",
        "extension": "1",
        "remark": "Phone Remark"
      }
    ],
    "companyTaxAddress": {
      "id": 1,
      "communicationLocationType": null,
      "street": "199 Hermina Place",
      "city": "Mobile",
      "stateProvName": "Orense",
      "stateProvCode": "ES-OR",
      "postalCode": "36610",
      "countryCode": "ES",
      "remark": "Address Remark"
    },
    "remark": "Company Remarks"
  },
  "billToAccommodationPercentageCommission": null,
  "billToAccommodationAmountCommission": null,
  "billToBoardPercentageCommission": null,
  "billToBoardAmountCommission": null,
  "billToAccommodationPercentageDiscount": null,
  "billToAccommodationAmountDiscount": null,
  "billToBoardPercentageDiscount": null,
  "billToBoardAmountDiscount": null,
  "central": null,
  "centralAccommodationPercentageCommission": null,
  "centralAccommodationAmountCommission": null,
  "centralBoardPercentageCommission": null,
  "centralBoardAmountCommission": null,
  "company": null,
  "companyAccommodationPercentageCommission": null,
  "companyAccommodationAmountCommission": null,
  "companyBoardPercentageCommission": null,
  "companyBoardAmountCommission": null,
  "paymentType": {
    "id": 6,
    "code": "AC",
    "name": "Pay Agency Company",
    "nameI18n": "Pay Agency Company"
  },
  "policy": {
    "id": 12,
    "code": "24H",
    "name": "24 Hours 1 Night"
  },
  "source": {
    "id": 9,
    "code": "COM",
    "name": "Company"
  },
  "segment": {
    "id": 18,
    "code": "WEDD",
    "name": "Wedding"
  },
  "channel": {
    "id": 9,
    "code": "IDS",
    "name": "Internet Distribution System"
  },
  "groupInvoice": false,
  "reservationPriceModelType": {
    "id": 1,
    "code": "AAT",
    "name": "Amount After Tax"
  },
  "totalQuantity": 4,
  "totalQuantityConsumed": 0,
  "totalQuantityAvailable": 4,
  "totalPrice": 200.000000,
  "reservationGroupHolder": {
    "documentNumber": null,
    "givenName": "tesipro",
    "surName": null,
    "secondSurName": null,
    "street": null,
    "city": null,
    "stateProvName": null,
    "stateProvCode": null,
    "postalCode": null,
    "countryCode": null,
    "email": null,
    "phoneNumber": null,
    "language": null,
    "documentType": null
  }
}

Response

PropertyTypeRequiredDescription
ResponseAPIMessageResponseAPIMessagetrueResponse of the success operation

Example response

{
	"httpStatus": "201",
	"userMessage": "Success",
	"technicalMessage": "Success reservationGroup created",
	"errorCode": "0",
	"moreInfo": "0",
	"id": 25,
	"entity": null
}