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.
- {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/METADATA +7 -7
- python_amazon_sp_api-2.1.3.dist-info/RECORD +350 -0
- sp_api/__version__.py +1 -1
- sp_api/api/__init__.py +160 -4
- sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +85 -110
- sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu_2024_05_09.py +456 -0
- sp_api/api/aplus_content/aplus_content.py +176 -125
- sp_api/api/application_integrations/application_integrations.py +59 -68
- sp_api/api/application_management/application_management.py +20 -13
- sp_api/api/authorization/authorization.py +8 -26
- sp_api/api/catalog/catalog.py +27 -61
- sp_api/api/catalog_items/catalog_items.py +108 -78
- sp_api/api/catalog_items/catalog_items_2020_12_01.py +86 -0
- sp_api/api/catalog_items/catalog_items_2022_04_01.py +89 -0
- sp_api/api/customer_feedback/customer_feedback.py +100 -0
- sp_api/api/data_kiosk/data_kiosk.py +80 -75
- sp_api/api/delivery_by_amazon/__init__.py +0 -0
- sp_api/api/delivery_by_amazon/delivery_by_amazon.py +92 -0
- sp_api/api/delivery_by_amazon/delivery_by_amazon_2022_07_01.py +81 -0
- sp_api/api/easy_ship/easy_ship.py +121 -111
- sp_api/api/external_fulfillment/external_fulfillment.py +211 -434
- sp_api/api/external_fulfillment/inventory.py +120 -0
- sp_api/api/external_fulfillment/inventory_2021_01_06.py +71 -0
- sp_api/api/external_fulfillment/inventory_2024_09_11.py +96 -0
- sp_api/api/external_fulfillment/returns.py +120 -0
- sp_api/api/external_fulfillment/returns_2021_08_19.py +88 -0
- sp_api/api/external_fulfillment/returns_2024_09_11.py +141 -0
- sp_api/api/external_fulfillment/shipping.py +120 -0
- sp_api/api/external_fulfillment/shipping_2021_01_06.py +256 -0
- sp_api/api/external_fulfillment/shipping_2024_09_11.py +233 -0
- sp_api/api/fba_inbound_eligibility/fba_inbound_eligibility.py +30 -24
- sp_api/api/fba_small_and_light/fba_small_and_light.py +60 -99
- sp_api/api/feeds/feeds.py +75 -245
- sp_api/api/feeds/feeds_2021_06_30.py +320 -0
- sp_api/api/finances/finances.py +123 -90
- sp_api/api/finances/finances_2024_06_01.py +71 -0
- sp_api/api/finances/finances_2024_06_19.py +114 -0
- sp_api/api/finances/finances_v0.py +116 -0
- sp_api/api/fulfillment_inbound/fulfillment_inbound.py +107 -1784
- sp_api/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py +1722 -0
- sp_api/api/fulfillment_inbound/fulfillment_inbound_v0.py +1384 -0
- sp_api/api/fulfillment_outbound/fulfillment_outbound.py +256 -480
- sp_api/api/inventories/inventories.py +79 -42
- sp_api/api/invoices/__init__.py +0 -0
- sp_api/api/invoices/invoices.py +92 -0
- sp_api/api/invoices/invoices_2024_06_19.py +344 -0
- sp_api/api/listings_items/listings_items.py +110 -163
- sp_api/api/listings_items/listings_items_2020_09_01.py +189 -0
- sp_api/api/listings_items/listings_items_2021_08_01.py +233 -0
- sp_api/api/listings_restrictions/listings_restrictions.py +23 -10
- sp_api/api/merchant_fulfillment/merchant_fulfillment.py +107 -222
- sp_api/api/messaging/messaging.py +184 -198
- sp_api/api/notifications/notifications.py +144 -106
- sp_api/api/orders/orders.py +9 -46
- sp_api/api/orders/orders_2026_01_01.py +19 -65
- sp_api/api/orders/orders_v0.py +152 -184
- sp_api/api/product_fees/product_fees.py +101 -75
- sp_api/api/product_type_definitions/product_type_definitions.py +47 -36
- sp_api/api/products/products.py +94 -386
- sp_api/api/products/products_2022_05_01.py +96 -0
- sp_api/api/products/products_v0.py +389 -0
- sp_api/api/replenishment/replenishment.py +58 -69
- sp_api/api/reports/reports.py +124 -157
- sp_api/api/sales/sales.py +22 -39
- sp_api/api/seller_wallet/__init__.py +0 -0
- sp_api/api/seller_wallet/seller_wallet.py +92 -0
- sp_api/api/seller_wallet/seller_wallet_2024_03_01.py +300 -0
- sp_api/api/sellers/sellers.py +15 -35
- sp_api/api/services/services.py +479 -82
- sp_api/api/shipment_invoicing/__init__.py +0 -0
- sp_api/api/shipment_invoicing/shipment_invoicing.py +92 -0
- sp_api/api/shipment_invoicing/shipment_invoicing_v0.py +101 -0
- sp_api/api/shipping/shipping.py +94 -440
- sp_api/api/shipping/shippingV2.py +183 -474
- sp_api/api/shipping/shipping_v1.py +330 -0
- sp_api/api/shipping/shipping_v2.py +723 -0
- sp_api/api/solicitations/solicitations.py +28 -18
- sp_api/api/supply_sources/supply_sources.py +67 -57
- sp_api/api/tokens/tokens.py +14 -35
- sp_api/api/vehicles/__init__.py +0 -0
- sp_api/api/vehicles/vehicles.py +92 -0
- sp_api/api/vehicles/vehicles_2024_11_01.py +33 -0
- sp_api/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +16 -29
- sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +116 -189
- sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py +114 -0
- sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_v1.py +114 -0
- sp_api/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +15 -225
- sp_api/api/vendor_direct_fulfillment_sandbox_test_data/__init__.py +0 -0
- sp_api/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data.py +92 -0
- sp_api/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.py +50 -0
- sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +122 -624
- sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_2021_12_28.py +390 -0
- sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_v1.py +320 -0
- sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +113 -29
- sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_2021_12_28.py +47 -0
- sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_v1.py +47 -0
- sp_api/api/vendor_invoices/vendor_invoices.py +15 -264
- sp_api/api/vendor_orders/vendor_orders.py +83 -131
- sp_api/api/vendor_shipments/vendor_shipments.py +149 -68
- sp_api/api/vendor_transaction_status/vendor_transaction_status.py +16 -11
- sp_api/asyncio/api/__init__.py +159 -4
- sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +84 -110
- sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu_2024_05_09.py +457 -0
- sp_api/asyncio/api/aplus_content/aplus_content.py +176 -125
- sp_api/asyncio/api/application_integrations/application_integrations.py +59 -68
- sp_api/asyncio/api/application_management/application_management.py +20 -13
- sp_api/asyncio/api/authorization/authorization.py +8 -26
- sp_api/asyncio/api/catalog/catalog.py +27 -61
- sp_api/asyncio/api/catalog_items/catalog_items.py +94 -71
- sp_api/asyncio/api/catalog_items/catalog_items_2020_12_01.py +87 -0
- sp_api/asyncio/api/catalog_items/catalog_items_2022_04_01.py +90 -0
- sp_api/asyncio/api/customer_feedback/customer_feedback.py +100 -0
- sp_api/asyncio/api/data_kiosk/data_kiosk.py +80 -75
- sp_api/asyncio/api/delivery_by_amazon/__init__.py +0 -0
- sp_api/asyncio/api/delivery_by_amazon/delivery_by_amazon.py +92 -0
- sp_api/asyncio/api/delivery_by_amazon/delivery_by_amazon_2022_07_01.py +82 -0
- sp_api/asyncio/api/easy_ship/easy_ship.py +121 -111
- sp_api/asyncio/api/external_fulfillment/external_fulfillment.py +212 -435
- sp_api/asyncio/api/external_fulfillment/inventory.py +126 -0
- sp_api/asyncio/api/external_fulfillment/inventory_2021_01_06.py +73 -0
- sp_api/asyncio/api/external_fulfillment/inventory_2024_09_11.py +98 -0
- sp_api/asyncio/api/external_fulfillment/returns.py +124 -0
- sp_api/asyncio/api/external_fulfillment/returns_2021_08_19.py +90 -0
- sp_api/asyncio/api/external_fulfillment/returns_2024_09_11.py +143 -0
- sp_api/asyncio/api/external_fulfillment/shipping.py +124 -0
- sp_api/asyncio/api/external_fulfillment/shipping_2021_01_06.py +258 -0
- sp_api/asyncio/api/external_fulfillment/shipping_2024_09_11.py +235 -0
- sp_api/asyncio/api/fba_inbound_eligibility/fba_inbound_eligibility.py +31 -25
- sp_api/asyncio/api/fba_small_and_light/fba_small_and_light.py +61 -100
- sp_api/asyncio/api/feeds/feeds.py +75 -243
- sp_api/asyncio/api/feeds/feeds_2021_06_30.py +318 -0
- sp_api/asyncio/api/finances/finances.py +123 -91
- sp_api/asyncio/api/finances/finances_2024_06_01.py +72 -0
- sp_api/asyncio/api/finances/finances_2024_06_19.py +115 -0
- sp_api/asyncio/api/finances/finances_v0.py +117 -0
- sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound.py +107 -1785
- sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py +1723 -0
- sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound_v0.py +1385 -0
- sp_api/asyncio/api/fulfillment_outbound/fulfillment_outbound.py +257 -481
- sp_api/asyncio/api/inventories/inventories.py +79 -42
- sp_api/asyncio/api/invoices/__init__.py +0 -0
- sp_api/asyncio/api/invoices/invoices.py +92 -0
- sp_api/asyncio/api/invoices/invoices_2024_06_19.py +345 -0
- sp_api/asyncio/api/listings_items/listings_items.py +109 -163
- sp_api/asyncio/api/listings_items/listings_items_2020_09_01.py +190 -0
- sp_api/asyncio/api/listings_items/listings_items_2021_08_01.py +233 -0
- sp_api/asyncio/api/listings_restrictions/listings_restrictions.py +23 -10
- sp_api/asyncio/api/merchant_fulfillment/merchant_fulfillment.py +110 -222
- sp_api/asyncio/api/messaging/messaging.py +185 -199
- sp_api/asyncio/api/notifications/notifications.py +145 -107
- sp_api/asyncio/api/orders/orders.py +9 -46
- sp_api/asyncio/api/orders/orders_2026_01_01.py +19 -65
- sp_api/asyncio/api/orders/orders_v0.py +152 -184
- sp_api/asyncio/api/product_fees/product_fees.py +101 -75
- sp_api/asyncio/api/product_type_definitions/product_type_definitions.py +47 -36
- sp_api/asyncio/api/products/products.py +94 -387
- sp_api/asyncio/api/products/products_2022_05_01.py +109 -0
- sp_api/asyncio/api/products/products_v0.py +388 -0
- sp_api/asyncio/api/replenishment/replenishment.py +59 -70
- sp_api/asyncio/api/reports/reports.py +124 -157
- sp_api/asyncio/api/sales/sales.py +22 -39
- sp_api/asyncio/api/seller_wallet/__init__.py +0 -0
- sp_api/asyncio/api/seller_wallet/seller_wallet.py +92 -0
- sp_api/asyncio/api/seller_wallet/seller_wallet_2024_03_01.py +301 -0
- sp_api/asyncio/api/sellers/sellers.py +16 -36
- sp_api/asyncio/api/services/services.py +479 -82
- sp_api/asyncio/api/shipment_invoicing/__init__.py +0 -0
- sp_api/asyncio/api/shipment_invoicing/shipment_invoicing.py +92 -0
- sp_api/asyncio/api/shipment_invoicing/shipment_invoicing_v0.py +102 -0
- sp_api/asyncio/api/shipping/shipping.py +94 -441
- sp_api/asyncio/api/shipping/shippingV2.py +181 -472
- sp_api/asyncio/api/shipping/shipping_v1.py +331 -0
- sp_api/asyncio/api/shipping/shipping_v2.py +717 -0
- sp_api/asyncio/api/solicitations/solicitations.py +29 -19
- sp_api/asyncio/api/supply_sources/supply_sources.py +67 -57
- sp_api/asyncio/api/tokens/tokens.py +14 -35
- sp_api/asyncio/api/vehicles/__init__.py +0 -0
- sp_api/asyncio/api/vehicles/vehicles.py +92 -0
- sp_api/asyncio/api/vehicles/vehicles_2024_11_01.py +34 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +16 -29
- sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +120 -192
- sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py +116 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_v1.py +115 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +15 -225
- sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/__init__.py +0 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data.py +92 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.py +51 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +120 -623
- sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_2021_12_28.py +392 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_v1.py +321 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +112 -29
- sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_2021_12_28.py +49 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_v1.py +48 -0
- sp_api/asyncio/api/vendor_invoices/vendor_invoices.py +16 -265
- sp_api/asyncio/api/vendor_orders/vendor_orders.py +84 -132
- sp_api/asyncio/api/vendor_shipments/vendor_shipments.py +150 -69
- sp_api/asyncio/api/vendor_transaction_status/vendor_transaction_status.py +17 -12
- sp_api/asyncio/base/client.py +2 -2
- sp_api/asyncio/util/load_date_bound.py +1 -1
- sp_api/base/__init__.py +10 -0
- sp_api/base/_core.py +2 -2
- sp_api/base/client.py +3 -3
- sp_api/base/helpers.py +12 -1
- sp_api/base/marketplaces.py +6 -3
- sp_api/util/__init__.py +2 -0
- sp_api/util/load_date_bound.py +1 -1
- sp_api/util/versioned_client.py +45 -0
- python_amazon_sp_api-2.0.15.dist-info/RECORD +0 -255
- sp_api/asyncio/api/models/__init__.py +0 -4
- sp_api/asyncio/api/overrides/__init__.py +0 -1
- {python_amazon_sp_api-2.0.15.data → python_amazon_sp_api-2.1.3.data}/scripts/make_endpoint +0 -0
- {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/WHEEL +0 -0
- {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/licenses/LICENSE +0 -0
- {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/top_level.txt +0 -0
|
@@ -15,7 +15,22 @@ class CustomerFeedback(Client):
|
|
|
15
15
|
self, asin, *args, **kwargs
|
|
16
16
|
) -> ApiResponse:
|
|
17
17
|
"""
|
|
18
|
+
get_item_review_topics(self, asin, *args, **kwargs) -> ApiResponse
|
|
19
|
+
|
|
18
20
|
Retrieve an item's ten most positive and ten most negative review topics.
|
|
21
|
+
|
|
22
|
+
Examples:
|
|
23
|
+
literal blocks::
|
|
24
|
+
|
|
25
|
+
CustomerFeedback().get_item_review_topics("value")
|
|
26
|
+
|
|
27
|
+
Args:
|
|
28
|
+
asin: object | required The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace. The value must be a child ASIN.
|
|
29
|
+
key marketplaceId: object | required The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
30
|
+
key sortBy: object | required The metric by which to sort data in the response.
|
|
31
|
+
|
|
32
|
+
Returns:
|
|
33
|
+
ApiResponse
|
|
19
34
|
"""
|
|
20
35
|
|
|
21
36
|
return self._request(
|
|
@@ -25,7 +40,21 @@ class CustomerFeedback(Client):
|
|
|
25
40
|
@sp_endpoint("/customerFeedback/2024-06-01/items/{}/browseNode", method="GET")
|
|
26
41
|
def get_item_browse_node(self, asin, *args, **kwargs) -> ApiResponse:
|
|
27
42
|
"""
|
|
43
|
+
get_item_browse_node(self, asin, *args, **kwargs) -> ApiResponse
|
|
44
|
+
|
|
28
45
|
This API returns the associated browse node of the requested ASIN. A browse node is a location in a browse tree that is used for navigation, product classification, and website content on the Amazon retail website.
|
|
46
|
+
|
|
47
|
+
Examples:
|
|
48
|
+
literal blocks::
|
|
49
|
+
|
|
50
|
+
CustomerFeedback().get_item_browse_node("value")
|
|
51
|
+
|
|
52
|
+
Args:
|
|
53
|
+
asin: object | required The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace.
|
|
54
|
+
key marketplaceId: object | required The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
55
|
+
|
|
56
|
+
Returns:
|
|
57
|
+
ApiResponse
|
|
29
58
|
"""
|
|
30
59
|
|
|
31
60
|
return self._request(
|
|
@@ -41,7 +70,22 @@ class CustomerFeedback(Client):
|
|
|
41
70
|
self, browseNodeId, *args, **kwargs
|
|
42
71
|
) -> ApiResponse:
|
|
43
72
|
"""
|
|
73
|
+
get_browse_node_review_topics(self, browseNodeId, *args, **kwargs) -> ApiResponse
|
|
74
|
+
|
|
44
75
|
Retrieve a browse node's ten most positive and ten most negative review topics.
|
|
76
|
+
|
|
77
|
+
Examples:
|
|
78
|
+
literal blocks::
|
|
79
|
+
|
|
80
|
+
CustomerFeedback().get_browse_node_review_topics("value")
|
|
81
|
+
|
|
82
|
+
Args:
|
|
83
|
+
browseNodeId: object | required The ID of a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
|
|
84
|
+
key marketplaceId: object | required The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
85
|
+
key sortBy: object | required The metric by which to sort the data in the response.
|
|
86
|
+
|
|
87
|
+
Returns:
|
|
88
|
+
ApiResponse
|
|
45
89
|
"""
|
|
46
90
|
|
|
47
91
|
return self._request(
|
|
@@ -56,7 +100,21 @@ class CustomerFeedback(Client):
|
|
|
56
100
|
self, asin, *args, **kwargs
|
|
57
101
|
) -> ApiResponse:
|
|
58
102
|
"""
|
|
103
|
+
get_item_review_trends(self, asin, *args, **kwargs) -> ApiResponse
|
|
104
|
+
|
|
59
105
|
Retrieve an item's positive and negative review trends for the past six months.
|
|
106
|
+
|
|
107
|
+
Examples:
|
|
108
|
+
literal blocks::
|
|
109
|
+
|
|
110
|
+
CustomerFeedback().get_item_review_trends("value")
|
|
111
|
+
|
|
112
|
+
Args:
|
|
113
|
+
asin: object | required The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace. This API takes child ASIN as an input.
|
|
114
|
+
key marketplaceId: object | required The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
115
|
+
|
|
116
|
+
Returns:
|
|
117
|
+
ApiResponse
|
|
60
118
|
"""
|
|
61
119
|
|
|
62
120
|
return self._request(
|
|
@@ -72,7 +130,21 @@ class CustomerFeedback(Client):
|
|
|
72
130
|
self, browseNodeId, *args, **kwargs
|
|
73
131
|
) -> ApiResponse:
|
|
74
132
|
"""
|
|
133
|
+
get_browse_node_review_trends(self, browseNodeId, *args, **kwargs) -> ApiResponse
|
|
134
|
+
|
|
75
135
|
Retrieve the positive and negative review trends of items in a browse node for the past six months.
|
|
136
|
+
|
|
137
|
+
Examples:
|
|
138
|
+
literal blocks::
|
|
139
|
+
|
|
140
|
+
CustomerFeedback().get_browse_node_review_trends("value")
|
|
141
|
+
|
|
142
|
+
Args:
|
|
143
|
+
browseNodeId: object | required A browse node ID is a unique identifier of a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
|
|
144
|
+
key marketplaceId: object | required The marketplace ID is the globally unique identifier of a marketplace. For more information, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
145
|
+
|
|
146
|
+
Returns:
|
|
147
|
+
ApiResponse
|
|
76
148
|
"""
|
|
77
149
|
|
|
78
150
|
return self._request(
|
|
@@ -87,7 +159,21 @@ class CustomerFeedback(Client):
|
|
|
87
159
|
self, browseNodeId, *args, **kwargs
|
|
88
160
|
) -> ApiResponse:
|
|
89
161
|
"""
|
|
162
|
+
get_browse_node_return_topics(self, browseNodeId, *args, **kwargs) -> ApiResponse
|
|
163
|
+
|
|
90
164
|
Retrieve the topics that customers mention when they return items in a browse node.
|
|
165
|
+
|
|
166
|
+
Examples:
|
|
167
|
+
literal blocks::
|
|
168
|
+
|
|
169
|
+
CustomerFeedback().get_browse_node_return_topics("value")
|
|
170
|
+
|
|
171
|
+
Args:
|
|
172
|
+
browseNodeId: object | required A browse node ID is a unique identifier for a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
|
|
173
|
+
key marketplaceId: object | required The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
174
|
+
|
|
175
|
+
Returns:
|
|
176
|
+
ApiResponse
|
|
91
177
|
"""
|
|
92
178
|
|
|
93
179
|
return self._request(
|
|
@@ -102,7 +188,21 @@ class CustomerFeedback(Client):
|
|
|
102
188
|
self, browseNodeId, *args, **kwargs
|
|
103
189
|
) -> ApiResponse:
|
|
104
190
|
"""
|
|
191
|
+
get_browse_node_return_trends(self, browseNodeId, *args, **kwargs) -> ApiResponse
|
|
192
|
+
|
|
105
193
|
Retrieve the trends of topics that customers mention when they return items in a browse node.
|
|
194
|
+
|
|
195
|
+
Examples:
|
|
196
|
+
literal blocks::
|
|
197
|
+
|
|
198
|
+
CustomerFeedback().get_browse_node_return_trends("value")
|
|
199
|
+
|
|
200
|
+
Args:
|
|
201
|
+
browseNodeId: object | required A browse node ID is a unique identifier of a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
|
|
202
|
+
key marketplaceId: object | required The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
203
|
+
|
|
204
|
+
Returns:
|
|
205
|
+
ApiResponse
|
|
106
206
|
"""
|
|
107
207
|
|
|
108
208
|
return self._request(
|
|
@@ -18,35 +18,33 @@ class DataKiosk(Client):
|
|
|
18
18
|
def get_queries(self, **kwargs) -> ApiResponse:
|
|
19
19
|
"""
|
|
20
20
|
get_queries(self, **kwargs) -> ApiResponse
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
Returns details for the Data Kiosk queries that match the specified filters. See the `createQuery` operation for details about query retention.
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
**Usage Plan:**
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
====================================== ==============
|
|
27
27
|
Rate (requests per second) Burst
|
|
28
28
|
====================================== ==============
|
|
29
29
|
0.0222 10
|
|
30
30
|
====================================== ==============
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
|
|
32
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
33
|
+
|
|
34
|
+
Examples:
|
|
35
|
+
literal blocks::
|
|
36
|
+
|
|
37
|
+
DataKiosk().get_queries()
|
|
38
|
+
|
|
35
39
|
Args:
|
|
36
|
-
|
|
37
|
-
key
|
|
38
|
-
|
|
39
|
-
key
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
key createdUntil:string | The latest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is the time of the `getQueries` request.
|
|
44
|
-
|
|
45
|
-
key paginationToken:string | A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the `pagination.nextToken` field returned in the `GetQueriesResponse` object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. In the absence of this token value, `getQueries` returns the first page of results.
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
key processingStatuses: object | A list of processing statuses used to filter queries.
|
|
41
|
+
key pageSize: object | The maximum number of queries to return in a single call.
|
|
42
|
+
key createdSince: object | The earliest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is 90 days ago.
|
|
43
|
+
key createdUntil: object | The latest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is the time of the `getQueries` request.
|
|
44
|
+
key paginationToken: object | A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the `pagination.nextToken` field returned in the `GetQueriesResponse` object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. In the absence of this token value, `getQueries` returns the first page of results.
|
|
45
|
+
|
|
48
46
|
Returns:
|
|
49
|
-
ApiResponse
|
|
47
|
+
ApiResponse
|
|
50
48
|
"""
|
|
51
49
|
|
|
52
50
|
return self._request(kwargs.pop("path"), params=kwargs, add_marketplace=False)
|
|
@@ -54,31 +52,32 @@ class DataKiosk(Client):
|
|
|
54
52
|
@sp_endpoint("/dataKiosk/2023-11-15/queries", method="POST")
|
|
55
53
|
def create_query(self, query, pagination_token=None, **kwargs) -> ApiResponse:
|
|
56
54
|
"""
|
|
57
|
-
create_query(self, query, pagination_token
|
|
58
|
-
|
|
55
|
+
create_query(self, query, pagination_token, **kwargs) -> ApiResponse
|
|
56
|
+
|
|
59
57
|
Creates a Data Kiosk query request.
|
|
60
|
-
|
|
58
|
+
|
|
61
59
|
**Note:** The retention of a query varies based on the fields requested. Each field within a schema is annotated with a `@resultRetention` directive that defines how long a query containing that field will be retained. When a query contains multiple fields with different retentions, the shortest (minimum) retention is applied. The retention of a query's resulting documents always matches the retention of the query.
|
|
62
|
-
|
|
60
|
+
|
|
63
61
|
**Usage Plan:**
|
|
64
|
-
|
|
62
|
+
|
|
65
63
|
====================================== ==============
|
|
66
64
|
Rate (requests per second) Burst
|
|
67
65
|
====================================== ==============
|
|
68
66
|
0.0167 15
|
|
69
67
|
====================================== ==============
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
|
|
69
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
70
|
+
|
|
71
|
+
Examples:
|
|
72
|
+
literal blocks::
|
|
73
|
+
|
|
74
|
+
DataKiosk().create_query("value", "value")
|
|
75
|
+
|
|
74
76
|
Args:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
pagination_token:string | A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the `pagination.nextToken` field returned in the `GetQueriesResponse` object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. In the absence of this token value, `getQueries` returns the first page of results.
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
body: CreateQuerySpecification | required The body of the request.
|
|
78
|
+
|
|
80
79
|
Returns:
|
|
81
|
-
ApiResponse
|
|
80
|
+
ApiResponse
|
|
82
81
|
"""
|
|
83
82
|
kwargs["query"] = query
|
|
84
83
|
if pagination_token:
|
|
@@ -88,27 +87,30 @@ class DataKiosk(Client):
|
|
|
88
87
|
@sp_endpoint("/dataKiosk/2023-11-15/queries/{}", method="DELETE")
|
|
89
88
|
def cancel_query(self, query_id, **kwargs) -> ApiResponse:
|
|
90
89
|
"""
|
|
91
|
-
cancel_query(self,
|
|
92
|
-
|
|
90
|
+
cancel_query(self, query_id, **kwargs) -> ApiResponse
|
|
91
|
+
|
|
93
92
|
Cancels the query specified by the `queryId` parameter. Only queries with a non-terminal `processingStatus` (`IN_QUEUE`, `IN_PROGRESS`) can be cancelled. Cancelling a query that already has a `processingStatus` of `CANCELLED` will no-op. Cancelled queries are returned in subsequent calls to the `getQuery` and `getQueries` operations.
|
|
94
|
-
|
|
93
|
+
|
|
95
94
|
**Usage Plan:**
|
|
96
|
-
|
|
95
|
+
|
|
97
96
|
====================================== ==============
|
|
98
97
|
Rate (requests per second) Burst
|
|
99
98
|
====================================== ==============
|
|
100
99
|
0.0222 10
|
|
101
100
|
====================================== ==============
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
|
|
102
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
103
|
+
|
|
104
|
+
Examples:
|
|
105
|
+
literal blocks::
|
|
106
|
+
|
|
107
|
+
DataKiosk().cancel_query("value")
|
|
108
|
+
|
|
105
109
|
Args:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
+
queryId: object | required The identifier for the query. This identifier is unique only in combination with a selling partner account ID.
|
|
111
|
+
|
|
110
112
|
Returns:
|
|
111
|
-
ApiResponse
|
|
113
|
+
ApiResponse
|
|
112
114
|
"""
|
|
113
115
|
|
|
114
116
|
return self._request(
|
|
@@ -120,27 +122,30 @@ class DataKiosk(Client):
|
|
|
120
122
|
@sp_endpoint("/dataKiosk/2023-11-15/queries/{}", method="GET")
|
|
121
123
|
def get_query(self, query_id, **kwargs) -> ApiResponse:
|
|
122
124
|
"""
|
|
123
|
-
get_query(self,
|
|
124
|
-
|
|
125
|
+
get_query(self, query_id, **kwargs) -> ApiResponse
|
|
126
|
+
|
|
125
127
|
Returns query details for the query specified by the `queryId` parameter. See the `createQuery` operation for details about query retention.
|
|
126
|
-
|
|
128
|
+
|
|
127
129
|
**Usage Plan:**
|
|
128
|
-
|
|
130
|
+
|
|
129
131
|
====================================== ==============
|
|
130
132
|
Rate (requests per second) Burst
|
|
131
133
|
====================================== ==============
|
|
132
|
-
2
|
|
134
|
+
2.0 15
|
|
133
135
|
====================================== ==============
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
|
|
137
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
138
|
+
|
|
139
|
+
Examples:
|
|
140
|
+
literal blocks::
|
|
141
|
+
|
|
142
|
+
DataKiosk().get_query("value")
|
|
143
|
+
|
|
137
144
|
Args:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
145
|
+
queryId: object | required The query identifier.
|
|
146
|
+
|
|
142
147
|
Returns:
|
|
143
|
-
ApiResponse
|
|
148
|
+
ApiResponse
|
|
144
149
|
"""
|
|
145
150
|
|
|
146
151
|
return self._request(
|
|
@@ -159,30 +164,30 @@ class DataKiosk(Client):
|
|
|
159
164
|
**kwargs
|
|
160
165
|
) -> ApiResponse:
|
|
161
166
|
"""
|
|
162
|
-
get_document(self, document_id, download
|
|
163
|
-
|
|
167
|
+
get_document(self, document_id, download, file, encoding, **kwargs) -> ApiResponse
|
|
168
|
+
|
|
164
169
|
Returns the information required for retrieving a Data Kiosk document's contents. See the `createQuery` operation for details about document retention.
|
|
165
|
-
|
|
170
|
+
|
|
166
171
|
**Usage Plan:**
|
|
167
|
-
|
|
172
|
+
|
|
168
173
|
====================================== ==============
|
|
169
174
|
Rate (requests per second) Burst
|
|
170
175
|
====================================== ==============
|
|
171
176
|
0.0167 15
|
|
172
177
|
====================================== ==============
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
178
|
+
|
|
179
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
180
|
+
|
|
181
|
+
Examples:
|
|
182
|
+
literal blocks::
|
|
183
|
+
|
|
184
|
+
DataKiosk().get_document("value", "value", "value", "value")
|
|
185
|
+
|
|
176
186
|
Args:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
file: | * OPTIONAL The file to write the response to.
|
|
180
|
-
download: | * OPTIONAL If True, the file will be downloaded and returned in the payload.
|
|
181
|
-
encoding: | * OPTIONAL The encoding to use when writing the file. Defaults to utf-8, binary data is written if applicable filemode is passed.
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
documentId: object | required The identifier for the Data Kiosk document.
|
|
188
|
+
|
|
184
189
|
Returns:
|
|
185
|
-
ApiResponse
|
|
190
|
+
ApiResponse
|
|
186
191
|
"""
|
|
187
192
|
|
|
188
193
|
res = self._request(
|
|
File without changes
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
from typing import Any, Literal, TYPE_CHECKING, overload
|
|
5
|
+
from sp_api.util.versioned_client import VersionedClientMeta
|
|
6
|
+
|
|
7
|
+
from sp_api.base import Client
|
|
8
|
+
|
|
9
|
+
from .delivery_by_amazon_2022_07_01 import DeliveryByAmazonV20220701
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeliveryByAmazonVersion(str, enum.Enum):
|
|
13
|
+
V_2022_07_01 = "2022-07-01"
|
|
14
|
+
LATEST = "2022-07-01"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
if TYPE_CHECKING:
|
|
18
|
+
|
|
19
|
+
class _DeliveryByAmazonMeta(VersionedClientMeta):
|
|
20
|
+
@overload
|
|
21
|
+
def __call__(
|
|
22
|
+
cls,
|
|
23
|
+
*args: Any,
|
|
24
|
+
version: Literal[DeliveryByAmazonVersion.V_2022_07_01, DeliveryByAmazonVersion.LATEST, "2022-07-01"],
|
|
25
|
+
**kwargs: Any,
|
|
26
|
+
) -> DeliveryByAmazonV20220701: ...
|
|
27
|
+
|
|
28
|
+
@overload
|
|
29
|
+
def __call__(
|
|
30
|
+
cls,
|
|
31
|
+
*args: Any,
|
|
32
|
+
version: None = None,
|
|
33
|
+
**kwargs: Any,
|
|
34
|
+
) -> DeliveryByAmazonV20220701: ...
|
|
35
|
+
|
|
36
|
+
@overload
|
|
37
|
+
def __call__(
|
|
38
|
+
cls,
|
|
39
|
+
*args: Any,
|
|
40
|
+
version: str | DeliveryByAmazonVersion,
|
|
41
|
+
**kwargs: Any,
|
|
42
|
+
) -> Client: ...
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
else:
|
|
46
|
+
_DeliveryByAmazonMeta = VersionedClientMeta
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class DeliveryByAmazon(Client, metaclass=_DeliveryByAmazonMeta):
|
|
50
|
+
"""DeliveryByAmazon API client.
|
|
51
|
+
|
|
52
|
+
This class dispatches to a versioned DeliveryByAmazon API client.
|
|
53
|
+
|
|
54
|
+
If you do not pass a version, the constructor returns the oldest supported implementation ("2022-07-01").
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
if TYPE_CHECKING:
|
|
58
|
+
@overload
|
|
59
|
+
def __new__(
|
|
60
|
+
cls,
|
|
61
|
+
*args: Any,
|
|
62
|
+
version: Literal[DeliveryByAmazonVersion.V_2022_07_01, DeliveryByAmazonVersion.LATEST, "2022-07-01"],
|
|
63
|
+
**kwargs: Any,
|
|
64
|
+
) -> DeliveryByAmazonV20220701: ...
|
|
65
|
+
|
|
66
|
+
@overload
|
|
67
|
+
def __new__(
|
|
68
|
+
cls,
|
|
69
|
+
*args: Any,
|
|
70
|
+
version: None = None,
|
|
71
|
+
**kwargs: Any,
|
|
72
|
+
) -> DeliveryByAmazonV20220701: ...
|
|
73
|
+
|
|
74
|
+
@overload
|
|
75
|
+
def __new__(
|
|
76
|
+
cls,
|
|
77
|
+
*args: Any,
|
|
78
|
+
version: str | DeliveryByAmazonVersion,
|
|
79
|
+
**kwargs: Any,
|
|
80
|
+
) -> Client: ...
|
|
81
|
+
|
|
82
|
+
_DISPATCH = True
|
|
83
|
+
|
|
84
|
+
_DEFAULT_VERSION = "2022-07-01"
|
|
85
|
+
|
|
86
|
+
_VERSION_MAP = {
|
|
87
|
+
"2022-07-01": DeliveryByAmazonV20220701,
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
_VERSION_ALIASES = {
|
|
91
|
+
"2022-07-01": "2022-07-01",
|
|
92
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DeliveryByAmazonV20220701(Client):
|
|
5
|
+
"""
|
|
6
|
+
DeliveryByAmazon SP-API Client
|
|
7
|
+
:link:
|
|
8
|
+
|
|
9
|
+
The Selling Partner API for Delivery Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s orders.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
@sp_endpoint("/delivery/2022-07-01/invoice", method="POST")
|
|
13
|
+
def submit_invoice(self, **kwargs) -> ApiResponse:
|
|
14
|
+
"""
|
|
15
|
+
submit_invoice(self, **kwargs) -> ApiResponse
|
|
16
|
+
|
|
17
|
+
Submits a shipment invoice for a given order or shipment. You must specify either an `orderId` or `shipmentId` as query parameter. If both parameters are supplied, `orderId` takes precedence over `shipmentId`.
|
|
18
|
+
|
|
19
|
+
**Usage Plan:**
|
|
20
|
+
|
|
21
|
+
====================================== ==============
|
|
22
|
+
Rate (requests per second) Burst
|
|
23
|
+
====================================== ==============
|
|
24
|
+
1.133 25
|
|
25
|
+
====================================== ==============
|
|
26
|
+
|
|
27
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
28
|
+
|
|
29
|
+
Examples:
|
|
30
|
+
literal blocks::
|
|
31
|
+
|
|
32
|
+
DeliveryByAmazonV20220701().submit_invoice()
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
key orderId: object | The identifier for the order.
|
|
36
|
+
key shipmentId: object | The identifier for the shipment.
|
|
37
|
+
body: SubmitInvoiceRequest | required The request body that specifies invoice, program and marketplace values.
|
|
38
|
+
|
|
39
|
+
Returns:
|
|
40
|
+
ApiResponse
|
|
41
|
+
"""
|
|
42
|
+
params = {}
|
|
43
|
+
if "orderId" in kwargs:
|
|
44
|
+
params["orderId"] = kwargs.pop("orderId")
|
|
45
|
+
if "shipmentId" in kwargs:
|
|
46
|
+
params["shipmentId"] = kwargs.pop("shipmentId")
|
|
47
|
+
return self._request(kwargs.pop("path"), params=params, data=kwargs, add_marketplace=False)
|
|
48
|
+
|
|
49
|
+
@sp_endpoint("/delivery/2022-07-01/invoice/status", method="GET")
|
|
50
|
+
def get_invoice_status(self, **kwargs) -> ApiResponse:
|
|
51
|
+
"""
|
|
52
|
+
get_invoice_status(self, **kwargs) -> ApiResponse
|
|
53
|
+
|
|
54
|
+
Returns the invoice status for the order or shipment you specify. You must specify either an `orderId` or `shipmentId` as query parameter. If both parameters are supplied, `orderId` takes precedence over `shipmentId`.
|
|
55
|
+
|
|
56
|
+
**Usage Plan:**
|
|
57
|
+
|
|
58
|
+
====================================== ==============
|
|
59
|
+
Rate (requests per second) Burst
|
|
60
|
+
====================================== ==============
|
|
61
|
+
1.133 25
|
|
62
|
+
====================================== ==============
|
|
63
|
+
|
|
64
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
65
|
+
|
|
66
|
+
Examples:
|
|
67
|
+
literal blocks::
|
|
68
|
+
|
|
69
|
+
DeliveryByAmazonV20220701().get_invoice_status()
|
|
70
|
+
|
|
71
|
+
Args:
|
|
72
|
+
key orderId: object | The order identifier.
|
|
73
|
+
key shipmentId: object | The shipment identifier.
|
|
74
|
+
key marketplaceId: object | required The marketplace identifier.
|
|
75
|
+
key invoiceType: object | required The invoice's type.
|
|
76
|
+
key programType: object | required The Amazon program that seller is currently enrolled.
|
|
77
|
+
|
|
78
|
+
Returns:
|
|
79
|
+
ApiResponse
|
|
80
|
+
"""
|
|
81
|
+
return self._request(kwargs.pop("path"), params=kwargs, add_marketplace=False)
|