Docs API Reference Batch Results

Batch Results

Check the status of a batch compliance review job and retrieve per-row results.

Get batch status

GET /api/v1/batches/{batch_id}

Response

FieldTypeDescription
batch_idstringBatch job ID
statusstringqueued, processing, complete, failed, or cancelled
total_rowsintegerTotal rows in the uploaded file
processed_rowsintegerRows processed so far
error_rowsintegerRows with processing errors
created_atstring (datetime)When the batch was uploaded
completed_atstring (datetime)When processing finished (null if still running)

Get batch results

GET /api/v1/batches/{batch_id}/results

Query parameters

ParameterTypeDefaultDescription
limitinteger50Rows per page (max 200)
offsetinteger0Pagination offset
statusstringFilter by row status: ok, warning, violation, error

Response

Returns a summary object and paginated rows array.

Summary

FieldTypeDescription
total_rowsintegerTotal rows
status_countsobjectCount by status: {"ok": 45, "warning": 3, "violation": 2, "error": 0}
severity_countsobjectCount by risk severity

Row items

FieldTypeDescription
row_indexintegerRow number in original file
employee_refstringEmployee reference from input
award_codestringAward code
classification_codestringResolved classification
row_statusstringok, warning, violation, or error
risk_countintegerNumber of compliance risks detected
max_severitystringHighest risk severity for this row
pay_outputobjectCalculated minimum pay (same format as Calculate Pay response)
risksarrayCompliance risk items
pay_comparisonobjectActual vs. minimum pay comparison (if actual_pay was provided)

List all batches

GET /api/v1/batches

Returns paginated list of all batch jobs for your organisation.

Query parameters

ParameterTypeDefaultDescription
limitinteger20Jobs per page
offsetinteger0Pagination offset

Export results as CSV

POST /api/v1/batches/{batch_id}/export

Returns the compliance results as a downloadable CSV file.

Cancel a batch

POST /api/v1/batches/{batch_id}/cancel

Cancels a queued or processing batch. Already-processed rows are retained.

Delete a batch

DELETE /api/v1/batches/{batch_id}

Permanently deletes the batch and all its results.