Activate Reporting
This endpoint allows you to activate reporting on an accommodation by providing the accommodation id
.
Requirements
- The accommodation must have a valid (live) certificate.
- The accommodation must have
reportingId
set.
Both of these above will be set, when you upload your .CER
file, which is generated by the government's NTAK system, also expireAt
property will be set automatically.
Request
POST/v1/accommodations/{accommodation}/activate
curl -X POST https://api.ntak.guru/v1/accommodations/99845d23-7ffb-4267-85ef-c8d4ac70e46a/activate \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"
URL Parameters
Name | Description |
---|---|
accommodation | The accommodation id |
Response
ℹ️
Read more about the accommodation object on this page.
{
"payload": {
"id": "99845d23-7ffb-4267-85ef-c8d4ac70e46a",
"slug": "rqdsw",
"name": "Senger-Cummerata",
"providerName": "New Provider Ltd.",
"providerTaxNumber": "12345678-1-12",
"postalCode": "08099-0380",
"locality": "East Cassidyshire",
"reportingId": "OAMP7C0P",
"active": true,
"hasLiveCertificate": true,
"hasPendingCertificate": false,
"callbackUrl": "https://example.com/callback",
"dailyCloseUrl": "https://example.com/daily-close",
"expireAt": "2023-06-28T07:36:13+00:00",
"roles": [
"Owner",
],
"createdAt": "2023-06-28T07:36:13+00:00",
"updatedAt": "2023-06-28T07:36:13+00:00",
},
"message": null
}