Receiving a Webhook Notification
Overview
When you make an API request to AfterShip Shipping, you can include the async=true parameter to receive a webhook notification once the response is ready. To receive the webhook, you must first enable the webhook setting.
This is how you can set it up in your API request:
API Request ExampleFew readersWhat Happens if My Webhook is Down?
AfterShip Shipping sends events to each webhook URL via a POST request.
If the webhook URL fails to return a 200 HTTP response code, AfterShip Shipping will automatically retry the POST request up to 14 times, with increasing intervals between each attempt. The retry intervals follow this pattern: 2^numberoffailures × 30 seconds.
For example:
If the first attempt fails, AfterShip Shipping will retry the second attempt after 30 seconds.
If the fifth attempt fails, the sixth attempt willFew readersDHL Express REST API Enhancements
Overview
Effective April 10, 2025, we’re doing key enhancements to your DHL Express REST API integration. These updates are designed to improve your shipping and returns experience with better API reliability, expanded features, and seamless operation.
Key details
The new REST API features improved shipment data, automatic paperless invoices, and new DHL box types.
Labels will reflect paperless processing (PLT), and rate results are now included in Labels API responses.Few readersDHL Express XML to REST API Migration Guide
Overview
Starting April 21, 2025, DHL Express is transitioning from the legacy XML API to the new REST API. This migration will occur in three phases and is aimed at improving reliability, security, and feature support.
Key details
The migration from the XML API to the new REST API will occur in the background, with no need for customers to manually update their credentials.
Your existing XML API credentials will automatically be migrated to the new REST API.
New accountsFew readersHow to Use AfterShip Shipping Webhook?
Overview
A webhook lets an application share real-time information with other apps. Since data transfer happens instantly, the popularity of webhooks is increasing rapidly these days.
With AfterShip Shipping webhook, you can receive the push update when the API is made asynchronously.
How to setup the Webhooks
Go to the Webhooks settings in your AfterShip Shipping admin.
Click Add Webhooks URL.
Add the webhooFew readers