ReservationGroupService Save Service [POST]

Operation

Information of the operation

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


Request

PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter

propertyIdIntegertruepath parameter

reservationGroupIdIntegertruepath parameter

Example request

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


Body

A full element of ReservationGroupService.

Example body

The body that will be sent in the operation

[
   {
      "product":{
         "code":"COT"
      },
	  "costCenter":{
      	 "code":"CC1"
      },            
      "name" : "Aperitivo cocktail",
      "quantity":1,
      "remark":"OBSERVA 1",
      "startDate":"2020-09-04",
      "endDate":"2020-09-06",
      "reservationGroupServiceDaily":[
         {
            "amount":10,
            "date":"2020-09-04",
            "currency":{
               "id":1,
               "code":"EUR"
            }
         },
         {
            "amount":10,
            "date":"2020-09-05",
            "currency":{
               "id":1,
               "code":"EUR"
            }
         }
      ]
   },
   {
      "product":{
         "code":"BAR"
      },
	  "costCenter":{
      	 "code":"CC1"
      },            
      "quantity":1,
      "remark":"OBSEVA 2",
      "startDate":"2020-09-04",
      "endDate":"2020-09-06",
      "reservationGroupServiceDaily":[
         {
            "amount":23,
            "date":"2020-09-04",
            "currency":{
               "id":1,
               "code":"EUR"
            }
         }
      ]
   }
]

Response

PropertyTypeRequiredDescription
ResponseAPIMessageResponseAPIMessagetrueResponse of the success operation

Example response

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