Consultar o resumo do período
GET
/api/seller/external/v1/report/summary
curl --request GET \ --get "https://api.spelt.com.br/api/seller/external/v1/report/summary?period=architecto&from=architecto&to=architecto&mode=architecto" \ --header "Authorization: Bearer splt_live_SUA_CHAVE" \ --header "Content-Type: application/json" \ --header "Accept: application/json"const url = new URL( "https://api.spelt.com.br/api/seller/external/v1/report/summary");
const params = { "period": "architecto", "from": "architecto", "to": "architecto", "mode": "architecto",};Object.keys(params) .forEach(key => url.searchParams.append(key, params[key]));
const headers = { "Authorization": "Bearer splt_live_SUA_CHAVE", "Content-Type": "application/json", "Accept": "application/json",};
fetch(url, { method: "GET", headers,}).then(response => response.json());$client = new \GuzzleHttp\Client();$url = 'https://api.spelt.com.br/api/seller/external/v1/report/summary';$response = $client->get( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'query' => [ 'period' => 'architecto', 'from' => 'architecto', 'to' => 'architecto', 'mode' => 'architecto', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/report/summary'params = { 'period': 'architecto', 'from': 'architecto', 'to': 'architecto', 'mode': 'architecto',}headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('GET', url, headers=headers, params=params)response.json()Os indicadores de receita, vendas e cancelamento do período, com a comparação ao período anterior. São os mesmos números de Relatórios › Dashboard no painel.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”period
Opcional current_month | last_month | last_3_months | current_year | custom. Padrão: current_month.
string
Opcional current_month | last_month | last_3_months | current_year | custom. Padrão: current_month.
from
Opcional Início (YYYY-MM-DD) — obrigatório quando period=custom.
string
Opcional Início (YYYY-MM-DD) — obrigatório quando period=custom.
to
Opcional Fim (YYYY-MM-DD) — obrigatório quando period=custom.
string
Opcional Fim (YYYY-MM-DD) — obrigatório quando period=custom.
mode
Opcional cash (caixa, padrão) | cohort (safra).
string
Opcional cash (caixa, padrão) | cohort (safra).
Responses
Seção intitulada “Responses”Media typeapplication/json
object
data
object
period
object
key
string
from
string
to
string
label
string
is_partial
boolean
previous_period
object
key
string
from
string
to
string
label
string
is_partial
boolean
mode
string
generated
object
amount
number
count
integer
trials_started
integer
blocked
object
count
integer
amount
number
change
number
realized
object
amount
number
count
integer
average_ticket
number
conversion
string | null
change
number
received
object
amount
number
refunded
integer
net
number
paying_customers
integer
average_per_customer
number
split
object
new
number
one_off
integer
renewals
number
change
number
lost
object
mrr
number
count
integer
annualized
number
voluntary
object
count
integer
mrr
integer
involuntary
object
count
integer
mrr
number
administrative
object
count
integer
mrr
integer
never_paid
object
count
integer
mrr
integer
total_mrr
number
change
string | null
flow
object
net
number
percent
number
mrr_start
number
new
number
expansion
integer
reactivation
integer
contraction
integer
churn_market
number
churn_never_paid
integer
churn_administrative
integer
top_plan
object
plan_id
string
name
string
received
number
sales
integer
share
number
ranking
array
without_plan
integer
computed_at
string
Example
{ "data": { "period": { "key": "current_month", "from": "2026-09-01", "to": "2026-09-28", "label": "Setembro de 2026", "is_partial": true }, "previous_period": { "key": "current_month", "from": "2026-08-01", "to": "2026-08-28", "label": "Agosto de 2026", "is_partial": false }, "mode": "cash", "generated": { "amount": 293.97, "count": 7, "trials_started": 18, "blocked": { "count": 123, "amount": 10655 }, "change": -12.5 }, "realized": { "amount": 512.97, "count": 14, "average_ticket": 36.64, "conversion": null, "change": 40.1 }, "received": { "amount": 66186.64, "refunded": 0, "net": 66186.64, "paying_customers": 68, "average_per_customer": 973.33, "split": { "new": 512.97, "one_off": 0, "renewals": 65673.67 }, "change": 3.2 }, "lost": { "mrr": 590.58, "count": 7, "annualized": 7086.96, "voluntary": { "count": 5, "mrr": 400 }, "involuntary": { "count": 2, "mrr": 190.58 }, "administrative": { "count": 123, "mrr": 10655 }, "never_paid": { "count": 4, "mrr": 225 }, "total_mrr": 11470.58, "change": null }, "flow": { "net": 325.97, "percent": 0.4, "mrr_start": 76877.65, "new": 916.55, "expansion": 0, "reactivation": 0, "contraction": 0, "churn_market": 590.58, "churn_never_paid": 0, "churn_administrative": 0 }, "top_plan": { "plan_id": "01K...", "name": "SMTP: Avançado", "received": 3813.74, "sales": 1, "share": 5.8, "ranking": [], "without_plan": 0 }, "computed_at": "2026-09-28T14:32:00+00:00" }}Media typeapplication/json
object
message
string
Example
{ "message": "Período personalizado exige início e fim."}