QUICKSTART
API Quick Start
Authentication
SignString
OAuth
Overview
Getting Started
Scope List
Versioning
Rate Limit
Body Envelope
Request Errors
Try API Endpoints
CHANGELOG
Changelog
Migration Guide
REFERENCE
API Overview
Trackings
Get trackings
get
Create a tracking
post
Get a tracking by ID
get
Update a tracking by ID
put
Delete a tracking by ID
delete
Retrack an expired tracking by ID
post
Mark tracking as completed by ID
post
Get a tracking (Legacy)
get
Update a tracking (Legacy)
put
Delete a tracking (Legacy)
delete
Retrack an expired tracking (Legacy)
post
Mark tracking as completed (Legacy)
post
Couriers
Get user activated couriers
get
Detect courier
post
Get all couriers
get
Last Checkpoints
Get last checkpoint by tracking ID
get
Get last checkpoint (Legacy)
get
Notifications
Get tracking notification by tracking ID
get
Add a notification by tracking ID
post
Remove a notification by tracking ID
post
Get tracking notification (Legacy)
get
Add a notification (Legacy)
post
Remove a notification (Legacy)
post
Estimated delivery date
Batch prediction for the Estimated Delivery Date
post
MODEL
Tracking
Courier
Checkpoint
Notification
ENUM
Additional Tracking Fields
Delivery Statuses
Delivery Sub-statuses
Slug Groups
Events
Confidence Codes
Webhook
Webhook Overview
Webhook Versioning
Webhook Specifications
Webhook Signature
Webhook OAuth 2.0
Webhook Outgoing IPs
Webhook Changelog
OTHERS
Supported Couriers
CSV Upload & CSV Auto-Fetch
Shipment CSV Export
Order CSV Export
SDK
Android SDK
iOS SDK
Java SDK
Node.js SDK
.NET SDK
Python SDK
Ruby Gem
PHP SDK
Golang SDK
Open Source
phone
email-verifier
Support
Contact Support

Confidence Codes

AfterShip uses confidence_code to indicate the confidence level of an AI EDD prediction request. The details are outlined below:


Confidence codeDescription
10001High confidence
20001High confidence for range result, medium confidence for single result
30001Medium confidence - Due to force majeure factors (extreme weather, emergencies), etc.
30002Medium confidence - Not enough qualified data in this time range
30003Medium confidence - shipment_type is not precise

The table above shows the confidence_code that may occur when requesting an estimated delivery date prediction. However, since every customer’s scenario is different we recommend you to choose the method that aligns best with your requirements. However, striking a balance between Accuracy and Coverage is crucial.

  • If Accuracy is prioritized, consider accepting only high-confidence results and displaying range EDD. Kindly note that this approach might involve substituting values with your configured EDD or not displaying EDD in certain scenarios.
  • If Coverage is more important, opt for all EDD results, even with a medium confidence level result. Enabling EDD dynamic updates can improve the prediction confidence level during the transportation process.

The accuracy of the EDD result is significantly influenced by the input parameters. The confidence result code provides corresponding tips for you:

  • If you receive result code 30003, it indicates that you are not specifying your shipment type refer to the shipment type full list to ensure accurate input of the shipment type name for better model understanding.
  • If you receive result code 30002, it often signifies that the insufficient training dataset impacts model performance. Providing more related tracking data will assist our AI model in improving. We are excited to hear from you.