Permitir que o parceiro envie dados cliente para o PDV.
Esta operação ocorre nos eventos 'Identificar o cliente', 'Cadastrar pessoa' e também no pagamento por convênio, caso o cliente não tenha sido identificado durante a compra.
A seguir exemplos de como executar esta operação.
O campo para identificação do cliente,Identification, contém os seguintes campos :
Document : 11111111111 ==> Dados do documento apresentado
PersonCode := 0 ==> Código do cliente
DocumentType: cdtCPF (cdtIDInternal, cdtCPF, cdtCNPJ, cdtIDForeign) ==> Tipo de documento
IdentificationType : citInternal (veja a tabela abaixo os tipos de identificações)
Valores para TIdentificationType abaixo :
| TIdentificationType | Descrição do tipo de identificação |
|---|---|
| citInternal | Identificação interna |
| citInvoice | Identificação fiscal (Nota fiscal paulista e outros) |
| citReward | Identificação de recompensas, parceiros, etc. |
| citUnknown | Desconhecido |
| PARÂMETRO | TIPO | TAMANHO | OBRIGATÓRIO | DESCRIÇÃO | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Identification | Array of objects | true | Informações para identificação da pessoa
| ||||||||||||||||
| CorporateName | String | 50 | true | Nome / Razão social | |||||||||||||||
| FantasyName | String | 50 | true | Apelido / Nome fantasia | |||||||||||||||
| Kind | String | true | Tipo de pessoa cktPhysical - Física | ||||||||||||||||
| Taxpayer | String | true | Contribuinte de ICMS yntYes - Sim | ||||||||||||||||
| PublicAgency | String | true | Órgão público yntYes - Sim | ||||||||||||||||
| TaxRegime | Integer | 5 | false | Regime de tributação | |||||||||||||||
| GlobalLimit | Double | (9, 2) | false | Valor limite global | |||||||||||||||
| Deadline | Integer | 3 | false | Prazo máximo em dias | |||||||||||||||
| CreditStatus | String | true | Situação do crédito ccsAlert - Alerta | ||||||||||||||||
| Note | String | 250 | false | Observação | |||||||||||||||
| CardNumber | Integer | 15 | false | Número do cartão | |||||||||||||||
| BusinessSituation | String | true | Situação comercial bstReleased - Liberado | ||||||||||||||||
| IdSegment | Integer | 3 | true | Número do segmento | |||||||||||||||
| PublicPlaceCode | Integer | true | Código do logradouro | ||||||||||||||||
| KindAddress | String | true | Tipo do endereço katMain - Principal | ||||||||||||||||
| PublicPlace | String | 60 | true | Descrição do logradouro | |||||||||||||||
| PublicPlaceNumber | String | 10 | false | Número do logradouro | |||||||||||||||
| Neighbourhood | String | 50 | true | Descrição do bairro | |||||||||||||||
| Complement | String | 60 | false | Complemento de endereço | |||||||||||||||
| City | String | 60 | true | Nome da cidade | |||||||||||||||
| FederativeUnit | String | 2 | true | Estado da cidade | |||||||||||||||
| ZipCode | Integer | 8 | true | Cep | |||||||||||||||
| IBGE | Integer | 12 | false | Código da cidade no IBGE |
{
"id":"{E20B5192-1CDB-4F92-99C4-BB0F8CD700DB}",
"version":1,
"identification":{
"document":"11111111111",
"personCode":0,
"documentType":"cdtCPF",
"identificationType":"citInternal"
}
}
{
"id":"{B0DAC044-3540-4EBF-988F-18BE345A9609}",
"version":1,
"person":{
"identification":{
"document":"11111111111",
"personCode":0,
"documentType":"cdtCPF",
"identificationType":"citInternal"
},
"corporateName":"Razao social",
"fantasyName":"Nome fantasia",
"kind":"cktPhysical",
"taxpayer":"yntYes",
"publicAgency":"yntNo",
"customer":{
"taxRegime":1,
"globalLimit":1000.5,
"deadline":30,
"lastConstraintDateTime":"2022-09-21T10:00:00.000Z",
"creditStatus":"cstReleased",
"note":"Observacao do cliente",
"cardNumber":12345,
"businessSituation":"bstReleased"
},
"customerSegments":[
{
"idSegment":1,
},
{
"idSegment":2,
}
],
"addresses":[
{
"publicPlaceCode":1000,
"kindAddress":"katMain",
"publicPlace":"Rua nova uniao",
"publicPlaceNumber":"100",
"neighbourhood":"Santa Monica",
"complement":"Cond Novo, bl 50 apto 400",
"city":"Uberlandia",
"federativeUnit":"MG",
"zipCode":38411108,
"iBGE":10
},
{
"publicPlaceCode":500,
"kindAddress":"katDelivery",
"publicPlace":"Rua Araguari",
"publicPlaceNumber":"95",
"neighbourhood":"Centro",
"complement":"Edif Plaza, 10 andar",
"city":"Uberlandia",
"federativeUnit":"MG",
"zipCode":38411108,
"iBGE":10
},
{
"publicPlaceCode":71,
"kindAddress":"katCorrespondence",
"publicPlace":"Av Sebastiao Salgado",
"publicPlaceNumber":"32",
"neighbourhood":"Centro",
"complement":"Edif Central, 15 andar",
"city":"Uberlandia",
"federativeUnit":"MG",
"zipCode":38411108,
"iBGE":10
}
]
}
}