Pular para o conteúdo

Consultar o funil de vendas

GET
/api/seller/external/v1/sales-funnel
curl --request GET \
--get "https://api.spelt.com.br/api/seller/external/v1/sales-funnel?board_id=architecto&period=architecto&assignee=architecto" \
--header "Authorization: Bearer splt_live_SUA_CHAVE" \
--header "Content-Type: application/json" \
--header "Accept: application/json"

Funil de um pipeline de vendas.

board_id

Quadro de vendas. Omitido = o primeiro pipeline ativo que a sessão vê, por nome.

string

Quadro de vendas. Omitido = o primeiro pipeline ativo que a sessão vê, por nome.

period

Last_7d | last_30d | last_90d | this_month | all_time. Padrão: last_30d.

string

Last_7d | last_30d | last_90d | this_month | all_time. Padrão: last_30d.

assignee

Id do responsável (pessoa ou agente), me ou none. Omitido = todos.

string

Id do responsável (pessoa ou agente), me ou none. Omitido = todos.

Media typeapplication/json
One of:
object
data
object
boards
Array<object>
object
id
string
name
string
board
object
id
string
name
string
period
object
key
string
from
string
to
string
label
string
kpis
object
entered
object
count
integer
value_cents
integer
won
object
count
integer
value_cents
integer
avg_days_to_win
number
lost
object
count
integer
value_cents
integer
win_rate
integer
open
object
count
integer
value_cents
integer
forecast_this_month
object
count
integer
value_cents
integer
stages
Array<object>
object
key
string
label
string
type
string
count
integer
value_cents
integer
pct_of_started
integer
pct_of_prev
string | null
lost_reasons
Array<object>
object
reason
string
count
integer
value_cents
integer
by_assignee
Array<object>
object
user
object
id
string
name
string
entered
integer
won
object
count
integer
value_cents
integer
lost
integer
open
object
count
integer
value_cents
integer
Example
{
"data": {
"boards": [
{
"id": "01JA…",
"name": "Vendas"
}
],
"board": {
"id": "01JA…",
"name": "Vendas"
},
"period": {
"key": "last_30d",
"from": "2026-10-26",
"to": "2026-11-25",
"label": "Últimos 30 dias"
},
"kpis": {
"entered": {
"count": 12,
"value_cents": 3600000
},
"won": {
"count": 3,
"value_cents": 900000,
"avg_days_to_win": 8.5
},
"lost": {
"count": 2,
"value_cents": 400000
},
"win_rate": 60,
"open": {
"count": 9,
"value_cents": 2700000
},
"forecast_this_month": {
"count": 2,
"value_cents": 600000
}
},
"stages": [
{
"key": "01JA…",
"label": "Novo",
"type": "open",
"count": 12,
"value_cents": 3600000,
"pct_of_started": 100,
"pct_of_prev": null
}
],
"lost_reasons": [
{
"reason": "Preço",
"count": 1,
"value_cents": 200000
}
],
"by_assignee": [
{
"user": {
"id": "01JA…",
"name": "Ana"
},
"entered": 7,
"won": {
"count": 2,
"value_cents": 600000
},
"lost": 1,
"open": {
"count": 4,
"value_cents": 1200000
}
}
]
}
}
Media typeapplication/json
object
error
string
Example
{
"error": "Recurso não encontrado"
}