# Ecommerce transactions

Source: https://developer.avalara.com/goods-calculation-en/tof7422488793882/

# Ecommerce transactions

This section provides all mandatory ecommerce transactions to obtain the goods calculations badge. Since the ecommerce platforms are focused only on sales, the only transactions required for this certification are related to this transaction type.

Below you will find the minimum transactions required, but the scenarios can expand according to the particularities and characteristics of each business.

Tip

The "taxCode" attribute may be necessary to resolve an ambiguity, as explained in the Calculation Rules section, according to the chosen NCM code and the applicability of Brazilian legislation.

## Interstate sale for non-ICMS taxpayer (final consumer)

State From

GO

State To

ES

hsCode

4901.10.00

## Payload request

**View example**

```
 {
     "header": {
          "transactionDate": "2020-10-06",
          "amountCalcType": "gross",
          "documentCode": "INTEROUT001",
          "messageType": "goods",
          "eDocCreatorType": "self",
          "eDocCreatorPerspective": true,
          "companyLocation": "",
          "operationType": "",
          "locations": {
               "establishment": {
                    "activitySector": {
                         "type": "activityLine",
                         "code": "industry"
                    },
                    "taxesSettings": {
                         "icmsTaxPayer": true
                    },
                    "taxRegime": "realProfit",
                    "entityType": "business",
                    "address": {
                         "zipcode": "74055160"
                    },
                    "type": "business",
                    "federalTaxId": "999999999"
               },
               "entity": {
                    "activitySector": {
                         "type": "activityLine",
                         "code": "finalConsumer"
                    },
                    "taxesSettings": {
                         "icmsTaxPayer": false
                    },
                    "taxRegime": "individual",
                    "entityType": "individual",
                    "stateTaxId": "",
                    "address": {
                         "zipcode": "29024047"
                    },
                    "type": "individual",
                    "federalTaxId": "999999999"
               }
          }
     },
     "lines": [
          {
               "lineCode": 0,
               "operationType": "standardSales",
               "lineAmount": 100,
               "itemCode": 0,
               "useType": "use or consumption",
               "numberOfItems": 1,
               "otherCostAmount": 0,
               "freightAmount": 0,
               "insuranceAmount": 0,
               "lineTaxedDiscount": 0,
               "unitAmount": 100,
               "subjectToIPIonInbound": false,
               "itemDescriptor": {
                    "taxCode": "",
                    "hsCode": "4901.10.00",
                    "isIcmsStSubstitute": false,
                    "source": "0",
                    "productType": "FOR PRODUCT",
                    "manufacturerEquivalent": false,
                    "unitIPIfactor": 1,
                    "unitIcmsfactor": 1,
                    "unitIcmsStfactor": 1,
                    "unitPisCofinsfactor": 1,
                    "comexTaxUnitFactor": 1
               },
               "customProperties": [],
               "goods": {
               }
          }
     ]
} 
```

## Payload response

**View example**

```
 {
                    "header": {
                       "transactionDate": "2020-10-06",
                       "amountCalcType": "gross",
                       "documentCode": "INTEROUT001",
                       "messageType": "goods",
                       "eDocCreatorType": "self",
                       "eDocCreatorPerspective": true,
                       "companyLocation": "",
                       "operationType": "",
                       "locations": {
                           "establishment": {
                               "activitySector": {
                                   "type": "activityLine",
                                   "code": "industry"
                               },
                               "taxesSettings": {
                                   "icmsTaxPayer": true,
                                   "enableCprb": false,
                                   "usesInssCprbToGrossValue": false,
                                   "pisCofinsIcmsTaxRelief": false
                               },
                               "taxRegime": "realProfit",
                               "entityType": "business",
                               "address": {
                                   "zipcode": "74055160",
                                   "cityCode": 5208707,
                                   "countryCode": "0",
                                   "country": "BRA",
                                   "state": "GO",
                                   "cityName": "Goiânia"
                               },
                               "type": "business",
                               "federalTaxId": "999999999"
                           },
                           "entity": {
                               "activitySector": {
                                   "type": "activityLine",
                                   "code": "finalConsumer"
                               },
                               "taxesSettings": {
                                   "icmsTaxPayer": false,
                                   "enableCprb": false,
                                   "usesInssCprbToGrossValue": false,
                                   "pisCofinsIcmsTaxRelief": false
                               },
                               "taxRegime": "individual",
                               "entityType": "individual",
                               "stateTaxId": "",
                               "address": {
                                   "zipcode": "29024047",
                                   "cityCode": 3205309,
                                   "countryCode": "0",
                                   "country": "BRA",
                                   "state": "ES",
                                   "cityName": "Vitória"
                               },
                               "type": "individual",
                               "federalTaxId": "999999999"
                           }
                       },
                       "accountId": "",
                       "subscriptionId": "",
                       "goods": {
                           "class": "VENDA PRODUTO À NAO CONTRIBUINTE DE ICMS",
                           "tpImp": "1"
                       },
                       "additionalInfo": {
                           "complementaryInfo": "Trib aprox R$ 4,20 Federal e R$ 17,00 Estadual Fonte: IBPT\nValor total do ICMS relativo ao Fundo de Combate à Pobreza (FCP) para a UF de destino: R$ 0,00\nValor total do ICMS de partilha para a UF do destinatário: R$ 5,00\nValor total do ICMS de partilha para a UF do remetente: R$ 0,00\nIPI não tributado conforme: \"Decreto nº 8.950/2016\"\nPIS/COFINS com alíquota zero conforme: \"Lei nº 10.865/2004, Artigo 28, Inciso VI, incluído pela Lei nº 11.033/2004\"\nICMS/GO_Decreto nº 4.852/1997, Artigo 20, Inciso II"
                       }
                    },
                    "lines": [
                       {
                           "id": 1602011158411,
                           "lineCode": 0,
                           "operationType": "standardSales",
                           "lineAmount": 100,
                           "itemCode": "0",
                           "useType": "use or consumption",
                           "numberOfItems": 1,
                           "otherCostAmount": 0,
                           "freightAmount": 0,
                           "insuranceAmount": 0,
                           "lineTaxedDiscount": 0,
                           "unitAmount": 100,
                           "subjectToIPIonInbound": false,
                           "itemDescriptor": {
                               "taxCode": "",
                               "hsCode": "4901.10.00",
                               "isIcmsStSubstitute": false,
                               "source": "0",
                               "productType": "FOR PRODUCT",
                               "manufacturerEquivalent": false,
                               "unitIPIfactor": 1,
                               "unitIcmsfactor": 1,
                               "unitIcmsStfactor": 1,
                               "unitPisCofinsfactor": 1,
                               "comexTaxUnitFactor": 1,
                               "description": "0"
                           },
                           "customProperties": [],
                           "goods": {
                               "indTotType": true,
                               "entityIcmsStSubstitute": "no",
                               "subjectToIPIonInbound": false
                           },
                           "overwrite": "no",
                           "warnings": [
                               {
                                   "id": "83714234-6adb-4997-84be-2cc8f9ec5e87",
                                   "code": "WC003",
                                   "citation": "Subject to PIS Benefits: \"PIS_Constituição Federal de 1988, Artigo 150, Inciso VI, Alínea d\"",
                                   "description": "Sem prejuízo de outras garantias asseguradas ao contribuinte, é vedado à União, aos Estados, ao Distrito Federal e aos Municípios instituir impostos sobre livros, jornais, periódicos e o papel destinado a sua impressão",
                                   "isCustomCitation": false
                               },
                               {
                                   "id": "c0291665-0cfe-4dfc-9795-f85bf67ea9d3",
                                   "code": "WC003",
                                   "citation": "Subject to COFINS Benefits: \"COFINS_Constituição Federal de 1988, Artigo 150, Inciso VI, Alínea d\"",
                                   "description": "Sem prejuízo de outras garantias asseguradas ao contribuinte, é vedado à União, aos Estados, ao Distrito Federal e aos Municípios instituir impostos sobre livros, jornais, periódicos e o papel destinado a sua impressão",
                                   "isCustomCitation": false
                               },
                               {
                                   "id": "07221f04-b4cb-47cc-a442-6e2b2eaaffdd",
                                   "code": "WC001",
                                   "citation": "Subject to ICMS Benefits: \"ICMS/GO_Decreto nº 4.852/1997, Artigo 79, Inciso I, Alínea d\"",
                                   "description": "O imposto não incide sobre_a operação_com livro, jornal e periódico e o papel destinado a sua impressão.",
                                   "isCustomCitation": false
                               },
                               {
                                   "id": "a0deec50-5217-4654-9ddd-7f3864e90ca6",
                                   "code": "WC001",
                                   "citation": "Subject to ICMS_Inter Benefits: \"ICMS/GO_Decreto nº 4.852/1997, Artigo 79, Inciso I, Alínea d\"",
                                   "description": "O imposto não incide sobre_a operação_com livro, jornal e periódico e o papel destinado a sua impressão.",
                                   "isCustomCitation": false
                               },
                               {
                                   "id": "41b0d811-11d9-4b11-b744-cb5927ebf9d9",
                                   "code": "WC001",
                                   "citation": "Subject to ICMS Benefits: \"ICMS/ES_Decreto nº 1.090-R/2002, Artigo 4º, Inciso I\"",
                                   "description": "Para aplicação do citado benefício fiscal é necessário observar as condições determinadas pelo RICMS/ES, Artigo 4 e seus parágrafos.",
                                   "isCustomCitation": false
                               }
                           ],
                           "lineUnitPrice": 100,
                           "taxDetails": [
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Informative",
                                       "impactOnNetAmount": "Informative",
                                       "accounting": "none"
                                   },
                                   "taxType": "aproxtribFed",
                                   "citation": "Trib aprox R$ 4,20 Federal e R$ 17,00 Estadual Fonte: IBPT",
                                   "subtotalTaxable": 100,
                                   "rate": 4.2,
                                   "tax": 4.2,
                                   "exemptionCode": "",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Informative",
                                       "impactOnNetAmount": "Informative",
                                       "accounting": "none"
                                   },
                                   "taxType": "aproxtribState",
                                   "subtotalTaxable": 100,
                                   "rate": 17,
                                   "tax": 17,
                                   "exemptionCode": ""
                               },
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "none"
                                   },
                                   "taxType": "cofins",
                                   "citation": "PIS/COFINS com alíquota zero conforme: \"Lei nº 10.865/2004, Artigo 28, Inciso VI, incluído pela Lei nº 11.033/2004\"",
                                   "citationId": "1f0f4a6e-4e31-41b5-9d6a-14f36bf00b34",
                                   "subtotalTaxable": 100,
                                   "rate": 0,
                                   "tax": 0,
                                   "exemptionCode": "",
                                   "cst": "06",
                                   "calcMode": "rate",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Goiás",
                                   "jurisdictionType": "State",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "liability"
                                   },
                                   "taxType": "icms",
                                   "citation": "ICMS/GO_Decreto nº 4.852/1997, Artigo 20, Inciso II",
                                   "citationId": "533eab98-1224-401b-89dc-e7abfb7b96ed",
                                   "subtotalTaxable": 100,
                                   "rate": 12,
                                   "tax": 12,
                                   "exemptionCode": "",
                                   "source": "0",
                                   "cst": "00",
                                   "modBC": "3",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Espírito Santo",
                                   "jurisdictionType": "State",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "liability"
                                   },
                                   "taxType": "icmsDifaDest",
                                   "citation": "Valor total do ICMS relativo ao Fundo de Combate à Pobreza (FCP) para a UF de destino: R$ 0,00\nValor total do ICMS de partilha para a UF do destinatário: R$ 5,00\nValor total do ICMS de partilha para a UF do remetente: R$ 0,00",
                                   "subtotalTaxable": 100,
                                   "rate": 17,
                                   "tax": 5,
                                   "exemptionCode": "",
                                   "icmsInterPartRate": 100,
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Goiás",
                                   "jurisdictionType": "State",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "liability"
                                   },
                                   "taxType": "icmsDifaRemet",
                                   "citation": "Valor total do ICMS relativo ao Fundo de Combate à Pobreza (FCP) para a UF de destino: R$ 0,00\nValor total do ICMS de partilha para a UF do destinatário: R$ 5,00\nValor total do ICMS de partilha para a UF do remetente: R$ 0,00",
                                   "subtotalTaxable": 100,
                                   "rate": 12,
                                   "tax": 0,
                                   "exemptionCode": "",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Informative",
                                       "impactOnNetAmount": "Informative",
                                       "accounting": "none"
                                   },
                                   "taxType": "ipi",
                                   "citation": "IPI não tributado conforme: \"Decreto nº 8.950/2016\"",
                                   "citationId": "7e086799-cb88-499f-bd53-7a10cb02442b",
                                   "subtotalTaxable": 100,
                                   "rate": 0,
                                   "tax": 0,
                                   "exemptionCode": "",
                                   "cst": "53",
                                   "legalTaxClass": 999,
                                   "calcMode": "rate",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "none"
                                   },
                                   "taxType": "pis",
                                   "citation": "PIS/COFINS com alíquota zero conforme: \"Lei nº 10.865/2004, Artigo 28, Inciso VI, incluído pela Lei nº 11.033/2004\"",
                                   "citationId": "85119944-8343-471d-b952-d49f77cb4277",
                                   "subtotalTaxable": 100,
                                   "rate": 0,
                                   "tax": 0,
                                   "exemptionCode": "",
                                   "cst": "06",
                                   "calcMode": "rate",
                                   "isCustomCitation": false
                               }
                           ],
                           "cfop": 6107,
                           "lineAdditionalInfo": "",
                           "lineNetFigure": 83
                       }
                    ],
                    "version": "3",
                    "processingInfo": {
                       "versionId": "21.3.5-rc.1",
                       "duration": "6.113"
                    },
                    "summary": {
                       "numberOfLines": 1,
                       "totalLineAmounts": 100,
                       "totalTaxedDiscounts": 0,
                       "totalUntaxedDiscounts": 0,
                       "totalInsurances": 0,
                       "totalFreights": 0,
                       "totalOtherCosts": 0,
                       "totalUnTaxedOtherCosts": 0,
                       "totalInvoice": 100,
                       "taxByType": {
                           "aproxtribFed": {
                               "tax": 4.2,
                               "subtotalTaxable": 100,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 4.2
                                   }
                               ]
                           },
                           "aproxtribState": {
                               "tax": 17,
                               "subtotalTaxable": 100,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 17
                                   }
                               ]
                           },
                           "cofins": {
                               "tax": 0,
                               "subtotalTaxable": 100,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 0
                                   }
                               ]
                           },
                           "icms": {
                               "tax": 12,
                               "subtotalTaxable": 100,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Goiás",
                                       "jurisdictionType": "State",
                                       "tax": 12
                                   }
                               ]
                           },
                           "icmsDifaDest": {
                               "tax": 5,
                               "subtotalTaxable": 100,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Espírito Santo",
                                       "jurisdictionType": "State",
                                       "tax": 5
                                   }
                               ]
                           },
                           "icmsDifaRemet": {
                               "tax": 0,
                               "subtotalTaxable": 100,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Goiás",
                                       "jurisdictionType": "State",
                                       "tax": 0
                                   }
                               ]
                           },
                           "ipi": {
                               "tax": 0,
                               "subtotalTaxable": 100,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 0
                                   }
                               ]
                           },
                           "pis": {
                               "tax": 0,
                               "subtotalTaxable": 100,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 0
                                   }
                               ]
                           }
                       }
                    },
                    "input": {
                       "header": {
                           "transactionDate": "2020-10-06",
                           "amountCalcType": "gross",
                           "documentCode": "INTEROUT001",
                           "messageType": "goods",
                           "eDocCreatorType": "self",
                           "eDocCreatorPerspective": true,
                           "companyLocation": "",
                           "operationType": "",
                           "locations": {
                               "establishment": {
                                   "activitySector": {
                                       "type": "activityLine",
                                       "code": "industry"
                                   },
                                   "taxesSettings": {
                                       "icmsTaxPayer": true,
                                       "enableCprb": false,
                                       "usesInssCprbToGrossValue": false,
                                       "pisCofinsIcmsTaxRelief": false
                                   },
                                   "taxRegime": "realProfit",
                                   "entityType": "business",
                                   "address": {
                                       "zipcode": "74055160",
                                       "cityCode": 5208707,
                                       "countryCode": "0",
                                       "country": "BRA",
                                       "state": "GO",
                                       "cityName": "Goiânia"
                                   },
                                   "type": "business",
                                   "federalTaxId": "999999999"
                               },
                               "entity": {
                                   "activitySector": {
                                       "type": "activityLine",
                                       "code": "finalConsumer"
                                   },
                                   "taxesSettings": {
                                       "icmsTaxPayer": false,
                                       "enableCprb": false,
                                       "usesInssCprbToGrossValue": false,
                                       "pisCofinsIcmsTaxRelief": false
                                   },
                                   "taxRegime": "individual",
                                   "entityType": "individual",
                                   "stateTaxId": "",
                                   "address": {
                                       "zipcode": "29024047",
                                       "cityCode": 3205309,
                                       "countryCode": "0",
                                       "country": "BRA",
                                       "state": "ES",
                                       "cityName": "Vitória"
                                   },
                                   "type": "individual",
                                   "federalTaxId": "999999999"
                               }
                           },
                           "accountId": "",
                           "subscriptionId": "",
                           "goods": {}
                       },
                       "lines": [
                           {
                               "id": 1602011158411,
                               "lineCode": 0,
                               "operationType": "standardSales",
                               "lineAmount": 100,
                               "itemCode": "0",
                               "useType": "use or consumption",
                               "numberOfItems": 1,
                               "otherCostAmount": 0,
                               "freightAmount": 0,
                               "insuranceAmount": 0,
                               "lineTaxedDiscount": 0,
                               "unitAmount": 100,
                               "subjectToIPIonInbound": false,
                               "itemDescriptor": {
                                   "taxCode": "",
                                   "hsCode": "4901.10.00",
                                   "isIcmsStSubstitute": false,
                                   "source": "0",
                                   "productType": "FOR PRODUCT",
                                   "manufacturerEquivalent": false,
                                   "unitIPIfactor": 1,
                                   "unitIcmsfactor": 1,
                                   "unitIcmsStfactor": 1,
                                   "unitPisCofinsfactor": 1,
                                   "comexTaxUnitFactor": 1
                               },
                               "customProperties": [],
                               "goods": {
                                   "indTotType": true,
                                   "entityIcmsStSubstitute": "default"
                               },
                               "overwrite": "no",
                               "warnings": [
                                   {
                                       "id": "83714234-6adb-4997-84be-2cc8f9ec5e87",
                                       "code": "WC003",
                                       "citation": "Subject to PIS Benefits: \"PIS_Constituição Federal de 1988, Artigo 150, Inciso VI, Alínea d\"",
                                       "description": "Sem prejuízo de outras garantias asseguradas ao contribuinte, é vedado à União, aos Estados, ao Distrito Federal e aos Municípios instituir impostos sobre livros, jornais, periódicos e o papel destinado a sua impressão",
                                       "isCustomCitation": false
                                   },
                                   {
                                       "id": "c0291665-0cfe-4dfc-9795-f85bf67ea9d3",
                                       "code": "WC003",
                                       "citation": "Subject to COFINS Benefits: \"COFINS_Constituição Federal de 1988, Artigo 150, Inciso VI, Alínea d\"",
                                       "description": "Sem prejuízo de outras garantias asseguradas ao contribuinte, é vedado à União, aos Estados, ao Distrito Federal e aos Municípios instituir impostos sobre livros, jornais, periódicos e o papel destinado a sua impressão",
                                       "isCustomCitation": false
                                   },
                                   {
                                       "id": "07221f04-b4cb-47cc-a442-6e2b2eaaffdd",
                                       "code": "WC001",
                                       "citation": "Subject to ICMS Benefits: \"ICMS/GO_Decreto nº 4.852/1997, Artigo 79, Inciso I, Alínea d\"",
                                       "description": "O imposto não incide sobre_a operação_com livro, jornal e periódico e o papel destinado a sua impressão.",
                                       "isCustomCitation": false
                                   },
                                   {
                                       "id": "a0deec50-5217-4654-9ddd-7f3864e90ca6",
                                       "code": "WC001",
                                       "citation": "Subject to ICMS_Inter Benefits: \"ICMS/GO_Decreto nº 4.852/1997, Artigo 79, Inciso I, Alínea d\"",
                                       "description": "O imposto não incide sobre_a operação_com livro, jornal e periódico e o papel destinado a sua impressão.",
                                       "isCustomCitation": false
                                   },
                                   {
                                       "id": "41b0d811-11d9-4b11-b744-cb5927ebf9d9",
                                       "code": "WC001",
                                       "citation": "Subject to ICMS Benefits: \"ICMS/ES_Decreto nº 1.090-R/2002, Artigo 4º, Inciso I\"",
                                       "description": "Para aplicação do citado benefício fiscal é necessário observar as condições determinadas pelo RICMS/ES, Artigo 4 e seus parágrafos.",
                                       "isCustomCitation": false
                                   }
                               ]
                           }
                       ],
                       "version": "3"
                    }
                    } 
```

## Interstate sale for ICMS taxpayer

State From

SP

State To

SP

hsCode

6109.10.00

cest

28.059.00

taxCode

Jeans059

## Payload request

**View example**

```
 {
                    "header": {
                       "transactionDate": "2021-02-14",
                       "amountCalcType": "gross",
                       "documentCode": "CASO4",
                       "messageType": "goods",
                       "eDocCreatorType": "self",
                       "eDocCreatorPerspective": true,
                       "companyLocation": "123456",
                       "operationType": "",
                       "locations": {
                           "establishment": {
                               "activitySector": {
                                   "type": "activityLine",
                                   "code": "industry"
                               },
                               "taxesSettings": {
                                   "icmsTaxPayer": true
                               },
                               "taxRegime": "estimatedProfit",
                               "type": "business",
                               "address": {
                                   "zipcode": "04710010"
                               },
                               "federalTaxId": "999999999"
                           },
                           "entity": {
                               "activitySector": {
                                   "type": "activityLine",
                                   "code": "retail"
                               },
                               "taxesSettings": {
                                   "icmsTaxPayer": true
                               },
                               "taxRegime": "realProfit",
                               "type": "business",
                               "address": {
                                   "zipcode": "29024047"
                               },
                               "federalTaxId": "999999999"
                           }
                       },
                       "accountId": "",
                       "subscriptionId": ""
                    },
                    "lines": [
                       {
                           "lineCode": "1",
                           "operationType": "standardSales",
                           "itemCode": "Item0",
                           "useType": "resale",
                           "usagePurpose": "",
                           "numberOfItems": "1000",
                           "orderNumber": "12",
                           "orderItemNumber": "31",
                           "lineUnitPrice": "100",
                           "itemDescriptor": {
                               "hsCode": "61091000",
                               "taxCode": "Jeans059",
                               "cest": "28.059.00",
                               "isIcmsStSubstitute": false,
                               "source": "0",
                               "productType": "FOR PRODUCT",
                               "manufacturerEquivalent": false,
                               "unitIPIfactor": 1,
                               "unitIcmsfactor": 1,
                               "unitIcmsStfactor": 1,
                               "unitPisCofinsfactor": 1,
                               "comexTaxUnitFactor": 1
                           },
                           "id": 1597423940072,
                           "customProperties": [],
                           "goods": {
                           }
                       }
                    ],
                    "version": "3"
                    } 
```

## Payload response

**View example**

```
 {
                    "header": {
                       "transactionDate": "2021-02-14",
                       "amountCalcType": "gross",
                       "documentCode": "CASO4",
                       "messageType": "goods",
                       "eDocCreatorType": "self",
                       "eDocCreatorPerspective": true,
                       "companyLocation": "123456",
                       "operationType": "",
                       "locations": {
                           "establishment": {
                               "activitySector": {
                                   "type": "activityLine",
                                   "code": "industry"
                               },
                               "taxesSettings": {
                                   "icmsTaxPayer": true,
                                   "enableCprb": false,
                                   "usesInssCprbToGrossValue": false,
                                   "pisCofinsIcmsTaxRelief": false
                               },
                               "taxRegime": "estimatedProfit",
                               "type": "business",
                               "address": {
                                   "zipcode": "04710010",
                                   "cityCode": 3550308,
                                   "countryCode": "0",
                                   "country": "BRA",
                                   "state": "SP",
                                   "cityName": "São Paulo"
                               },
                               "federalTaxId": "999999999"
                           },
                           "entity": {
                               "activitySector": {
                                   "type": "activityLine",
                                   "code": "retail"
                               },
                               "taxesSettings": {
                                   "icmsTaxPayer": true,
                                   "enableCprb": false,
                                   "usesInssCprbToGrossValue": false,
                                   "pisCofinsIcmsTaxRelief": false
                               },
                               "taxRegime": "realProfit",
                               "type": "business",
                               "address": {
                                   "zipcode": "29024047",
                                   "cityCode": 3205309,
                                   "countryCode": "0",
                                   "country": "BRA",
                                   "state": "ES",
                                   "cityName": "Vitória"
                               },
                               "federalTaxId": "999999999"
                           }
                       },
                       "accountId": "",
                       "subscriptionId": "",
                       "goods": {
                           "class": "VENDA DE MERCADORIAS",
                           "tpImp": "1"
                       },
                       "additionalInfo": {
                           "complementaryInfo": "IPI com alíquota zero conforme: \"Decreto nº 8950/2016\"\nPIS/COFINS Lei nº 9.715/1998, Artigo 8º, inciso I\nPIS/COFINS Lei nº 9.718/1998, Artigo 8º\nICMS/SP_Decreto nº 45.490/2000, Artigo 52, Inciso II\nItem sujeito à subs. trib. conforme: \"ST/ES_Portaria SEFAZ nº 16-R/2019, Anexo Único, Item IX\""
                       }
                    },
                    "lines": [
                       {
                           "lineCode": 1,
                           "operationType": "standardSales",
                           "itemCode": "Item0",
                           "useType": "resale",
                           "usagePurpose": "",
                           "numberOfItems": 1000,
                           "orderNumber": "12",
                           "orderItemNumber": "31",
                           "lineUnitPrice": 100,
                           "itemDescriptor": {
                               "hsCode": "61091000",
                               "taxCode": "Jeans059",
                               "cest": "28.059.00",
                               "isIcmsStSubstitute": false,
                               "source": "0",
                               "productType": "FOR PRODUCT",
                               "manufacturerEquivalent": false,
                               "unitIPIfactor": 1,
                               "unitIcmsfactor": 1,
                               "unitIcmsStfactor": 1,
                               "unitPisCofinsfactor": 1,
                               "comexTaxUnitFactor": 1,
                               "description": "Item0"
                           },
                           "id": 1597423940072,
                           "customProperties": [],
                           "goods": {
                               "indTotType": true,
                               "entityIcmsStSubstitute": "no",
                               "subjectToIPIonInbound": false
                           },
                           "overwrite": "no",
                           "warnings": [
                               {
                                   "id": "24b59ed0-9255-11eb-b688-038e793b71a9",
                                   "code": "WC002",
                                   "citation": "Subject to ICMS_Reduction Benefits: \"ICMS/SP_Decreto nº 45.490/2000, Anexo II, Artigo 52\"",
                                   "description": "Para aplicação do citado benefício fiscal é necessário observar as condições determinadas pelo Artigo 51 e Anexo II, Artigo 52, RICMS/SP.",
                                   "isCustomCitation": false
                               }
                           ],
                           "lineAmount": 100000,
                           "taxDetails": [
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "liability"
                                   },
                                   "taxType": "cofins",
                                   "citation": "PIS/COFINS Lei nº 9.718/1998, Artigo 8º",
                                   "citationId": "75a83922-7fb8-4f4e-8a0a-45426fd9249d",
                                   "subtotalTaxable": 100000,
                                   "rate": 3,
                                   "tax": 3000,
                                   "exemptionCode": "",
                                   "cst": "01",
                                   "calcMode": "rate",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "São Paulo",
                                   "jurisdictionType": "State",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "liability"
                                   },
                                   "taxType": "icms",
                                   "citation": "ICMS/SP_Decreto nº 45.490/2000, Artigo 52, Inciso II",
                                   "citationId": "669c8036-82af-4cf8-8c8f-fd5a9e65017b",
                                   "subtotalTaxable": 100000,
                                   "rate": 7,
                                   "tax": 7000,
                                   "exemptionCode": "",
                                   "source": "0",
                                   "cst": "10",
                                   "modBC": "3",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Espírito Santo",
                                   "jurisdictionType": "State",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Add",
                                       "impactOnNetAmount": "Add",
                                       "accounting": "liability"
                                   },
                                   "taxType": "icmsSt",
                                   "citation": "Item sujeito à subs. trib. conforme: \"ST/ES_Portaria SEFAZ nº 16-R/2019, Anexo Único, Item IX\"",
                                   "citationId": "dfcf6607-a371-4162-8369-1ca597e91a2b",
                                   "subtotalTaxable": 135000,
                                   "rate": 17,
                                   "tax": 15950,
                                   "exemptionCode": "",
                                   "source": "0",
                                   "cst": "10",
                                   "modBC": "4",
                                   "pMVA": 35,
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Add",
                                       "impactOnNetAmount": "Add",
                                       "accounting": "none"
                                   },
                                   "taxType": "ipi",
                                   "citation": "IPI com alíquota zero conforme: \"Decreto nº 8950/2016\"",
                                   "citationId": "18384774-ed65-4180-8f05-e822b155d99c",
                                   "subtotalTaxable": 100000,
                                   "rate": 0,
                                   "tax": 0,
                                   "exemptionCode": "",
                                   "cst": "51",
                                   "legalTaxClass": 999,
                                   "calcMode": "rate",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "liability"
                                   },
                                   "taxType": "pis",
                                   "citation": "PIS/COFINS Lei nº 9.715/1998, Artigo 8º, inciso I",
                                   "citationId": "fbc9dd41-6f48-4b7e-8d4f-13ad3f168e26",
                                   "subtotalTaxable": 100000,
                                   "rate": 0.65,
                                   "tax": 650,
                                   "exemptionCode": "",
                                   "cst": "01",
                                   "calcMode": "rate",
                                   "isCustomCitation": false
                               }
                           ],
                           "cfop": 6401,
                           "lineAdditionalInfo": "",
                           "lineNetFigure": 89350
                       }
                    ],
                    "version": "3",
                    "processingInfo": {
                       "versionId": "21.3.5-rc.1",
                       "duration": "3.487"
                    },
                    "summary": {
                       "numberOfLines": 1,
                       "totalLineAmounts": 100000,
                       "totalTaxedDiscounts": 0,
                       "totalUntaxedDiscounts": 0,
                       "totalInsurances": 0,
                       "totalFreights": 0,
                       "totalOtherCosts": 0,
                       "totalUnTaxedOtherCosts": 0,
                       "totalInvoice": 115950,
                       "taxByType": {
                           "cofins": {
                               "tax": 3000,
                               "subtotalTaxable": 100000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 3000
                                   }
                               ]
                           },
                           "icms": {
                               "tax": 7000,
                               "subtotalTaxable": 100000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "São Paulo",
                                       "jurisdictionType": "State",
                                       "tax": 7000
                                   }
                               ]
                           },
                           "icmsSt": {
                               "tax": 15950,
                               "subtotalTaxable": 135000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Espírito Santo",
                                       "jurisdictionType": "State",
                                       "tax": 15950
                                   }
                               ]
                           },
                           "ipi": {
                               "tax": 0,
                               "subtotalTaxable": 100000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 0
                                   }
                               ]
                           },
                           "pis": {
                               "tax": 650,
                               "subtotalTaxable": 100000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 650
                                   }
                               ]
                           }
                       }
                    },
                    "input": {
                       "header": {
                           "transactionDate": "2021-02-14",
                           "amountCalcType": "gross",
                           "documentCode": "CASO4",
                           "messageType": "goods",
                           "eDocCreatorType": "self",
                           "eDocCreatorPerspective": true,
                           "companyLocation": "123456",
                           "operationType": "",
                           "locations": {
                               "establishment": {
                                   "activitySector": {
                                       "type": "activityLine",
                                       "code": "industry"
                                   },
                                   "taxesSettings": {
                                       "icmsTaxPayer": true,
                                       "enableCprb": false,
                                       "usesInssCprbToGrossValue": false,
                                       "pisCofinsIcmsTaxRelief": false
                                   },
                                   "taxRegime": "estimatedProfit",
                                   "type": "business",
                                   "address": {
                                       "zipcode": "04710010",
                                       "cityCode": 3550308,
                                       "countryCode": "0",
                                       "country": "BRA",
                                       "state": "SP",
                                       "cityName": "São Paulo"
                                   },
                                   "federalTaxId": "999999999"
                               },
                               "entity": {
                                   "activitySector": {
                                       "type": "activityLine",
                                       "code": "retail"
                                   },
                                   "taxesSettings": {
                                       "icmsTaxPayer": true,
                                       "enableCprb": false,
                                       "usesInssCprbToGrossValue": false,
                                       "pisCofinsIcmsTaxRelief": false
                                   },
                                   "taxRegime": "realProfit",
                                   "type": "business",
                                   "address": {
                                       "zipcode": "29024047",
                                       "cityCode": 3205309,
                                       "countryCode": "0",
                                       "country": "BRA",
                                       "state": "ES",
                                       "cityName": "Vitória"
                                   },
                                   "federalTaxId": "999999999"
                               }
                           },
                           "accountId": "bdf71245-1288-4883-95a5-3a7530ea31af",
                           "subscriptionId": "9fe9c37a-1da8-4b8e-9d1b-21207b21e9f9",
                           "goods": {}
                       },
                       "lines": [
                           {
                               "lineCode": 1,
                               "operationType": "standardSales",
                               "itemCode": "Item0",
                               "useType": "resale",
                               "usagePurpose": "",
                               "numberOfItems": 1000,
                               "orderNumber": "12",
                               "orderItemNumber": "31",
                               "lineUnitPrice": 100,
                               "itemDescriptor": {
                                   "hsCode": "61091000",
                                   "taxCode": "Jeans059",
                                   "cest": "28.059.00",
                                   "isIcmsStSubstitute": false,
                                   "source": "0",
                                   "productType": "FOR PRODUCT",
                                   "manufacturerEquivalent": false,
                                   "unitIPIfactor": 1,
                                   "unitIcmsfactor": 1,
                                   "unitIcmsStfactor": 1,
                                   "unitPisCofinsfactor": 1,
                                   "comexTaxUnitFactor": 1
                               },
                               "id": 1597423940072,
                               "customProperties": [],
                               "goods": {
                                   "indTotType": true,
                                   "entityIcmsStSubstitute": "default"
                               },
                               "overwrite": "no",
                               "warnings": [
                                   {
                                       "id": "24b59ed0-9255-11eb-b688-038e793b71a9",
                                       "code": "WC002",
                                       "citation": "Subject to ICMS_Reduction Benefits: \"ICMS/SP_Decreto nº 45.490/2000, Anexo II, Artigo 52\"",
                                       "description": "Para aplicação do citado benefício fiscal é necessário observar as condições determinadas pelo Artigo 51 e Anexo II, Artigo 52, RICMS/SP.",
                                       "isCustomCitation": false
                                   }
                               ]
                           }
                       ],
                       "version": "3"
                    }
                    } 
```

## Sale within the state

State From

SP

State To

SP

hsCode

61091000

## Payload request

**View example**

```
 {
                    "header": {
                         "transactionDate": "2021-10-08",
                         "amountCalcType": "gross",
                         "documentCode": "Cenario1",
                         "messageType": "goods",
                         "companyLocation": "12345678",
                         "operationType": "",
                         "locations": {
                              "establishment": {
                                   "activitySector": {
                                        "type": "activityLine",
                                        "code": "industry"
                                   },
                                   "taxesSettings": {
                                        "icmsTaxPayer": true
                                   },
                                   "taxRegime": "realProfit",
                                    "address": {
                                        "zipcode": "04709111"
                                   },
                                   "type": "business"
                              },
                              "entity": {
                                   "activitySector": {
                                        "type": "activityLine",
                                        "code": "retail"
                                   },
                                   "taxesSettings": {
                                        "icmsTaxPayer": true
                                    },
                                   "taxRegime": "estimatedProfit",
                                   "address": {
                                        "zipcode": "04710010"
                                   },
                                   "type": "business"
                              }
                         }
                    },
                    "lines": [
                         {
                              "lineCode": 0,
                              "operationType": "standardSales",
                              "lineUnitPrice": "200",
                              "itemCode": 0,
                              "useType": "resale",
                              "numberOfItems": 1000,
                              "otherCostAmount": 0,
                              "freightAmount": 0,
                              "insuranceAmount": 0,
                              "lineTaxedDiscount": 0,
                              "itemDescriptor": {
                                   "hsCode": "61091000",
                                   "source": "0",
                                   "productType": "FOR PRODUCT"
                              }
                              }
                    ]
                    } 
```

## Payload response

**View example**

```
 {
                    "header": {
                       "transactionDate": "2021-10-08",
                       "amountCalcType": "gross",
                       "documentCode": "Cenario1",
                       "messageType": "goods",
                       "companyLocation": "12345678",
                       "operationType": "",
                       "locations": {
                           "establishment": {
                               "activitySector": {
                                   "type": "activityLine",
                                   "code": "industry"
                               },
                               "taxesSettings": {
                                   "icmsTaxPayer": true,
                                   "enableCprb": false,
                                   "usesInssCprbToGrossValue": false,
                                   "pisCofinsIcmsTaxRelief": false
                               },
                               "taxRegime": "realProfit",
                               "address": {
                                   "zipcode": "04709111",
                                   "cityCode": 3550308,
                                   "countryCode": "0",
                                   "country": "BRA",
                                   "state": "SP",
                                   "cityName": "São Paulo"
                               },
                               "type": "business"
                           },
                           "entity": {
                               "activitySector": {
                                   "type": "activityLine",
                                   "code": "retail"
                               },
                               "taxesSettings": {
                                   "icmsTaxPayer": true,
                                   "enableCprb": false,
                                   "usesInssCprbToGrossValue": false,
                                   "pisCofinsIcmsTaxRelief": false
                               },
                               "taxRegime": "estimatedProfit",
                               "address": {
                                   "zipcode": "04710010",
                                   "cityCode": 3550308,
                                   "countryCode": "0",
                                   "country": "BRA",
                                   "state": "SP",
                                   "cityName": "São Paulo"
                               },
                               "type": "business",
                               "federalTaxId": ""
                           }
                       },
                       "eDocCreatorType": "self",
                       "eDocCreatorPerspective": true,
                       "accountId": "",
                       "subscriptionId": "",
                       "goods": {
                           "class": "VENDA DE PRODUÇÃO DO ESTABELECIMENTO",
                           "tpImp": "1"
                       },
                       "additionalInfo": {
                           "complementaryInfo": "IPI com alíquota zero conforme: \"Decreto nº 8950/2016\"\nPIS/COFINS Lei nº 10.637/2002, Artigo 2º\nPIS/COFINS Lei nº 10.833/2003, Artigo 2º\nICMS/SP_Decreto nº 45.490/2000, Artigo 52, Inciso I"
                       }
                    },
                    "lines": [
                       {
                           "lineCode": 0,
                           "operationType": "standardSales",
                           "lineUnitPrice": 200,
                           "itemCode": "0",
                           "useType": "resale",
                           "numberOfItems": 1000,
                           "otherCostAmount": 0,
                           "freightAmount": 0,
                           "insuranceAmount": 0,
                           "lineTaxedDiscount": 0,
                           "itemDescriptor": {
                               "hsCode": "61091000",
                               "source": "0",
                               "productType": "FOR PRODUCT",
                               "description": "0"
                           },
                           "overwrite": "no",
                           "warnings": [
                               {
                                   "id": "24b59ed0-9255-11eb-b688-038e793b71a9",
                                   "code": "WC002",
                                   "citation": "Subject to ICMS_Reduction Benefits: \"ICMS/SP_Decreto nº 45.490/2000, Anexo II, Artigo 52\"",
                                   "description": "Para aplicação do citado benefício fiscal é necessário observar as condições determinadas pelo Artigo 51 e Anexo II, Artigo 52, RICMS/SP.",
                                   "isCustomCitation": false
                               }
                           ],
                           "goods": {
                               "subjectToIPIonInbound": false,
                               "entityIcmsStSubstitute": "no"
                           },
                           "lineAmount": 200000,
                           "taxDetails": [
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "liability"
                                   },
                                   "taxType": "cofins",
                                   "citation": "PIS/COFINS Lei nº 10.833/2003, Artigo 2º",
                                   "citationId": "7b39643a-d430-4a3e-9777-2d0df2e2cdc5",
                                   "subtotalTaxable": 200000,
                                   "rate": 7.6,
                                   "tax": 15200,
                                   "exemptionCode": "",
                                   "cst": "01",
                                   "calcMode": "rate",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "São Paulo",
                                   "jurisdictionType": "State",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "liability"
                                   },
                                   "taxType": "icms",
                                   "citation": "ICMS/SP_Decreto nº 45.490/2000, Artigo 52, Inciso I",
                                   "citationId": "739fb456-8f94-4e33-b961-bf425874730a",
                                   "subtotalTaxable": 200000,
                                   "rate": 18,
                                   "tax": 36000,
                                   "exemptionCode": "",
                                   "source": "0",
                                   "cst": "00",
                                   "modBC": "3",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Add",
                                       "impactOnNetAmount": "Add",
                                       "accounting": "none"
                                   },
                                   "taxType": "ipi",
                                   "citation": "IPI com alíquota zero conforme: \"Decreto nº 8950/2016\"",
                                   "citationId": "18384774-ed65-4180-8f05-e822b155d99c",
                                   "subtotalTaxable": 200000,
                                   "rate": 0,
                                   "tax": 0,
                                   "exemptionCode": "",
                                   "cst": "51",
                                   "legalTaxClass": 999,
                                   "calcMode": "rate",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "liability"
                                   },
                                   "taxType": "pis",
                                   "citation": "PIS/COFINS Lei nº 10.637/2002, Artigo 2º",
                                   "citationId": "a8d00e75-5597-48ab-baa1-576ed5444da2",
                                   "subtotalTaxable": 200000,
                                   "rate": 1.65,
                                   "tax": 3300,
                                   "exemptionCode": "",
                                   "cst": "01",
                                   "calcMode": "rate",
                                   "isCustomCitation": false
                               }
                           ],
                           "cfop": 5101,
                           "lineAdditionalInfo": "",
                           "lineNetFigure": 145500
                       }
                    ],
                    "version": "3",
                    "processingInfo": {
                       "versionId": "21.3.5-rc.1",
                       "duration": "2.574"
                    },
                    "summary": {
                       "numberOfLines": 1,
                       "totalLineAmounts": 200000,
                       "totalTaxedDiscounts": 0,
                       "totalUntaxedDiscounts": 0,
                       "totalInsurances": 0,
                       "totalFreights": 0,
                       "totalOtherCosts": 0,
                       "totalUnTaxedOtherCosts": 0,
                       "totalInvoice": 200000,
                       "taxByType": {
                           "cofins": {
                               "tax": 15200,
                               "subtotalTaxable": 200000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 15200
                                   }
                               ]
                           },
                           "icms": {
                               "tax": 36000,
                               "subtotalTaxable": 200000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "São Paulo",
                                       "jurisdictionType": "State",
                                       "tax": 36000
                                   }
                               ]
                           },
                           "ipi": {
                               "tax": 0,
                               "subtotalTaxable": 200000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 0
                                   }
                               ]
                           },
                           "pis": {
                               "tax": 3300,
                               "subtotalTaxable": 200000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 3300
                                   }
                               ]
                           }
                       }
                    },
                    "input": {
                       "header": {
                           "transactionDate": "2021-10-08",
                           "amountCalcType": "gross",
                           "documentCode": "Cenario1",
                           "messageType": "goods",
                           "companyLocation": "12345678",
                           "operationType": "",
                           "locations": {
                               "establishment": {
                                   "activitySector": {
                                       "type": "activityLine",
                                       "code": "industry"
                                   },
                                   "taxesSettings": {
                                       "icmsTaxPayer": true,
                                       "enableCprb": false,
                                       "usesInssCprbToGrossValue": false,
                                       "pisCofinsIcmsTaxRelief": false
                                   },
                                   "taxRegime": "realProfit",
                                   "address": {
                                       "zipcode": "04709111",
                                       "cityCode": 3550308,
                                       "countryCode": "0",
                                       "country": "BRA",
                                       "state": "SP",
                                       "cityName": "São Paulo"
                                   },
                                   "type": "business"
                               },
                               "entity": {
                                   "activitySector": {
                                       "type": "activityLine",
                                       "code": "retail"
                                   },
                                   "taxesSettings": {
                                       "icmsTaxPayer": true,
                                       "enableCprb": false,
                                       "usesInssCprbToGrossValue": false,
                                       "pisCofinsIcmsTaxRelief": false
                                   },
                                   "taxRegime": "estimatedProfit",
                                   "address": {
                                       "zipcode": "04710010",
                                       "cityCode": 3550308,
                                       "countryCode": "0",
                                       "country": "BRA",
                                       "state": "SP",
                                       "cityName": "São Paulo"
                                   },
                                   "type": "business",
                                   "federalTaxId": ""
                               }
                           },
                           "eDocCreatorType": "self",
                           "eDocCreatorPerspective": true,
                           "accountId": "",
                           "subscriptionId": "",
                           "goods": {}
                       },
                       "lines": [
                           {
                               "lineCode": 0,
                               "operationType": "standardSales",
                               "lineUnitPrice": 200,
                               "itemCode": "0",
                               "useType": "resale",
                               "numberOfItems": 1000,
                               "otherCostAmount": 0,
                               "freightAmount": 0,
                               "insuranceAmount": 0,
                               "lineTaxedDiscount": 0,
                               "itemDescriptor": {
                                   "hsCode": "61091000",
                                   "source": "0",
                                   "productType": "FOR PRODUCT"
                               },
                               "overwrite": "no",
                               "warnings": [
                                   {
                                       "id": "24b59ed0-9255-11eb-b688-038e793b71a9",
                                       "code": "WC002",
                                       "citation": "Subject to ICMS_Reduction Benefits: \"ICMS/SP_Decreto nº 45.490/2000, Anexo II, Artigo 52\"",
                                       "description": "Para aplicação do citado benefício fiscal é necessário observar as condições determinadas pelo Artigo 51 e Anexo II, Artigo 52, RICMS/SP.",
                                       "isCustomCitation": false
                                   }
                               ]
                           }
                       ],
                       "version": "3"
                    }
                    } 
```

## Sale within the state to non-ICMS taxpayer (final consumer)

State From

SP

State To

SP

hsCode

4901.10.00

## Payload request

**View example**

```
 {
                    "header":
                    {
                    "transactionDate":"2021-02-21T10:31:01Z",
                    "amountCalcType":"gross",
                    "documentCode":"0050569BC86C1EDB9D8B399F63C7D08D",
                    "goods":
                    {
                    "model":"55"
                    },
                    "messageType":"goods",
                    "eDocCreatorType":"self",
                    "eDocCreatorPerspective":true,
                    "companyLocation":"12345678",
                    "locations":
                    {
                    "establishment":
                    {
                    "activitySector":
                    {
                    "type":"activityLine",
                    "code":"importer"
                    },
                    "taxesSettings":
                    {
                    "icmsTaxPayer":true,
                    "pCredSN":0,
                    "subjectToPayrollTaxRelief":true,
                    "subjectWithholdingIss":true
                    },
                    "taxRegime":"realProfit",
                    "entityType":"business",
                    "stateTaxId":"99999999",
                    "type":"business",
                    "address":
                    {
                    "zipcode":"04561-004",
                    "state":"SP",
                    "country":"BRA"
                    },
                    "federalTaxId":"999999999"
                    },
                    "entity":
                    {
                    "activitySector":
                    {
                    "type":"activityLine",
                    "code":"finalConsumer"
                    },
                    "taxesSettings":
                    {
                    "icmsTaxPayer":false,
                    "pCredSN":0,
                    "subjectToPayrollTaxRelief":true,
                    "subjectWithholdingIss":true
                    },
                    "taxRegime":"individual",
                    "address":
                    {
                    "zipcode":"04710010",
                    "state":"SP",
                    "country":"BRA"
                    },
                    "federalTaxId":""
                    }
                    }
                    },
                    "lines":
                    [
                    {
                    "id":"000010",
                    "lineCode":"1",
                    "operationType":"standardSales",
                    "lineAmount":0,
                    "lineUnitPrice": 100,
                    "useType":"use or consumption",
                    "numberOfItems":10,
                    "otherCostAmount":0.00,
                    "freightAmount":0.00,
                    "insuranceAmount":0.00,
                    "lineTaxedDiscount":0.00,
                    "itemDescriptor":
                    {
                    "taxCode":"",
                    "hsCode":"4901.10.00",
                    "source":"0",
                    "productType":"FOR PRODUCT",
                    "manufacturerEquivalent":false,
                    "appropriateIPIcreditWhenInGoing":false,
                    "appropriateICMScreditWhenInGoing":false,
                    "usuallyAppropriatePISCOFINSCredit":false,
                    "isPisCofinsEstimatedCredit":false,
                    "piscofinsRevenueType":"01",
                    "unitIPIfactor":1,
                    "unitIcmsfactor":1,
                    "unitIcmsStfactor":1,
                    "unitPisCofinsfactor":1,
                    "comexTaxUnitFactor":1
                    },
                    "customProperties":
                    [
                    {
                    "goods":
                    {
                     "subjectToIPIonInbound":false,
                     "returnedPercentageAmount":0
                    }
                    }
                    ]
                    }
                    ]
                    } 
```

## Payload response

**View example**

```
{
                    "header": {
                       "transactionDate": "2021-02-21T10:31:01Z",
                       "amountCalcType": "gross",
                       "documentCode": "0050569BC86C1EDB9D8B399F63C7D08D",
                       "goods": {
                           "model": "55",
                           "idDest": 0,
                           "tpEmis": "1",
                           "class": "VENDA DE PRODUÇÃO DO ESTABELECIMENTO",
                           "tpImp": "1"
                       },
                       "messageType": "goods",
                       "eDocCreatorType": "self",
                       "eDocCreatorPerspective": true,
                       "companyLocation": "12345678",
                       "locations": {
                           "establishment": {
                               "activitySector": {
                                   "type": "activityLine",
                                   "code": "importer"
                               },
                               "taxesSettings": {
                                   "icmsTaxPayer": true,
                                   "pCredSN": 0,
                                   "subjectToPayrollTaxRelief": true,
                                   "subjectWithholdingIss": true,
                                   "enableCprb": false,
                                   "usesInssCprbToGrossValue": false,
                                   "pisCofinsIcmsTaxRelief": false
                               },
                               "taxRegime": "realProfit",
                               "entityType": "business",
                               "stateTaxId": "99999999",
                               "type": "business",
                               "address": {
                                   "zipcode": "04561-004",
                                   "state": "SP",
                                   "country": "BRA",
                                   "cityCode": 3550308,
                                   "countryCode": "0",
                                   "cityName": "São Paulo"
                               },
                               "federalTaxId": "999999999"
                           },
                           "entity": {
                               "activitySector": {
                                   "type": "activityLine",
                                   "code": "finalConsumer"
                               },
                               "taxesSettings": {
                                   "icmsTaxPayer": false,
                                   "pCredSN": 0,
                                   "subjectToPayrollTaxRelief": true,
                                   "subjectWithholdingIss": true,
                                   "enableCprb": false,
                                   "usesInssCprbToGrossValue": false,
                                   "pisCofinsIcmsTaxRelief": false
                               },
                               "taxRegime": "individual",
                               "address": {
                                   "zipcode": "04710010",
                                   "state": "SP",
                                   "country": "BRA",
                                   "cityCode": 3550308,
                                   "countryCode": "0",
                                   "cityName": "São Paulo"
                               },
                               "federalTaxId": ""
                           }
                       },
                       "accountId": "",
                       "subscriptionId": "",
                       "additionalInfo": {
                           "complementaryInfo": "Trib aprox R$ 42,00 Federal e R$ 180,00 Estadual Fonte: IBPT\nIPI não tributado conforme: \"Decreto nº 8.950/2016\"\nPIS/COFINS com alíquota zero conforme: \"Lei nº 10.865/2004, Artigo 28, Inciso VI, incluído pela Lei nº 11.033/2004\"\nICMS/SP_Decreto nº 45.490/2000, Artigo 52, Inciso I"
                       }
                    },
                    "lines": [
                       {
                           "id": "000010",
                           "lineCode": 1,
                           "operationType": "standardSales",
                           "lineAmount": 1000,
                           "lineUnitPrice": 100,
                           "useType": "use or consumption",
                           "numberOfItems": 10,
                           "otherCostAmount": 0,
                           "freightAmount": 0,
                           "insuranceAmount": 0,
                           "lineTaxedDiscount": 0,
                           "itemDescriptor": {
                               "taxCode": "",
                               "hsCode": "4901.10.00",
                               "source": "0",
                               "productType": "FOR PRODUCT",
                               "manufacturerEquivalent": false,
                               "appropriateIPIcreditWhenInGoing": false,
                               "appropriateICMScreditWhenInGoing": false,
                               "usuallyAppropriatePISCOFINSCredit": false,
                               "isPisCofinsEstimatedCredit": false,
                               "piscofinsRevenueType": "01",
                               "unitIPIfactor": 1,
                               "unitIcmsfactor": 1,
                               "unitIcmsStfactor": 1,
                               "unitPisCofinsfactor": 1,
                               "comexTaxUnitFactor": 1
                           },
                           "customProperties": [
                               {
                                   "goods": {
                                       "subjectToIPIonInbound": false,
                                       "returnedPercentageAmount": 0
                                   }
                               }
                           ],
                           "overwrite": "no",
                           "warnings": [
                               {
                                   "id": "83714234-6adb-4997-84be-2cc8f9ec5e87",
                                   "code": "WC003",
                                   "citation": "Subject to PIS Benefits: \"PIS_Constituição Federal de 1988, Artigo 150, Inciso VI, Alínea d\"",
                                   "description": "Sem prejuízo de outras garantias asseguradas ao contribuinte, é vedado à União, aos Estados, ao Distrito Federal e aos Municípios instituir impostos sobre livros, jornais, periódicos e o papel destinado a sua impressão",
                                   "isCustomCitation": false
                               },
                               {
                                   "id": "c0291665-0cfe-4dfc-9795-f85bf67ea9d3",
                                   "code": "WC003",
                                   "citation": "Subject to COFINS Benefits: \"COFINS_Constituição Federal de 1988, Artigo 150, Inciso VI, Alínea d\"",
                                   "description": "Sem prejuízo de outras garantias asseguradas ao contribuinte, é vedado à União, aos Estados, ao Distrito Federal e aos Municípios instituir impostos sobre livros, jornais, periódicos e o papel destinado a sua impressão",
                                   "isCustomCitation": false
                               },
                               {
                                   "id": "9f7a7ecc-cc43-43e3-be1c-b0b26bea8d47",
                                   "code": "WC001",
                                   "citation": "Subject to ICMS Benefits: \"ICMS/SP_Decreto nº 45.490/2000, Artigo 7º, Inciso XIII\"",
                                   "description": "Para aplicação do citado benefício fiscal é necessário observar as condições determinadas pelo artigo 7º, § 6º do RICMS/SP",
                                   "isCustomCitation": false
                               }
                           ],
                           "goods": {
                               "subjectToIPIonInbound": false,
                               "entityIcmsStSubstitute": "no"
                           },
                           "taxDetails": [
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Informative",
                                       "impactOnNetAmount": "Informative",
                                       "accounting": "none"
                                   },
                                   "taxType": "aproxtribFed",
                                   "citation": "Trib aprox R$ 42,00 Federal e R$ 180,00 Estadual Fonte: IBPT",
                                   "subtotalTaxable": 1000,
                                   "rate": 4.2,
                                   "tax": 42,
                                   "exemptionCode": "",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Informative",
                                       "impactOnNetAmount": "Informative",
                                       "accounting": "none"
                                   },
                                   "taxType": "aproxtribState",
                                   "subtotalTaxable": 1000,
                                   "rate": 18,
                                   "tax": 180,
                                   "exemptionCode": ""
                               },
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "none"
                                   },
                                   "taxType": "cofins",
                                   "citation": "PIS/COFINS com alíquota zero conforme: \"Lei nº 10.865/2004, Artigo 28, Inciso VI, incluído pela Lei nº 11.033/2004\"",
                                   "citationId": "1f0f4a6e-4e31-41b5-9d6a-14f36bf00b34",
                                   "subtotalTaxable": 1000,
                                   "rate": 0,
                                   "tax": 0,
                                   "exemptionCode": "",
                                   "cst": "06",
                                   "calcMode": "rate",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "São Paulo",
                                   "jurisdictionType": "State",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "liability"
                                   },
                                   "taxType": "icms",
                                   "citation": "ICMS/SP_Decreto nº 45.490/2000, Artigo 52, Inciso I",
                                   "citationId": "5266e193-11d2-46f1-b346-27e30cc49bcb",
                                   "subtotalTaxable": 1000,
                                   "rate": 18,
                                   "tax": 180,
                                   "exemptionCode": "",
                                   "source": "0",
                                   "cst": "00",
                                   "modBC": "3",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Informative",
                                       "impactOnNetAmount": "Informative",
                                       "accounting": "none"
                                   },
                                   "taxType": "ipi",
                                   "citation": "IPI não tributado conforme: \"Decreto nº 8.950/2016\"",
                                   "citationId": "7e086799-cb88-499f-bd53-7a10cb02442b",
                                   "subtotalTaxable": 1000,
                                   "rate": 0,
                                   "tax": 0,
                                   "exemptionCode": "",
                                   "cst": "53",
                                   "legalTaxClass": 999,
                                   "calcMode": "rate",
                                   "isCustomCitation": false
                               },
                               {
                                   "jurisdictionName": "Brazil",
                                   "jurisdictionType": "Country",
                                   "taxImpact": {
                                       "impactOnFinalPrice": "Included",
                                       "impactOnNetAmount": "Included",
                                       "accounting": "none"
                                   },
                                   "taxType": "pis",
                                   "citation": "PIS/COFINS com alíquota zero conforme: \"Lei nº 10.865/2004, Artigo 28, Inciso VI, incluído pela Lei nº 11.033/2004\"",
                                   "citationId": "85119944-8343-471d-b952-d49f77cb4277",
                                   "subtotalTaxable": 1000,
                                   "rate": 0,
                                   "tax": 0,
                                   "exemptionCode": "",
                                   "cst": "06",
                                   "calcMode": "rate",
                                   "isCustomCitation": false
                               }
                           ],
                           "cfop": 5101,
                           "lineAdditionalInfo": "",
                           "lineNetFigure": 820
                       }
                    ],
                    "version": "3",
                    "processingInfo": {
                       "versionId": "21.3.5-rc.1",
                       "duration": "6.700"
                    },
                    "summary": {
                       "numberOfLines": 1,
                       "totalLineAmounts": 1000,
                       "totalTaxedDiscounts": 0,
                       "totalUntaxedDiscounts": 0,
                       "totalInsurances": 0,
                       "totalFreights": 0,
                       "totalOtherCosts": 0,
                       "totalUnTaxedOtherCosts": 0,
                       "totalInvoice": 1000,
                       "taxByType": {
                           "aproxtribFed": {
                               "tax": 42,
                               "subtotalTaxable": 1000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 42
                                   }
                               ]
                           },
                           "aproxtribState": {
                               "tax": 180,
                               "subtotalTaxable": 1000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 180
                                   }
                               ]
                           },
                           "cofins": {
                               "tax": 0,
                               "subtotalTaxable": 1000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 0
                                   }
                               ]
                           },
                           "icms": {
                               "tax": 180,
                               "subtotalTaxable": 1000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "São Paulo",
                                       "jurisdictionType": "State",
                                       "tax": 180
                                   }
                               ]
                           },
                           "ipi": {
                               "tax": 0,
                               "subtotalTaxable": 1000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 0
                                   }
                               ]
                           },
                           "pis": {
                               "tax": 0,
                               "subtotalTaxable": 1000,
                               "jurisdictions": [
                                   {
                                       "jurisdictionName": "Brazil",
                                       "jurisdictionType": "Country",
                                       "tax": 0
                                   }
                               ]
                           }
                       }
                    },
                    "input": {
                       "header": {
                           "transactionDate": "2021-02-21T10:31:01Z",
                           "amountCalcType": "gross",
                           "documentCode": "0050569BC86C1EDB9D8B399F63C7D08D",
                           "goods": {
                               "model": "55",
                               "idDest": 0,
                               "tpEmis": "1"
                           },
                           "messageType": "goods",
                           "eDocCreatorType": "self",
                           "eDocCreatorPerspective": true,
                           "companyLocation": "12345678",
                           "locations": {
                               "establishment": {
                                   "activitySector": {
                                       "type": "activityLine",
                                       "code": "importer"
                                   },
                                   "taxesSettings": {
                                       "icmsTaxPayer": true,
                                       "pCredSN": 0,
                                       "subjectToPayrollTaxRelief": true,
                                       "subjectWithholdingIss": true,
                                       "enableCprb": false,
                                       "usesInssCprbToGrossValue": false,
                                       "pisCofinsIcmsTaxRelief": false
                                   },
                                   "taxRegime": "realProfit",
                                   "entityType": "business",
                                   "stateTaxId": "99999999",
                                   "type": "business",
                                   "address": {
                                       "zipcode": "04561-004",
                                       "state": "SP",
                                       "country": "BRA",
                                       "cityCode": 3550308,
                                       "countryCode": "0",
                                       "cityName": "São Paulo"
                                   },
                                   "federalTaxId": "999999999"
                               },
                               "entity": {
                                   "activitySector": {
                                       "type": "activityLine",
                                       "code": "finalConsumer"
                                   },
                                   "taxesSettings": {
                                       "icmsTaxPayer": false,
                                       "pCredSN": 0,
                                       "subjectToPayrollTaxRelief": true,
                                       "subjectWithholdingIss": true,
                                       "enableCprb": false,
                                       "usesInssCprbToGrossValue": false,
                                       "pisCofinsIcmsTaxRelief": false
                                   },
                                   "taxRegime": "individual",
                                   "address": {
                                       "zipcode": "04710010",
                                       "state": "SP",
                                       "country": "BRA",
                                       "cityCode": 3550308,
                                       "countryCode": "0",
                                       "cityName": "São Paulo"
                                   },
                                   "federalTaxId": ""
                               }
                           },
                           "accountId": "",
                           "subscriptionId": ""
                       },
                       "lines": [
                           {
                               "id": "000010",
                               "lineCode": 1,
                               "operationType": "standardSales",
                               "lineAmount": 0,
                               "lineUnitPrice": 100,
                               "useType": "use or consumption",
                               "numberOfItems": 10,
                               "otherCostAmount": 0,
                               "freightAmount": 0,
                               "insuranceAmount": 0,
                               "lineTaxedDiscount": 0,
                               "itemDescriptor": {
                                   "taxCode": "",
                                   "hsCode": "4901.10.00",
                                   "source": "0",
                                   "productType": "FOR PRODUCT",
                                   "manufacturerEquivalent": false,
                                   "appropriateIPIcreditWhenInGoing": false,
                                   "appropriateICMScreditWhenInGoing": false,
                                   "usuallyAppropriatePISCOFINSCredit": false,
                                   "isPisCofinsEstimatedCredit": false,
                                   "piscofinsRevenueType": "01",
                                   "unitIPIfactor": 1,
                                   "unitIcmsfactor": 1,
                                   "unitIcmsStfactor": 1,
                                   "unitPisCofinsfactor": 1,
                                   "comexTaxUnitFactor": 1
                               },
                               "customProperties": [
                                   {
                                       "goods": {
                                           "subjectToIPIonInbound": false,
                                           "returnedPercentageAmount": 0
                                       }
                                   }
                               ],
                               "overwrite": "no",
                               "warnings": [
                                   {
                                       "id": "83714234-6adb-4997-84be-2cc8f9ec5e87",
                                       "code": "WC003",
                                       "citation": "Subject to PIS Benefits: \"PIS_Constituição Federal de 1988, Artigo 150, Inciso VI, Alínea d\"",
                                       "description": "Sem prejuízo de outras garantias asseguradas ao contribuinte, é vedado à União, aos Estados, ao Distrito Federal e aos Municípios instituir impostos sobre livros, jornais, periódicos e o papel destinado a sua impressão",
                                       "isCustomCitation": false
                                   },
                                   {
                                       "id": "c0291665-0cfe-4dfc-9795-f85bf67ea9d3",
                                       "code": "WC003",
                                       "citation": "Subject to COFINS Benefits: \"COFINS_Constituição Federal de 1988, Artigo 150, Inciso VI, Alínea d\"",
                                       "description": "Sem prejuízo de outras garantias asseguradas ao contribuinte, é vedado à União, aos Estados, ao Distrito Federal e aos Municípios instituir impostos sobre livros, jornais, periódicos e o papel destinado a sua impressão",
                                       "isCustomCitation": false
                                   },
                                   {
                                       "id": "9f7a7ecc-cc43-43e3-be1c-b0b26bea8d47",
                                       "code": "WC001",
                                       "citation": "Subject to ICMS Benefits: \"ICMS/SP_Decreto nº 45.490/2000, Artigo 7º, Inciso XIII\"",
                                       "description": "Para aplicação do citado benefício fiscal é necessário observar as condições determinadas pelo artigo 7º, § 6º do RICMS/SP",
                                       "isCustomCitation": false
                                   }
                               ]
                           }
                       ],
                       "version": "3"
                    }
                    } 
```