Pular para o conteúdo

Get Pipeline Stats

GET
/api/v1/deals/stats/pipeline

Get complete pipeline statistics and metrics.

Args: pipeline_id: Optional filter by specific pipeline

pipeline_id
Any of:
integer
x-tenant-id
Any of:
integer

Successful Response

PipelineStatsResponse

Complete pipeline statistics

object
total_deals
required
Total Deals
integer
total_value
required
Total Value
string
weighted_value
required
Weighted Value
string
avg_deal_size
required
Avg Deal Size
string
by_stage
required
By Stage
Array<object>
DealsByStageStats

Deals statistics by stage

object
stage
required
Stage
string
count
required
Count
integer
total_value
required
Total Value
string
avg_probability
required
Avg Probability
number
by_priority
required
By Priority
Array<object>
DealsByPriorityStats

Deals statistics by priority

object
priority
required
Priority
string
count
required
Count
integer
total_value
required
Total Value
string
by_user
required
By User
Array<object>
DealsByUserStats

Deals statistics by user

object
user_id
required
User Id
integer
user_name
required
User Name
string
deals_count
required
Deals Count
integer
total_value
required
Total Value
string
won_count
required
Won Count
integer
won_value
required
Won Value
string
conversion_rate
required
Conversion Rate
number
avg_days_to_close
Any of:
number
funnel_metrics
required
FunnelMetrics

Conversion rates between stages

object
lead_to_contact
required
Lead To Contact
number
contact_to_proposal
required
Contact To Proposal
number
proposal_to_negotiation
required
Proposal To Negotiation
number
negotiation_to_closed
required
Negotiation To Closed
number
overall_win_rate
required
Overall Win Rate
number
forecast
required
ForecastMetrics

Revenue forecast

object
this_month
required
This Month
string
next_month
required
Next Month
string
this_quarter
required
This Quarter
string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string