Generate the day-end summary PDF
Renders the day-end collection summary PDF for a day cycle using the tenant's active report template, or a specific templateId. An open day cycle produces a provisional snapshot; a closed day cycle's PDF is stored as a final copy.
How to use it
- Get the dayCycleId from List day cycles; optionally pick a DAY_END_SUMMARY template ID from List report templates.
- Send the request; without templateId the active DAY_END_SUMMARY template is used, and the call fails if none is active.
- Download the PDF from pdfUrl; status in the response is PROVISIONAL for an open day and FINAL for a closed one.
- The file counts toward the merchant's storage quota; regenerating replaces the stored copy for that day cycle.
BearerAuthAuthorizationBearer <JWT>dayCycleId*stringID of the day cycle, from List day cycles or Get the active day cycle.
uuidtemplateId?integerOptional ID of a report template to render with instead of the active one; see List report templates. Pick a DAY_END_SUMMARY template: the server does not check the template's document type.
int64OK
*/*- response
status*stringOutcome of the call: SUCCESS when the request worked, ERROR when it did not.
message*stringShort human-readable message describing the result, for logs or display; do not parse it.
data?|Key-value result. For PDF endpoints: pdfUrl (a temporary signed download link), templateId, templateVersion, generatedAt plus document keys such as dayCycleId.
curl -X POST 'https://beta.iotoms.com/api/v1/ops/day-cycles/497f6eca-6276-4993-bfeb-53cbbbba6f08/report'{ "status": "string", "message": "string", "data": { "property1": {}, "property2": {} }}