Returns a list of batch jobs for the given site. Each entry provides a summary of the job including its type, current status, and progress.
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.
jobIdstringThe unique identifier for the job. Use this value with the status and failures endpoints.
jobTypestringThe type of batch job. Currently revenue is the only supported type.
statusstringThe current job status. Possible values: pending, processing, complete, partialcomplete, failed. See Get Job Status for full status descriptions.
percentageProgressintegerProcessing progress from 0 to 100.
failureReasonstringPopulated only when the job status is failed. Describes the reason for the failure. null otherwise.
curl -X GET \ 'https://rest.rulerapi.com/v1/{siteId}/batch/jobs' \ -H 'Authorization: Bearer {your-access-token}'
200 OK [ { "jobId": "{jobId}", "jobType": "revenue", "status": "complete", "percentageProgress": 100, "failureReason": null }, { "jobId": "{jobId}", "jobType": "revenue", "status": "partialcomplete", "percentageProgress": 100, "failureReason": null } ]