POST api/AgendaVenda/SetWebSiteRecepcao?token={token}

Inserir um Lead no sistema

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

Valor recebido pelo método Login >> Entrar

string

Required

Body Parameters

Objeto contendo valores do Lead

AgendaVenda
NameDescriptionTypeAdditional information
NMCLIENTE

Nome completo do cliente

string

Required

Max length: 60

DSEMAIL

e-mail do cliente

string

Max length: 100

NRDDD

DDD telefone fixo

integer

None.

NRTELEFONE

Telefone fixo

integer

None.

NRDDDCEL

DDD telefone celular

integer

None.

NRCELULAR

Telefone celular

integer

None.

CDMODELOVEICULO

Código do Modelo do veículo (TabelaAuxiliar >> GetModelo)

integer

None.

DSOBSERVACAO

Texto digitado pelo cliente

string

Required

Max length: 255

CDEMPRESA

Código da Empresa (TabelaAuxiliar >> GetEmpresa)

integer

Required

TPVEICULO

Tipo do Veículo (TabelaAuxiliar >> GetTipoVeiculo)

integer

Required

CDFOLLOWISE

Código integração Followise

integer

None.

IDESTADO

Situação lead

integer

None.

CDORIGEMCONTATO

Cód. Origem do Contato

integer

None.

CDVENDEDOR

Cód. Vendedor

integer

None.

CDAGENDAVENDA

Cód. Lead

integer

None.

TPRECEPCAO

Tipo de Recepcao (TabelaAuxiliar >> GetTipoRecepcao)

integer

None.

NRCPFCNPJ

CPF do cliente

string

None.

Cliente

Cliente

Cliente

None.

Request Formats

application/json, text/json

Sample:
{
  "NMCLIENTE": "sample string 1",
  "DSEMAIL": "sample string 2",
  "NRDDD": 1,
  "NRTELEFONE": 1,
  "NRDDDCEL": 1,
  "NRCELULAR": 1,
  "CDMODELOVEICULO": 1,
  "DSOBSERVACAO": "sample string 3",
  "CDEMPRESA": 1,
  "TPVEICULO": 1,
  "CDFOLLOWISE": 1,
  "IDESTADO": 1,
  "CDORIGEMCONTATO": 1,
  "CDVENDEDOR": 1,
  "CDAGENDAVENDA": 1,
  "TPRECEPCAO": 1,
  "NRCPFCNPJ": "sample string 4",
  "Cliente": {
    "CDPESSOA": 1,
    "NMPESSOA": "sample string 2",
    "DTNASCIMENTO": "2025-04-26T16:47:51.2455955-03:00",
    "DSEMAIL": "sample string 3",
    "NRCPFCNPJ": "sample string 4",
    "NRRG": "sample string 5",
    "NMPAI": "sample string 6",
    "NMMAE": "sample string 7",
    "TPSEXO": 1,
    "CDCARGO": 1,
    "VLSALARIO": 1.0,
    "Enderecos": [
      {
        "TPENDERECO": 1,
        "NRCEP": "sample string 2",
        "SGUF": "sample string 3",
        "DSMUNICIPIO": "sample string 4",
        "DSBAIRRO": "sample string 5",
        "DSTIPOLOGRADOURO": "sample string 6",
        "DSLOGRADOURO": "sample string 7",
        "NRRESIDENCIA": 1,
        "NRRESIDENCIACOMP": "sample string 8",
        "DSCOMPLEMENTO": "sample string 9",
        "DSOBSERVACAO": "sample string 10"
      },
      {
        "TPENDERECO": 1,
        "NRCEP": "sample string 2",
        "SGUF": "sample string 3",
        "DSMUNICIPIO": "sample string 4",
        "DSBAIRRO": "sample string 5",
        "DSTIPOLOGRADOURO": "sample string 6",
        "DSLOGRADOURO": "sample string 7",
        "NRRESIDENCIA": 1,
        "NRRESIDENCIACOMP": "sample string 8",
        "DSCOMPLEMENTO": "sample string 9",
        "DSOBSERVACAO": "sample string 10"
      }
    ],
    "Contatos": [
      {
        "NRDDD": 1,
        "NRTELEFONE": 2,
        "TPCONTATO": 3,
        "NMCONTATO": "sample string 4",
        "IDCONTATOAUTOMATICO": true
      },
      {
        "NRDDD": 1,
        "NRTELEFONE": 2,
        "TPCONTATO": 3,
        "NMCONTATO": "sample string 4",
        "IDCONTATOAUTOMATICO": true
      }
    ]
  }
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AgendaVenda'.

Response Information

Resource Description

Retorna objeto contendo status e mensagem

RetornoPadrao
NameDescriptionTypeAdditional information
status

Valores : "sucesso", "erro"

string

None.

mensagem

Quando status "sucesso" campo retorna vazio, quando "erro" campo retorna detalhe do erro

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": "sample string 1",
  "mensagem": "sample string 2"
}