Documentação Geral
TaaS – CTE no TaaS
- O payload request é diferente das requests utilizadas para mercadorias e serviços, tratamos a nomenclatura dos campos como “serviços”, porém o retorno é de mercadorias.
- O retorno das regras considera a operação da mercadoria, portanto as definições são:
-
-
-
- UF ORIGEM = CONTRACT_FROM
- UF DESTINO = SHIP_TO
-
-
-
- A Chamada deverá ser feita pelo “itemCode”, visto que as regras têm NCM 00000000.
- Cabeçalho
- A chamada deverá ser feita através do “itemCode”, visto que a regra para serviços de transporte não tem NCM específico, tanto que na chamada não temos o campo “ncmCode”;
- Referente o campo usage, temos a seguinte definição:
- Usage 0 no pedido = R no request payload: transporte de vendas ou compras para revenda;
- Usage 1 no pedido = I no request payload: transporte de compras para industrialização;
- Usage 2 no pedido = C no request payload: transporte de compras para consumo;
- Usage 3 no pedido = A no request payload: transporte de compras de ativo.
- Pode ser usado o BusinessTransaction para essa operação também.
- Locations
- O CONTRACT_FROM, refere-se ao contratante do serviço de frete, isto é o remetente;
- O CONTRACT_TO, refere-se ao contratado, isto é, a empresa que está realizando o frete;
- O SHIP_FROM é o local de onde a mercadoria está saindo,
- O SHIP_TO é o destinatário da mercadoria.
-
-
-
-
- UF ORIGEM = CONTRACT_FROM
- UF DESTINO = SHIP_TO
-
-
-
- Bloco ICMS
- Bloco Pis crédito e Pis from Supplier
- Bloco Cofins Crédito e Cofins from Supplier
CTE no TaaS
Por Fernanda Almeida
Para atender a escrituração do CTE – Conhecimento de Transporte Eletrônico, desenvolvemos no TaaS, a chamada com os parâmetros específicos para a operação de transporte.
O modelo do payload request é diferente dos modelos já conhecidos para mercadorias e serviços.
Algumas definições sobre o payload e o retorno das regras:
O cálculo vai considerar a circulação da mercadoria, portanto as definições são:
As informações dos parceiros referem-se ao “CONTRACT_FROM” e ao “CONTRACT_TO”, que são importantes para a determinação correta do perfil da origem e destino:
ID-1: CONTRACT_FROM |
ID-2: CONTRACT_TO |
{ "id": "1", "role": "CONTRACT_FROM", "taxRegistration": [ { "locationType": "CONTRACT_FROM", "taxNumber": "4930201", "taxNumberTypeCode": "CNAE" }, { "locationType": "CONTRACT_FROM", "taxNumber": "05760096000100", "taxNumberTypeCode": "CNPJ" }, { "locationType": "CONTRACT_FROM", "taxNumber": "Y", "taxNumberTypeCode": "COFINSContributor" }, { "locationType": "CONTRACT_FROM", "taxNumber": "MDE", "taxNumberTypeCode": "companySize" }, { "locationType": "CONTRACT_FROM", "taxNumber": "N", "taxNumberTypeCode": "CPOM" }, { "locationType": "CONTRACT_FROM", "taxNumber": "3550308", "taxNumberTypeCode": "IBGECode" }, { "locationType": "CONTRACT_FROM", "taxNumber": "Y", "taxNumberTypeCode": "ICMSContributor" }, { "locationType": "CONTRACT_FROM", "taxNumber": "Y", "taxNumberTypeCode": "ICMSSTContributor" }, { "locationType": "CONTRACT_FROM", "taxNumber": "123456789012", "taxNumberTypeCode": "IE" }, { "locationType": "CONTRACT_FROM", "taxNumber": "123456", "taxNumberTypeCode": "IM" }, { "locationType": "CONTRACT_FROM", "taxNumber": "N", "taxNumberTypeCode": "IPIContributor" }, { "locationType": "CONTRACT_FROM", "taxNumber": "Y", "taxNumberTypeCode": "ISSContributor" }, { "locationType": "CONTRACT_FROM", "taxNumber": "2062", "taxNumberTypeCode": "legalNature" }, { "locationType": "CONTRACT_FROM", "taxNumber": "Y", "taxNumberTypeCode": "PISContributor" }, { "locationType": "CONTRACT_TO", "taxNumber": "Real Profit", "taxNumberTypeCode": "taxDeclarationType" }, { "locationType": "CONTRACT_FROM", "taxNumber": "3", "taxNumberTypeCode": "taxRegimenCode" } ] },
|
{ "id": "2", "role": "CONTRACT_TO", "taxRegistration": [ { "locationType": "CONTRACT_TO", "taxNumber": "1772900", "taxNumberTypeCode": "CNAE" }, { "locationType": "CONTRACT_TO", "taxNumber": "74544297000192", "taxNumberTypeCode": "CNPJ" }, { "locationType": "CONTRACT_TO", "taxNumber": "Y", "taxNumberTypeCode": "COFINSContributor" }, { "locationType": "CONTRACT_TO", "taxNumber": "3550308", "taxNumberTypeCode": "IBGECode" }, { "locationType": "CONTRACT_TO", "taxNumber": "Y", "taxNumberTypeCode": "ICMSContributor" }, { "locationType": "CONTRACT_TO", "taxNumber": "Y", "taxNumberTypeCode": "ICMSSTContributor" }, { "locationType": "CONTRACT_TO", "taxNumber": "956224310481", "taxNumberTypeCode": "IE" }, { "locationType": "CONTRACT_TO", "taxNumber": "12345678", "taxNumberTypeCode": "IM" }, { "locationType": "CONTRACT_TO", "taxNumber": "Y", "taxNumberTypeCode": "IPIContributor" }, { "locationType": "CONTRACT_TO", "taxNumber": "Y", "taxNumberTypeCode": "ISSContributor" }, { "locationType": "CONTRACT_TO", "taxNumber": "2062", "taxNumberTypeCode": "legalNature" }, { "locationType": "CONTRACT_TO", "taxNumber": "Y", "taxNumberTypeCode": "PISContributor" }, { "locationType": "CONTRACT_TO", "taxNumber": "Real Profit", "taxNumberTypeCode": "taxDeclarationType" }, { "locationType": "CONTRACT_TO", "taxNumber": "3", "taxNumberTypeCode": "taxRegimenCode" } ] } ] }
|
De acordo com as informações enviadas, o TaaS determinará o perfil do cenário para que o motor possa buscar a regra no cockpit e executar o cálculo:
O resultado da chamada é semelhante ao payload response de mercadorias:
E as informações do genérico da chamada:
O CTE atende ao modelo standard do SAP.
As operações de serviços de transporte são muito importantes e a definição atende ao modelo standard da SAP.
Versão do documento: 50 | Publicação: 12/15/2023 |