NTAK
Check Out

NTAK Check-out event

On this page, we will explore the process of programmatically constructing the NTAK check-out report. We will delve into the steps and techniques required to build the report dynamically through code.

Request

POST/v1/accommodations/{accommodation}/reports/ntak/check_out
curl -X POST https://api.ntak.guru/v1/accommodations/99845d23-7ffb-4267-85ef-c8d4ac70e46a/reports/ntak/check_out \
  -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},"occurredAt":"2022-06-12 17:35:27","reservationNumber":10000}'

URL Parameters

NameDescription
accommodationThe accommodation id

Request body

guests

TypeDescriptionRequired
Guest[]Array of guests. Minimum 1 guest is required.Yes

abandonedResidentialUnit

TypeDescriptionRequired
Residential unitThe abandoned residential unit by the guests.Yes

occurredAt

TypeFormatDescriptionRequired
stringY-m-d H:i:sDate of the event.Yes

reservationNumber

TypeDescriptionRequired
string | numberThe 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
  },
  "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": "check_out",
  "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
    },
    "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"
}