Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.
Comentário: Atualização da propertie callbackURL

Recebimento

Bloco de código
languagejava
linenumberstrue
{
   "dateCall":"2021-08-18T10:00:00",
   "callbackUrlcallbackURL":"https://5530a927-9c79-413c-b116-63907863f4c2.mock.pstmn.io/tpr",
   "callbackAuthenticationType":"NONE",
   "orders":[
      {
         "identifier":"Pedido_001",
         "weight":226.0,
         "volume":10.0,
         "pickupTimeWindowStart":"2021-08-18T08:00:00.0-03:00",
         "pickupTimeWindowEnd":"2021-09-18T18:00:00.0-03:00",
         "deliveryTimeWindowStart":"2021-08-18T08:00:00.0-03:00",
         "deliveryTimeWindowEnd":"2021-09-20T18:00:00.0-03:00",
         "serviceLoadDuration":600000,
         "serviceUnloadDuration":1800000,
         "origin":{
            "identifier":"CD-01 - CD JUNDIAI",
            "country":"BRA",
            "latitude":-23.163984,
            "longitude":-46.934046,
            "operation":"UNRESTRICTED"
         },
         "destination":{
            "identifier":"CLI-000506-01 - MAKRO ATACADISTA S A",
            "country":"BRA",
            "latitude":-23.674084,
            "longitude":-46.571411,
            "operation":"UNRESTRICTED"
         }
      },
      {
         "identifier":"Pedido_002",
         "weight":5600.0,
         "volume":10.0,
         "pickupTimeWindowStart":"2021-08-18T08:00:00.0-03:00",
         "pickupTimeWindowEnd":"2021-09-18T18:00:00.0-03:00",
         "deliveryTimeWindowStart":"2021-08-18T08:00:00.0-03:00",
         "deliveryTimeWindowEnd":"2021-09-20T18:00:00.0-03:00",
         "serviceLoadDuration":600000,
         "serviceUnloadDuration":1800000,
         "origin":{
            "identifier":"CD-01 - CD JUNDIAI",
            "country":"BRA",
            "latitude":-23.163984,
            "longitude":-46.934046,
            "operation":"UNRESTRICTED"
         },
         "destination":{
            "identifier":"CLI-056194-01 - SEGALA'S ALIMENTOS LTDA",
            "country":"BRA",
            "latitude":-26.890883,
            "longitude":-48.989389,
            "operation":"UNRESTRICTED"
         }
      }
   ],
   "vehicles":[
      {
         "identifier":"Truck",
         "weightCapacity":14000.0,
         "volumeCapacity":100.0,
         "quantity":1,
         "speed":30.0
      }
   ],
   "restrictions":{
      "maxLoadingStops":999,
      "maxUnloadingStops":999
   },
   "routingOptions":{
      "capacityCriteria":"WEIGHT"
   }
}

Resposta

Bloco de código
languagejava
linenumberstrue
{
   "responseDate":"2021-08-18T17:29:42.670Z",
   "version":"",
   "success":true,
   "messages":[
      {
         "messageCode":"TPRRT0000",
         "message":"Sucesso."
      }
   ]
}

Callback

Bloco de código
languagejava
linenumberstrue
{
   "responseDate":"2021-08-18T13:00:00.000Z",
   "version":null,
   "summary":{
      "totalTrips":1,
      "totalDistance":706.0505969274221,
      "totalStops":3,
      "totalVolume":20.0,
      "totalWeight":5826.0,
      "totalDuration":9.0126072E7,
      "rejectedOrders":0,
      "rejectedWeight":0.0,
      "rejectedVolume":0.0
   },
   "tripsResults":[
      {
         "distance":706.0505969274221,
         "numberOfStops":3,
         "volume":20.0,
         "weight":5826.0,
         "duration":90126072,
         "extraTrip":false,
         "vehicle":"Truck",
         "stops":[
            {
               "stopSequence":0,
               "stopType":"BOTH",
               "locality":{
                  "identifier":"CD-01 - CD JUNDIAI",
                  "country":"BR",
                  "latitude":-23.163984,
                  "longitude":-46.934046,
                  "operation":"UNRESTRICTED"
               },
               "arrivalTime":"2021-08-18T11:00:00.000Z",
               "departureTime":"2021-08-18T11:30:00.000Z",
               "loadedOrders":[
                  {
                     "identifier":"Pedido_001",
                     "volume":10.0,
                     "weight":226.0
                  },
                  {
                     "identifier":"Pedido_002",
                     "volume":10.0,
                     "weight":5600.0
                  }
               ],
               "unloadedOrders":[
                  
               ]
            },
            {
               "stopSequence":1,
               "stopType":"BOTH",
               "locality":{
                  "identifier":"CLI-000506-01 - MAKRO ATACADISTA S A",
                  "country":"BR",
                  "latitude":-23.674084,
                  "longitude":-46.571411,
                  "operation":"UNRESTRICTED"
               },
               "arrivalTime":"2021-08-18T14:10:18.884Z",
               "departureTime":"2021-08-18T14:40:18.884Z",
               "loadedOrders":[
                  
               ],
               "unloadedOrders":[
                  {
                     "identifier":"Pedido_001",
                     "volume":10.0,
                     "weight":226.0
                  }
               ]
            },
            {
               "stopSequence":2,
               "stopType":"BOTH",
               "locality":{
                  "identifier":"CLI-056194-01 - SEGALA'S ALIMENTOS LTDA",
                  "country":"BR",
                  "latitude":-26.890883,
                  "longitude":-48.989389,
                  "operation":"UNRESTRICTED"
               },
               "arrivalTime":"2021-08-19T11:32:06.072Z",
               "departureTime":"2021-08-19T12:02:06.072Z",
               "loadedOrders":[
                  
               ],
               "unloadedOrders":[
                  {
                     "identifier":"Pedido_002",
                     "volume":10.0,
                     "weight":5600.0
                  }
               ]
            }
         ]
      }
   ],
   "rejection":{
      "messages":[
         
      ],
      "orders":[
         
      ]
   },
   "messages":[
      
   ],
   "qualifiers":null
}