Returns the current status and progress metrics for a specific batch job. Poll this endpoint after submitting an upload to monitor completion.
A job is terminal when its status is complete, partialcomplete, or failed. At that point completedDateTime will be populated and percentageProgress will be 100.
AuthorizationstringRequiredThe authorization token for accessing the API. The header value should be set to "Bearer {your-access-token}", where {your-access-token} is the access token assigned to the user.
siteIdstringRequiredThe unique identifier of the site.
jobIdstringRequiredThe unique identifier for the batch job, returned by the upload endpoint.
pendingThe job has been created and is waiting to begin processing.
processingThe job is actively processing rows.
completeAll rows were processed successfully. failureCount will be 0.
partialcompleteProcessing finished but some rows failed. At least one row succeeded and at least one row failed. Use the Get Revenue Failures endpoint to retrieve the rows that could not be processed.
failedThe job failed entirely. This can occur when all rows failed, or when a fatal error prevented processing (e.g. the file could not be read, the file was empty, or the job type is not supported). See failureReason for details.
statusstringThe current status of the job (see Status Values above).
totalRowsintegerThe total number of rows in the CSV (excluding the header).
processedRowsintegerThe number of rows processed so far.
percentageProgressintegerProcessing progress from 0 to 100.
successCountintegerThe number of rows that were processed successfully.
failureCountintegerThe number of rows that failed to process.
createdDateTimedatetimeThe UTC datetime the job was created.
completedDateTimedatetimeThe UTC datetime the job completed. null while the job is still pending or processing.
failureReasonstringPopulated only when status is failed. Describes why the job failed at a file or system level (not row-level validation errors). null otherwise.
curl -X GET \ 'https://rest.rulerapi.com/v1/{siteId}/batch/{jobId}/status' \ -H 'Authorization: Bearer {your-access-token}'
200 OK { "status": "partialcomplete", "totalRows": 100, "processedRows": 100, "percentageProgress": 100, "successCount": 95, "failureCount": 5, "createdDateTime": "2024-01-15T10:00:00", "completedDateTime": "2024-01-15T10:02:30", "failureReason": null }