Welcome
The Taxis uploader API provides endpoints for uploading reservations to Government’s Short Term Rental Registry and filing the Climate Crisis Resilience Fee Statement (TAKK).OpenAPI Specification
View the complete OpenAPI specification
Overview
This API allows you to:- Upload short-term rental records
- Query an STR task’s upload status
- Upload Climate Crisis Resilience Fee Statement
- Query a TAKK statement’s upload task status
Authentication
All API endpoints require JWT Bearer token authentication. The applicable roles for this API are:str-uploader, takk-uploader, client-manager.
How to get a JWT token:
- Use your client ID and client secret obtained from your administrator
- Send a POST request to
/auth/tokenwith your credentials - Use the returned
access_tokenin the Authorization header:Bearer <access_token>
Example with curl:
Using the token:
Token refresh:
When your access token expires, use the refresh token:{server} with your actual server URL (e.g., https://api.yourdomain.com or http://localhost:8080 for local development).
Response Formats
All responses are in JSON format. Successful responses use HTTP 2xx status codes:- 200: Successful operation with response body
- 201: Resource created
- 202: Request accepted for processing
- 204: Successful operation with no response body
Error Responses
Unsuccessful requests return a response with an error-indicating status code, and a json object with a ‘errorMessage’ and requestId field:Error Values
When upload tasks fail, the system provides specific error classifications through theerrorValue field. These help identify the cause of the failure:
| Error Value | Description |
|---|---|
duplicate_declaration | The reservation has already been declared in the system |
tax_id_not_found | The provided tax ID could not be found or validated |
timed_out | The upload operation exceeded the allowed time limit |
failed_to_authenticate | Authentication with the government portal failed |
failed_to_navigate | Unable to navigate through the government portal interface |
internal | An internal system error occurred |
unknown | An unclassified error occurred |