Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Bloco de código
languagexml
themeMidnight
titleJSON Saída Simplificada
collapsetrue
{
    "content": [
        {
            "Items": [
                {
                    "Status": "ok",
                    "Message": "FreightSimulations: Simula\ufffd\ufffdo realizada com sucesso.",
                    "FreightCalculation": [
                        {
                            "SimulationNumber": "000001",
                            "Items": [
                                {
                                    "idtype": "CarrierCodestring",
                                    "Descriptionlength": "Código do Transportador da rota calculada"14,
                                    "valueid": "000000002     CarrierCode",
                                    "lengthvalue": 14 "49            ",
                                    "typeDescription": "stringC\ufffddigo do Transportador da rota calculada"
                                },
                                {
                                    "idtype": "CarrierCnpjstring",
                                    "Descriptionlength": "CNPJ do Transportador da rota calculada"21,
                                    "valueid": "48411553000163CarrierCnpj",
        ",
                            "value": "84429869000308       "length": 21,
                                    "typeDescription": "stringCNPJ do Transportador da rota calculada"
                                },
                                {
                                    "idtype": "CarrierNamestring",
                                    "Descriptionlength": "Nome do Transportador da rota calculada"80,
                                    "valueid": "TRANSPCarrierName",
 JOINVILLE                                   "value": "ABC-TRANSP                               ",
                                       "length": 80,
                                    "typeDescription": "stringNome do Transportador da rota calculada"
                                },
                                {
                                    "idtype": "RouteCodestring",
                                    "Descriptionlength": "Código da rota utilizada para o cálculo"4,
                                    "valueid": "0002RouteCode",
                                    "lengthvalue": 4"0001",
                                    "typeDescription": "stringC\ufffddigo da rota utilizada para o c\ufffdlculo"
                                },
                                {
                                    "idtype": "RouteNamestring",
                                    "Descriptionlength": "Descrição da rota utilizada para o cálculo"150,
                                    "valueid": "RouteName"País,
 - 105 - BRASIL , UF - MG | País - 105 - BRASIL , UF - SC",
                  "value": "Remetente - 77170 - TOTVS S.A. | Destinat\ufffdrio - 12704 - NICOM COMERC MATS PARA CONSTRUCOES  "length": 150LTDA",
                                    "typeDescription": "stringDescri\ufffd\ufffdo da rota utilizada para o c\ufffdlculo"
                                },
                                {
                                    "idtype": "TypeCapacitystring",
                                    "Descriptionlength": "Tipo16,
 Lotação da Tabela de Frete. (1=Carga Fracionada 2=Carga Fechada 3=Veículo Dedicado)",
                                    "value""id": "Carga FracionadaTypeCapacity",
                                    "lengthvalue": "Carga 16Fracionada",
                                    "typeDescription": "stringTipo Lota\ufffd\ufffdo da Tabela de Frete. (1=Carga Fracionada 2=Carga Fechada 3=Ve\ufffdculo Dedicado)"
                                },
                                {
                                    "idtype": "CostFreightdouble",
                                    "Descriptionlength": "Valor total do Frete"11.2,
                                    "valueid": 303"CostFreight",
                                    "lengthvalue": 11.2100,
                                    "typeDescription": "doubleValor total do Frete"
                                },
                                {
                                    "idtype": "Taxdouble",
                                    "Descriptionlength": "Valor do imposto"11.2,
                                    "valueid": 30.3"Tax",
                                    "lengthvalue": 11.27,
                                    "typeDescription": "doubleValor Imposto (ICMS ou ISS)"
                                },
                                {
                                    "idtype": "DeliveryTimestring",
                                    "Descriptionlength": "Prazo de Entrega no formato YYYY-MM-DDThh:mm:ss19",
                                    "valueid": "0000-00-00T00:00:00DeliveryTime",
                                    "lengthvalue": "190000-00-00T00:00:00",
                                    "typeDescription": "stringPrazo de Entrega no formato YYYY-MM-DDThh:mm:ss"
                                },
                            ]
    {
                    },
                "type": "string",
       {
                             "SimulationNumberlength": "000002"6,
                            "Items": [
                                {"id": "TableCode",
                                    "idvalue": "CarrierCode000001",
                                    "Description": "Código do Transportador da rota calculada",C\ufffddigo da tabela utilizada para o c\ufffdlculo"
                                    "value": "000200001     "},
                                    "length": 14,{
                                    "type": "string",
                                },
                                {"length": 10,
                                    "id": "CarrierCnpjVehicleType",
                                    "Descriptionvalue": "CNPJ      do Transportador da rota calculada",
                                    "valueDescription": "29801143000184Tipo       ",de Ve\ufffdculo"
                                },
    "length": 21,
                           {
         "type": "string"
                          "type": "string",
     },
                                {"length": 10,
                                    "id": "CarrierNameOperationType",
                                    "Descriptionvalue": "Nome      do Transportador da rota calculada",
                                    "valueDescription": "TRANSPTipo MG de Opera\ufffd\ufffdo"
                                },
                                      ",{
                                    "lengthtype": 80"string",
                                    "typelength": "string"4,
                                },
                                {"id": "FreightClassification",
                                    "idvalue": "RouteCode    ",
                                    "Description": "Código da rota utilizada para o cálculo",Classifica\ufffd\ufffdo de Frete"
                                    "value": "0001"},
                                    "length": 4,{
                                    "type": "string",
                                    "length": }6,
                                    {"id": "TradingCode",
                                    "idvalue": "RouteName000001",
                                    "Description": "DescriçãoC\ufffddigo da rota utilizada para o cálculo",
 Negocia\ufffd\ufffdo"
                                },
             "value": "País - 105 - BRASIL , UF - SC | País - 105 - BRASIL , UF - MG",{
                                    "lengthtype": 150"string",
                                    "typelength": "string"4,
                                }    "id": "TrackCode",
                                 {   "value": "0001",
                                    "idDescription": "TypeCapacity",
C\ufffddigo da Faixa"
                                }
       "Description": "Tipo Lotação da Tabela de Frete. (1=Carga Fracionada 2=Carga Fechada 3=Veículo Dedicado)",
                     ],
                            "valueFreightComponents": "Carga Fracionada",[
                                    "length": 16,{
                                    "typeItems": "string"[
                                },
        {
                        {
                    "type": "string",
               "id": "CostFreight",
                               "length": 20,
     "Description": "Valor total do Frete",
                                    "valueid": 100"ComponentCode",
                                            "lengthvalue": 11.2,
 "FRETE PESO          ",
                         "type": "double"
                  "Description": "C\ufffddigo do componente"
           },
                             },
   {
                                    "id": "Tax", {
                                    "Description": "Valor do imposto",
                                    "value": 10,
                                    "length": 11.2,
                                    "type": "double"
                                },
                                {
                                    "id": "DeliveryTime",
                                    "Description": "Prazo de Entrega no formato YYYY-MM-DDThh:mm:ss",
                                    "value": "2017-10-25T16:33:44",
                                    "length": "19",
                                    "type": "string"
                                }
                            ]
                        },
                        {
                            "SimulationNumber": "000003",
                            "Items": [
                                {
                                    "id": "CarrierCode",
                                    "Description": "Código do Transportador da rota calculada",
                                    "value": "000400002     ",
                                    "length": 14,
                                    "type": "string"
                                },
                                {
                                    "id": "CarrierCnpj",
                                    "Description": "CNPJ do Transportador da rota calculada",
                                    "value": "87333684814          ",
                                    "length": 21,
                                    "type": "string"
                                },
                                {
                                    "id": "CarrierName",
                                    "Description": "Nome do Transportador da rota calculada",
                                    "value": "TRANSP AUTONOMO SP                                                              ",
                                    "length": 80,
                                    "type": "string"
                                },
                                {
                                    "id": "RouteCode",
                                    "Description": "Código da rota utilizada para o cálculo",
                                    "value": "0001",
                                    "length": 4,
                                    "type": "string"
                                },
                                {
                                    "id": "RouteName",
                                    "Description": "Descrição da rota utilizada para o cálculo",
                                    "value": "País - 105 - BRASIL , UF - MG | País - 105 - BRASIL , UF - SC",
                                    "length": 150,
                                    "type": "string"
                                },
                                {
                                    "id": "TypeCapacity",
                                    "Description": "Tipo Lotação da Tabela de Frete. (1=Carga Fracionada 2=Carga Fechada 3=Veículo Dedicado)",
                                    "value": "Carga Fracionada",
                                    "length": 16,
                                    "type": "string"
                                },
                                {
                                    "id": "CostFreight",
                                    "Description": "Valor total do Frete",
                                    "value": 1100,
                                    "length": 11.2,
                                    "type": "double"
                                },
                                {
                                    "id": "Tax",
                                    "Description": "Valor do imposto",
                                    "value": 0,
                                    "length": 11.2,
                                    "type": "double"
                                },
                                {
                                    "id": "DeliveryTime",
                                    "Description": "Prazo de Entrega no formato YYYY-MM-DDThh:mm:ss",
                                    "value": "2017-10-25T16:33:44",
                                    "length": "19",
                                    "type": "string"
                                }
                            ]
                        },
                        {
                            "SimulationNumber": "000004",
                            "Items": [
                                {
                                    "id": "CarrierCode",
                                    "Description": "Código do Transportador da rota calculada",
                                    "value": "36265337432   ",
                                    "length": 14,
                                    "type": "string"
                                },
                                {
                                    "id": "CarrierCnpj",
                                    "Description": "CNPJ do Transportador da rota calculada",
                                    "value": "36265337432          ",
                                    "length": 21,
                                    "type": "string"
                                },
                                {
                                    "id": "CarrierName",
                                    "Description"type": "Nome do Transportador da rota calculadadouble",
                                    "value": "TRANSP INT CNPJ     "length": 12.2,
                                                   "id": "ComponentValue",
        ",
                                    "lengthvalue": 80100,
                                    "type": "string"
       "Description": "Valor do componente"
                      },
                  },
              {
                          {
          "id": "RouteCode",
                                    "Descriptiontype": "Código da rota utilizada para o cálculo",
"string",
                                            "valuelength": "0002"20,
                                    "length": 4,
       "id": "ComponentCategory",
                            "type": "string"
               "value": "Frete Unidade",
               },
                             "Description": "Categoria do {componente"
                                     "id": "RouteName",
  }
                                  "Description": "Descrição da]
 rota utilizada para o cálculo",
                           }
         "value": "País - 105 - BRASIL , UF - SC | País - 105 - BRASIL , UF - MG",]
                        },
            "length": 150,
            {
                            "typeSimulationNumber": "string000002",
                                },"Items": [
                                {
                                    "idtype": "TypeCapacitystring",
                                    "Descriptionlength": "Tipo Lotação da Tabela de Frete. (1=Carga Fracionada 2=Carga Fechada 3=Veículo Dedicado)"14,
                                    "valueid": "Carga FracionadaCarrierCode",
                                    "lengthvalue": 16"77785         ",
                                    "typeDescription": "stringC\ufffddigo do Transportador da rota calculada"
                                },
                                {
                                    "idtype": "CostFreightstring",
                                    "Descriptionlength": "Valor total do Frete"21,
                                    "valueid": 210"CarrierCnpj",
                                    "lengthvalue": 11.2,
"06331583000110       ",
                             "type": "double"
      "Description": "CNPJ do Transportador da                      },rota calculada"
                                {
     },
                               "id": "Tax", {
                                    "Descriptiontype": "Valor do impostostring",
                                    "valuelength": 080,
                                    "lengthid": 11.2"CarrierName",
                                    "typevalue": "double"
TRANSPORTADORA SCUBIDU LTDA ME                                             },
     ",
                           {
         "Description": "Nome do Transportador da rota calculada"
                     "id": "DeliveryTime",
          },
                          "Description": "Prazo de Entrega no formato YYYY-MM-DDThh:mm:ss", {
                                    "valuetype": "2017-10-25T16:33:44string",
                                    "length": "19"4,
                                    "typeid": "stringRouteCode",
                                }
    "value": "0001",
                       ]
             "Description": "C\ufffddigo da rota utilizada para      },o c\ufffdlculo"
                        {
             },
               "SimulationNumber": "000005",
                {
            "Items": [
                                {"type": "string",
                                    "idlength": "CarrierCode"150,
                                    "Description": "Código do Transportador da rota calculada"id": "RouteName",
                                    "value": "7752Cidade - 4209102 - JOINVILLE | Cidade - 3550308 - SAO PAULO",
                                    "lengthDescription": 14,
     "Descri\ufffd\ufffdo da rota utilizada para o c\ufffdlculo"
                               "type": "string" },
                                },{
                                {    "type": "string",
                                    "idlength": "CarrierCnpj"16,
                                    "Descriptionid": "CNPJ do Transportador da rota calculadaTypeCapacity",
                                    "value": "07528127000127Carga Fracionada",
      ",
                              "Description": "Tipo Lota\ufffd\ufffdo da Tabela  "length": 21,
     de Frete. (1=Carga Fracionada 2=Carga Fechada 3=Ve\ufffdculo Dedicado)"
                               "type": "string" },
                                },
{
                                     {"type": "double",
                                    "idlength": "CarrierName"11.2,
                                    "Descriptionid": "Nome do Transportador da rota calculadaCostFreight",
                                    "value": "BENEDETTI & BENEDETTI TRANSPS E LOGISTI750,
                                    "Description": "Valor total do     Frete",
                                },
    "length": 80,
                           {
         "type": "string"
                          "type": "double",
     },
                                {"length": 11.2,
                                    "id": "RouteCodeTax",
                                    "Descriptionvalue": "Código da rota utilizada para o cálculo"52.5,
                                    "valueDescription": "0002",
Valor Imposto (ICMS ou ISS)"
                                "length": 4},
                                {
    "type": "string"
                                }"type": "string",
                                  {   "length": "19",
                                    "id": "RouteNameDeliveryTime",
                                    "Descriptionvalue": "Descrição da rota utilizada para o cálculo0000-00-00T00:00:00",
                                    "valueDescription": "Cidade - 4242091 - JOINVILLE | Cidade - 3131062 - BELO HORIZONTE",
Prazo de Entrega no formato YYYY-MM-DDThh:mm:ss"
                                },
                               "length": 150, {
                                    "type": "string",
                                    "length": }6,
                                    {"id": "TableCode",
                                    "idvalue": "TypeCapacity000001",
                                    "Description": "Tipo LotaçãoC\ufffddigo da Tabelatabela deutilizada Frete. (1=Carga Fracionada 2=Carga Fechada 3=Veículo Dedicado)",para o c\ufffdlculo"
                                    "value": "Carga Fracionada"},
                                    "length": 16,{
                                    "type": "string",
                                   }  "length": 10,
                                    {"id": "VehicleType",
                                    "idvalue": "CostFreight          ",
                                    "Description": "ValorTipo total do Frete",de Ve\ufffdculo"
                                    "value": 1200},
                                    "length": 11.2,{
                                    "type": "doublestring",
                                   }  "length": 10,
                                    {"id": "OperationType",
                                    "idvalue": "Tax          ",
                                    "Description": "ValorTipo do imposto",de Opera\ufffd\ufffdo"
                                    "value": 120},
                                {
    "length": 11.2,
                               "type": "string",
    "type": "double"
                               "length": }4,
                                 {   "id": "FreightClassification",
                                    "idvalue": "DeliveryTime    ",
                                    "Description": "PrazoClassifica\ufffd\ufffdo de Entrega no formato YYYY-MM-DDThh:mm:ss",Frete"
                                    "value": "0000-00-00T00:00:00"},
                                    "length": "19",{
                                    "type": "string",
                                     }"length": 6,
                            ]
        "id": "TradingCode",
               },
                     "value": "000001",
        {
                            "SimulationNumberDescription": "000006",
C\ufffddigo da Negocia\ufffd\ufffdo"
                               "Items": [ },
                                {
                                    "idtype": "CarrierCodestring",
                                    "Descriptionlength": "Código do Transportador da rota calculada"4,
                                    "valueid": "843770001     TrackCode",
                                    "lengthvalue": 14"0001",
                                    "typeDescription": "string"
C\ufffddigo da Faixa"
                                }
                    },
        ],
                        {
    "FreightComponents": [
                               "id": "CarrierCnpj", {
                                    "DescriptionItems": "CNPJ[
 do Transportador da rota calculada",
                                    "value": "56062926000166{
        ",
                                    "lengthtype": 21"string",
                                    "type        "length": "string"
20,
                                    },
        "id": "ComponentCode",
                        {
                    "value": "GRIS               "id": "CarrierName",
                                            "Description": "NomeC\ufffddigo do Transportador da rota calculada",
componente"
                                     "value": "TRANSP 1 DOC},
 CARGA POR ROMANEIO JLLE                                    {
        ",
                                    "lengthtype": 80"double",
                                    "type": "string"
          "length": 12.2,
                     },
                       "id": "ComponentValue",
        {
                                    "idvalue": "RouteCode"0,
                                            "Description": "Código da rota utilizada para o cálculo",
Valor do componente"
                                        },
          "value": "0002",
                             {
       "length": 4,
                                    "type": "string",
                                },
            "length": 20,
                   {
                                    "id": "RouteNameComponentCategory",
                                      "Description": "Descrição da rota utilizada para o cálculo      "value": "Frete Valor",
                                    "value": "País - 105 - BRASIL , UF - SC | País - 105 - BRASIL , UF - MG",
"Description": "Categoria do componente"
                                       "length": 150, }
                                    "type": "string"]
                                },
                                {
                                    "idItems": "TypeCapacity",[
                                    "Description": "Tipo Lotação da Tabela{
 de Frete. (1=Carga Fracionada 2=Carga Fechada 3=Veículo Dedicado)",
                                    "valuetype": "Carga Fracionadastring",
                                    "length": 16,
        "length": 20,
                           "type": "string"
                                }"id": "ComponentCode",
                                {
                   "value": "FRETE FIXO          ",
       "id": "CostFreight",
                                    "Description": "ValorC\ufffddigo total do Fretecomponente",
                                     "value": 257   },
                                    "length": 11.2,
   {
                                 "type": "double"
          "type": "double",
                     },
                       "length": 12.2,
        {
                                    "id": "TaxComponentValue",
                                            "Descriptionvalue": "Valor do imposto",
 750,
                                            "valueDescription": 0,
 "Valor do componente"
                                      "length": 11.2  },
                                    "type": "double"
   {
                             },
               "type": "string",
                {
                            "length": 20,
       "id": "DeliveryTime",
                                    "Descriptionid": "Prazo de Entrega no formato YYYY-MM-DDThh:mm:ss",
"ComponentCategory",
                                            "value": "2017-10-25T16:33:44Frete Unidade",
                                            "lengthDescription": "19Categoria do componente",
                                    "type": "string"
        }
                        }
            ]
                ]
                }
        }
                    ],
                    "Status": "ok",
   }
                 "Message": "FreightSimulations: Simulação realizada com sucesso."]
                }
            ]
        }
    ]
}


Arquivo JSON exemplo de simulação de frete não realizada.

...

FreightCalculation - Simulações realizadas.
FieldDescriçãoTipoTamanho
CarrierCodeCodigo do Transportador da rota calculada.Alfanumérico14
CarrierCnpjCNPJ do Transportador da rota calculada.Alfanumérico14
CarrierNameNome do Transportador da rota calculada.Alfanumérico80
RouteCodeCódigo da rota utilizada para o cálculo.Alfanumérico4
RouteNameDescrição da rota utilizada para o cálculo.Alfanumérico150
TypeCapacityTipo de Lotação da Tabela de Frete (1=Carga Fracionada; 2=Carga Fechada; 3=Veículo Dedicado).Alfanumérico1
CostFreightValor total do Frete.Numérico12,2
TaxValor Imposto (ICMS ou ISS).Numérico12,2
DeliveryTimePrazo de Entrega no formato YYYY-MM-DDThh:mm:ss.Alfanumérico19
TableCodeCódigo da tabela utilizada para o cálculoAlfanumérico6
VehicleTypeTipo de VeículoAlfanúmerico10
OperationTypeTipo de OperaçãoAlfanúmerico10
FreightClassificationClassificação de FreteAlfanúmerico4
TradingCodeCódigo da NegociaçãoAlfanúmerico6
TrackCodeCódigo da FaixaAlfanúmerico4
FreightComponents - Componentes do Cálculo de Frete
FieldDescriçãoTipoTamanho
ComponentCodeCódigo do ComponenteAlfanúmerico20
ComponentValueValor do ComponenteNúmerico12,2
ComponentCategoryCategoria do ComponenteAlfanúmerico20

Detalhamento técnico da estrutura do arquivo

...

Estrutura do arquivo da simulação realizada.

TAGSDescrição
content




Agrupador.

Items



Agrupador.


Status


Status.


Message


Mensagem do Status.


FreightCalculation

Agrupador.



SimulationNumber

Número da Simulação.



Items

Agrupador.




CarrierCode
Código do Transportador da rota calculada.




CarrierCnpj
CNPJ do Transportador da rota calculada.




CarrierName
Nome do Transportador da rota calculada.




RouteCode
Código da rota utilizada para o cálculo.




RouteName
Descrição da rota utilizada para o cálculo.




TypeCapacity
Tipo de Lotação da Tabela de Frete (1=Carga Fracionada; 2=Carga Fechada; 3=Veículo Dedicado).




CostFreight
Valor total do Frete.




Tax
Valor Imposto (ICMS ou ISS).




DeliveryTime
Prazo de Entrega no formato YYYY-MM-DDThh:mm:ss.




TableCode
Código da tabela utilizada para cálculo




VehicleType
Tipo de Veículo




OperationType
Tipo de Operação




FreightClassification
Classificação de Frete




TradingCode
Código da Negociação




TrackCode
Código da Faixa



FreightComponents

Agrupador




Items
Agrupador





ComponentCodeCódigo do Componente





ComponentValueValor do Componente





ComponentCategoryCategoria do Componente


Estrutura do arquivo de simulação não realizada.

...