NTAK
List

List NTAK reports

This endpoint allows you to list all NTAK reports by providing the accommodation id.

Request

GET/v1/accommodations/{accommodation}/reports/ntak
curl -G https://api.ntak.guru/v1/accommodations/99845d23-7ffb-4267-85ef-c8d4ac70e46a/reports/ntak \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {token}"

URL Parameters

NameDescription
accommodationThe accommodation id

URL Search Parameters

ParameterDescription
pageThe page number to retrieve.
perPageThe number of items per page. Default 25
statusComma separated filter. E.g.: ?status=success%2Cerror (Values)
typeComma separated filter. E.g.: ?type=reservation%2Ccheck_in (Values)

Response

ℹ️

Read more about the report object on this page.

{
  "payload": [
    {
      "id": "9bec5992-f822-4a7a-8536-1be67555e626",
      "messageId": null,
      "service": "ntak",
      "status": "success",
      "reason": "Successful report",
      "type": "check_in",
      "context": null,
      "response": null,
      "createdAt": "2024-04-29T12:36:13+00:00",
      "updatedAt": "2024-04-29T12:36:15+00:00"
    },
  ],
  "links": {
    "first": "https:\/\/api.ntak.guru\/v1\/accommodations\/99845d23-7ffb-4267-85ef-c8d4ac70e46a\/reports\/ntak?page=1",
    "last": "https:\/\/api.ntak.guru\/v1\/accommodations\/99845d23-7ffb-4267-85ef-c8d4ac70e46a\/reports\/ntak?page=45",
    "prev": null,
    "next": "https:\/\/api.ntak.guru\/v1\/accommodations\/99845d23-7ffb-4267-85ef-c8d4ac70e46a\/reports\/ntak?page=2"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 45,
    "links": [],
    "path": "https:\/\/api.ntak.guru\/v1\/accommodations\/99845d23-7ffb-4267-85ef-c8d4ac70e46a\/reports\/ntak",
    "per_page": 25,
    "to": 25,
    "total": 1125
  },
  "message": null
}