List NTAK reports
This endpoint allows you to list all VIZA reports by providing the accommodation id
.
Request
GET/v1/accommodations/{accommodation}/reports/viza
curl -G https://api.ntak.guru/v1/accommodations/99845d23-7ffb-4267-85ef-c8d4ac70e46a/reports/viza \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"
URL Parameters
Name | Description |
---|---|
accommodation | The accommodation id |
URL Search Parameters
Parameter | Description |
---|---|
page | The page number to retrieve. |
perPage | The number of items per page. Default 25 |
status | Comma separated filter. E.g.: ?status=success%2Cerror (Values) |
type | Comma separated filter. E.g.: ?type=check_in%2Ccheck_in (Values) |
Response
ℹ️
Read more about the report object on this page.
{
"payload": [
{
"id": "9bec5992-f822-4a7a-8536-1be67555e626",
"messageId": null,
"service": "viza",
"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\/viza?page=1",
"last": "https:\/\/api.ntak.guru\/v1\/accommodations\/99845d23-7ffb-4267-85ef-c8d4ac70e46a\/reports\/viza?page=45",
"prev": null,
"next": "https:\/\/api.ntak.guru\/v1\/accommodations\/99845d23-7ffb-4267-85ef-c8d4ac70e46a\/reports\/viza?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\/viza",
"per_page": 25,
"to": 25,
"total": 1125
},
"message": null
}