- Previous: Booking API Documentation
- Up:
- Next: Global Tracking Booking API Documentation
Global Tracking Shipment API Documentation
Guide to Global Tracking Shipment API
Welcome to the JAS Connect Forwarding Shipment Status API. This service provides a direct, real-time connection to our Transportation Management System (TMS) to retrieve the latest tracking information for your shipments.
By integrating this API, your internal systems (like an ERP, customer service portal, or visibility dashboard) can automatically query and display the status and milestones of any forwarding shipment, providing up-to-the-minute visibility for your team and your customers.
Key Capabilities & Features
Our Shipment Status API is a REST-based service designed for flexibility, security, and accuracy.
- Real-Time Tracking: Provides live tracking and status updates for forwarding shipments managed within the JAS TMS.
- Flexible Querying: You can retrieve shipment data using the identifier that is most convenient for your workflow:
- JAS Shipment Number (e.g.,
S505185992) - House Bill Number (e.g.,
PAR45176295)
- JAS Shipment Number (e.g.,
- Choice of Formats: You can request the API response in either
application/jsonorapplication/xmlby setting theContent-Typeheader. - Secure & Encrypted: All API communication is secured. We use the OAuth 2.0 protocol for authentication , and all web calls are made over HTTPS to ensure your data is always encrypted in transit.
- Rich Data Response: The API returns a comprehensive set of data, including estimated/actual departure and arrival times, a full list of shipment milestones, and details on transport legs (like flight or vessel numbers) .
Getting Started: Authentication & Endpoints
All API requests must be securely authenticated. Accessing the API is a two-step process.
Step 1: Generate an Access Token
Before you can request a shipment's status, you must get a bearer token using the OAuth 2.0 client_credentials grant type.
- Method:
POST - Endpoint:
https://<<URL_PROVIDED _IN_THE_PORTAL/oauth2/token - Headers:
Content-Type: application/x-www-form-urlencoded -
Body parameters Values grant_type client_credentials client_id <YOUR_CLIENT_ID> client_secret <YOUR_CLIENT_SECRET>
Step 2: Call the Shipment Status API
Once you have your access token, you can call the Status API. You must include the token and your unique API key in the headers of every request .
- Method:
POST -
Required Headers: Authorization Bearer <<ACCESS_TOKEN>> x-api-key <<Key value sent by JAS Connect Team>> Content-Type application/json or application/xml - API Endpoints:
- Resources:
- JSON:
/v1/api/shipments/forwarding/{ShipmentorHouseBillNumber}/statusjson - XML:
/v1/api/shipments/forwarding/{ShipmentorHouseBillNumber}/statusxml
- JSON:
Understanding the Request
You must pass the identifier in the URL path.
- Path Parameter:
{ShipmentorHouseBillNumber}- This dynamic part of the URL is where you will insert your query value (e.g.,
S505185992).
- This dynamic part of the URL is where you will insert your query value (e.g.,
- Identifier Logic: The API automatically determines the type of identifier you sent:
- If the value starts with an 'S' followed by 9 digits, it's treated as a Shipment Number.
- Otherwise, it's treated as a House Bill Number.
- If a House Bill Number is sent, the system first looks up the corresponding Shipment Number to retrieve the data. If no shipment is found for the given ID, the API will return a
400 Bad Requesterror .
Understanding the Response
The API provides a detailed response payload in either JSON or XML format, depending on the Content-Type header you specified . A successful 200 response will contain the following key information.
Key Data Elements
- ShipmentUniqueNumber: The official JAS Shipment ID (e.g.,
S505185992). - HouseBillNumber: The House Bill number for the shipment (e.g.,
PAR45176295). - GoodsDescription: A description of the cargo.
- ServiceLevel: The service code for the shipment (e.g.,
STD). - ETD /
ETA: The main Estimated Time of Departure and Estimated Time of Arrival for the shipment . - Milestones: An array of all tracking events associated with the shipment. Each milestone includes:
MilestoneCode(e.g.,ARV,DEP,PCF)MilestoneDescription(e.g., "Arrival at Final Discharge Port")LocalEstimatedDateorLocalActualDate
- Transports: An array of all transport legs for the journey. Each leg includes:
Mode(e.g., "Air", "Sea")Voyage_FlightorVessel(e.g.,AA001,MSC ANAHITA)LoadingPortandDischargePortEstimatedDepartureandEstimatedArrivalfor that specific leg
- Containers: An array listing container numbers, if applicable .
- Consols: An array listing any consolidation numbers related to the shipment .
- Previous: Booking API Documentation
- Up:
- Next: Global Tracking Booking API Documentation
0 Comments
Please sign in to post a comment.