@@ -42,6 +42,7 @@ Each SDK version is designed to work with a specific API version. Please refer t
4242
4343| SDK Version | Supported API Version | Branch |
4444| ----------- | --------------------- | ----------------------------------------------------------- |
45+ | 10.x.x | 2025-07 | https://github.com/AfterShip/tracking-sdk-java/tree/2025-07 |
4546| 9.x.x | 2025-04 | https://github.com/AfterShip/tracking-sdk-java/tree/2025-04 |
4647| 8.x.x | 2025-01 | https://github.com/AfterShip/tracking-sdk-java/tree/2025-01 |
4748| 7.x.x | 2024-10 | https://github.com/AfterShip/tracking-sdk-java/tree/2024-10 |
@@ -108,7 +109,7 @@ public class App {
108109
109110## Rate Limiter
110111
111- See the [ Rate Limit] ( https://www.aftership.com/docs/tracking/2025-04 /quickstart/rate-limit ) to understand the AfterShip rate limit policy.
112+ See the [ Rate Limit] ( https://www.aftership.com/docs/tracking/2025-07 /quickstart/rate-limit ) to understand the AfterShip rate limit policy.
112113
113114## Error Handling
114115
@@ -253,6 +254,61 @@ DetectCourierResponse response = CourierResource.detectCourier()
253254System . out. println(response. getTotal());
254255```
255256
257+ ### /courier-connections
258+
259+ ** POST** /courier-connections
260+
261+ ``` java
262+ PostCourierConnectionsRequest courierConnectionsRequest = new PostCourierConnectionsRequest ();
263+ courierConnectionsRequest. setCourierSlug(" dhl-api" );
264+ Map credentials = new HashMap ();
265+ credentials. put(" api_key" , " <dhl_pai_key>" );
266+ courierConnectionsRequest. setCredentials(credentials);
267+ CourierConnection courierConnection = CourierConnectionResource . postCourierConnections()
268+ .setPostCourierConnectionsRequest(courierConnectionsRequest)
269+ .create();
270+ System . out. println(courierConnection. getId());
271+ ```
272+
273+ ** GET** /courier-connections
274+
275+ ``` java
276+ Page<CourierConnection > getCourierConnectionsResponse = CourierConnectionResource . getCourierConnections()
277+ .read();
278+ System . out. println(getCourierConnectionsResponse. getTotal());
279+ ```
280+
281+ ** GET** /courier-connections/: id
282+
283+ ``` java
284+ CourierConnection courierConnection = CourierConnectionResource . getCourierConnectionsById()
285+ .setId(" <id>" )
286+ .fetch();
287+ System . out. println(courierConnection. getCourierSlug());
288+ ```
289+
290+ ** PATCH** /courier-connections/: id
291+
292+ ``` java
293+ PutCourierConnectionsByIdRequest putCourierConnectionsByIdRequest = new PutCourierConnectionsByIdRequest ();
294+ Map credentials = new HashMap ();
295+ credentials. put(" api_key" , " <dhl_api_key>" );
296+ putCourierConnectionsByIdRequest. setCredentials(credentials);
297+ CourierConnection courierConnection = CourierConnectionResource . putCourierConnectionsById()
298+ .setId(" <id>" )
299+ .setPutCourierConnectionsByIdRequest(putCourierConnectionsByIdRequest)
300+ .update();
301+ System . out. println(courierConnection. getCourierSlug());
302+ ```
303+
304+ ** DELETE** /courier-connections/: id
305+
306+ ``` java
307+ CourierConnection courierConnection = CourierConnectionResource . deleteCourierConnectionsById()
308+ .setId(" <id>" )
309+ .delete();
310+ System . out. println(courierConnection. getCourierSlug());
311+ ```
256312### /estimated-delivery-date
257313
258314** POST** /estimated-delivery-date/predict-batch
@@ -280,6 +336,30 @@ PredictBatchResponse response = EstimatedDeliveryDateResource.predictBatch()
280336System . out. println(response. getEstimatedDeliveryDates(). get(0 ). getSlug());
281337```
282338
339+ ** POST** /estimated-delivery-date/predict
340+
341+ ``` java
342+ EstimatedDeliveryDateRequest edd = new EstimatedDeliveryDateRequest ();
343+ edd. setSlug(" <slug>" );
344+ DestinationAddressEstimatedDeliveryDateRequest dest = new DestinationAddressEstimatedDeliveryDateRequest ();
345+ dest. setCountryRegion(" <ISO 3166-1 country/region code>" );
346+ dest. setState(" <ISO 3166-1 country/region code>" );
347+
348+ edd. setDestinationAddress( dest);
349+
350+ OriginAddressEstimatedDeliveryDateRequest origin = new OriginAddressEstimatedDeliveryDateRequest ();
351+ origin. setCountryRegion(" <ISO 3166-1 country/region code>" );
352+ origin. setState(" <ISO 3166-1 country/region code>" );
353+ edd. setOriginAddress(origin);
354+
355+ edd. setPickupTime(" 2024-08-01 06:42:30" );
356+
357+ EstimatedDeliveryDateResponse response = EstimatedDeliveryDateResource . predict()
358+ .setEstimatedDeliveryDateRequest(edd)
359+ .create();
360+ System . out. println(response. getId());
361+ ```
362+
283363## Help
284364
285365If you get stuck, we're here to help:
0 commit comments