Migration from 2025-04 API & Webhook to 2025-07

The following guide will help you migrate the API and webhook from version 2025-04 to version 2025-07.

What's the difference?

ChangeBeforeAfter
Base URLhttps://api.aftership.com/tracking/2025-04https://api.aftership.com/tracking/2025-07
as-api-version response header value2025-042025-07
as-webhook-version request header value2025-042025-07

What do I need to do?

Make the following updates to your application's code:

  1. Replace the base URL from https://api.aftership.com/tracking/2025-04 to https://api.aftership.com/tracking/2025-07.
  2. When editing existing URLs or adding new ones, select the Webhook version. Please review your webhook settings for verification.
  3. Parse the header to distinguish between different versions. Otherwise, no action is required.
LanguageRepository URL
Javahttps://github.com/AfterShip/tracking-sdk-java
Nodejshttps://github.com/AfterShip/tracking-sdk-nodejs
.NEThttps://github.com/AfterShip/tracking-sdk-net
Pythonhttps://github.com/AfterShip/tracking-sdk-python
Rubyhttps://github.com/AfterShip/tracking-sdk-ruby
PHPhttps://github.com/AfterShip/tracking-sdk-php
Golanghttps://github.com/AfterShip/tracking-sdk-go

What's the difference?

Change Before After

The default value of custom_fields has been changed from {} to null

preparing...
preparing...

What do I need to do?

Parse the null value of custom_fields in the webhook if you are using this field. Otherwise, no action is required.

After April 13, 2028, any requests made to the 2025-04 version will be automatically redirected to version 2025-07. While this redirection aims to minimize disruptions, it may not fully support all functionalities available in the newer versions. We encourage you to complete the migration at your earliest convenience.