Metas do mês
const url = 'https://developers.nexo.winningsales.com.br/v1/goals?month=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://developers.nexo.winningsales.com.br/v1/goals?month=example' \ --header 'Authorization: Bearer <token>'A meta de cada dono e a do time no mês. Metas do CRM têm prioridade quando o mês tem alguma; sem elas, valem as definidas por um admin no Nexo. Todo dono ativo aparece, com nulo para “sem meta”. Só admin e líder de vendas, como no app.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”Month in the company calendar, YYYY-MM
Month in the company calendar, YYYY-MM
Responses
Seção intitulada “Responses”Metas do mês
object
Month shown, YYYY-MM
Crm = goals read from the CRM, read-only here; nexu = goals set by an admin; null = none yet
False when the goals of the month come from the CRM
Currency of every amount
Goal of the team
object
Goal set for the team itself
Sum of the goals of the owners
Team goal minus the sum, when both exist
Source of the goal of the team itself, when it has one
Suggested = accepted or edited from the suggestion pelo histórico; null = manual (nexu) or read from the CRM
Every active CRM owner, plus owners that still have a goal, by name
object
CRM owner id
Owner name from the CRM
Goal of the month; null means “sem meta”
Source of this owner goal, when it has one
Suggested = accepted or edited from the suggestion pelo histórico; null = manual (nexu) or read from the CRM
Example
{ "source": "crm", "team": { "source": "crm", "origin": "suggested" }, "owners": [ { "source": "crm", "origin": "suggested" } ]}Mês inválido
object
Stable machine-readable error code (e.g. identity.email_already_in_use)
Error class name
HTTP status code
Human-readable message, safe to display to end users
Correlation id — send it to support to locate the full trail
Structured details safe for the frontend (field errors, ids)
object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "requestId": "example", "meta": { "additionalProperty": "example" }}Token ausente, inválido, expirado ou revogado
object
Stable machine-readable error code (e.g. identity.email_already_in_use)
Error class name
HTTP status code
Human-readable message, safe to display to end users
Correlation id — send it to support to locate the full trail
Structured details safe for the frontend (field errors, ids)
object
Example
{ "type": "public_api.invalid_credential", "title": "InvalidCredentialError", "status": 401, "detail": "Token de acesso inválido, expirado ou revogado. Crie um novo token de acesso no Nexo.", "requestId": "019fcae7-3e54-755a-8458-bdb605b324bb"}Papel, escopo do token ou plano não permitem a operação
object
Stable machine-readable error code (e.g. identity.email_already_in_use)
Error class name
HTTP status code
Human-readable message, safe to display to end users
Correlation id — send it to support to locate the full trail
Structured details safe for the frontend (field errors, ids)
object
Example
{ "type": "public_api.insufficient_scope", "title": "InsufficientScopeError", "status": 403, "detail": "Este token não tem o escopo conversations:read, exigido por esta operação. Gere um token com esse escopo.", "requestId": "019fcae7-3e54-755a-8458-bdb605b324bb", "meta": { "operation": "conversations.reading", "scope": "conversations:read" }}Limite de chamadas da empresa ou do token atingido
object
Stable machine-readable error code (e.g. identity.email_already_in_use)
Error class name
HTTP status code
Human-readable message, safe to display to end users
Correlation id — send it to support to locate the full trail
Structured details safe for the frontend (field errors, ids)
object
Example
{ "type": "public_api.rate_limited", "title": "PublicRateLimitedError", "status": 429, "detail": "Muitas chamadas em pouco tempo. Tente de novo em 12 segundos.", "requestId": "019fcae7-3e54-755a-8458-bdb605b324bb", "meta": { "class": "content", "limitedBy": "company", "limit": 120, "windowSeconds": 60, "retryAfterSeconds": 12 }}