Get financial report
const url = 'https://api.ultimateteam.ai/api/v1/reports/financial?type=pnl&period=monthly';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.ultimateteam.ai/api/v1/reports/financial?type=pnl&period=monthly' \ --header 'X-API-Key: <X-API-Key>'Returns a financial report filtered by type (P&L, cash flow, or unit economics) and period.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Type of financial report to generate
Type of financial report to generate
Reporting period
Reporting period
Responses
Section titled “ Responses ”Successful Response
Envelope response for the financial report endpoint.
Attributes: data: The financial report payload. meta: Standard response metadata.
object
Inner data payload for financial report responses.
Attributes: report_type: The type of financial report. period: The reporting period. generated_at: When the report was generated. data: The report content (structure varies by report type).
object
object
Allowed financial report periods.
Allowed financial report types.
Standard metadata included in every API response.
Attributes: request_id: Unique identifier for this request. timestamp: When the response was generated.
object
Unique identifier for this request
When the response was generated
Example
{ "data": { "data": { "cash_source": "GeneralLedger", "currency": "USD", "data_status": "ready", "period_basis": "month_to_date" }, "period": "monthly", "report_type": "pnl" }}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}