POST api/Cliente/CadastraCliente?chave={chave}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
chave

globally unique identifier

Required

Body Parameters

ClienteB2BModel
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Codigo

integer

None.

NomeFantasia

string

None.

RazaoSocial

string

None.

Endereco

EnderecoModel

None.

Telefone

Collection of TelefoneModel

None.

Email

string

None.

PaginaWeb

string

None.

Cnpj

string

None.

InscricaoEstadual

string

None.

Contato

string

None.

EmpresaId

globally unique identifier

None.

UsuarioRepresentanteId

globally unique identifier

None.

CondicaoPagamentoId

globally unique identifier

None.

DivisaoId

globally unique identifier

None.

ListaPrecoId

globally unique identifier

None.

UserName

string

None.

Senha

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "e72f5289-c2c4-44d3-91ef-79d55dae6694",
  "Codigo": 2,
  "NomeFantasia": "sample string 3",
  "RazaoSocial": "sample string 4",
  "Endereco": {
    "Id": "d2e0399a-a8ad-4343-9854-326bb3034696",
    "Rua": "sample string 2",
    "Bairro": "sample string 3",
    "CEP": 4,
    "CidadeId": "e953fffc-d986-41b2-91a5-2167667ac775",
    "EnderecoNumero": 6,
    "EnderecoComplemento": "sample string 7",
    "EnderecoLatitude": 8.0,
    "EnderecoLongitude": 9.0,
    "DataAtualizacao": "2025-12-06T02:42:46.5400506-03:00"
  },
  "Telefone": [
    {
      "Id": "bd3d086e-c109-4a94-ba60-df5bf843a043",
      "Ramal": 2,
      "Numero": "sample string 3",
      "Tipo": 0
    },
    {
      "Id": "bd3d086e-c109-4a94-ba60-df5bf843a043",
      "Ramal": 2,
      "Numero": "sample string 3",
      "Tipo": 0
    }
  ],
  "Email": "sample string 5",
  "PaginaWeb": "sample string 6",
  "Cnpj": "sample string 7",
  "InscricaoEstadual": "sample string 8",
  "Contato": "sample string 9",
  "EmpresaId": "01e493df-e018-49b1-bb17-63e3b9e0de4f",
  "UsuarioRepresentanteId": "0487dbdc-f481-40e4-9faa-136746541e27",
  "CondicaoPagamentoId": "1463b3d2-615d-48d8-8264-6d21cd8a85e8",
  "DivisaoId": "d90ec591-deba-40e8-950e-42e0e4a873fe",
  "ListaPrecoId": "956505ca-e613-4f78-90ea-2f2377f42c03",
  "UserName": "sample string 15",
  "Senha": "sample string 16"
}

application/xml, text/xml

Sample:
<ClienteB2BModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Softbyte.PedidosWeb.ApiAspNet.Models">
  <Cnpj>sample string 7</Cnpj>
  <Codigo>2</Codigo>
  <CondicaoPagamentoId>1463b3d2-615d-48d8-8264-6d21cd8a85e8</CondicaoPagamentoId>
  <Contato>sample string 9</Contato>
  <DivisaoId>d90ec591-deba-40e8-950e-42e0e4a873fe</DivisaoId>
  <Email>sample string 5</Email>
  <EmpresaId>01e493df-e018-49b1-bb17-63e3b9e0de4f</EmpresaId>
  <Endereco>
    <Bairro>sample string 3</Bairro>
    <CEP>4</CEP>
    <CidadeId>e953fffc-d986-41b2-91a5-2167667ac775</CidadeId>
    <DataAtualizacao>2025-12-06T02:42:46.5400506-03:00</DataAtualizacao>
    <EnderecoComplemento>sample string 7</EnderecoComplemento>
    <EnderecoLatitude>8</EnderecoLatitude>
    <EnderecoLongitude>9</EnderecoLongitude>
    <EnderecoNumero>6</EnderecoNumero>
    <Id>d2e0399a-a8ad-4343-9854-326bb3034696</Id>
    <Rua>sample string 2</Rua>
  </Endereco>
  <Id>e72f5289-c2c4-44d3-91ef-79d55dae6694</Id>
  <InscricaoEstadual>sample string 8</InscricaoEstadual>
  <ListaPrecoId>956505ca-e613-4f78-90ea-2f2377f42c03</ListaPrecoId>
  <NomeFantasia>sample string 3</NomeFantasia>
  <PaginaWeb>sample string 6</PaginaWeb>
  <RazaoSocial>sample string 4</RazaoSocial>
  <Senha>sample string 16</Senha>
  <Telefone>
    <TelefoneModel>
      <Id>bd3d086e-c109-4a94-ba60-df5bf843a043</Id>
      <Numero>sample string 3</Numero>
      <Ramal>2</Ramal>
      <Tipo>Residencial</Tipo>
    </TelefoneModel>
    <TelefoneModel>
      <Id>bd3d086e-c109-4a94-ba60-df5bf843a043</Id>
      <Numero>sample string 3</Numero>
      <Ramal>2</Ramal>
      <Tipo>Residencial</Tipo>
    </TelefoneModel>
  </Telefone>
  <UserName>sample string 15</UserName>
  <UsuarioRepresentanteId>0487dbdc-f481-40e4-9faa-136746541e27</UsuarioRepresentanteId>
</ClienteB2BModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.