Newer
Older
fedex-api / src / test / resources / trackingResponse.json
@aljunggren aljunggren on 29 Dec 2021 11 KB Initial commit
{
	"transactionId" : "624deea6-b709-470c-8c39-4b5511281492",
	"customerTransactionId" : "AnyCo_order123456789",
	"output" : {
		"completeTrackResults" : [{
				"trackingNumber" : "123456789012",
				"trackResults" : [{
						"trackingNumberInfo" : {
							"trackingNumber" : "128667043726",
							"carrierCode" : "FDXE",
							"trackingNumberUniqueId" : "245822~123456789012~FDEG"
						},
						"additionalTrackingInfo" : {
							"hasAssociatedShipments" : false,
							"nickname" : "shipment nickname",
							"packageIdentifiers" : [{
									"type" : "SHIPPER_REFERENCE",
									"value" : "ASJFGVAS",
									"trackingNumberUniqueId" : "245822~123456789012~FDEG"
								}
							],
							"shipmentNotes" : "shipment notes"
						},
						"distanceToDestination" : {
							"units" : "KM",
							"value" : 685.7
						},
						"consolidationDetail" : [{
								"timeStamp" : "2020-10-13T03:54:44",
								"consolidationID" : "47936927",
								"reasonDetail" : {
									"description" : "Wrong color",
									"type" : "REJECTED"
								},
								"packageCount" : 25,
								"eventType" : "PACKAGE_ADDED_TO_CONSOLIDATION"
							}
						],
						"meterNumber" : "8468376",
						"returnDetail" : {
							"authorizationName" : "Sammy Smith",
							"reasonDetail" : [{
									"description" : "Wrong color",
									"type" : "REJECTED"
								}
							]
						},
						"serviceDetail" : {
							"description" : "FedEx Freight Economy.",
							"shortDescription" : "FL",
							"type" : "FEDEX_FREIGHT_ECONOMY"
						},
						"destinationLocation" : {
							"locationId" : "SEA",
							"locationContactAndAddress" : {
								"contact" : {
									"personName" : "John Taylor",
									"phoneNumber" : "1234567890",
									"companyName" : "Fedex"
								},
								"address" : {
									"classification" : "BUSINESS",
									"residential" : false,
									"streetLines" : [
										"1043 North Easy Street",
										"Suite 999"
									],
									"city" : "SEATTLE",
									"urbanizationCode" : "RAFAEL",
									"stateOrProvinceCode" : "WA",
									"postalCode" : "98101",
									"countryCode" : "US"
								}
							},
							"locationType" : "PICKUP_LOCATION"
						},
						"latestStatusDetail" : {
							"scanLocation" : {
								"classification" : "BUSINESS",
								"residential" : false,
								"streetLines" : [
									"1043 North Easy Street",
									"Suite 999"
								],
								"city" : "SEATTLE",
								"urbanizationCode" : "RAFAEL",
								"stateOrProvinceCode" : "WA",
								"postalCode" : "98101",
								"countryCode" : "US",
								"countryName" : "United States"
							},
							"code" : "PU",
							"derivedCode" : "PU",
							"ancillaryDetails" : [{
									"reason" : "15",
									"reasonDescription" : "Customer not available or business closed",
									"action" : "Contact us at <http://www.fedex.com/us/customersupport/call/index.html> to discuss possible delivery or pickup alternatives.",
									"actionDescription" : "Customer not Available or Business Closed"
								}
							],
							"statusByLocale" : "Picked up",
							"description" : "Picked up",
							"delayDetail" : {
								"type" : "WEATHER",
								"subType" : "SNOW",
								"status" : "DELAYED"
							}
						},
						"serviceCommitMessage" : {
							"message" : "No scheduled delivery date available at this time.",
							"type" : "ESTIMATED_DELIVERY_DATE_UNAVAILABLE"
						},
						"informationNotes" : [{
								"code" : "CLEARANCE_ENTRY_FEE_APPLIES",
								"description" : "this is an informational message"
							}
						],
						"error" : {
							"code" : "TRACKING.TRACKINGNUMBER.EMPTY",
							"parameterList" : [{
									"value" : "value",
									"key" : "key"
								}
							],
							"message" : "Please provide tracking number."
						},
						"specialHandlings" : [{
								"description" : "Deliver Weekday",
								"type" : "DELIVER_WEEKDAY",
								"paymentType" : "OTHER"
							}
						],
						"availableImages" : [{
								"size" : "LARGE",
								"type" : "BILL_OF_LADING"
							}
						],
						"deliveryDetails" : {
							"receivedByName" : "Reciever",
							"destinationServiceArea" : "EDDUNAVAILABLE",
							"destinationServiceAreaDescription" : "Appointment required",
							"locationDescription" : "Receptionist/Front Desk",
							"actualDeliveryAddress" : {
								"classification" : "BUSINESS",
								"residential" : false,
								"streetLines" : [
									"1043 North Easy Street",
									"Suite 999"
								],
								"city" : "SEATTLE",
								"urbanizationCode" : "RAFAEL",
								"stateOrProvinceCode" : "WA",
								"postalCode" : "98101",
								"countryCode" : "US",
								"countryName" : "United States"
							},
							"deliveryToday" : false,
							"locationType" : "FEDEX_EXPRESS_STATION",
							"signedByName" : "Reciever",
							"officeOrderDeliveryMethod" : "Courier",
							"deliveryAttempts" : "0",
							"deliveryOptionEligibilityDetails" : [{
									"option" : "INDIRECT_SIGNATURE_RELEASE",
									"eligibility" : "INELIGIBLE"
								}
							]
						},
						"scanEvents" : [{
								"date" : "2018-02-02T12:01:00",
								"derivedStatus" : "Picked Up",
								"scanLocation" : {
									"locationId" : "SEA",
									"locationContactAndAddress" : {
										"contact" : {
											"personName" : "John Taylor",
											"phoneNumber" : "1234567890",
											"companyName" : "Fedex"
										},
										"address" : {
											"classification" : "BUSINESS",
											"residential" : false,
											"streetLines" : [
												"1043 North Easy Street",
												"Suite 999"
											],
											"city" : "SEATTLE",
											"urbanizationCode" : "RAFAEL",
											"stateOrProvinceCode" : "WA",
											"postalCode" : "98101",
											"countryCode" : "US"
										}
									},
									"locationType" : "PICKUP_LOCATION"
								},
								"exceptionDescription" : "Package available for clearance",
								"eventDescription" : "Picked Up",
								"eventType" : "PU",
								"derivedStatusCode" : "PU",
								"exceptionCode" : "A25",
								"delayDetail" : {
									"type" : "WEATHER",
									"subType" : "SNOW",
									"status" : "DELAYED"
								}
							}
						],
						"dateAndTimes" : [{
								"dateTime" : "2007-09-27T00:00:00",
								"type" : "ACTUAL_DELIVERY"
							}
						],
						"packageDetails" : {
							"physicalPackagingType" : "BARREL",
							"sequenceNumber" : "45",
							"undeliveredCount" : "7",
							"packagingDescription" : {
								"description" : "FedEx Pak",
								"type" : "FEDEX_PAK"
							},
							"count" : "1",
							"weightAndDimensions" : {
								"weight" : [{
										"unit" : "LB",
										"value" : "22222.0"
									}
								],
								"dimensions" : [{
										"length" : 100,
										"width" : 50,
										"height" : 30,
										"units" : "CM"
									}
								]
							},
							"packageContent" : [
								"wire hangers",
								"buttons"
							],
							"contentPieceCount" : "100",
							"declaredValue" : {
								"currency" : "USD",
								"value" : 56.8
							}
						},
						"goodsClassificationCode" : "goodsClassificationCode",
						"holdAtLocation" : {
							"locationId" : "SEA",
							"locationContactAndAddress" : {
								"contact" : {
									"personName" : "John Taylor",
									"phoneNumber" : "1234567890",
									"companyName" : "Fedex"
								},
								"address" : {
									"classification" : "BUSINESS",
									"residential" : false,
									"streetLines" : [
										"1043 North Easy Street",
										"Suite 999"
									],
									"city" : "SEATTLE",
									"urbanizationCode" : "RAFAEL",
									"stateOrProvinceCode" : "WA",
									"postalCode" : "98101",
									"countryCode" : "US",
									"countryName" : "United States"
								}
							},
							"locationType" : "PICKUP_LOCATION"
						},
						"customDeliveryOptions" : [{
								"requestedAppointmentDetail" : {
									"date" : "2019-05-07",
									"window" : [{
											"description" : "Description field",
											"window" : {
												"begins" : "2021-10-01T08:00:00",
												"ends" : "2021-10-15T00:00:00"
											},
											"type" : "ESTIMATED_DELIVERY"
										}
									]
								},
								"description" : "Redirect the package to the hold location.",
								"type" : "REDIRECT_TO_HOLD_AT_LOCATION",
								"status" : "HELD"
							}
						],
						"estimatedDeliveryTimeWindow" : {
							"description" : "Description field",
							"window" : {
								"begins" : "2021-10-01T08:00:00",
								"ends" : "2021-10-15T00:00:00"
							},
							"type" : "ESTIMATED_DELIVERY"
						},
						"pieceCounts" : [{
								"count" : "35",
								"description" : "picec count description",
								"type" : "ORIGIN"
							}
						],
						"originLocation" : {
							"locationId" : "SEA",
							"locationContactAndAddress" : {
								"contact" : {
									"personName" : "John Taylor",
									"phoneNumber" : "1234567890",
									"companyName" : "Fedex"
								},
								"address" : {
									"classification" : "BUSINESS",
									"residential" : false,
									"streetLines" : [
										"1043 North Easy Street",
										"Suite 999"
									],
									"city" : "SEATTLE",
									"urbanizationCode" : "RAFAEL",
									"stateOrProvinceCode" : "WA",
									"postalCode" : "98101",
									"countryCode" : "US"
								}
							},
							"locationType" : "PICKUP_LOCATION"
						},
						"recipientInformation" : {
							"contact" : {
								"personName" : "John Taylor",
								"phoneNumber" : "1234567890",
								"companyName" : "Fedex"
							},
							"address" : {
								"classification" : "BUSINESS",
								"residential" : false,
								"streetLines" : [
									"1043 North Easy Street",
									"Suite 999"
								],
								"city" : "SEATTLE",
								"urbanizationCode" : "RAFAEL",
								"stateOrProvinceCode" : "WA",
								"postalCode" : "98101",
								"countryCode" : "US",
								"countryName" : "United States"
							}
						},
						"standardTransitTimeWindow" : {
							"description" : "Description field",
							"window" : {
								"begins" : "2021-10-01T08:00:00",
								"ends" : "2021-10-15T00:00:00"
							},
							"type" : "ESTIMATED_DELIVERY"
						},
						"shipmentDetails" : {
							"contents" : [{
									"itemNumber" : "RZ5678",
									"receivedQuantity" : "13",
									"description" : "pulyurethane rope",
									"partNumber" : "RK1345"
								}
							],
							"beforePossessionStatus" : false,
							"weight" : [{
									"unit" : "LB",
									"value" : "22222.0"
								}
							],
							"contentPieceCount" : "3333",
							"splitShipments" : [{
									"pieceCount" : "10",
									"statusDescription" : "status",
									"timestamp" : "2019-05-07T08:00:07",
									"statusCode" : "statuscode"
								}
							]
						},
						"reasonDetail" : {
							"description" : "Wrong color",
							"type" : "REJECTED"
						},
						"availableNotifications" : [
							"ON_DELIVERY",
							"ON_EXCEPTION"
						],
						"shipperInformation" : {
							"contact" : {
								"personName" : "John Taylor",
								"phoneNumber" : "1234567890",
								"companyName" : "Fedex"
							},
							"address" : {
								"classification" : "BUSINESS",
								"residential" : false,
								"streetLines" : [
									"1043 North Easy Street",
									"Suite 999"
								],
								"city" : "SEATTLE",
								"urbanizationCode" : "RAFAEL",
								"stateOrProvinceCode" : "WA",
								"postalCode" : "98101",
								"countryCode" : "US",
								"countryName" : "United States"
							}
						},
						"lastUpdatedDestinationAddress" : {
							"classification" : "BUSINESS",
							"residential" : false,
							"streetLines" : [
								"1043 North Easy Street",
								"Suite 999"
							],
							"city" : "SEATTLE",
							"urbanizationCode" : "RAFAEL",
							"stateOrProvinceCode" : "WA",
							"postalCode" : "98101",
							"countryCode" : "US",
							"countryName" : "United States"
						}
					}
				]
			}
		],
		"alerts" : "TRACKING.DATA.NOTFOUND -  Tracking data unavailable"
	}
}