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
@@ -8,47 +8,19 @@ class OrdersV0(Client):
8
8
  def get_orders(self, **kwargs) -> ApiResponse:
9
9
  """
10
10
  get_orders(self, **kwargs) -> ApiResponse
11
- Returns orders created or updated during the time frame indicated by the specified parameters.
12
- You can also apply a range of filtering criteria to narrow the list of orders returned.
13
- If NextToken is present, that will be used to retrieve the orders instead of other criteria.
14
-
15
- **Usage Plan:**
16
-
17
- ====================================== ==============
18
- Rate (requests per second) Burst
19
- ====================================== ==============
20
- 1 1
21
- ====================================== ==============
22
-
23
-
24
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
25
-
11
+
12
+ Returns orders that are created or updated during the specified time period. If you want to return specific types of orders, you can apply filters to your request. `NextToken` doesn't affect any filters that you include in your request; it only impacts the pagination for the filtered orders response.
13
+
26
14
  Examples:
27
15
  literal blocks::
28
-
29
- Orders().get_orders(CreatedAfter='TEST_CASE_200', MarketplaceIds=["ATVPDKIKX0DER"])
30
-
16
+
17
+ OrdersV0().get_orders()
18
+
31
19
  Args:
32
- key CreatedAfter: date
33
- key CreatedBefore: date
34
- key LastUpdatedAfter: date
35
- key LastUpdatedBefore: date
36
- key OrderStatuses: [str]
37
- key MarketplaceIds: [str]
38
- key FulfillmentChannels: [str]
39
- key PaymentMethods: [str]
40
- key BuyerEmail: str
41
- key SellerOrderId: str
42
- key MaxResultsPerPage: int
43
- key EasyShipShipmentStatuses: [str]
44
- key NextToken: str
45
- key AmazonOrderIds: [str]
46
- key RestrictedResources: [str]
47
-
20
+ **kwargs:
21
+
48
22
  Returns:
49
- ApiResponse:
50
-
51
-
23
+ ApiResponse
52
24
  """
53
25
  normalize_csv_param(kwargs, "OrderStatuses")
54
26
  normalize_csv_param(kwargs, "MarketplaceIds")
@@ -63,34 +35,21 @@ class OrdersV0(Client):
63
35
  @sp_endpoint("/orders/v0/orders/{}")
64
36
  def get_order(self, order_id: str, **kwargs) -> ApiResponse:
65
37
  """
66
- get_order(self, order_id: str, **kwargs) -> ApiResponse
67
- Returns the order indicated by the specified order ID.
68
-
69
- **Usage Plan:**
70
-
71
- ====================================== ==============
72
- Rate (requests per second) Burst
73
- ====================================== ==============
74
- 1 1
75
- ====================================== ==============
76
-
77
-
78
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
79
-
38
+ get_order(self, order_id, **kwargs) -> ApiResponse
39
+
40
+ Returns the order that you specify.
41
+
80
42
  Examples:
81
43
  literal blocks::
82
-
83
- Orders().get_order('TEST_CASE_200')
84
-
44
+
45
+ OrdersV0().get_order("value")
46
+
85
47
  Args:
86
- order_id: str
87
- key RestrictedResources: [str]
48
+ order_id: | required
88
49
  **kwargs:
89
-
50
+
90
51
  Returns:
91
- ApiResponse:
92
-
93
-
52
+ ApiResponse
94
53
  """
95
54
  if "RestrictedResources" in kwargs:
96
55
  kwargs.update(
@@ -106,44 +65,22 @@ class OrdersV0(Client):
106
65
  @sp_endpoint("/orders/v0/orders/{}/orderItems")
107
66
  def get_order_items(self, order_id: str, **kwargs) -> ApiResponse:
108
67
  """
109
- get_order_items(self, order_id: str, **kwargs) -> ApiResponse
110
-
111
- Returns detailed order item information for the order indicated by the specified order ID.
112
- If NextToken is provided, it's used to retrieve the next page of order items.
113
-
114
- Note: When an order is in the Pending state (the order has been placed but payment has not been authorized),
115
- the getOrderItems operation does not return information about pricing, taxes, shipping charges, gift status or
116
- promotions for the order items in the order.
117
- After an order leaves the Pending state (this occurs when payment has been authorized) and enters the Unshipped,
118
- Partially Shipped, or Shipped state, the getOrderItems operation returns information about pricing, taxes,
119
- shipping charges, gift status and promotions for the order items in the order.
120
-
121
-
122
- **Usage Plan:**
123
-
124
- ====================================== ==============
125
- Rate (requests per second) Burst
126
- ====================================== ==============
127
- 1 1
128
- ====================================== ==============
129
-
130
-
131
-
132
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
133
-
68
+ get_order_items(self, order_id, **kwargs) -> ApiResponse
69
+
70
+ Returns detailed order item information for the order that you specify. If `NextToken` is provided, it's used to retrieve the next page of order items.
71
+ __Note__: When an order is in the Pending state (the order has been placed but payment has not been authorized), the getOrderItems operation does not return information about pricing, taxes, shipping charges, gift status or promotions for the order items in the order. After an order leaves the Pending state (this occurs when payment has been authorized) and enters the Unshipped, Partially Shipped, or Shipped state, the getOrderItems operation returns information about pricing, taxes, shipping charges, gift status and promotions for the order items in the order.
72
+
134
73
  Examples:
135
74
  literal blocks::
136
-
137
- Orders().get_order_items('TEST_CASE_200')
138
-
75
+
76
+ OrdersV0().get_order_items("value")
77
+
139
78
  Args:
140
- order_id: str
141
- key RestrictedResources: [str]
79
+ order_id: | required
142
80
  **kwargs:
143
-
81
+
144
82
  Returns:
145
- ApiResponse:
146
-
83
+ ApiResponse
147
84
  """
148
85
  if "RestrictedResources" in kwargs:
149
86
  kwargs.update(
@@ -158,26 +95,18 @@ class OrdersV0(Client):
158
95
  def get_order_address(self, order_id, **kwargs) -> ApiResponse:
159
96
  """
160
97
  get_order_address(self, order_id, **kwargs) -> ApiResponse
161
-
162
- Returns the shipping address for the order indicated by the specified order ID.
163
-
164
- :note: To get useful information from this method, you need to have access to PII.
165
-
166
- **Usage Plan:**
167
-
168
- ====================================== ==============
169
- Rate (requests per second) Burst
170
- ====================================== ==============
171
- 1 1
172
- ====================================== ==============
173
-
98
+
99
+ Returns the shipping address for the order that you specify.
100
+
174
101
  Examples:
175
- Orders().get_order_address('TEST_CASE_200')
176
-
102
+ literal blocks::
103
+
104
+ OrdersV0().get_order_address("value")
105
+
177
106
  Args:
178
- order_id: str
107
+ order_id: | required
179
108
  **kwargs:
180
-
109
+
181
110
  Returns:
182
111
  ApiResponse
183
112
  """
@@ -188,33 +117,21 @@ class OrdersV0(Client):
188
117
  @sp_endpoint("/orders/v0/orders/{}/buyerInfo")
189
118
  def get_order_buyer_info(self, order_id: str, **kwargs) -> ApiResponse:
190
119
  """
191
- get_order_buyer_info(self, order_id: str, **kwargs) -> ApiResponse
192
- Returns buyer information for the order indicated by the specified order ID.
193
-
194
- :note: To get useful information from this method, you need to have access to PII.
195
-
196
-
197
- **Usage Plan:**
198
-
199
- ====================================== ==============
200
- Rate (requests per second) Burst
201
- ====================================== ==============
202
- 1 1
203
- ====================================== ==============
204
-
205
-
206
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
207
-
120
+ get_order_buyer_info(self, order_id, **kwargs) -> ApiResponse
121
+
122
+ Returns buyer information for the order that you specify.
123
+
208
124
  Examples:
209
- Orders().get_order_buyer_info('TEST_CASE_200')
210
-
125
+ literal blocks::
126
+
127
+ OrdersV0().get_order_buyer_info("value")
128
+
211
129
  Args:
212
- order_id: str
130
+ order_id: | required
213
131
  **kwargs:
214
-
132
+
215
133
  Returns:
216
- GetOrderBuyerInfoResponse:
217
-
134
+ ApiResponse
218
135
  """
219
136
  return self._request(
220
137
  fill_query_params(kwargs.pop("path"), order_id), params={**kwargs}
@@ -223,29 +140,19 @@ class OrdersV0(Client):
223
140
  @sp_endpoint("/orders/v0/orders/{}/orderItems/buyerInfo")
224
141
  def get_order_items_buyer_info(self, order_id: str, **kwargs) -> ApiResponse:
225
142
  """
226
- get_order_items_buyer_info(self, order_id: str, **kwargs) -> ApiResponse
227
-
228
- Returns buyer information in the order items of the order indicated by the specified order ID.
229
-
230
- **Usage Plan:**
231
-
232
- ====================================== ==============
233
- Rate (requests per second) Burst
234
- ====================================== ==============
235
- 1 1
236
- ====================================== ==============
237
-
238
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
239
-
143
+ get_order_items_buyer_info(self, order_id, **kwargs) -> ApiResponse
144
+
145
+ Returns buyer information for the order items in the order that you specify.
146
+
240
147
  Examples:
241
148
  literal blocks::
242
-
243
- Orders().get_order_items_buyer_info('TEST_CASE_200')
244
-
149
+
150
+ OrdersV0().get_order_items_buyer_info("value")
151
+
245
152
  Args:
246
- order_id: str
247
- key NextToken: str | retrieve data by next token
248
-
153
+ order_id: | required
154
+ **kwargs:
155
+
249
156
  Returns:
250
157
  ApiResponse
251
158
  """
@@ -256,24 +163,29 @@ class OrdersV0(Client):
256
163
  @sp_endpoint("/orders/v0/orders/{}/shipment", method="POST")
257
164
  def update_shipment_status(self, order_id: str, **kwargs) -> ApiResponse:
258
165
  """
259
- update_shipment_status(self, order_id: str, **kwargs) -> ApiResponse
260
- Update the shipment status.
166
+ update_shipment_status(self, order_id, **kwargs) -> ApiResponse
167
+
168
+ Update the shipment status for an order that you specify.
169
+
261
170
  **Usage Plan:**
171
+
262
172
  ====================================== ==============
263
173
  Rate (requests per second) Burst
264
174
  ====================================== ==============
265
175
  5 15
266
176
  ====================================== ==============
177
+
267
178
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
179
+
268
180
  Examples:
269
181
  literal blocks::
270
- Orders().update_shipment_status(
271
- order_id='123-1234567-1234567',
272
- marketplaceId='ATVPDKIKX0DER',
273
- shipmentStatus='ReadyForPickup'
274
- )
182
+
183
+ OrdersV0().update_shipment_status("value")
184
+
275
185
  Args:
276
- order_id: str
186
+ orderId: object | required An Amazon-defined order identifier, in 3-7-7 format.
187
+ payload: UpdateShipmentStatusRequest | required The request body for the `updateShipmentStatus` operation.
188
+
277
189
  Returns:
278
190
  ApiResponse
279
191
  """
@@ -286,40 +198,29 @@ class OrdersV0(Client):
286
198
  @sp_endpoint("/orders/v0/orders/{}/shipmentConfirmation", method="POST")
287
199
  def confirm_shipment(self, order_id: str, **kwargs) -> ApiResponse:
288
200
  """
289
- confirm_shipment(self, order_id: str, **kwargs) -> ApiResponse
201
+ confirm_shipment(self, order_id, **kwargs) -> ApiResponse
202
+
290
203
  Updates the shipment confirmation status for a specified order.
204
+
291
205
  **Usage Plan:**
206
+
292
207
  ====================================== ==============
293
208
  Rate (requests per second) Burst
294
209
  ====================================== ==============
295
210
  2 10
296
211
  ====================================== ==============
212
+
297
213
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
214
+
298
215
  Examples:
299
216
  literal blocks::
300
- Orders().confirm_shipment(
301
- order_id='123-1234567-1234567',
302
- marketplaceId='ATVPDKIKX0DER',
303
- packageDetail={
304
- 'packageReferenceId': '0001',
305
- 'carrierCode': 'DHL',
306
- "shippingMethod": 'Paket',
307
- 'trackingNumber': '1234567890',
308
- 'shipDate': '2023-03-19T12:00:00Z',
309
- 'orderItems': [
310
- {
311
- 'orderItemId': '123456789',
312
- 'quantity': 1
313
- },
314
- {
315
- 'orderItemId': '2345678901',
316
- 'quantity': 2
317
- },
318
- ]
319
- }
320
- )
217
+
218
+ OrdersV0().confirm_shipment("value")
219
+
321
220
  Args:
322
- order_id: str
221
+ orderId: object | required An Amazon-defined order identifier, in 3-7-7 format.
222
+ payload: ConfirmShipmentRequest | required Request body of `confirmShipment`.
223
+
323
224
  Returns:
324
225
  ApiResponse
325
226
  """
@@ -357,3 +258,70 @@ class OrdersV0(Client):
357
258
  self.restricted_data_token = None
358
259
  return r
359
260
 
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+ @sp_endpoint("/orders/v0/orders/{}/regulatedInfo", method="GET")
269
+ def get_order_regulated_info(self, orderId, **kwargs) -> ApiResponse:
270
+ """
271
+ get_order_regulated_info(self, orderId, **kwargs) -> ApiResponse
272
+
273
+ Returns regulated information for the order that you specify.
274
+
275
+ **Usage Plan:**
276
+
277
+ ====================================== ==============
278
+ Rate (requests per second) Burst
279
+ ====================================== ==============
280
+ 0.5 30
281
+ ====================================== ==============
282
+
283
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
284
+
285
+ Examples:
286
+ literal blocks::
287
+
288
+ OrdersV0().get_order_regulated_info("value")
289
+
290
+ Args:
291
+ orderId: object | required The Amazon order identifier in 3-7-7 format.
292
+
293
+ Returns:
294
+ ApiResponse
295
+ """
296
+ return self._request(fill_query_params(kwargs.pop("path"), orderId), params=kwargs)
297
+
298
+ @sp_endpoint("/orders/v0/orders/{}/regulatedInfo", method="PATCH")
299
+ def update_verification_status(self, orderId, **kwargs) -> ApiResponse:
300
+ """
301
+ update_verification_status(self, orderId, **kwargs) -> ApiResponse
302
+
303
+ Updates (approves or rejects) the verification status of an order containing regulated products.
304
+
305
+ **Usage Plan:**
306
+
307
+ ====================================== ==============
308
+ Rate (requests per second) Burst
309
+ ====================================== ==============
310
+ 0.5 30
311
+ ====================================== ==============
312
+
313
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
314
+
315
+ Examples:
316
+ literal blocks::
317
+
318
+ OrdersV0().update_verification_status("value")
319
+
320
+ Args:
321
+ orderId: object | required The Amazon order identifier in 3-7-7 format.
322
+ payload: UpdateVerificationStatusRequest | required The request body for the `updateVerificationStatus` operation.
323
+
324
+ Returns:
325
+ ApiResponse
326
+ """
327
+ return self._request(fill_query_params(kwargs.pop("path"), orderId), data=kwargs)
@@ -26,37 +26,39 @@ class ProductFees(Client):
26
26
  **kwargs
27
27
  ) -> ApiResponse:
28
28
  """
29
- get_product_fees_estimate_for_sku(self, seller_sku, price: float, shipping_price=None, currency='USD', is_fba=False, points: dict = dict, **kwargs) -> ApiResponse
30
-
31
- Returns fees for sku
32
-
29
+ get_product_fees_estimate_for_sku(self, seller_sku, price, shipping_price, currency, is_fba, points, marketplace_id, optional_fulfillment_program, force_safe_sku, **kwargs) -> ApiResponse
30
+
31
+ Returns the estimated fees for the item indicated by the specified seller SKU in the marketplace specified in the request body.
32
+
33
+ **Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding).
34
+
35
+ You can call `getMyFeesEstimateForSKU` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take any estimated fees into account. Each fees estimate request must include an original identifier. This identifier is included in the fees estimate so that you can correlate a fees estimate with the original request.
36
+
37
+ **Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search "fees" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information.
38
+
39
+ **Note:** When sellers use the `getMyFeesEstimateForSKU` operation with their `SellerSKU`, they get accurate fees based on real item measurements, but only after they've sent their items to Amazon.
40
+
41
+ **Usage Plan:**
42
+
43
+ ====================================== ==============
44
+ Rate (requests per second) Burst
45
+ ====================================== ==============
46
+ 1 2
47
+ ====================================== ==============
48
+
49
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
50
+
33
51
  Examples:
34
52
  literal blocks::
35
-
36
- ProductFees().get_product_fees_estimate_for_sku("UmaS1", 10, currency='USD', shipping_price=10, is_fba=False,
37
- points={
38
- "PointsNumber": 0,
39
- "PointsMonetaryValue": {
40
- "CurrencyCode": "USD",
41
- "Amount": 0
42
- }
43
- })
44
-
53
+
54
+ ProductFees().get_product_fees_estimate_for_sku("value", "value", "value", "value", "value", "value", "value", "value", "value")
55
+
45
56
  Args:
46
- seller_sku:
47
- price:
48
- shipping_price:
49
- currency:
50
- is_fba:
51
- points:
52
- marketplace_id: str | Defaults to self.marketplace_id
53
- optional_fulfillment_program:
54
- force_safe_sku: bool | Force user SKU quote
55
- **kwargs:
56
-
57
+ body: GetMyFeesEstimateRequest | required The request body schema for the getMyFeesEstimates operation
58
+ SellerSKU: object | required Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit.
59
+
57
60
  Returns:
58
- ApiResponse:
59
-
61
+ ApiResponse
60
62
  """
61
63
 
62
64
  if force_safe_sku:
@@ -93,36 +95,37 @@ class ProductFees(Client):
93
95
  **kwargs
94
96
  ) -> ApiResponse:
95
97
  """
96
- get_product_fees_estimate_for_asin(self, asin, price: float, currency='USD', shipping_price=None, is_fba=False, points: dict = dict, **kwargs) -> ApiResponse
97
-
98
- Returns fees for asin
99
-
98
+ get_product_fees_estimate_for_asin(self, asin, price, currency, shipping_price, is_fba, points, marketplace_id, optional_fulfillment_program, **kwargs) -> ApiResponse
99
+
100
+ Returns the estimated fees for the item indicated by the specified ASIN in the marketplace specified in the request body.
101
+
102
+ You can call `getMyFeesEstimateForASIN` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take estimated fees into account. Each fees request must include an original identifier. This identifier is included in the fees estimate so you can correlate a fees estimate with the original request.
103
+
104
+ **Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search "fees" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information.
105
+
106
+ **Note:** When using the `getMyFeesEstimateForASIN` operation with an ASIN, the fee estimates might be different. This is because these estimates use the item's catalog size, which might not always match the actual size of the item sent to Amazon.
107
+
108
+ **Usage Plan:**
109
+
110
+ ====================================== ==============
111
+ Rate (requests per second) Burst
112
+ ====================================== ==============
113
+ 1 2
114
+ ====================================== ==============
115
+
116
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
117
+
100
118
  Examples:
101
119
  literal blocks::
102
-
103
- ProductFees().get_product_fees_estimate_for_asin("UmaS1", 10, currency='USD', shipping_price=10, is_fba=False,
104
- points={
105
- "PointsNumber": 0,
106
- "PointsMonetaryValue": {
107
- "CurrencyCode": "USD",
108
- "Amount": 0
109
- }
110
- })
111
-
120
+
121
+ ProductFees().get_product_fees_estimate_for_asin("value", "value", "value", "value", "value", "value", "value", "value")
122
+
112
123
  Args:
113
- asin:
114
- price:
115
- currency:
116
- shipping_price:
117
- is_fba:
118
- points:
119
- marketplace_id: str | Defaults to self.marketplace_id
120
- optional_fulfillment_program:
121
- **kwargs:
122
-
124
+ body: GetMyFeesEstimateRequest | required The request body schema for the getMyFeesEstimates operation
125
+ Asin: object | required The Amazon Standard Identification Number (ASIN) of the item.
126
+
123
127
  Returns:
124
- ApiResponse:
125
-
128
+ ApiResponse
126
129
  """
127
130
  kwargs.update(
128
131
  create_fees_body(
@@ -138,34 +141,56 @@ class ProductFees(Client):
138
141
  )
139
142
  return self._request(fill_query_params(kwargs.pop("path"), asin), data=kwargs)
140
143
 
141
- def get_product_fees_estimate(self, estimate_requests: List[dict]) -> ApiResponse:
144
+ @sp_endpoint("/products/fees/v0/feesEstimate", method="POST")
145
+ def get_my_fees_estimates(
146
+ self, estimate_requests: List[dict], **kwargs
147
+ ) -> ApiResponse:
142
148
  """
143
- get_product_fees_estimate(self, estimate_requests: List[dict]) -> ApiResponse
149
+ get_my_fees_estimates(self, estimate_requests, **kwargs) -> ApiResponse
150
+
151
+ Returns the estimated fees for a list of products.
152
+
153
+ **Usage Plan:**
154
+
155
+ ====================================== ==============
156
+ Rate (requests per second) Burst
157
+ ====================================== ==============
158
+ 0.5 1
159
+ ====================================== ==============
160
+
161
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
162
+
163
+ Examples:
164
+ literal blocks::
165
+
166
+ ProductFees().get_my_fees_estimates("value")
167
+
168
+ Args:
169
+ body: GetMyFeesEstimatesRequest | required The request body schema for the getMyFeesEstimates operation
170
+
171
+ Returns:
172
+ ApiResponse
173
+ """
174
+ kwargs.pop("path", None)
175
+ kwargs.pop("method", None)
176
+ return self.get_product_fees_estimate(estimate_requests)
144
177
 
178
+ def get_product_fees_estimate(self, estimate_requests: List[dict]) -> ApiResponse:
179
+ """
180
+ get_product_fees_estimate(self, estimate_requests) -> ApiResponse
181
+
145
182
  Return fees for multiple products
146
-
183
+
147
184
  Examples:
148
185
  literal blocks::
149
-
150
- ProductFees().get_product_fees_estimate(
151
- [
152
- dict(id_type='ASIN', id_value='B012345678', price=100),
153
- dict(id_type='ASIN', id_value='B012345678', price=50, is_fba=True),
154
- ]
155
- )
156
-
157
-
186
+
187
+ ProductFees().get_product_fees_estimate("value")
188
+
158
189
  Args:
159
- estimate_requests: list of dict where the allowed keys are :
160
- id_type: str | ASIN or SellerSKU
161
- id_value: str
162
- price:
163
- currency:
164
- shipping_price:
165
- is_fba:
166
- points:
167
- marketplace_id: str | Defaults to self.marketplace_id
168
- optional_fulfillment_program:
190
+ estimate_requests: | required
191
+
192
+ Returns:
193
+ ApiResponse
169
194
  """
170
195
  data = []
171
196
  for estimate in estimate_requests:
@@ -183,6 +208,7 @@ class ProductFees(Client):
183
208
  "/products/fees/v0/feesEstimate",
184
209
  data=data,
185
210
  params=dict(method="POST"),
211
+ add_marketplace=False,
186
212
  wrap_list=True,
187
213
  )
188
214