Skip to main content
POST
/
str
/
submitted-declarations
Search for submitted declarations
curl --request POST \
  --url https://str.keroshospitality.com/api/v1/str/submitted-declarations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "apartmentId": 42,
  "fromDate": "01/01/2023",
  "toDate": "01/01/2024"
}
'
{
  "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
apartmentId
integer
required
Example:

42

fromDate
string
required
Example:

"01/01/2023"

toDate
string
required
Example:

"01/01/2024"

Response

200 - application/json

Search 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"