Overview
This page outlines a structured process for generating a Worth 360 Report using Worth AI’s APIs and tools. The flow supports two main steps, offering flexibility in how reports are generated and tracked starting with initiating the report and followed by retrieving its status and result.
Process breakdown
1. Initiate Report Generation
-
Trigger Report Creation:
The Customer makes a request to generate a Worth 360 Report using the following API:API Endpoint: POST
/reports/customers/:customerID/businesses/:businessID
Expected Response:
2. Track Report Status & Download
-
Poll Report Status: Use the report ID received from the previous step to check the report status:
API Endpoint: POST
/reports/:reportID/download
-
Possible Status Responses:
Status Meaning REQUESTED Report request is initiated IN_PROGRESS Report is currently being generated COMPLETED Report is ready and log contains the final JSON output FAILED Report generation failed and log contains error reasons
3. Output Responses
-
If COMPLETED, the response will include the generated JSON data:
-
If FAILED, the response will include failure reasons:
Other APIs
1. Check Worth 360 Report with businessID
The Customer makes a request to check a Worth 360 Report generation status with businessID using the following API:
API Endpoint:
GET /reports/businesses/:businessID/status
Expected Response:
2. Fetch Worth 360 Report Details (JSON without pdfURL)
The Customer makes a request to fetch a Worth 360 Report details using the following API:
API Endpoint:
GET /reports/customers/:customerID/businesses/:businessID
Expected Response:
Was this page helpful?