Reports
Get deal reports
Changed onRetrieve aggregated deal report data grouped by configurable dimensions.
get/api/v2/reports/deal_reports
Request
- Base URLhttps://developer.productive.io (the document declares no server; this is the origin it was published from)
- URLhttps://developer.productive.io/api/v2/reports/deal_reports
- Authnone declared
Query parameters
Filters
{
"0": {
"id": {
"eq": "123"
}
},
"$op": "and"
}sortstring[]
Sort deal report
group'company' | 'contact' | 'created_at' | 'creator' | 'custom_fields' | 'date' | 'deal' | 'deal_status' | 'deal_value_source' | 'designated_approver' | 'last_activity_at' | 'lost_reason' | 'month' | 'organization' | 'pipeline' | 'previous_deal_status' | 'primary_contact' | 'project' | 'quarter' | 'responsible' | 'revenue_distribution_base' | 'revenue_distribution_end_on' | 'revenue_distribution_start_on' | 'sales_closed_at' | 'sales_closed_on' | 'sales_status_id' | 'stage_status_id' | 'stage_updated_at' | 'subsidiary' | 'tracking_type_id' | 'week' | 'year'
Group deal report
Response
Collection deal report
Example response
{
"data": [
{
"id": "r-007",
"type": "deal_reports",
"attributes": {
"total_value": "100000.00",
"revenue": "75000.00",
"cost": "45000.00",
"profit": "30000.00",
"profit_margin": 0.4,
"billable_time": 48000,
"deal_id": 89,
"currency": "USD"
}
}
],
"included": [],
"meta": {
"current_page": 1,
"total_pages": 5,
"total_count": 42,
"page_size": 30,
"max_page_size": 200
}
}Changes
- info
added the enum value
-applied_scenario_marginto the propertyitems/of thequeryrequest parametersort - info
added the enum value
applied_scenario_marginto the propertyitems/of thequeryrequest parametersort
- info
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info