# Chamada e Resposta

**Para acessar a coleção de chamadas**

De acordo com a transação realizada (exemplo: compra, venda, transferência, etc.) e os dados mestres do cadastro de fornecedor, planta recebedora ou vendedora, filiais e dados mestres de materiais será feita a conversão para que o Motor Systax entenda para qual produto e operação está sendo requisitado o cálculo.

Abaixo exemplo de requisição e retorno onde os dados definem uma operação de compra de um varejista, para revenda, de SP para SP, de um fornecedor industrial que produziu a mercadoria.

**Cenário Systax: SP-SP-120-1-140–569 Compra para revenda\_Indústria\_Varejo**

Na chamada exemplo abaixo:

- A operação de compra é identificada pelos campos “operationNatureCode” e “saleorPurchase” igual a “P”;
- Para determinar a UFs (SP-SP)– consideramos os campos “state” do Ship From e Ship To, do bloco “Locations”;
- Para determinar a operação e perfil do fornecedor/remetente (120-Venda de Produção do Estabelecimento e 1-Indústria) – consideramos os campos “materialOrigin” e “cnae” do Ship From.
- Para determinar o perfil do destinatário (140-Varejista) – consideramos o campo “cnae” do Ship To.

<table cellspacing="0" class="MsoTableGrid" id="bkmrk-chamada-retorno-%7B-%C2%A0%C2%A0" style="width: 100%;"><tbody><tr><td style="width: 47.6543%;">**Chamada**

</td><td style="width: 52.306%;">**Retorno**

</td></tr><tr><td style="width: 47.6543%;">{

 "id": "02E7B3F979971EED93E6ACEAC7A51EB9",

 "date": "2022-10-18T19:37:10.000Z",

 "companyId": "1410",

 "saleorPurchase": "P",

 "operationNatureCode": "P",

 "grossOrNet": "g",

 "currency": "BRL",

 "Items": \[

 {

 "id": "000010",

 "itemCode": "TBD",

 "itemType": "M",

 "quantity": "1.000",

 "unitPrice": "50.2000",

 "itemClassifications": \[

 {

 "itemStandardClassificationSystemCode": "cest",

 "itemStandardClassificationCode": ""

 },

 {

 "itemStandardClassificationSystemCode": "ncm",

 "itemStandardClassificationCode": "12060010"

 }

 \],

 "additionalItemInformation": \[

 {

 "type": "materialOrigin",

 "information": "0"

 },

 {

 "type": "usage",

 "information": "R"

 }

 \]

 }

 \],

 "Locations": \[

 {

 "type": "SHIP\_FROM",

 "addressLine1": "Rua Pamplona 145, 11 andar",

 "zipCode": "01405000",

 "city": "São Paulo",

 "state": "SP",

 "country": "BR"

 },

 {

 "type": "SHIP\_TO",

 "addressLine1": "Av. Ipanema 165",

 "zipCode": "03015000",

 "city": "São Paulo",

 "state": "SP",

 "country": "BR"

 }

 \],

 "Party": \[

 {

 "id": "1",

 "role": "SHIP\_FROM",

 "taxRegistration": \[

 {

 "locationType": "SHIP\_FROM",

 "taxNumber": "112240",

 "taxNumberTypeCode": "CNAE"

 },

{

 "locationType": "SHIP\_FROM",

 "taxNumber": "0000000000100",

 "taxNumberTypeCode": "CNPJ"

 },

 {

 "locationType": "SHIP\_FROM",

 "taxNumber": "Y",

 "taxNumberTypeCode": "COFINSContributor"

 },

 {

 "locationType": "SHIP\_FROM",

 "taxNumber": "3304557",

 "taxNumberTypeCode": "IBGECode"

 },

 {

 "locationType": "SHIP\_FROM",

 "taxNumber": "Y",

 "taxNumberTypeCode": "ICMSContributor"

 },

 {

 "locationType": "SHIP\_FROM",

 "taxNumber": "Y",

 "taxNumberTypeCode": "ICMSSTContributor"

 },

 {

 "locationType": "SHIP\_FROM",

 "taxNumber": "Y",

 "taxNumberTypeCode": "IPIContributor"

 },

 {

 "locationType": "SHIP\_FROM",

 "taxNumber": "N",

 "taxNumberTypeCode": "ISSContributor"

 },

 {

 "locationType": "SHIP\_FROM",

 "taxNumber": "Presumed Profit",

 "taxNumberTypeCode": "taxDeclarationType"

 },

 {

 "locationType": "SHIP\_FROM",

 "taxNumber": "Y",

 "taxNumberTypeCode": "PISContributor"

 },

 {

 "locationType": "SHIP\_FROM",

 "taxNumber": "",

 "taxNumberTypeCode": "taxRegimenCode"

 }

 \]

 },

 {

 "id": "2",

 "role": "SHIP\_TO",

 "taxRegistration": \[

 {

 "locationType": "SHIP\_TO",

 "taxNumber": "4711302",

 "taxNumberTypeCode": "CNAE"

 },

 {

 "locationType": "SHIP\_TO",

 "taxNumber": "74544297000192",

 "taxNumberTypeCode": "CNPJ"

 },

 {

 "locationType": "SHIP\_TO",

 "taxNumber": "Y",

 "taxNumberTypeCode": "COFINSContributor"

 },

 {

 "locationType": "SHIP\_TO",

 "taxNumber": "3304557",

 "taxNumberTypeCode": "IBGECode"

 },

 {

 "locationType": "SHIP\_TO",

 "taxNumber": "Y",

 "taxNumberTypeCode": "ICMSContributor"

 },

 {

 "locationType": "SHIP\_TO",

 "taxNumber": "Y",

 "taxNumberTypeCode": "ICMSSTContributor"

 },

 {

 "locationType": "SHIP\_TO",

 "taxNumber": "956224310481",

 "taxNumberTypeCode": "IE"

 },

 {

 "locationType": "SHIP\_TO",

 "taxNumber": "N",

 "taxNumberTypeCode": "IPIContributor"

 },

 {

 "locationType": "SHIP\_TO",

 "taxNumber": "Y",

 "taxNumberTypeCode": "ISSContributor"

 },

 {

 "locationType": "SHIP\_TO",

 "taxNumber": "2062",

 "taxNumberTypeCode": "legalNature"

 },

 {

 "locationType": "SHIP\_TO",

 "taxNumber": "Y",

 "taxNumberTypeCode": "PISContributor"

 },

 {

 "locationType": "SHIP\_TO",

 "taxNumber": "Real Profit",

 "taxNumberTypeCode": "taxDeclarationType"

 }

 \]

 }

 \]

}

</td><td style="width: 52.306%;">{

 "total": "50.200000000000",

 "subTotal": "50.200000000000",

 "totalTax": "50.200000000000",

 "taxLines": \[

 {

 "id": "000010",

 "totalTax": "15.511800000000",

 "taxcode": "1102",

 "taxValues": \[

 {

 "rate": "0.0000",

 "taxable": "0.000000000000",

 "name": "Imposto sobre Produtos   
Industrializados",

 "value": "0.000000000000",

 "exemptedBasePercent": "0.0000",

 "exemptedBaseAmount": "50.200000000000",

 "otherBaseAmount": "0.000000000000",

 "taxTypeCode": "IPI",

 "taxAttributes": \[

 {

 "attributeType": "CENQ",

 "attributeValue": "999"

 },

 {

 "attributeType": "CST",

 "attributeValue": "03"

 },

 {

 "attributeType": "legalProvision1",

 "attributeValue": "Art. 226 do RIPI/2010"

 },

 {

 "attributeType": "legalPCode1",

 "attributeValue": "210059"

 }

 \]

 },

 {

 "rate": "18.0000",

 "taxable": "50.200000000000",

 "name": "Imposto sobre Comercialização  
de Mercadorias e Serviços",

 "value": "9.036000000000",

 "exemptedBasePercent": "0.0000",

 "exemptedBaseAmount": "0.000000000000",

 "otherBaseAmount": "0.000000000000",

 "taxTypeCode": "ICMS",

 "taxAttributes": \[

 {

 "attributeType": "CST",

 "attributeValue": "00"

 },

 {

 "attributeType": "baseDetermination",

 "attributeValue": "3"

 }

 \]

 },

 {

 "rate": "1.6500",

 "taxable": "50.200000000000",

 "name": "Programa de Integração Social",

 "value": "0.828300000000",

 "exemptedBasePercent": "0.0000",

 "exemptedBaseAmount": "0.000000000000",

 "otherBaseAmount": "0.000000000000",

 "taxTypeCode": "PIS",

 "taxAttributes": \[

 {

 "attributeType": "CST",

 "attributeValue": "50"

 }

 \]

 },

 {

 "rate": "0.6500",

 "taxable": "50.200000000000",

 "name": "PIS from supplier",

 "value": "0.326300000000",

 "exemptedBasePercent": "0.0000",

 "exemptedBaseAmount": "0.000000000000",

 "otherBaseAmount": "0.000000000000",

 "taxTypeCode": "PIS-SUP",

 "taxAttributes": \[

 {

 "attributeType": "CST",

 "attributeValue": "01"

 }

 \]

 },

 {

 "rate": "7.6000",

 "taxable": "50.200000000000",

 "name": "Contribuição para o   
Financiamento da   
 Seguridade Social",

 "value": "3.815200000000",

 "exemptedBasePercent": "0.0000",

 "exemptedBaseAmount": "0.000000000000",

 "otherBaseAmount": "0.000000000000",

 "taxTypeCode": "COFINS",

 "taxAttributes": \[

 {

 "attributeType": "CST",

 "attributeValue": "50"

 }

 \]

 },

 {

 "rate": "3.0000",

 "taxable": "50.200000000000",

 "name": "COFINS from supplier",

 "value": "1.506000000000",

 "exemptedBasePercent": "0.0000",

 "exemptedBaseAmount": "0.000000000000",

 "otherBaseAmount": "0.000000000000",

 "taxTypeCode": "COFINS-SUP",

 "taxAttributes": \[

 {

 "attributeType": "CST",

 "attributeValue": "01"

 }

 \]

 }

 \]

 }

 \],

 "date": "2023-05-19T18:02:59.26442-03:00",

 "genericInfo": "busca=NCMD|codProd=NCM\_12060010-0|orig=1|CFOP\_ENTRADA=1102|UFO=sp|UFD=sp|natOp=120|

perfilorig=1|perfildest=140|finalidade=569  
|versao=6.07|",

 "partnerName": "Systax versao=6.07"

}

</td></tr></tbody></table>