Table 280 - Order Fields Policy
This article presents the fields of the Order Fields Policy integration layout. To better understand the concept behind the Order Fields Policy, see our article on Order Fields Policy.
| Order | Field Description | Format and Size | Required | Version | Note |
|---|---|---|---|---|---|
| 1 | Table Identifier (IDENTIFICADOR) | FIXO=280 (3) | Yes | 4.25 | Fixed technical identifier of PoliticaCamposPedido. |
| 2 | Code (code) | Text (30) | Yes | 4.25 | Code of the policy in the context of the client. |
| 3 | Description (description) | Text | Yes | 4.25 | Description of the policy. |
| 4 | Active (active) | Integer (1) | Yes | 4.25 | 0 = inactive, 1 = active. |
| 5 | Priority (priority) | Integer (10) | Yes | 4.25 | Lower value indicates higher priority. |
| 6 | Seller Code (codVendedor) | Integer (10) | No | 4.25 | Context filter by seller. |
| 7 | Customer Code (codCliente) | Integer (10) | No | 4.25 | Context filter by customer. |
| 8 | Price List Code (codListaPreco) | Text (30) | No | 4.25 | Context filter by price list. |
| 9 | Order Type Code (codTipoPedido) | Integer (10) | No | 4.25 | Context filter by order type. |
| 10 | Payment Method Code (codFormaPagamento) | Text (30) | No | 4.25 | Context filter by payment method. |
| 11 | Payment Condition Code (codCondicaoPagamento) | Text (30) | No | 4.25 | Context filter by payment condition. |
| 12 | Shipping Type Code (codTipoFrete) | Text (30) | No | 4.25 | Context filter by type of shipping. |
| 13 | Discount Type Code (codTipoDesconto) | Text (30) | No | 4.25 | Context filter by type of discount. |
| 14 | Segment Code (codSegmento) | Text (30) | No | 4.25 | Context filter by segment. |
| 15 | Branch Code (codFilial) | Text (30) | No | 4.25 | Context filter by branch. |
| 16 | Transporter Code (codTransportadora) | Text (30) | No | 4.25 | Context filter by carrier. |
| 17 | Redespacho Code (codRedespacho) | Text (30) | No | 4.25 | Context filter by redispatch. |
| 18 | Code of the Sales Division (codDivisaoVendas) | Text (30) | No | 4.25 | Context filter by sales division. |
| 19 | Rule JSON (jsonRegras) | Text | Yes | 4.25 | JSON with dynamic rules for order fields.Consult Documentation |
Registration Example: 280|POLITICA_PADRAO|Politica para divisao de vendas|1|1|45|1234|||||||||||{“campos”:{“divisaoVendas”:{“obrigatoriedade”:“VISIVEL”,“filtro”:{“tipo”:“PERMITIR”,“valores”:[“1”,“2”,“3”]},“selecionado”:“2”}}}|