Pacejet
  • API
  • API Examples
  • API Samples: GET ShipmentConfirms to retrieve data after shipping with a carrier

API Samples: GET ShipmentConfirms to retrieve data after shipping with a carrier

Select ShipmentConfirms, replace the token {TransactionID} in the sample code with your transaction ID (e.g. PackList030901 as shown below), and click the Run It button.


The response returned by ShipmentConfirms includes a wide range of detail about the processed shipment. The example below has been edited to focus on showing key fields including cost, price, list price, addresses, and package level detail such as tracking numbers, weight, and dimensions.


{
  "notifications": {
    "highestSeverity": "Success",
    "highestSeverityNotification": null
  },
  "transactionID": "PackList030901",
  "externalTransactionID": "PackList030901",
  "location": "DemoAPI",
  "carrierClassOfService": "Ground",
  "carrier": "FedEx",
  "shipVia": "FEDGRO",
  "freightTerms": "",
  "origin": {
    "address1": "1075 4th St.",
    "address2": "",
    "address3": "",
    "address4": "",
    "address5": null,
    "city": "Boston",
    "stateOrProvinceCode": "MA",
    "postalCode": "02127",
    "urbanizationCode": null,
    "countryCode": "US",
    "locationType": "Facility",
    "locationSite": "MAIN",
    "locationCode": "1",
    "companyName": "Wolfe East",
    "contactName": "Bob Eastman",
    "email": "bob.eastman@wolfe.com",
    "phone": "877-722-3538"
  },
  "destination": {
    "address1": "3185 Main Ave",
    "address2": "",
    "address3": "",
    "address4": "",
    "address5": null,
    "city": "Fargo",
    "stateOrProvinceCode": "ND",
    "postalCode": "58103",
    "countryCode": "US",
    "residential": false,
    "locationType": "Customer",
    "locationSite": "",
    "locationCode": "PJCU_000746",
    "companyName": "Buysalot, Inc",
    "contactName": "Bob Buyers",
    "email": "bob.buyers@buysalot.com",
    "phone": "877-722-3538"
  },
  "routingDetail": {
    "shipTimestamp": "2017-03-09T03:14:52.41Z",
    "arrivalEstimate": "2017-04-03T00:00:00",
    "transitTime": 3,
    "arrivalEstimateString": "Monday, April 3, 2017"
  },
  "rateDetail": {
    "freightTotalCost": {
      "currency": "USD",
      "amount": 58.73
    },
    "freightTotalPrice": {
      "currency": "USD",
      "amount": 68.73
    },
    "freightListPrice": {
      "currency": "USD",
      "amount": 58.73
    }
  },
  "completedPackageDetailsList": [
    {
      "packingListNumber": "PackList030-001",
      "trackingUrl": "http://www.fedex.com/Tracking?tracknumbers=900804315262624",
      "trackingNumber": "900804315262624"
      "weight": {
        "units": 1,
        "value": 15
      },
      "dimensions": {
        "length": "16",
        "width": "16",
        "height": "16",
        "units": 1
      },
    },
    {
      "packingListNumber": "PackList030-002",
      "trackingUrl": "http://www.fedex.com/Tracking?tracknumbers=900804315262631",
      "trackingNumber": "900804315262631",
      "weight": {
        "units": 1,
        "value": 25
      },
      "dimensions": {
        "length": "20",
        "width": "16",
        "height": "14",
        "units": 1
      }
    }
  ]
}