Á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",
   "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"
         }CUSTOMIZED",
         "destination			"customizedOperations":[{
            	"identifierweekDay":"CLI-000506-01 - MAKRO ATACADISTA S A "MON",
            	"countrystartTime": "BRA10:00",
            	"latitude":endTime": "17:00"
     	   }]      
    	},
         "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"
   }
}

Response
{

Resposta

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

Resposta

Callback

Bloco de código
languagejava
linenumberstrue
{
   "responseDate":"2021-08-18T13:00:00.000Z",
   "version":null,
,
   "summary":{
      "totalTrips":1,
      "totalDistance":706.0505969274221,
      "totalStops":3,
      "summarytotalVolume":{20.0,
      "totalTripstotalWeight":15826.0,
      "totalDistancetotalDuration":7069.05059692742210126072E7,
      "totalStopsrejectedOrders":30,
      "totalVolumerejectedWeight":200.0,
      "totalWeightrejectedVolume":58260.0
   },
   "tripsResults":[
      {
         "totalDurationdistance":9706.0126072E70505969274221,
         "rejectedOrdersnumberOfStops":03,
         "rejectedWeightvolume":020.0,
Request
         "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
}