NTAK Room change event
On this page, we will explore the process of programmatically constructing the NTAK room change report. We will delve into the steps and techniques required to build the report dynamically through code.
Request
POST/v1/accommodations/{accommodation}/reports/ntak/room_change
curl -X POST https://api.ntak.guru/v1/accommodations/99845d23-7ffb-4267-85ef-c8d4ac70e46a/reports/ntak/room_change \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"guests":[{"gender":"male","guestNumber":"00000000-0000-0000-0000-000000000000","touristTaxStatus":"obliged","yearOfBirth":1957,"residenceCountryCode":"HU","residencePostCode":"04070","nationalityCountryCode":"HU"}],"abandonedResidentialUnit":{"type":"standard","building":"a","number":"402","trundleBedCount":0,"singleBedCount":0,"doubleBedCount":1},"occupiedResidentialUnit":{"type":"standard","building":"a","number":"403","trundleBedCount":1,"singleBedCount":0,"doubleBedCount":0},"occurredAt":"2022-06-12 17:35:27","reservationNumber":10000}'URL Parameters
| Name | Description |
|---|---|
accommodation | The accommodation id |
Request body
guests
| Type | Description | Required |
|---|---|---|
| Guest[] | Array of guests. Minimum 1 guest is required. | Yes |
abandonedResidentialUnit
| Type | Description | Required |
|---|---|---|
| Residential unit | The abandoned residential unit by the guests. | Yes |
occupiedResidentialUnit
| Type | Description | Required |
|---|---|---|
| Residential unit | The occupied residential unit by the guests. | Yes |
occurredAt
| Type | Format | Description | Required |
|---|---|---|---|
string | Y-m-d H:i:s | Date of the event. | Yes |
reservationNumber
| Type | Description | Required |
|---|---|---|
string | number | The unique identifier of the reservation. | Yes |
{
"guests": [
{
"gender": "male",
"guestNumber": "00000000-0000-0000-0000-000000000000",
"touristTaxStatus": "obliged",
"yearOfBirth": 1957,
"residenceCountryCode": "HU",
"residencePostCode": "04070",
"nationalityCountryCode": "HU"
}
],
"abandonedResidentialUnit": {
"type": "standard",
"building": "a",
"number": "402",
"trundleBedCount": 0,
"singleBedCount": 0,
"doubleBedCount": 1
},
"occupiedResidentialUnit": {
"type": "standard",
"building": "a",
"number": "403",
"trundleBedCount": 1,
"singleBedCount": 0,
"doubleBedCount": 0
},
"occurredAt": "2022-06-12 17:35:27",
"reservationNumber": 10000
}Response
{
"id": "00000000-0000-0000-0000-000000000000",
"messageId": "00000000-0000-0000-0000-000000000000",
"service": "ntak",
"status": "peding",
"reason": "Report arrived from PMS",
"type": "room_change",
"context": {
"guests": [
{
"gender": "male",
"guestNumber": "00000000-0000-0000-0000-000000000000",
"touristTaxStatus": "obliged",
"yearOfBirth": 1957,
"residenceCountryCode": "HU",
"residencePostCode": "04070",
"nationalityCountryCode": "HU"
}
],
"abandonedResidentialUnit": {
"type": "standard",
"building": "a",
"number": "402",
"trundleBedCount": 0,
"singleBedCount": 0,
"doubleBedCount": 1
},
"occupiedResidentialUnit": {
"type": "standard",
"building": "a",
"number": "403",
"trundleBedCount": 1,
"singleBedCount": 0,
"doubleBedCount": 0
},
"occurredAt": "2022-06-12 17:35:27",
"reservationNumber": 10000
},
"response": {
"foglalasEsemenyResponse": []
},
"createdAt": "2024-03-26T12:53:12+00:00",
"updatedAt": "2024-03-26T12:53:20+00:00"
}