python-amazon-sp-api 2.0.15__py3-none-any.whl → 2.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/METADATA +7 -7
  2. python_amazon_sp_api-2.1.3.dist-info/RECORD +350 -0
  3. sp_api/__version__.py +1 -1
  4. sp_api/api/__init__.py +160 -4
  5. sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +85 -110
  6. sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu_2024_05_09.py +456 -0
  7. sp_api/api/aplus_content/aplus_content.py +176 -125
  8. sp_api/api/application_integrations/application_integrations.py +59 -68
  9. sp_api/api/application_management/application_management.py +20 -13
  10. sp_api/api/authorization/authorization.py +8 -26
  11. sp_api/api/catalog/catalog.py +27 -61
  12. sp_api/api/catalog_items/catalog_items.py +108 -78
  13. sp_api/api/catalog_items/catalog_items_2020_12_01.py +86 -0
  14. sp_api/api/catalog_items/catalog_items_2022_04_01.py +89 -0
  15. sp_api/api/customer_feedback/customer_feedback.py +100 -0
  16. sp_api/api/data_kiosk/data_kiosk.py +80 -75
  17. sp_api/api/delivery_by_amazon/__init__.py +0 -0
  18. sp_api/api/delivery_by_amazon/delivery_by_amazon.py +92 -0
  19. sp_api/api/delivery_by_amazon/delivery_by_amazon_2022_07_01.py +81 -0
  20. sp_api/api/easy_ship/easy_ship.py +121 -111
  21. sp_api/api/external_fulfillment/external_fulfillment.py +211 -434
  22. sp_api/api/external_fulfillment/inventory.py +120 -0
  23. sp_api/api/external_fulfillment/inventory_2021_01_06.py +71 -0
  24. sp_api/api/external_fulfillment/inventory_2024_09_11.py +96 -0
  25. sp_api/api/external_fulfillment/returns.py +120 -0
  26. sp_api/api/external_fulfillment/returns_2021_08_19.py +88 -0
  27. sp_api/api/external_fulfillment/returns_2024_09_11.py +141 -0
  28. sp_api/api/external_fulfillment/shipping.py +120 -0
  29. sp_api/api/external_fulfillment/shipping_2021_01_06.py +256 -0
  30. sp_api/api/external_fulfillment/shipping_2024_09_11.py +233 -0
  31. sp_api/api/fba_inbound_eligibility/fba_inbound_eligibility.py +30 -24
  32. sp_api/api/fba_small_and_light/fba_small_and_light.py +60 -99
  33. sp_api/api/feeds/feeds.py +75 -245
  34. sp_api/api/feeds/feeds_2021_06_30.py +320 -0
  35. sp_api/api/finances/finances.py +123 -90
  36. sp_api/api/finances/finances_2024_06_01.py +71 -0
  37. sp_api/api/finances/finances_2024_06_19.py +114 -0
  38. sp_api/api/finances/finances_v0.py +116 -0
  39. sp_api/api/fulfillment_inbound/fulfillment_inbound.py +107 -1784
  40. sp_api/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py +1722 -0
  41. sp_api/api/fulfillment_inbound/fulfillment_inbound_v0.py +1384 -0
  42. sp_api/api/fulfillment_outbound/fulfillment_outbound.py +256 -480
  43. sp_api/api/inventories/inventories.py +79 -42
  44. sp_api/api/invoices/__init__.py +0 -0
  45. sp_api/api/invoices/invoices.py +92 -0
  46. sp_api/api/invoices/invoices_2024_06_19.py +344 -0
  47. sp_api/api/listings_items/listings_items.py +110 -163
  48. sp_api/api/listings_items/listings_items_2020_09_01.py +189 -0
  49. sp_api/api/listings_items/listings_items_2021_08_01.py +233 -0
  50. sp_api/api/listings_restrictions/listings_restrictions.py +23 -10
  51. sp_api/api/merchant_fulfillment/merchant_fulfillment.py +107 -222
  52. sp_api/api/messaging/messaging.py +184 -198
  53. sp_api/api/notifications/notifications.py +144 -106
  54. sp_api/api/orders/orders.py +9 -46
  55. sp_api/api/orders/orders_2026_01_01.py +19 -65
  56. sp_api/api/orders/orders_v0.py +152 -184
  57. sp_api/api/product_fees/product_fees.py +101 -75
  58. sp_api/api/product_type_definitions/product_type_definitions.py +47 -36
  59. sp_api/api/products/products.py +94 -386
  60. sp_api/api/products/products_2022_05_01.py +96 -0
  61. sp_api/api/products/products_v0.py +389 -0
  62. sp_api/api/replenishment/replenishment.py +58 -69
  63. sp_api/api/reports/reports.py +124 -157
  64. sp_api/api/sales/sales.py +22 -39
  65. sp_api/api/seller_wallet/__init__.py +0 -0
  66. sp_api/api/seller_wallet/seller_wallet.py +92 -0
  67. sp_api/api/seller_wallet/seller_wallet_2024_03_01.py +300 -0
  68. sp_api/api/sellers/sellers.py +15 -35
  69. sp_api/api/services/services.py +479 -82
  70. sp_api/api/shipment_invoicing/__init__.py +0 -0
  71. sp_api/api/shipment_invoicing/shipment_invoicing.py +92 -0
  72. sp_api/api/shipment_invoicing/shipment_invoicing_v0.py +101 -0
  73. sp_api/api/shipping/shipping.py +94 -440
  74. sp_api/api/shipping/shippingV2.py +183 -474
  75. sp_api/api/shipping/shipping_v1.py +330 -0
  76. sp_api/api/shipping/shipping_v2.py +723 -0
  77. sp_api/api/solicitations/solicitations.py +28 -18
  78. sp_api/api/supply_sources/supply_sources.py +67 -57
  79. sp_api/api/tokens/tokens.py +14 -35
  80. sp_api/api/vehicles/__init__.py +0 -0
  81. sp_api/api/vehicles/vehicles.py +92 -0
  82. sp_api/api/vehicles/vehicles_2024_11_01.py +33 -0
  83. sp_api/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +16 -29
  84. sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +116 -189
  85. sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py +114 -0
  86. sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_v1.py +114 -0
  87. sp_api/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +15 -225
  88. sp_api/api/vendor_direct_fulfillment_sandbox_test_data/__init__.py +0 -0
  89. sp_api/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data.py +92 -0
  90. sp_api/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.py +50 -0
  91. sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +122 -624
  92. sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_2021_12_28.py +390 -0
  93. sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_v1.py +320 -0
  94. sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +113 -29
  95. sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_2021_12_28.py +47 -0
  96. sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_v1.py +47 -0
  97. sp_api/api/vendor_invoices/vendor_invoices.py +15 -264
  98. sp_api/api/vendor_orders/vendor_orders.py +83 -131
  99. sp_api/api/vendor_shipments/vendor_shipments.py +149 -68
  100. sp_api/api/vendor_transaction_status/vendor_transaction_status.py +16 -11
  101. sp_api/asyncio/api/__init__.py +159 -4
  102. sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +84 -110
  103. sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu_2024_05_09.py +457 -0
  104. sp_api/asyncio/api/aplus_content/aplus_content.py +176 -125
  105. sp_api/asyncio/api/application_integrations/application_integrations.py +59 -68
  106. sp_api/asyncio/api/application_management/application_management.py +20 -13
  107. sp_api/asyncio/api/authorization/authorization.py +8 -26
  108. sp_api/asyncio/api/catalog/catalog.py +27 -61
  109. sp_api/asyncio/api/catalog_items/catalog_items.py +94 -71
  110. sp_api/asyncio/api/catalog_items/catalog_items_2020_12_01.py +87 -0
  111. sp_api/asyncio/api/catalog_items/catalog_items_2022_04_01.py +90 -0
  112. sp_api/asyncio/api/customer_feedback/customer_feedback.py +100 -0
  113. sp_api/asyncio/api/data_kiosk/data_kiosk.py +80 -75
  114. sp_api/asyncio/api/delivery_by_amazon/__init__.py +0 -0
  115. sp_api/asyncio/api/delivery_by_amazon/delivery_by_amazon.py +92 -0
  116. sp_api/asyncio/api/delivery_by_amazon/delivery_by_amazon_2022_07_01.py +82 -0
  117. sp_api/asyncio/api/easy_ship/easy_ship.py +121 -111
  118. sp_api/asyncio/api/external_fulfillment/external_fulfillment.py +212 -435
  119. sp_api/asyncio/api/external_fulfillment/inventory.py +126 -0
  120. sp_api/asyncio/api/external_fulfillment/inventory_2021_01_06.py +73 -0
  121. sp_api/asyncio/api/external_fulfillment/inventory_2024_09_11.py +98 -0
  122. sp_api/asyncio/api/external_fulfillment/returns.py +124 -0
  123. sp_api/asyncio/api/external_fulfillment/returns_2021_08_19.py +90 -0
  124. sp_api/asyncio/api/external_fulfillment/returns_2024_09_11.py +143 -0
  125. sp_api/asyncio/api/external_fulfillment/shipping.py +124 -0
  126. sp_api/asyncio/api/external_fulfillment/shipping_2021_01_06.py +258 -0
  127. sp_api/asyncio/api/external_fulfillment/shipping_2024_09_11.py +235 -0
  128. sp_api/asyncio/api/fba_inbound_eligibility/fba_inbound_eligibility.py +31 -25
  129. sp_api/asyncio/api/fba_small_and_light/fba_small_and_light.py +61 -100
  130. sp_api/asyncio/api/feeds/feeds.py +75 -243
  131. sp_api/asyncio/api/feeds/feeds_2021_06_30.py +318 -0
  132. sp_api/asyncio/api/finances/finances.py +123 -91
  133. sp_api/asyncio/api/finances/finances_2024_06_01.py +72 -0
  134. sp_api/asyncio/api/finances/finances_2024_06_19.py +115 -0
  135. sp_api/asyncio/api/finances/finances_v0.py +117 -0
  136. sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound.py +107 -1785
  137. sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py +1723 -0
  138. sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound_v0.py +1385 -0
  139. sp_api/asyncio/api/fulfillment_outbound/fulfillment_outbound.py +257 -481
  140. sp_api/asyncio/api/inventories/inventories.py +79 -42
  141. sp_api/asyncio/api/invoices/__init__.py +0 -0
  142. sp_api/asyncio/api/invoices/invoices.py +92 -0
  143. sp_api/asyncio/api/invoices/invoices_2024_06_19.py +345 -0
  144. sp_api/asyncio/api/listings_items/listings_items.py +109 -163
  145. sp_api/asyncio/api/listings_items/listings_items_2020_09_01.py +190 -0
  146. sp_api/asyncio/api/listings_items/listings_items_2021_08_01.py +233 -0
  147. sp_api/asyncio/api/listings_restrictions/listings_restrictions.py +23 -10
  148. sp_api/asyncio/api/merchant_fulfillment/merchant_fulfillment.py +110 -222
  149. sp_api/asyncio/api/messaging/messaging.py +185 -199
  150. sp_api/asyncio/api/notifications/notifications.py +145 -107
  151. sp_api/asyncio/api/orders/orders.py +9 -46
  152. sp_api/asyncio/api/orders/orders_2026_01_01.py +19 -65
  153. sp_api/asyncio/api/orders/orders_v0.py +152 -184
  154. sp_api/asyncio/api/product_fees/product_fees.py +101 -75
  155. sp_api/asyncio/api/product_type_definitions/product_type_definitions.py +47 -36
  156. sp_api/asyncio/api/products/products.py +94 -387
  157. sp_api/asyncio/api/products/products_2022_05_01.py +109 -0
  158. sp_api/asyncio/api/products/products_v0.py +388 -0
  159. sp_api/asyncio/api/replenishment/replenishment.py +59 -70
  160. sp_api/asyncio/api/reports/reports.py +124 -157
  161. sp_api/asyncio/api/sales/sales.py +22 -39
  162. sp_api/asyncio/api/seller_wallet/__init__.py +0 -0
  163. sp_api/asyncio/api/seller_wallet/seller_wallet.py +92 -0
  164. sp_api/asyncio/api/seller_wallet/seller_wallet_2024_03_01.py +301 -0
  165. sp_api/asyncio/api/sellers/sellers.py +16 -36
  166. sp_api/asyncio/api/services/services.py +479 -82
  167. sp_api/asyncio/api/shipment_invoicing/__init__.py +0 -0
  168. sp_api/asyncio/api/shipment_invoicing/shipment_invoicing.py +92 -0
  169. sp_api/asyncio/api/shipment_invoicing/shipment_invoicing_v0.py +102 -0
  170. sp_api/asyncio/api/shipping/shipping.py +94 -441
  171. sp_api/asyncio/api/shipping/shippingV2.py +181 -472
  172. sp_api/asyncio/api/shipping/shipping_v1.py +331 -0
  173. sp_api/asyncio/api/shipping/shipping_v2.py +717 -0
  174. sp_api/asyncio/api/solicitations/solicitations.py +29 -19
  175. sp_api/asyncio/api/supply_sources/supply_sources.py +67 -57
  176. sp_api/asyncio/api/tokens/tokens.py +14 -35
  177. sp_api/asyncio/api/vehicles/__init__.py +0 -0
  178. sp_api/asyncio/api/vehicles/vehicles.py +92 -0
  179. sp_api/asyncio/api/vehicles/vehicles_2024_11_01.py +34 -0
  180. sp_api/asyncio/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +16 -29
  181. sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +120 -192
  182. sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py +116 -0
  183. sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_v1.py +115 -0
  184. sp_api/asyncio/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +15 -225
  185. sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/__init__.py +0 -0
  186. sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data.py +92 -0
  187. sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.py +51 -0
  188. sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +120 -623
  189. sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_2021_12_28.py +392 -0
  190. sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_v1.py +321 -0
  191. sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +112 -29
  192. sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_2021_12_28.py +49 -0
  193. sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_v1.py +48 -0
  194. sp_api/asyncio/api/vendor_invoices/vendor_invoices.py +16 -265
  195. sp_api/asyncio/api/vendor_orders/vendor_orders.py +84 -132
  196. sp_api/asyncio/api/vendor_shipments/vendor_shipments.py +150 -69
  197. sp_api/asyncio/api/vendor_transaction_status/vendor_transaction_status.py +17 -12
  198. sp_api/asyncio/base/client.py +2 -2
  199. sp_api/asyncio/util/load_date_bound.py +1 -1
  200. sp_api/base/__init__.py +10 -0
  201. sp_api/base/_core.py +2 -2
  202. sp_api/base/client.py +3 -3
  203. sp_api/base/helpers.py +12 -1
  204. sp_api/base/marketplaces.py +6 -3
  205. sp_api/util/__init__.py +2 -0
  206. sp_api/util/load_date_bound.py +1 -1
  207. sp_api/util/versioned_client.py +45 -0
  208. python_amazon_sp_api-2.0.15.dist-info/RECORD +0 -255
  209. sp_api/asyncio/api/models/__init__.py +0 -4
  210. sp_api/asyncio/api/overrides/__init__.py +0 -1
  211. {python_amazon_sp_api-2.0.15.data → python_amazon_sp_api-2.1.3.data}/scripts/make_endpoint +0 -0
  212. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/WHEEL +0 -0
  213. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/licenses/LICENSE +0 -0
  214. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
1
  import enum
2
2
  import os
3
3
  import urllib.parse
4
- from datetime import datetime
4
+ from datetime import datetime, timezone
5
5
 
6
6
  from sp_api.base import (
7
7
  Client,
@@ -60,7 +60,7 @@ class Shipping(Client):
60
60
  "host": self.endpoint[8:],
61
61
  "user-agent": self.user_agent,
62
62
  "x-amz-access-token": self.restricted_data_token or self.auth.access_token,
63
- "x-amz-date": datetime.utcnow().strftime("%Y%m%dT%H%M%SZ"),
63
+ "x-amz-date": datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ"),
64
64
  "content-type": "application/json",
65
65
  "x-amzn-shipping-business-id": self.amzn_shipping_business.value,
66
66
  }
@@ -69,179 +69,30 @@ class Shipping(Client):
69
69
  def get_rates(self, **kwargs) -> ApiResponse:
70
70
  """
71
71
  get_rates(self, **kwargs) -> ApiResponse
72
-
72
+
73
73
  Returns the available shipping service offerings.
74
-
74
+
75
75
  **Usage Plan:**
76
-
77
- ======================================
78
- Rate (requests per second)
79
- ======================================
80
- 5
81
- ======================================
82
-
76
+
77
+ ====================================== ==============
78
+ Rate (requests per second) Burst
79
+ ====================================== ==============
80
+ 80 100
81
+ ====================================== ==============
82
+
83
83
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
84
-
84
+
85
+ Examples:
86
+ literal blocks::
87
+
88
+ Shipping().get_rates()
89
+
85
90
  Args:
86
- body: {
87
- "shipTo": {
88
- "name": "string",
89
- "addressLine1": "string",
90
- "addressLine2": "string",
91
- "addressLine3": "string",
92
- "companyName": "string",
93
- "stateOrRegion": "string",
94
- "city": "string",
95
- "countryCode": "st",
96
- "postalCode": "string",
97
- "email": "string",
98
- "phoneNumber": "string",
99
- "geocode": {
100
- "latitude": "string",
101
- "longitude": "string"
102
- }
103
- },
104
- "shipFrom": {
105
- "name": "string",
106
- "addressLine1": "string",
107
- "addressLine2": "string",
108
- "addressLine3": "string",
109
- "companyName": "string",
110
- "stateOrRegion": "string",
111
- "city": "string",
112
- "countryCode": "st",
113
- "postalCode": "string",
114
- "email": "string",
115
- "phoneNumber": "string",
116
- "geocode": {
117
- "latitude": "string",
118
- "longitude": "string"
119
- }
120
- },
121
- "returnTo": {
122
- "name": "string",
123
- "addressLine1": "string",
124
- "addressLine2": "string",
125
- "addressLine3": "string",
126
- "companyName": "string",
127
- "stateOrRegion": "string",
128
- "city": "string",
129
- "countryCode": "st",
130
- "postalCode": "string",
131
- "email": "string",
132
- "phoneNumber": "string",
133
- "geocode": {
134
- "latitude": "string",
135
- "longitude": "string"
136
- }
137
- },
138
- "shipDate": "2019-08-24T14:15:22Z",
139
- "shipperInstruction": {
140
- "deliveryNotes": "string"
141
- },
142
- "packages": [
143
- {
144
- "dimensions": {
145
- "length": 0,
146
- "width": 0,
147
- "height": 0,
148
- "unit": "CENTIMETER"
149
- },
150
- "weight": {
151
- "unit": "KILOGRAM",
152
- "value": 0
153
- },
154
- "insuredValue":{
155
- "value": 0.00,
156
- "unit": "EUR",
157
- },
158
- "isHazmat": False,
159
- "sellerDisplayName": "string",
160
- "charges": [
161
- {
162
- "amount": {
163
- "value": 0.00,
164
- "unit": "EUR",
165
- },
166
- "chargeType": "TAX"
167
- }
168
- ],
169
- "packageClientReferenceId": "string",
170
- "items": [
171
- {
172
- "itemValue": {
173
- "value": 0.00,
174
- "unit": "EUR",
175
- },
176
- "description": "string",
177
- "itemIdentifier": "string",
178
- "quantity": 1,
179
- "weight": {
180
- "value": 0.00,
181
- "unit": "KILOGRAM",
182
- },
183
- "liquidVolume": {
184
- "value": 0.00,
185
- "unit": "ML",
186
- },
187
- "isHazmat": False,
188
- "dangerousGoodsDetails": {
189
- "unitedNationsRegulatoryId": "string",
190
- "transportationRegulatoryClass": "string",
191
- "packingGroup": "III",
192
- "packingInstruction": "PI965_SECTION_IA",
193
- },
194
- "productType": "string",
195
- "invoiceDetails": {
196
- "invoiceNumber": "string",
197
- "invoiceDate": "2019-08-24T14:15:22Z"
198
- },
199
- "serialNumbers": ["string"],
200
- "directFulfillmentItemIdentifiers": {
201
- "lineItemID": "string",
202
- "pieceNumber": "string"
203
- }
204
- }
205
- ]
206
- }
207
- ],
208
- "valueAddedServicesDetails": {
209
- "collectOnDelivery": {
210
- "amount": {
211
- "value": 0.00,
212
- "unit": "EUR",
213
- }
214
- }
215
- },
216
- "taxDetails": [
217
- {
218
- "taxType": "GST",
219
- "taxRegistrationNumber": "string"
220
- }
221
- ],
222
- "channelDetails": {
223
- "channelType": "EXTERNAL",
224
- "amazonOrderDetails": {
225
- "orderId": "string"
226
- },
227
- "amazonShipmentDetails": {
228
- "shipmentId": "string"
229
- }
230
- },
231
- "clientReferenceDetails": [
232
- {
233
- "clientReferenceType": "IntegratorShipperId",
234
- "clientReferenceId": "string"
235
- }
236
- ],
237
- "shipmentType": "FORWARD",
238
- "destinationAccessPointDetails": {
239
- "accessPointId": "string",
240
- }
241
- }
242
-
91
+ body: GetRatesRequest | required GetRatesRequest body
92
+ x-amzn-shipping-business-id: object | Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
93
+
243
94
  Returns:
244
- ApiResponse:
95
+ ApiResponse
245
96
  """
246
97
 
247
98
  return self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
@@ -250,47 +101,33 @@ class Shipping(Client):
250
101
  def purchase_shipment(self, **kwargs) -> ApiResponse:
251
102
  """
252
103
  purchase_shipment(self, **kwargs) -> ApiResponse
253
-
104
+
254
105
  Purchases a shipping service and returns purchase related details and documents.
255
-
256
- Note: You must complete the purchase within 10 minutes of rate creation by the shipping service provider for channelType as EXTERNAL which is for OFF-Amazon volume. If you make the request after the 10 minutes have expired, you will receive an error response with the error code equal to "TOKEN_EXPIRED". If you receive this error response, you must get the rates for the shipment again.
257
-
106
+
107
+ Note: You must complete the purchase within 10 minutes of rate creation by the shipping service provider. If you make the request after the 10 minutes have expired, you will receive an error response with the error code equal to "TOKEN_EXPIRED". If you receive this error response, you must get the rates for the shipment again.
108
+
258
109
  **Usage Plan:**
259
-
260
- ======================================
261
- Rate (requests per second)
262
- ======================================
263
- 5
264
- ======================================
265
-
110
+
111
+ ====================================== ==============
112
+ Rate (requests per second) Burst
113
+ ====================================== ==============
114
+ 80 100
115
+ ====================================== ==============
116
+
266
117
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
267
-
118
+
119
+ Examples:
120
+ literal blocks::
121
+
122
+ Shipping().purchase_shipment()
123
+
268
124
  Args:
269
- body: {
270
- "requestToken": "string",
271
- "rateId": "string",
272
- "requestedDocumentSpecification": {
273
- "format": "ZPL",
274
- "size": {
275
- "width": 4,
276
- "length": 6,
277
- "unit": "INCH"
278
- },
279
- "dpi": 203,
280
- "pageLayout": "DEFAULT",
281
- "needFileJoining": False,
282
- "requestedDocumentTypes": ["LABEL"]
283
- },
284
- "requestedValueAddedServices": [
285
- {
286
- "id": "string"
287
- }
288
- ],
289
- "additionalInputs": {}
290
- }
291
-
125
+ body: PurchaseShipmentRequest | required PurchaseShipmentRequest body
126
+ x-amzn-IdempotencyKey: object | A unique value which the server uses to recognize subsequent retries of the same request.
127
+ x-amzn-shipping-business-id: object | Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
128
+
292
129
  Returns:
293
- ApiResponse:
130
+ ApiResponse
294
131
  """
295
132
  return self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
296
133
 
@@ -298,187 +135,30 @@ class Shipping(Client):
298
135
  def one_click_shipment(self, **kwargs) -> ApiResponse:
299
136
  """
300
137
  one_click_shipment(self, **kwargs) -> ApiResponse
301
-
138
+
302
139
  Purchases a shipping service identifier and returns purchase-related details and documents.
303
-
140
+
304
141
  **Usage Plan:**
305
-
306
- ======================================
307
- Rate (requests per second)
308
- ======================================
309
- 5
310
- ======================================
311
-
142
+
143
+ ====================================== ==============
144
+ Rate (requests per second) Burst
145
+ ====================================== ==============
146
+ 80 100
147
+ ====================================== ==============
148
+
312
149
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
313
-
150
+
151
+ Examples:
152
+ literal blocks::
153
+
154
+ Shipping().one_click_shipment()
155
+
314
156
  Args:
315
- body: {
316
- "shipTo": {
317
- "name": "string",
318
- "addressLine1": "string",
319
- "addressLine2": "string",
320
- "addressLine3": "string",
321
- "companyName": "string",
322
- "stateOrRegion": "string",
323
- "city": "string",
324
- "countryCode": "st",
325
- "postalCode": "string",
326
- "email": "string",
327
- "phoneNumber": "string",
328
- "geocode": {
329
- "latitude": "string",
330
- "longitude": "string"
331
- }
332
- },
333
- "shipFrom": {
334
- "name": "string",
335
- "addressLine1": "string",
336
- "addressLine2": "string",
337
- "addressLine3": "string",
338
- "companyName": "string",
339
- "stateOrRegion": "string",
340
- "city": "string",
341
- "countryCode": "st",
342
- "postalCode": "string",
343
- "email": "string",
344
- "phoneNumber": "string",
345
- "geocode": {
346
- "latitude": "string",
347
- "longitude": "string"
348
- }
349
- },
350
- "returnTo": {
351
- "name": "string",
352
- "addressLine1": "string",
353
- "addressLine2": "string",
354
- "addressLine3": "string",
355
- "companyName": "string",
356
- "stateOrRegion": "string",
357
- "city": "string",
358
- "countryCode": "st",
359
- "postalCode": "string",
360
- "email": "string",
361
- "phoneNumber": "string",
362
- "geocode": {
363
- "latitude": "string",
364
- "longitude": "string"
365
- }
366
- },
367
- "shipDate": "2019-08-24T14:15:22Z",
368
- "packages": [
369
- {
370
- "dimensions": {
371
- "length": 0,
372
- "width": 0,
373
- "height": 0,
374
- "unit": "CENTIMETER"
375
- },
376
- "weight": {
377
- "unit": "KILOGRAM",
378
- "value": 0
379
- },
380
- "insuredValue":{
381
- "value": 0.00,
382
- "unit": "EUR",
383
- },
384
- "isHazmat": False,
385
- "sellerDisplayName": "string",
386
- "charges": [
387
- {
388
- "amount": {
389
- "value": 0.00,
390
- "unit": "EUR",
391
- },
392
- "chargeType": "TAX"
393
- }
394
- ],
395
- "packageClientReferenceId": "string",
396
- "items": [
397
- {
398
- "itemValue": {
399
- "value": 0.00,
400
- "unit": "EUR",
401
- },
402
- "description": "string",
403
- "itemIdentifier": "string",
404
- "quantity": 1,
405
- "weight": {
406
- "value": 0.00,
407
- "unit": "KILOGRAM",
408
- },
409
- "liquidVolume": {
410
- "value": 0.00,
411
- "unit": "ML",
412
- },
413
- "isHazmat": False,
414
- "dangerousGoodsDetails": {
415
- "unitedNationsRegulatoryId": "string",
416
- "transportationRegulatoryClass": "string",
417
- "packingGroup": "III",
418
- "packingInstruction": "PI965_SECTION_IA",
419
- },
420
- "productType": "string",
421
- "invoiceDetails": {
422
- "invoiceNumber": "string",
423
- "invoiceDate": "2019-08-24T14:15:22Z"
424
- },
425
- "serialNumbers": ["string"],
426
- "directFulfillmentItemIdentifiers": {
427
- "lineItemID": "string",
428
- "pieceNumber": "string"
429
- }
430
- }
431
- ]
432
- }
433
- ],
434
- "valueAddedServicesDetails": [
435
- "id": "string",
436
- "amount": {
437
- "value": 0.00,
438
- "unit": "EUR",
439
- },
440
- ],
441
- "taxDetails": [
442
- {
443
- "taxType": "GST",
444
- "taxRegistrationNumber": "string"
445
- }
446
- ],
447
- "channelDetails": {
448
- "channelType": "EXTERNAL",
449
- "amazonOrderDetails": {
450
- "orderId": "string"
451
- },
452
- "amazonShipmentDetails": {
453
- "shipmentId": "string"
454
- }
455
- },
456
- "labelSpecifications": {
457
- "format": "ZPL",
458
- "size": {
459
- "width": 4,
460
- "length": 6,
461
- "unit": "INCH"
462
- },
463
- "dpi": 203,
464
- "pageLayout": "DEFAULT",
465
- "needFileJoining": False,
466
- "requestedDocumentTypes": ["LABEL"]
467
- },
468
- "serviceSelection": {
469
- "serviceId": ["prime-premium-uk-mfn", "std-uk-mfn", "econ-uk-mfn"]
470
- },
471
- "shipperInstruction": {
472
- "deliveryNotes": "string"
473
- },
474
- "destinationAccessPointDetails": {
475
- "accessPointId": "string"
476
- }
477
-
478
- }
479
-
157
+ body: OneClickShipmentRequest | required OneClickShipmentRequest body
158
+ x-amzn-shipping-business-id: object | Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
159
+
480
160
  Returns:
481
- ApiResponse:
161
+ ApiResponse
482
162
  """
483
163
  return self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
484
164
 
@@ -486,25 +166,31 @@ class Shipping(Client):
486
166
  def get_tracking(self, **kwargs) -> ApiResponse:
487
167
  """
488
168
  get_tracking(self, **kwargs) -> ApiResponse
489
-
169
+
490
170
  Returns tracking information for a purchased shipment.
491
-
171
+
492
172
  **Usage Plan:**
493
-
494
- ======================================
495
- Rate (requests per second)
496
- ======================================
497
- 5
498
- ======================================
499
-
173
+
174
+ ====================================== ==============
175
+ Rate (requests per second) Burst
176
+ ====================================== ==============
177
+ 80 100
178
+ ====================================== ==============
179
+
500
180
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
501
-
181
+
182
+ Examples:
183
+ literal blocks::
184
+
185
+ Shipping().get_tracking()
186
+
502
187
  Args:
503
- key trackingId:string | * REQUIRED A carrier-generated tracking identifier originally returned by the purchaseShipment operation.
504
- key carrierId:string | * REQUIRED A carrier identifier originally returned by the getRates operation for the selected rate.
505
-
188
+ key trackingId: object | required A carrier-generated tracking identifier originally returned by the purchaseShipment operation.
189
+ key carrierId: object | required A carrier identifier originally returned by the getRates operation for the selected rate.
190
+ x-amzn-shipping-business-id: object | Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
191
+
506
192
  Returns:
507
- ApiResponse:
193
+ ApiResponse
508
194
  """
509
195
  return self._request(kwargs.pop("path"), params=kwargs, add_marketplace=False)
510
196
 
@@ -512,27 +198,33 @@ class Shipping(Client):
512
198
  def get_shipment_documents(self, shipmentId, **kwargs) -> ApiResponse:
513
199
  """
514
200
  get_shipment_documents(self, shipmentId, **kwargs) -> ApiResponse
515
-
201
+
516
202
  Returns the shipping documents associated with a package in a shipment.
517
-
203
+
518
204
  **Usage Plan:**
519
-
520
- ======================================
521
- Rate (requests per second)
522
- ======================================
523
- 5
524
- ======================================
525
-
205
+
206
+ ====================================== ==============
207
+ Rate (requests per second) Burst
208
+ ====================================== ==============
209
+ 80 100
210
+ ====================================== ==============
211
+
526
212
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
527
-
213
+
214
+ Examples:
215
+ literal blocks::
216
+
217
+ Shipping().get_shipment_documents("value")
218
+
528
219
  Args:
529
- shipmentId:string | * REQUIRED The shipment identifier originally returned by the purchaseShipment operation.
530
- key packageClientReferenceId:string | * REQUIRED The shipment identifier originally returned by the purchaseShipment operation.
531
- key format:string | The file format of the document. Must be one of the supported formats returned by the getRates operation.
532
- key dpi:number | The resolution of the document (for example, 300 means 300 dots per inch). Must be one of the supported resolutions returned in the response to the getRates operation.
533
-
220
+ shipmentId: object | required The shipment identifier originally returned by the purchaseShipment operation.
221
+ key packageClientReferenceId: object | required The package client reference identifier originally provided in the request body parameter for the getRates operation.
222
+ key format: object | The file format of the document. Must be one of the supported formats returned by the getRates operation.
223
+ key dpi: object | The resolution of the document (for example, 300 means 300 dots per inch). Must be one of the supported resolutions returned in the response to the getRates operation.
224
+ x-amzn-shipping-business-id: object | Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
225
+
534
226
  Returns:
535
- ApiResponse:
227
+ ApiResponse
536
228
  """
537
229
 
538
230
  return self._request(
@@ -545,24 +237,30 @@ class Shipping(Client):
545
237
  def cancel_shipment(self, shipmentId, **kwargs) -> ApiResponse:
546
238
  """
547
239
  cancel_shipment(self, shipmentId, **kwargs) -> ApiResponse
548
-
240
+
549
241
  Cancels a purchased shipment. Returns an empty object if the shipment is successfully cancelled.
550
-
242
+
551
243
  **Usage Plan:**
552
-
553
- ======================================
554
- Rate (requests per second)
555
- ======================================
556
- 5
557
- ======================================
558
-
244
+
245
+ ====================================== ==============
246
+ Rate (requests per second) Burst
247
+ ====================================== ==============
248
+ 80 100
249
+ ====================================== ==============
250
+
559
251
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
560
-
252
+
253
+ Examples:
254
+ literal blocks::
255
+
256
+ Shipping().cancel_shipment("value")
257
+
561
258
  Args:
562
- shipmentId:string | * REQUIRED The shipment identifier originally returned by the purchaseShipment operation.
563
-
259
+ shipmentId: object | required The shipment identifier originally returned by the purchaseShipment operation.
260
+ x-amzn-shipping-business-id: object | Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
261
+
564
262
  Returns:
565
- ApiResponse:
263
+ ApiResponse
566
264
  """
567
265
  return self._request(
568
266
  fill_query_params(kwargs.pop("path"), shipmentId),
@@ -574,26 +272,32 @@ class Shipping(Client):
574
272
  def get_access_points(self, **kwargs) -> ApiResponse:
575
273
  """
576
274
  get_access_points(self, **kwargs) -> ApiResponse
577
-
275
+
578
276
  Returns a list of access points in proximity of input postal code.
579
-
277
+
580
278
  **Usage Plan:**
581
-
582
- ======================================
583
- Rate (requests per second)
584
- ======================================
585
- 5
586
- ======================================
587
-
279
+
280
+ ====================================== ==============
281
+ Rate (requests per second) Burst
282
+ ====================================== ==============
283
+ 80 100
284
+ ====================================== ==============
285
+
588
286
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
589
-
287
+
288
+ Examples:
289
+ literal blocks::
290
+
291
+ Shipping().get_access_points()
292
+
590
293
  Args:
591
- key accessPointTypes:string | * REQUIRED
592
- key countryCode:string | * REQUIRED
593
- key postalCode:string | * REQUIRED
594
-
294
+ key accessPointTypes: object | required Access point types
295
+ key countryCode: object | required Country code for access point
296
+ key postalCode: object | required postal code for access point
297
+ x-amzn-shipping-business-id: object | Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
298
+
595
299
  Returns:
596
- ApiResponse:
300
+ ApiResponse
597
301
  """
598
302
  return self._request(kwargs.pop("path"), params=kwargs, add_marketplace=False)
599
303
 
@@ -601,31 +305,30 @@ class Shipping(Client):
601
305
  def submit_ndr_feedback(self, **kwargs) -> ApiResponse:
602
306
  """
603
307
  submit_ndr_feedback(self, **kwargs) -> ApiResponse
604
-
308
+
605
309
  This API submits the NDR (Non-delivery Report) Feedback for any eligible shipment.
606
-
310
+
607
311
  **Usage Plan:**
608
-
609
- ======================================
610
- Rate (requests per second)
611
- ======================================
612
- 5
613
- ======================================
614
-
312
+
313
+ ====================================== ==============
314
+ Rate (requests per second) Burst
315
+ ====================================== ==============
316
+ 80 100
317
+ ====================================== ==============
318
+
615
319
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
616
-
320
+
321
+ Examples:
322
+ literal blocks::
323
+
324
+ Shipping().submit_ndr_feedback()
325
+
617
326
  Args:
618
- body: {
619
- "trackingId": "string",
620
- "ndrAction": "RTO",
621
- "ndrRequestData": {
622
- "rescheduleDate": "2024-12-12T05:24:00.00Z",
623
- "additionalAddressNotes": "string"
624
- }
625
- }
626
-
327
+ body: SubmitNdrFeedbackRequest | required Request body for ndrFeedback operation
328
+ x-amzn-shipping-business-id: object | Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
329
+
627
330
  Returns:
628
- ApiResponse:
331
+ ApiResponse
629
332
  """
630
333
  return self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
631
334
 
@@ -633,24 +336,30 @@ class Shipping(Client):
633
336
  def get_additional_inputs(self, **kwargs) -> ApiResponse:
634
337
  """
635
338
  get_additional_inputs(self, **kwargs) -> ApiResponse
636
-
339
+
637
340
  Returns the JSON schema to use for providing additional inputs when needed to purchase a shipping offering. Call the getAdditionalInputs operation when the response to a previous call to the getRates operation indicates that additional inputs are required for the rate (shipping offering) that you want to purchase.
638
-
341
+
639
342
  **Usage Plan:**
640
-
641
- ======================================
642
- Rate (requests per second)
643
- ======================================
644
- 5
645
- ======================================
646
-
343
+
344
+ ====================================== ==============
345
+ Rate (requests per second) Burst
346
+ ====================================== ==============
347
+ 80 100
348
+ ====================================== ==============
349
+
647
350
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
648
-
351
+
352
+ Examples:
353
+ literal blocks::
354
+
355
+ Shipping().get_additional_inputs()
356
+
649
357
  Args:
650
- key requestToken:string | * REQUIRED The request token returned in the response to the getRates operation.
651
- key rateId:string | * REQUIRED The rate identifier for the shipping offering (rate) returned in the response to the getRates operation.
652
-
358
+ key requestToken: object | required The request token returned in the response to the getRates operation.
359
+ key rateId: object | required The rate identifier for the shipping offering (rate) returned in the response to the getRates operation.
360
+ x-amzn-shipping-business-id: object | Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
361
+
653
362
  Returns:
654
- ApiResponse:
363
+ ApiResponse
655
364
  """
656
365
  return self._request(kwargs.pop("path"), params=kwargs, add_marketplace=False)