You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tracking/api/estimated_delivery_date.py
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,8 @@ def predict_batch(
23
23
) ->PredictBatchResponse:
24
24
"""
25
25
> The estimated delivery date is provided by AfterShip, based on its AI-predictive model. You can display the EDD on the product page, cart, and order checkout page. It indicates when a customer will receive the order.You can use to activate this feature.Supported functionalities require:1. One `EstimatedDeliveryDate` object for one prediction result.2. Maximum 5 `EstimatedDeliveryDate` objects are allowed.3. API call will fail if any of the requests `EstimatedDeliveryDate` objects do not meet the specification requirement.
26
-
27
26
:param predict_batch_request:
28
27
:param kwargs:
29
-
30
-
31
28
request options:
32
29
**headers** (dict): support custom headers.
33
30
**verify** bool|str|SSLContext: SSL certificates (a.k.a CA bundle) used to
Return the tracking information of the last checkpoint of a single tracking.
29
-
30
29
:param slug: str. Tracking slug.
31
30
:param tracking_number: str. Tracking number.
32
31
:param kwargs:
32
+
request options:
33
+
**headers** (dict): support custom headers.
34
+
**verify** bool|str|SSLContext: SSL certificates (a.k.a CA bundle) used to
35
+
verify the identity of requested hosts. Either `True` (default CA bundle),
36
+
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
37
+
(which will disable verification).
33
38
query params:
34
39
**fields**: str. List of fields to include in the response. Use comma for multiple values. Fields to include: `slug`, `created_at`, `checkpoint_time`, `city`, `coordinates`, `country_iso3`, `country_name`, `message`, `state`, `tag`, `zip`
35
40
**lang**: str. Support Chinese to English translation for `china-ems` and `china-post` only
**tracking_postal_code**: str. Additional field required by some carriers to retrieve the tracking info. The postal code of the recipient’s address. Refer to our article on for more details.
41
46
**tracking_ship_date**: str. Additional field required by some carriers to retrieve the tracking info. The date the shipment was sent, using the format YYYYMMDD. Refer to our article on for more details.
42
47
**tracking_state**: str. Additional field required by some carriers to retrieve the tracking info. The state/province of the recipient’s address. Refer to our article on for more details.
43
-
44
-
request options:
45
-
**headers** (dict): support custom headers.
46
-
**verify** bool|str|SSLContext: SSL certificates (a.k.a CA bundle) used to
47
-
verify the identity of requested hosts. Either `True` (default CA bundle),
48
-
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
Return the tracking information of the last checkpoint of a single tracking.
74
-
75
72
:param tracking_id: str. tracking id.
76
73
:param kwargs:
77
-
query params:
78
-
**fields**: str. List of fields to include in the response. Use comma for multiple values. Fields to include: `slug`, `created_at`, `checkpoint_time`, `city`, `coordinates`, `country_iso3`, `country_name`, `message`, `state`, `tag`, `zip`
79
-
**lang**: str. Support Chinese to English translation for `china-ems` and `china-post` only
80
-
81
74
request options:
82
75
**headers** (dict): support custom headers.
83
76
**verify** bool|str|SSLContext: SSL certificates (a.k.a CA bundle) used to
84
77
verify the identity of requested hosts. Either `True` (default CA bundle),
85
78
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
86
79
(which will disable verification).
80
+
query params:
81
+
**fields**: str. List of fields to include in the response. Use comma for multiple values. Fields to include: `slug`, `created_at`, `checkpoint_time`, `city`, `coordinates`, `country_iso3`, `country_name`, `message`, `state`, `tag`, `zip`
82
+
**lang**: str. Support Chinese to English translation for `china-ems` and `china-post` only
**verify** bool|str|SSLContext: SSL certificates (a.k.a CA bundle) used to
38
+
verify the identity of requested hosts. Either `True` (default CA bundle),
39
+
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
40
+
(which will disable verification).
36
41
query params:
37
42
**tracking_account_number**: str. Additional field required by some carriers to retrieve the tracking info. The shipper’s carrier account number. Refer to our article on for more details.
38
43
**tracking_origin_country**: str. Additional field required by some carriers to retrieve the tracking info. The origin country/region of the shipment. Refer to our article on for more details.
**tracking_postal_code**: str. Additional field required by some carriers to retrieve the tracking info. The postal code of the recipient’s address. Refer to our article on for more details.
42
47
**tracking_ship_date**: str. Additional field required by some carriers to retrieve the tracking info. The date the shipment was sent, using the format YYYYMMDD. Refer to our article on for more details.
43
48
**tracking_state**: str. Additional field required by some carriers to retrieve the tracking info. The state/province of the recipient’s address. Refer to our article on for more details.
44
-
45
-
request options:
46
-
**headers** (dict): support custom headers.
47
-
**verify** bool|str|SSLContext: SSL certificates (a.k.a CA bundle) used to
48
-
verify the identity of requested hosts. Either `True` (default CA bundle),
49
-
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
**verify** bool|str|SSLContext: SSL certificates (a.k.a CA bundle) used to
116
+
verify the identity of requested hosts. Either `True` (default CA bundle),
117
+
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
118
+
(which will disable verification).
119
119
query params:
120
120
**tracking_account_number**: str. Additional field required by some carriers to retrieve the tracking info. The shipper’s carrier account number. Refer to our article on for more details.
121
121
**tracking_origin_country**: str. Additional field required by some carriers to retrieve the tracking info. The origin country/region of the shipment. Refer to our article on for more details.
**tracking_postal_code**: str. Additional field required by some carriers to retrieve the tracking info. The postal code of the recipient’s address. Refer to our article on for more details.
125
125
**tracking_ship_date**: str. Additional field required by some carriers to retrieve the tracking info. The date the shipment was sent, using the format YYYYMMDD. Refer to our article on for more details.
126
126
**tracking_state**: str. Additional field required by some carriers to retrieve the tracking info. The state/province of the recipient’s address. Refer to our article on for more details.
127
-
128
-
request options:
129
-
**headers** (dict): support custom headers.
130
-
**verify** bool|str|SSLContext: SSL certificates (a.k.a CA bundle) used to
131
-
verify the identity of requested hosts. Either `True` (default CA bundle),
132
-
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
Get contact information for the users to notify when the tracking changes. Please note that only customer receivers will be returned. Any `email`, `sms` or `webhook` that belongs to the Store will not be returned.
196
-
197
186
:param slug: str. Tracking slug.
198
187
:param tracking_number: str. Tracking number.
199
188
:param kwargs:
189
+
request options:
190
+
**headers** (dict): support custom headers.
191
+
**verify** bool|str|SSLContext: SSL certificates (a.k.a CA bundle) used to
192
+
verify the identity of requested hosts. Either `True` (default CA bundle),
193
+
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
194
+
(which will disable verification).
200
195
query params:
201
196
**tracking_account_number**: str. Additional field required by some carriers to retrieve the tracking info. The shipper’s carrier account number. Refer to our article on for more details.
202
197
**tracking_origin_country**: str. Additional field required by some carriers to retrieve the tracking info. The origin country/region of the shipment. Refer to our article on for more details.
**tracking_postal_code**: str. Additional field required by some carriers to retrieve the tracking info. The postal code of the recipient’s address. Refer to our article on for more details.
206
201
**tracking_ship_date**: str. Additional field required by some carriers to retrieve the tracking info. The date the shipment was sent, using the format YYYYMMDD. Refer to our article on for more details.
207
202
**tracking_state**: str. Additional field required by some carriers to retrieve the tracking info. The state/province of the recipient’s address. Refer to our article on for more details.
208
-
209
-
request options:
210
-
**headers** (dict): support custom headers.
211
-
**verify** bool|str|SSLContext: SSL certificates (a.k.a CA bundle) used to
212
-
verify the identity of requested hosts. Either `True` (default CA bundle),
213
-
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
Get contact information for the users to notify when the tracking changes. Please note that only customer receivers will be returned. Any `email`, `sms` or `webhook` that belongs to the Store will not be returned.
237
-
238
225
:param tracking_id: str. tracking id.
239
226
:param kwargs:
240
-
241
-
242
227
request options:
243
228
**headers** (dict): support custom headers.
244
229
**verify** bool|str|SSLContext: SSL certificates (a.k.a CA bundle) used to
0 commit comments