background preloader

Using our tracking service

27 november 2017

Using our tracking service

This guide will teach you both methods to track plans with EasyPost.

There's 2 approaches of tracking bundles with EasyPost:

  • Provide your existing tracking number and provider
  • Acquisition the delivery label with EasyPost, which includes a free Tracker.

Check : https://trackings.co

Our tracking solution makes use of webhooks to give you updates concerning your deliveries. Describe our webhooks guide to learn how we utilize webhooks to send you tracking updates.

Step 1: Create a Tracker utilizing your tracking code & carrier.

To track a delivery not developed with EasyPost, you simply require to produce a Tracker Object. If we are not able to match the monitoring code to a particular provider, we will certainly return an error.

After a Tracker is created, we will regularly check the standing of your bundle and also alert you when its condition changes. Jump to Step 2 to discover how we'll offer you updates using webhooks.

Step 2: Purchase a Shipping Label and Tracking Code

To start tracking a bundle, there is nothing additional you have to do. Whenever you purchase a shipping tag with EasyPost, we'll start immediately tracking its development as well as alerting you of any kind of updates through webhooks (more on that particular in step 2).

When you purchase a shipping tag, we will certainly likewise respond back with the monitoring number for the tag. You don't have to store the tracking number to obtain tracking updates but it is generally excellent method to store it. Right here's an instance of purchasing a delivery tag and getting a tracking number. To see all the actions for delivering a package, take a look at our Getting Started Guide.

 

Read More : http://trackingmake.hatenablog.com/entry/2017/11/27/133640

Step 3: Process Tracking Event Webhooks

After you buy a shipping tag or produce a tracker, we will instantly start sending monitoring upgrade Events. Updates will just be sent out when there is a condition adjustment for the package (e.g. a bundle modifications from "Out for Delivery" to "Delivered").

When you buy a label in either Test or Production mode, you will immediately obtain a monitoring event after acquisition. Examination as well as Production mode behave slightly differently:

In Test Mode, you will obtain just one tracking event in among the supported standings (e.g. "in_transit", "provided", and so on). Hereafter upgrade, you obtain say goodbye to events in Test mode.

Check :  http://trackingbuy.simplesite.com/

In Production Mode, you will certainly obtain your very first of numerous monitoring occasions for your package. The first tracking event is status "unidentified". The bundle stays in "unknown" up until it is checked by the service provider.

You'll understand it is a monitoring upgrade occasion since the object "type" is "Event" as well as the "summary" is "tracker.updated". The "result" value of Event will certainly also contain a Tracker item that has the info concerning the present development of the plan. When developing application reasoning, the "status" of Tracker things is most trustworthy and beneficial to make use of.

The Tracker object also includes added information from the service provider in "tracking_details" attribute. As an example, in addition to "in_transit" updates you might obtain details that it got to a specific location (eg "Processed with Sort Facility June 01 2013 4:53 pm BELL GARDENS CA 9020").

The "tracking_details" will be an array including both information about the existing status and also all previous standings. The oldest status is the first component of the range and also we add newer statuses as they come in.