Árvore de páginas

Versões comparadas

Chave

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

Recebimento

Bloco de código
languagejava
linenumberstrue
{
   "dateCall":"2021-08-18T10:00:00",
   "callbackURL":"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"
         }CUSTOMIZED",
         "destination			"customizedOperations":[{
            	"identifierweekDay":"CLI-000506-01 - MAKRO ATACADISTA S A "MON",
            	"countrystartTime": "BRA10:00",
            	"latitudeendTime":-23.674084, "17:00"
     	   }]      "longitude":-46.571411 
    	},
            "operationdestination":"UNRESTRICTED"{
          }
      }  "identifier":"CLI-000506-01 - MAKRO ATACADISTA S A",
      {
         "identifier"country":"Pedido_002BRA",
            "weightlatitude":5600-23.0674084,
            "volumelongitude":10-46.0571411,
            "pickupTimeWindowStartoperation":"2021-08-18T08:00:00.0-03:00",UNRESTRICTED"
         "pickupTimeWindowEnd":"2021-09-18T18:00:00.0-03:00}
      },
      {
         "identifier":"Pedido_002",
         "deliveryTimeWindowStartweight":"2021-08-18T08:00:005600.0-03:00",
         "deliveryTimeWindowEndvolume":10.0,
         "pickupTimeWindowStart":"2021-0908-20T1818T08:00:00.0-03:00",
         "serviceLoadDurationpickupTimeWindowEnd":600000,
         "serviceUnloadDuration":1800000"2021-09-18T18:00:00.0-03:00",
         "origindeliveryTimeWindowStart":{"2021-08-18T08:00:00.0-03:00",
            "identifierdeliveryTimeWindowEnd":"CD-01 - CD JUNDIAI2021-09-20T18:00:00.0-03:00",
            "countryserviceLoadDuration":"BRA"600000,
            "latitudeserviceUnloadDuration":-23.1639841800000,
            "longitude"origin":-46.934046,{
            "operationidentifier":"UNRESTRICTED"
   CD-01 - CD JUNDIAI",
      },
         "destinationcountry":{"BRA",
            "identifierlatitude":"CLI-056194-01 - SEGALA'S ALIMENTOS LTDA"-23.163984,
            "countrylongitude":"BRA"-46.934046,
            "latitudeoperation":-26.890883,
"UNRESTRICTED"
         },
         "longitudedestination":-48.989389,{
            "operationidentifier":"UNRESTRICTED"
    CLI-056194-01 - SEGALA'S ALIMENTOS LTDA",
     }
      }
   ],
 "country":"BRA",
            "vehicleslatitude":[-26.890883,
      {
         "identifierlongitude":"Truck"-48.989389,
            "weightCapacityoperation":14000.0,"UNRESTRICTED"
         "volumeCapacity":100.0,}
      }
   "quantity":1,
         "speed":30.0],
   "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":[
      }{
   ],
   "restrictions":{
      "maxLoadingStopsmessageCode":999"TPRRT0000",
      "maxUnloadingStops":999
   },
   "routingOptionsmessage":{"Sucesso."
      "capacityCriteria":"WEIGHT"}
   }]
}
Resposta

Callback

Bloco de código
languagejava
linenumberstrue
{
   "responseDate":"2021-08-18T1718T13:2900:4200.670Z000Z",
   "version":"",
   "success":true,
   "messages":[
      {
         "messageCode":"TPRRT0000"null,
   "summary":{
      "messagetotalTrips":"Sucesso."1,
      }"totalDistance":706.0505969274221,
   ]
}

Callback

Bloco de código
languagejava
linenumberstrue
{
   "responseDatetotalStops":"2021-08-18T13:00:00.000Z"3,
      "versiontotalVolume":null20.0,
      "summarytotalWeight":{5826.0,
      "totalTripstotalDuration":19.0126072E7,
      "totalDistancerejectedOrders":706.05059692742210,
      "totalStopsrejectedWeight":30.0,
      "totalVolumerejectedVolume":200.0,
   },
   "totalWeighttripsResults":5826.0,[
      {
         "totalDurationdistance":9706.0126072E70505969274221,
         "rejectedOrdersnumberOfStops":03,
         "rejectedWeightvolume":020.0,
         "rejectedVolumeweight":05826.0
   },
   "tripsResults":[
      {"duration":90126072,
         "distanceextraTrip":706.0505969274221false,
         "numberOfStopsvehicle":3"Truck",
         "volume":20.0,stops":[
         "weight":5826.0,
   {
      "duration":90126072,
         "extraTripsequence":false0,
               "vehicletype":"TruckBOTH",
         "stops":[
      "locality":{
      {
            "identifier":"CD-01 - CD "stopSequenceJUNDIAI":0,
                  "stopTypecountry":"BOTHBR",
                  "localitylatitude":{-23.163984,
                  "identifierlongitude":"CD-01 - CD JUNDIAI"-46.934046,
                  "countryoperation":"BRCUSTOMIZED",
				  "customizedOperations":[{
            	 	 "weekDay":  "latitudeMON":-23.163984,
         		        "startTime": "longitude":-46.93404610:00",
           		   	    "operationendTime": "UNRESTRICTED"17:00"
     	  		 }]  
               },
               "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":[
                  
               ]
            },
            {
               "stopSequencesequence":1,
               "stopTypetype":"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
                  }
               ]
            },
            {
               "stopSequencesequence":2,
               "stopTypetype":"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
}