Skip to content

save collection of group block masters

POST
/api/public/v1/groups

In success case, Http Code 202 will be returned

Parameters

Header Parameters

ReplyTo
required
string

Request Body required

GroupBlockMasters to save

Array<object>
object
clientCode
required

Client code

string
propertyCode
required

Property code

string
correlationId
required

Unique id associated with this object

string
groupCode
required

Group block code

string
action

Action associated with group block

string
Allowed values: COMMIT MODIFY CANCEL
name
required

Name of group block

string
description

Description of group block

string
masterGroupCode

Master group code

string
groupStatusCode
required

Group status code

string
Allowed values: DEFINITE TENTATIVE CANCELLED PROSPECT LOST/REGRET
marketSegmentCode
required

Market segment code

string
startDate
required

Start date

string format: date
endDate
required

End date

string format: date
groupTypeCode
required

Group type code

string
Allowed values: TRANSIENT GROUP
bookingDate
required

Booking date

string format: date
lastModifiedDateTime
required

Last modified date and time

string format: date-time
pickupTypeCode

Pickup type code

string
Allowed values: INDV RMLIST
cancelDate

Cancel date

string format: date
salesPerson

Sales person

string
cutoffDays

Cutoff days

integer format: int32
cutoffDate

Cutoff date

string format: date
rateCode

Rate code

string
groupBlocks
Array<object>
object
occupancyDate
required

Occupancy date

string format: date
roomTypeCode
required

Room type code

string
blocks
required

Number of blocks

integer format: int32
pickup
required

Rooms picked up from the block

integer format: int32
originalBlocks

Original/initial rooms blocked

integer format: int32
singlePersonRate
required

Single person rate

number
twoPersonRate

Two person rate

number
threePersonRate

Three person rate

number
fourPersonRate

Four person rate

number
singlePersonOccupancy

Single person occupancy

number
twoPersonOccupancy

Two person occupancy

number
threePersonOccupancy

Three person occupancy

number
fourPersonOccupancy

Four person occupancy

number
currencyCode
required

Currency code

string
extraAdultRate

Extra adult rate

number
extraChildRate

Extra child rate

number
singlePersonTotalRate

Single person total rate

number
twoPersonTotalRate

Two person total rate

number
threePersonTotalRate

Three person total rate

number
fourPersonTotalRate

Four person total rate

number
netRoomRevenue

Net room revenue

number
totalRoomRevenue

Total room revenue

number
services
Array<object>
object
serviceName
required

Service name

string
serviceValue
required

Service value

number
inclusive
required

Inclusive

boolean
startDate
required

Start date

string format: date
endDate
required

End date

string format: date
Examples
[
{
"clientCode": "TESTCLIENT",
"propertyCode": "TESTHOTELCODE",
"correlationId": "393265062",
"lastModifiedDateTime": "2024-07-14T12:55:20.311Z",
"groupCode": "TEST2024",
"masterGroupCode": null,
"name": "TEST-19-21.07.2024",
"description": "TEST-19-21.07.2024",
"bookingDate": "2023-12-10",
"groupStatusCode": "DEFINITE",
"startDate": "2024-07-19",
"endDate": "2024-07-21",
"cutoffDays": 0,
"cutoffDate": null,
"groupTypeCode": "GROUP",
"pickupTypeCode": "INDV",
"marketSegmentCode": "CT",
"rateCode": "TEST-19-21",
"salesPerson": "BRJ",
"groupBlocks": [
{
"occupancyDate": "2024-07-19",
"roomTypeCode": "TWC",
"blocks": 15,
"pickup": 0,
"originalBlocks": 20,
"singlePersonRate": 226.47,
"twoPersonRate": 233.81,
"singlePersonTotalRate": 252.47,
"twoPersonTotalRate": 266.81,
"singlePersonOccupancy": 1,
"twoPersonOccupancy": 14,
"currencyCode": "EUR"
},
{
"occupancyDate": "2024-07-20",
"roomTypeCode": "TWC",
"blocks": 15,
"pickup": 0,
"originalBlocks": 20,
"singlePersonRate": 226.47,
"twoPersonRate": 233.81,
"singlePersonTotalRate": 252.47,
"twoPersonTotalRate": 266.81,
"singlePersonOccupancy": 1,
"twoPersonOccupancy": 14,
"currencyCode": "EUR"
}
],
"services": [
{
"serviceName": "LTIN_BRI5",
"startDate": "2024-07-19",
"endDate": "2024-07-21",
"serviceValue": 99,
"inclusive": true
},
{
"serviceName": "BRI5",
"startDate": "2024-07-19",
"endDate": "2024-07-21",
"serviceValue": 26,
"inclusive": false
},
{
"serviceName": "BRICORR5",
"startDate": "2024-07-19",
"endDate": "2024-07-21",
"serviceValue": -26,
"inclusive": false
}
]
}
]

Responses

202

Group Block Masters accepted

UUID of request

string

400

Bad request

object
error
required

HTTP status message

string
exception

Fully qualified exception type

string
message
required

Exception / error message

string
path
string
status
required

HTTP status code for the error

integer format: int32
timestamp
required

Date and time the error occurred

string format: date-time

500

Internal server error

object
error
required

HTTP status message

string
exception

Fully qualified exception type

string
message
required

Exception / error message

string
path
string
status
required

HTTP status code for the error

integer format: int32
timestamp
required

Date and time the error occurred

string format: date-time