Skip to content
Light
English

Table 18 - Customers

  • This article introduces the fields of the customer integration layout. To better understand the concept behind customers, see our article on Customer Concept.
OrderField DescriptionFormat and SizeRequiredVersionNote
1Table Identifier (IDENTIFICADOR)FIXED=18 (2)Yes1.0
2Customer Code (codigo)Integer (10)Yes1.0Customers registered by the salesperson take code "0"; the key to updating the code of these customers is the CNPJ/CPF field.
3CNPJ/CPF (cpfCNPJ)Text (18)No1.0Send with mask EX: 01.010.101/0001-72; field becomes mandatory when codigo and uniqueID are null, blank, or zero.
4Payment Term Code (codCondicaoPagamento)Text (20)No1.0

Determines the default payment term for this customer. This is the payment term that will be selected when starting to enter a new order. *When the payment term is locked, it cannot be changed on the order.

If bloqueiaCondPagamento = 1, only the defined payment term is shown when creating an Order and cannot be changed.
If bloqueiaCondPagamento = 0 and has a defined payment term, it is loaded as default, but can be changed.
If bloqueiaCondPagamento = 0 and DOES NOT have a defined payment term, no default payment term is loaded, but allows selecting another payment term.

This field is not cleared when sent empty from ERP to Demander. To clear the field, send the code of an unregistered payment term.

5Payment Method Code (codFormaPagamento)Text (20)No1.0

Determines the default payment method for this customer. This is the payment method that will be selected when starting to enter a new order. *When the payment method is locked, it cannot be changed on the order.

If bloqueiaFormaPagamento = 1, only the defined payment method is shown when creating an Order and cannot be changed.
If bloqueiaFormaPagamento = 0 and has a defined payment method, it is loaded as default, but can be changed.
If bloqueiaFormaPagamento = 0 and DOES NOT have a defined payment method, no default payment method is loaded, but allows selecting another payment method.

This field is not cleared when sent empty from ERP to Demander. To clear the field, send the code of an unregistered payment method.

6Region Code (codRegiao)Text (30)No5.18
Region Code
7Salesperson Code (codVendedor)Integer (10)No1.0ATTENTION: If the salesperson code is sent, the customer appears only for the specified salesperson; otherwise, the customer appears for all salespersons.
8Price List Code (codListaPreco)Text (20)No1.0

Determines the default price list for this customer. This is the price list that will be selected when starting to enter a new order. *When the price list is locked, it cannot be changed on the order.

If bloqueiaListaPreco = 1, only the defined price list is shown when creating an Order and cannot be changed.
If bloqueiaListaPreco = 0 and has a defined price list, it is loaded as default, but can be changed.
If bloqueiaListaPreco = 0 and DOES NOT have a defined price list, no default price list is loaded, but allows selecting another price list.

This field is not cleared when sent empty from ERP to Demander. To clear the field, send the code of an unregistered price list.

9Customer City Code (codCidade)Integer (10)Yes1.0
10Branch Code (codFilial)Text (15)
No1.0

Determines the default branch for this customer. This is the branch that will be selected when starting to enter a new order. *When the branch is locked, it cannot be changed on the order.

If bloqueiaFilialUnidade = 1, only the defined branch is shown when creating an Order and cannot be changed.
If bloqueiaFilialUnidade = 0 and has a defined branch, it is loaded as default, but can be changed.
If bloqueiaFilialUnidade = 0 and DOES NOT have a defined branch, no default branch is loaded, but allows selecting another branch.

This field is not cleared when sent empty from ERP to Demander. To clear the field, send the code of an unregistered branch.

11Corporate Name (nomeRazao)Text (100)Yes1.0
12Trade Name (nomeFantasia)Text (100)Yes1.0
13Person Type (tipoPessoa)Text (1)Yes1.0F = Individual; J = Legal Entity
14Visit Interval (intervaloVisitas)Integer (10)No1.0
15ID or State Registration (rgIE)Text (20)No1.0
16Primary Phone (telefone1)Text (255)No1.0Send with mask. EX: (51) 3714-7017
17Secondary Phone (telefone2)Text (255)No1.0
18Buyer Email Address (emailComprador)Text (255)No1.0
19NF-e Email Address (emailNfe)Text (255)No1.0
20Financial Email Address (emailFinanceiro)Text (255)No1.0
21Contact Person at Customer (contato)Text (50)No1.0
22Customer Address (endereco)Text (100)No1.0
23Neighborhood (bairro)Text (50)No1.0
24ZIP Code (cep)Text (10)No1.0Send with mask EX: 95900-000
25State (uf)Text (2)No1.0
26Note (observacao)Text (2000)No1.0
27Active (ativo)Integer (1)No1.01 = Active or 0 = Inactive
28Blocked (bloqueado)Integer (1)No1.71 = Does not allow sales to Customer, 0 = Allows sales to Customer
29Number (numero)Integer (10)No1.11Address Number
30Address Complement (complemento)Text (200)No1.11
31Latitude (latitude)Text (50)No1.12
32Longitude (longitude)Text (50)No1.12
33Lock Branch/Unit editing (bloqueiaFilialUnidade)Integer (1)No1.15

Prevents the salesperson from changing the customer default Branch during order entry.

34Lock Price List editing (bloqueiaListaPreco)Integer (1)No1.15

Prevents the salesperson from changing the customer default Price List during order entry.

35Lock Payment Term editing (bloqueiaCondPagamento)Integer (1)No1.15

Prevents the salesperson from changing the customer default Payment Term during order entry.

36Lock Payment Method editing (bloqueiaFormaPagamento)Integer (1)No1.15

Prevents the salesperson from changing the customer default Payment Method during order entry.

37Individual State Registration (inscricaoEstadualPessoaFisica)Text (30)No2.6
38Demander Customer Unique Identifier (idCliente)Integer (10)No2.10ATTENTION: If the salesperson registered a new customer without entering CPF/CNPJ, the customer assumes code Zero. However, when the ERP returns the customer info it already comes with a code, so this field is used as a key to update the customer since CPF/CNPJ was not filled in. Therefore, your ERP must store this field to return it to Demander; otherwise, customers will duplicate in Demander or salespersons will not be allowed to register customers without entering CPF/CNPJ.
39Tax Customer Type (codTipoClienteTributario)Text (20)No2.13This field is used by some companies in IPI and ICMS ST calculations; only be concerned with it if you integrate Tax configuration.
40Related Salespersons (vendedoresRelacionados)Text (500)No2.17Send here the codes of the Salespersons who serve the customer separated by commas. This field only needs to be sent from ERP to Demander if more than one salesperson serves (views) the Customer. Example: "24, 75, 145" (If only one salesperson serves the customer, use only the codVendedor field). If a salesperson registers a new customer in Demander, only the codVendedor field is filled; this field starts empty.
41Customer in Prospecting (prospecto)Integer (1)No2.300 - Not a Prospect, already a Customer. 1 - Is a prospect, not yet a Customer. Demander allows salespersons to register prospects they are currently contacting. Normally these Prospects do not want to provide all registration details; therefore, in the Demander app we have a separate feature for prospect registration, including separate mandatory field settings. Even though they are not customers, Prospects can be exported to the ERP in the customer table layout; if your ERP is not structured to import prospects, configure them not to be exported by accessing "Company Settings", tab "Additional settings" and search for the setting "Export prospects" and set Yes or No. (Currently we do not support importing prospects without code or CNPJ, unless you use the "Demander Unique Identifier" field)
42Change Identifier (idAlteracaoERP)Text (255)No2.31Field exclusively for ERP control. Demander only imports and returns it to the ERP. This field can be used for the ERP to implement change conflict control between ERP and salesperson.
(Internal note: See task #31145 in Redmine)
43Commercial agreement percentage (percAcordoComercial)DecimalNo2.36Currently the commercial agreement field is used to decrease or increase the customer maximum discount.
EX: If the company has a maximum discount of 25%, but the customer has a commercial agreement of 5%, then for this customer the salesperson can give up to 30% discount.
If it is necessary to decrease the customer maximum discount to 20%, -5 can be sent in the commercial agreement field.
(Customer Maximum Discount = Company Maximum Discount + Commercial Agreement)
44Preferred Carrier Code (codTransportadora)Text (30)No2.41Customer preferred Carrier Code. If this field is filled during order entry, the system will automatically select this carrier, but will still allow changes.
45Preferred Redispatch Carrier Code (codRedespacho)Text (30)No2.41Customer preferred Redispatch Carrier Code. If this field is filled during order entry, the system will automatically select this carrier, but will still allow changes.
46Date of Birth (dataNascimento)DateNo2.47
47Related segments (segmentosRelacionados)Text (500)No2.48Field to identify the segments that a given customer uses.
Ex: Motorcycle utilities, Bicycle utilities
48Regional Council of Dentistry Number (cro)Text (50)No3.5
49Customer maximum discount percentage (percentualDescontoMaximo)DecimalNo3.6Maximum discount percentage that the customer can receive on an order.
When filled, this field overrides any other discount rule.
50Freight Rate Table Code (codFaixaFrete)Text (30)No3.14Freight Rate table code used to calculate the suggested freight amount.
51Economic group code (codGrupoEconomico)Text (100)No3.20Defines which economic group the customer belongs to. It is necessary to integrate Table 35 - Economic Group.
52Additional price lists (listaPrecosAdicionais)Text (255)No3.20Additional price lists that the customer can access.
If the customer has a locked list, the additional lists will NOT appear as options to be chosen.
53Check-in radius (checkinRaio)Integer (10)No3.20Customer radius in meters, used for the Check-in Module.
54Check-in days (checkinDias)Integer (10)No3.20Number of days since last Check-in, used for the Check-in Module.
55Additional payment terms (condicoesAdicionais)Text (255)No3.28Additional payment terms that the customer can access.
If the customer has a locked payment term, the additional payment terms will NOT appear as options to be chosen.
56Integration note (observacaoIntegracao)Text (2000)No3.34When integrated, an eye icon is displayed in the customer record, and this note is shown when clicking it.
57Credit limit (limiteCredito)DecimalNo3.37Used to block orders for customers that exceed the credit limit. Also used for the Financial Collections Module.
58Contribution margin percentage (percMargemContribuicao)Decimal (8,2)No3.38Used for calculation in the Contribution Margin Module.
59Appointed Salespersons (VendedoresPrepostos)Text (500)No3.42These are salespersons/representatives managed directly by the salesperson/representative. Example: The representative of ABC Company hires a Salesperson to sell for them; this person will be an Appointed Salesperson under this Representative.
60Customer default hierarchy (codHierarquiaLiberacaoPedido)Text (255)No3.42
61Customer Type (codTipoCliente)Text (30)No4.18Code from table Customer Type.
62Sales Division (codDivisaoVenda)Text (30)No4.18Code from table Sales Division.
63Default order type (codTipoPedido)IntegerNo4.22

Defines the default order type for the customer. This order type will be automatically selected when starting a new order. When locked, changing the order type is not permitted, as shown in the examples below.

If bloqueiaTipoPedido = 1.
Only the defined order type is shown when creating an Order and cannot be changed.

If bloqueiaTipoPedido = 0 and has a defined order type.
It will then be loaded as default, but can be changed.

If bloqueiaTipoPedido = 0 and DOES NOT have a defined order type.
No order type will be loaded, but allows selecting another order type.

This field is not cleared when sent empty from ERP to Demander. To clear the field, send the code of an unregistered order type.

64Lock order type editing (bloqueiaTipoPedido)BooleanNo4.22

This field prevents the salesperson from changing the customer default order type when placing an order.

65Additional order types (tipoPedidoAdicionais)Text (255)No4.22Additional order types that the customer can access.
If the customer has a locked order type, the additional order types will NOT appear as available options.
66Unloading fee (valorDescarga)Decimal (10,5)No4.47

Unloading fee per kg of net weight of the Order.

Can be used in calculating Ancillary Expenses.

67Allows changing Ancillary Expense value
(permiteAlterarDespesaAcessoria)
BooleanNo4.51

Determines whether or not the salesperson can change the suggested amount for "Ancillary Expense" in orders for this customer.

68Requires purchase order
(exigeOrdemDeCompra)
BooleanNo4.55

Determines whether the "purchase order" field is required for this customer.

* Only takes effect when the "Order Type" also "requires purchase order";
* If the requirement of the "Purchase Order" field is "Hidden", this setting has no effect.

Registration Example:

18|3004007|23.596.536/0001-17||0|0|170895|0|4322509|2|VILMAR MACIEL DE MORAES 78145171091|AUTO DESIGN CENTRO AUTOMOTIVO | 991127156|macieldemorais@bol.com.br|||ALINE|EST DO MARMELEIRO, 35|MAUA|95214410|RS||1|0||||||0|0|||9695140|G||0|2020-08-11 08:19:23|0||||||0||||0|0|||