Skip to main content
POST
/
takk
/
task
Upload a TAKK task
curl --request POST \
  --url https://str.keroshospitality.com/api/v1/takk/task \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "draftUpload": true,
  "month": 1,
  "taxisUsername": "keros",
  "taxisPassword": "password",
  "takkRecords": [
    {
      "daysUsed": 10,
      "freeDays": 2,
      "numberOfBeds": 2,
      "numberOfCompanies": 1,
      "numberOfRooms": 4,
      "numberOfTaxedRooms": 3,
      "propertyType": "A12:Hotel"
    }
  ]
}
'
{
  "taskId": 123,
  "requestId": "a1b2c3d4-e5f6-7890-a1b2-c3d4e5f67890",
  "createdAt": "2022-01-01T00:00:00Z"
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Body

application/json
draftUpload
boolean
required
Example:

true

month
integer
required
Required range: 1 <= x <= 12
Example:

1

taxisUsername
string
required
Example:

"keros"

taxisPassword
string
required
Example:

"password"

takkRecords
object[]

Response

TAKK task created successfully

taskId
integer
Example:

123

requestId
string
Example:

"a1b2c3d4-e5f6-7890-a1b2-c3d4e5f67890"

createdAt
string<date-time>
Example:

"2022-01-01T00:00:00Z"