Skip to main content
GET
/
str
/
task
/
{taskId}
Get STR task status
curl --request GET \
  --url https://str.keroshospitality.com/api/v1/str/task/{taskId} \
  --header 'Authorization: Bearer <token>'
{
  "requestId": "a1b2c3d4-e5f6-7890-a1b2-c3d4e5f67890",
  "strUploadStatus": {
    "taskId": 123,
    "reservationUploadStatus": [
      {
        "reservationId": "HMXDBC4N22",
        "status": "PENDING",
        "details": "",
        "serialNumberDeclaration": "1234567890",
        "lastUpdated": "2022-01-01T00:00:00Z",
        "isDraft": false,
        "errorValue": "duplicate_declaration"
      }
    ]
  },
  "createdAt": "2022-01-01T00:00:00Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

taskId
string
required

The task ID

Response

Task status retrieved successfully

requestId
string
Example:

"a1b2c3d4-e5f6-7890-a1b2-c3d4e5f67890"

strUploadStatus
object
createdAt
string<date-time>
Example:

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