콘텐츠로 이동

Tracking

이 콘텐츠는 아직 번역되지 않았습니다.

You can use Tracking API to obtain list of events for a tracking number. We assume that the tracking number is generated in your Teapplix account. In addition, you can also have Teapplix send out Tracking Notifications for tracking numbers generated inside Teapplix (you would need to contact Teapplix Support to turn this on)

  • GET - you query the tracking event for a single tracking number
  • POST - this is an outbound notification that Teapplix sends out, daily, on “active shipments” that is generated in your Teapplix Account

The following is the schema for the /Tracking call. Notice for POST, the input / output is reversed on the outbound “notification”:

https://api.teapplix.com/api2/Track Explorer

GET Request

Query parameters

PropertyTypeDescriptionConstraints
Carrier string Carrier name, possible values 'USPS', 'UPS', 'FEDEX', 'DHLE', 'DHL', 'GOFO', 'YANWEN'
TrackingNumber string Shipment tracking #

GET Response - 200

Track

PropertyTypeDescriptionConstraints
TxnId string Unique id for each entry Max-Length: 40Pattern: [\s\S]
PackageNo integer Package Number
ShipDate string Shipping date Format: date
TrackingNumber string Tracking number of shipment RequiredMax-Length: 50
CarrierName string Carrier name which is assigned with tracking
IsDelivered boolean Was package delivered Required
Status string Teapplix tracking status: delivered, in_transit, out_for_delivery, picked_up, pre_transit, return_to_sender, failure, unknown
EstimatedDeliveryDate string Estimated Delivery Date (if available) Pattern: ^\d\d\d\d-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$
Events TrackingEventDetails[] Tracking events details

TrackingEventDetails

PropertyTypeDescriptionConstraints
DateTime string Event date and time (UTC) Pattern: ^\d\d\d\d-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]) (0[0-9]|1[0-9]|2[0-3]):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9])$
City string City where event occurred (if available)
State string State where event occurred (if available)
Country string Country where event occurred (if available)
PostalCode string Postal or ZIP code where event occurred (if available)
Type string Event type RequiredOne of: DELIVERY, RETURN, PICKUP, SUBMIT_TO_CARRIER, ADJUST_WEIGHT_RATE, PRESORT, EXCEPTION, OTHER
Status string Teapplix tracking status: delivered, in_transit, out_for_delivery, picked_up, pre_transit, return_to_sender, failure, unknown
Description string Event type description (if available)

GET Response - 400

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description

GET Response - 500

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description
Test Request