Download an Order-to-Cash report (CSV/XLSX)
GET
/api/v1/contracts/reports/{report_type}Generate and download an O2C report as a CSV or XLSX file.
Path Parameters:
report_type: one ofcontract_register,ar_aging,deferred_revenue_waterfall,hours_ledger,billing_schedule.
Query Parameters:
format:csv(default) orxlsx.
Returns: A streamed file download.
Authentication
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Parameters
Path
report_typestringrequired
Query
formatstringdefault:csvOutput format: 'csv' or 'xlsx'.
Responses
400Bad Request - Invalid input
401Unauthorized - Authentication required
403Forbidden - Insufficient permissions
422Validation Error
Schema: HTTPValidationError
detailarray · ValidationErrorValidationError5 fields
locarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject