GET

/Report/Status

Usage Notes

When

  • Check report generation progress
  • Poll until status indicates completion or error

Requirements

  • Reference parameter (GUID from POST response)

Notes

  • Stage 2 of 3-stage workflow
  • Poll periodically until complete
  • Only complete returns HTTP 200. Every other status (pending, processing, incomplete, error) returns HTTP 400 with the status in data - treat that as "keep polling" (or stop on error), not as a failed request
  • The reference must be the GUID of a report request you have access to; anything else returns 400 Invalid reference.

Description

Returns current status of report generation. Poll until status indicates ready for retrieval.

Only complete returns 200

The HTTP status code follows the report status: 200 when the report is complete, and 400 for pending, processing, incomplete and error. In every case the status is in data and a description is in message. When polling, read the body of a 400 response: keep polling on pending, processing and incomplete, and stop on error. A 400 whose data is an empty object (message Invalid reference.) means the reference itself was rejected.

Required Headers - See Authentication

HeaderValueDescription
Authorization{accessToken}Bearer token for API access
Version2.0API version identifier

Query Parameters

Parameter Type Required Description
reference >
string
The GUID reference returned from the POST /Report endpoint to check the status of the specific report request.
reference
string
The GUID reference returned from the POST /Report endpoint to check the status of the specific report request.

Example Requests

bash
# Check report status
curl -X GET 'https://api.7g.com.au/Report/Status?reference=a1b2c3d4-e5f6-7890-abcd-ef1234567890' \
  -H 'Authorization: {accessToken}' \
  -H 'Version: 2.0'

Response Examples

json
{
  "result": true,
  "message": "Report has been successfully completed!",
  "data": "complete"
}