Skip to content
Light
English

Table 16 - Orders

  • This article introduces the order integration layout fields. To better understand the concept behind orders, see our article on Order Concept.
  • To carry out this integration, you must send the information along with Table 17 - Order Item
    • The items for each order will be sent in this table.
OrderField DescriptionFormat and SizeRequiredVersionNote
1Table Identifier (IDENTIFICADOR)FIXO=16 (2)Yes1.0
2Request Identifier (ID)Integer (10)No1.0Unique order identifier in the Demander.
3Order Number (code)Integer (10)Yes1.0Same as Order Number Order.
4Payment Method Code (codFormaPagamento)Text (20)No1.0
5Payment Condition Code (codCondicaoPagamento)Text (20)No1.0
6Order Status Code (codStatus)Integer (10)No1.0Send status code.
7Branch Code (codFilial)Text (15)
No1.0
8Client Code (codCliente)Integer (10)Yes1.0New clients come with code “0”.
9Customer’s CPF or CNPJ (cpfCNPJCliente)Text (20)Yes1.0With mask.
10Price List Code (codListaPreco)Text (20)Yes1.0
11Seller Code (codVendedor)Integer (10)Yes1.0
12Carrier Code (codPortador)Integer (10)No1.0Reserved for use future.
13Order Number (numPedido)Integer (10)Yes1.0
14Seller Sequence (sequencialVendedor)Integer (10)No1.0Reserved for future use.
15Purchase Order Number (numOrdemCompra)Text (50)No1.0
16Date and Time of Issuance (dataEmissao)DateTimeYes1.0
17Value Products (with unit increase or discount) (valorProdutosComDescAcres)Decimal (15.2)No1.0Sales Value of Products, already with the value of Increase or Discount Granted (Former field valorTotal).
18Value of Products (without increase or unit discount) (valorProdutosSemDescAcres)Decimal (15.2)No1.0Value of Products, without the value of the increase or Discount granted. Former field valorBruto.
19Quantity of Order Items (qtdeItens)Integer (10)No1.1
20Device Identifier (IMEI)Text (50)No1.0IMEI of the device on which the order was issued.
21Tax Operation Used in the Order (operacaoFiscal)Integer (10)No1.0Reserved for future use.
22Internal Observation (observation)Text (1000)No1.0Internal Company Observation, which does not appear for the Customer (Order PDF).
23Free Field 1 (Free Field 1)Text (45)No1.0Reserved for future use.
24Free Field 2 (Free Field Free 2)Text (45)No1.0Reserved for future use.
25Free Field 3 (Free Field 3)Text (45)No1.0Reserved for future use.
26Order Type Code (codTipoPedido)Integer (10)Yes1.0Code of records registered for the company in the ‘Types of Order’.
27Delivery Estimate (previsaoEntrega)DateTimeNo1.0
28Issuing Seller Code (codVendedorEmissor)Integer (10)No1.0Note: This field exports the code of the seller who placed the order. This field will be different from the codVendedor field in the following situation: The Sales Manager issues an order to a customer linked to a seller, codVendedorEmissor will be the manager of sales, and codVendedor will be the code of the seller linked to the customer.
It will only be mandatory if the company DOES NOT use the number range for orders per seller, which is located in the Company Settings > Sellers Tab
29Latitude (latitude)Text (50)No2.3
30Longitude (longitude)Text (50)No2.3
31Origin of Order (origemPedido)Integer (4)No2.81 - Order Issued on Demander (Android, iOS), 2 - Order Issued on ERP, 3 - B2B Store, 4 - Web Order, 5 - Integrated Store, 6 - Free market, 7 - Tray
32Shipping Value (valorFrete)Decimal (15.2)Yes2.11
33Total Order Value (valorTotalPedido)Decimal (15.2)Yes2.11Total Order Value (Product Value+Shipping Value+IPI+ICMS ST+Interest/Discount by Payment Method).
34Shipping Type (tipoFrete)Integer (2)No2.12.3

Shipping Type Code.

35Total IPI Value (valorIPI)Decimal (15.2)Yes2.13Total Value of IPI (Sum of IPI of each Item)
36Total Value of ICMS ST (valorICMS_ST)Decimal (15.2)Yes2.13Total Value of ICMS ST (Sum of ICMS ST Value)
37Canceled (cancelled)Integer (1)Yes2.171 - Order Cancelled; 0 - Order Not Canceled; (Cancelled orders are not recorded in the Sales/Goals/Commissions Reports, but continue to appear in Demander)
38Note to Customer (observacaoCliente)Text (1000)Yes2.20O What is entered in this field appears in the Order PDF Issue that is sent to the Customer.
39Discount Type (tipoDesconto)Text (2)Yes2.21“R$” for Discount entered in Value. “%” for Discount Informed in Percentage.
40Percentage Discount at Order Level (percentualDescontoDoPedido)Decimal (15.2)Yes2.21

This is the Discount value granted at the order level. Order, which was apportioned between the Items. The Discount stated directly on the Items is not included.

NOTE: In case of Addition, this information is negative. EX: -10 means 10% increase.

41Discount Value at Order Level (valorDescontoDoPedido)Decimal (15.2)Yes2.21This is the Discount value granted at the Order level, and that was apportioned between the Items. The Discount stated directly on the Items is not included
42Percentage of Discount/Interest of the Payment Condition (percJurosCondPag)Decimal (15.2)Yes2.24Percentage of Discount/Interest of the Payment Condition at the time of ordering.

NOTE: In case of Addition, this information is negative. EX: -10 means 10% increase.
43GPS capture information (provider)Text (50)No2.28Field that informs whether the geographic position was captured by GPS or the Internet, what will be sent or received is (network or gps)
44Commission Amount (valorTotalComissao)Decimal (18.2)No2.35Total order commission amount calculated by Demander.
45Code Carrier Code (codTransportadora)Text (15)No2.38Carrier Code, records in Table 29
46Re-dispatch Carrier Code (codRedespacho)Text (15)No2.41Re-dispatch carrier code, records in Table 29
47UniqueId enderecoEntrega (uniqueidEnderecoEntrega)Integer (100)No3.0Customer Delivery Address Code, Table Record 115
48Segment (codesegment)Integer (10)No3.0Segment code used in the order.
49idERP (idERP Delivery Address)No
50Used the discount table (usouTabelaDesconto)Integer (1)No3.0If the order used the discount table upon issuance
51Discount type code (codTipoDesconto)Text (255)No3.3Field referring to the discount type code used in the order. Type of discount is sent in Table 130 – Type of Discount
52Total value of the Additional fee (totalTaxaAdicional)Decimal (15.2)No3.3Total value of the additional fee that will be charged; This value must be equal to the sum of field 31 of the order items.
53Amount to be deducted from the commission calculation basis (valorAbaterBCComissao)Decimal (15.2)No3.4Referring to the sum of field 32 - valorAbaterBCComissao from Table 17 – ItemOrder
54Main order number (numPedidoOrigem)Integer (10)No3.5If an order is linked to another, this field serves to identify the main order that gave rise to this.
55DeprecatedNoThis field is deprecated in version 4.46 | Send EMPTY
56Unique Customer ID in Demander (CustomerId)IntegerNo3.5
57Gross Weight (pesoBruto)DecimalNo3.10Total gross order weight
58Net Weight (pesoLiquido)DecimalNo3.10Total net weight of order
59Cubbing (cubbing)DecimalNo3.10Total order cubing
60UniqueID billing address (uniqueIdEnderecoFaturamento)Text (100)No3.22
61UniqueID billing address (uniqueIdEnderecoCobranca)Text (100)No3.22
62Integration observations (observacaoIntegracao)TextNo3.24
63Contribution margin percentage (percMargemContribuicao)Decimal (8.2)No3.38
64Replacement cost of sale (custoReposicaoNaVenda)Decimal (8,2)No3.38
65Release status code (codStatusLiberacao)Integer (6)No3.380 - Blocked
1 - Released
2 - Rejected
66Reason why the request is blocked (motivoBloqueio)Text (255)No3.38
67Identifier of the user who released the order (idUsuarioAvaliou)Integer (10)No3.38
68Reason for releasing the order (motivoAvaliacao)TextNo3.38
69Highlighted discount amount (descontoDestacado)Decimal (15.2)No3.46

70Highlighted discount percentage (percDescontoDestacado)DecimalNo3.54Use fieldzed for export only. Currently the field is not imported from the ERP. The highlighted discount percentage is given by the proportion of the highlighted discount value (field 69) over the total value of the order (field 33).

NOTE: In case of Addition, this information is negative. EX: -10 means 10% increase.
71Percentage discount on discount (percDescontoSobreDesconto)DecimalNo3.54Field used to return the percentage of discount on discount entered by the user.

NOTE: In In the case of Addition, this information is negative. EX: -10 means 10% increase.
72Json of discount or increase (jsonDescontosAcrescimos)TextNoSee here the structureof the json sent in this field
73

Accessory Expenses Value

(valorDespesasAcessorias)

Decimal (15.2)No4.37Field used to include values related to expenses extras.
74

Order Number in the ERP (numPedidoERP)

Varchar (50)No4.45This field refers to the identifier (Code) that the Order has in the ERP, so that the order can be identified in the Demander from the code it has in the ERP.
75

ISO Currency Code

(codMoeda)

Varchar(3)No4.47

ISO Currency Code of this order.

Example:

BRL - REAL

USD - DOLLAR

76

Total Redispatch Value (valorTotalRedespacho)

Decimal (15.2)No4.49
77
Used for export only (codRota)
Integer (10)
No4.53This field is only exported to the ERP. Must be sent empty to Demander
78Sales Division
(codDivisaoVenda)
Varchar(30)
No5.15
Note: Items of each order must be exported immediately after the order is placed.

Registration Example:

16||00026147|2|28|7|1|127779|01.132.478/0030-72|26|89931||00026147|||2020-07-09 13:31:00|211.86|211.86|2|||EXC||||1||89931|||2|0|227.5|1|15.64|0|0| |R$|0|0|||0|0|124540|||1|0||0|0|0||0||