Skip to main content
Version: 1.7.3

Get Job Status

Get Job Status

Use this endpoint to retrieve the current status and per-item results of a background job. Asynchronous write operations do not finish inline — they return a job_id that you poll here to check whether an enroll, unenroll, create, or register operation completed successfully.

The job_id is returned by any asynchronous write operation. This endpoint is read-only.

GET jobs/manual/{job_id} 

Header Parameters

FieldTypeDescription
AuthorizationstringRequired. Bearer token obtained from the Auth endpoint. Format: Bearer <access_token>.
X-TaxBandits-VersionstringAPI version string. Use 1.0.0.

Query Parameters

FieldTypeDescription
entity_idsstringThe organization ID. Must be exactly one UUID.

Path Parameters

FieldTypeDescription
job_idstringThe job UUID returned from a write operation (register, create, update, enroll, or unenroll).

Response Body

FieldTypeDescription
statusstringSUCCESS or FAILURE.
status_codenumberHTTP-style status code (e.g. 200, 400).
messagestringHuman-readable status message.
responseobjectThe job result.
   job_idstringThe job UUID being polled.
   statusstringCurrent job status. See Job Status Values below.
   bodyarrayPer-item results — one object per processed individual for enroll/unenroll jobs. Empty array [] for single-record jobs (create, register), which expose progress only through status.
     individual_idstringThe individual UUID (enroll/unenroll jobs).
     codenumberPer-item result code. See Per-item result codes below.
     messagestringHuman-readable per-item result message.

Job Status Values

statusMeaning
pendingJob was created but not yet picked up for processing.
in_progressCurrently being processed.
completeAll items processed successfully.
partialSome items succeeded, some failed — check body[] for details.
errorSystem-level failure.

Keep polling until status is complete, partial, or error. For most operations this resolves within a few seconds.

Per-item result codes

codeMeaning
200Updated successfully.
201Created/enrolled successfully (new record).
404Individual not found.
409Individual is not enrolled in this benefit (unenroll only).
422Business rule violation (e.g. catch-up not eligible, annual limit exceeded).
500Internal DB error during processing.

Request

GET jobs/manual/be1b3351-a88e-46c2-96e4-c2cf38e529a7?entity_ids=519a84f4-5e56-496a-82f3-18f51fdf3d75
Header: X-TaxBandits-Version: 1.0.0

Response Json

SampleDescriptionAction
200
Enroll / Unenroll Job - This is a sample response for an enroll or unenroll job. Each item in body[] is keyed by individual_id.
200
Create / Register Job - This is a sample response for a create or register job. These are single-record jobs, so body is an empty array — track completion through status.
400
Bad Request Response - You'll get the below response when job_id or entity_ids is missing or invalid.
404
Not Found Response - You'll get the below response when no job exists for the given job_id under this employer.
{
"status": "SUCCESS",
"status_code": 200,
"message": "Request processed successfully",
"response": {
"job_id": "be1b3351-a88e-46c2-96e4-c2cf38e529a7",
"status": "complete",
"body": [
{
"individual_id": "7a3f1c2d-11bb-4e6a-9c0d-f83a57e12346",
"code": 201,
"message": "Successfully enrolled individual in benefit"
},
{
"individual_id": "9b2e4d7f-22cc-5f7b-0d1e-994b68f23457",
"code": 404,
"message": "Individual not found"
}
]
}
}