Set up tracking webhook connection

Tracking webhook is a mechanism that enables real-time communication between shipping platforms and the systems or applications of shippers via API

The primary purpose of a tracking webhook is to automate the flow of information regarding the status of shipments . Instead of relying on periodic updates (where one system constantly checks another for updates)—webhooks enable instantaneous updates.

In SAPIENT, you can set up your tracking webhook connection to enhance the overall efficiency of logistics by ensuring that all stakeholders have immediate and accurate information on their shipments.

To set up the tracking webhook connection in SAPIENT, follow the instructions as explained in the following procedure.

  1. On the SAPIENT Home page, in the left navigation panel, select API > Webhooks. In the page that opens, the Tracking Webhook tab is opened by default.
Accessing tracking webhook

Accessing tracking webhook

  1. In the WEBHOOK DETAILS block of the Tracking Webhook tab, enter the necessary information as described in the following table.

💡

Tip

In the following table, the mandatory fields are marked with an asterisk (*).

ElementBasic authentication OAuth2 authentication
Authentication type*From the dropdown menu, if applicable, select the Basic authentication type.

Basic is a simple authentication type built into the HTTP protocol. It involves sending the user's credentials (username and password) in an encoded format (Base64) within an HTTP header.
From the dropdown menu, if applicable, select the OAuth2 authentication type.

oAuth2 is a specific protocol used for authorisation that allows third-party applications to access the user's data without exposing their credentials.
Endpoint URL*Enter your endpoint URL. This is the URL that we use to connect for identification purposes.❌ Not applicable
Username*Enter your username to identify and authenticate the INTERSOFT payload.❌ Not applicable
Password*Enter the password for the username you entered to identify and authenticate the Intersoft payload.❌ Not applicable
Token URL*❌ Not applicableEnter your token URL. This is an endpoint we use to connect and get the security token.
Client ID*❌ Not applicableEnter your client ID to identify and authenticate the INTERSOFT payload.
Secret*❌ Not applicableEnter your secret to identify and authenticate the INTERSOFT payload
  1. After entering all the necessary details, select alt text to check if the setup is configured correctly. Once the test has been completed, and the setup configuration is correct, the webhook is activated and the following success response is displayed:
Success response

Success response

Following the success response, a test tracking payload is sent to the webhook as follows:

tracking payload response example

tracking payload response example

If for some reason, the connectivity test fails, the following message is displayed:

Failed connection response

Failed connection response

  1. Now, from the Select to receive either Milestones or Full Tracking Events dropdown, select one of the following options:
    • Milestones: to receive tracking milestones only.
    • Full Tracking Events: to receive all tracking events throughout the shipping journey.

💡

Tip

A list of milestones and full tracking events can be found in the Tracking events and milestones section.

  1. After, turn on the Active toggle if you wany to activate the tracking webhook.
Activating tracking webhook

Activating tracking webhook

🚧

Important

The webhook only works if it is in the Active state. Any changes made to the webhook configuration deactivates it. Therefore, make sure the toggle is set to Active whenever the configuration is updated.

  1. Select alt text to confirm the setup completion.