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
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
from sp_api.base import (
|
|
2
|
+
Client,
|
|
3
|
+
sp_endpoint,
|
|
4
|
+
fill_query_params,
|
|
5
|
+
ApiResponse,
|
|
6
|
+
IncludedData,
|
|
7
|
+
)
|
|
8
|
+
from sp_api.util import normalize_included_data
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ListingsItemsV20210801(Client):
|
|
12
|
+
"""
|
|
13
|
+
ListingsItems SP-API Client
|
|
14
|
+
:link:
|
|
15
|
+
|
|
16
|
+
The Selling Partner API for Listings Items (Listings Items API) provides programmatic access to selling partner listings on Amazon. Use this API in collaboration with the Selling Partner API for Product Type Definitions, which you use to retrieve the information about Amazon product types needed to use the Listings Items API.
|
|
17
|
+
|
|
18
|
+
For more information, see the [Listings Items API Use Case Guide](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/use-case-guides/listings-items-api-use-case-guide/listings-items-api-use-case-guide_2021-08-01.md).
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
@sp_endpoint("/listings/2021-08-01/items/{}/{}", method="DELETE")
|
|
22
|
+
def delete_listings_item(self, sellerId, sku, **kwargs) -> ApiResponse:
|
|
23
|
+
"""
|
|
24
|
+
delete_listings_item(self, sellerId, sku, **kwargs) -> ApiResponse
|
|
25
|
+
|
|
26
|
+
Delete a listings item for a selling partner.
|
|
27
|
+
|
|
28
|
+
**Usage Plan:**
|
|
29
|
+
|
|
30
|
+
====================================== ==============
|
|
31
|
+
Rate (requests per second) Burst
|
|
32
|
+
====================================== ==============
|
|
33
|
+
5 5
|
|
34
|
+
====================================== ==============
|
|
35
|
+
|
|
36
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
37
|
+
|
|
38
|
+
Examples:
|
|
39
|
+
literal blocks::
|
|
40
|
+
|
|
41
|
+
ListingsItemsV20210801().delete_listings_item("value", "value")
|
|
42
|
+
|
|
43
|
+
Args:
|
|
44
|
+
sellerId: object | required A selling partner identifier, such as a merchant account or vendor code.
|
|
45
|
+
sku: object | required A selling partner provided identifier for an Amazon listing.
|
|
46
|
+
key marketplaceIds: object | required A comma-delimited list of Amazon marketplace identifiers for the request.
|
|
47
|
+
key issueLocale: object | A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: `en_US`, `fr_CA`, `fr_FR`. Localized messages default to `en_US` when a localization is not available in the specified locale.
|
|
48
|
+
|
|
49
|
+
Returns:
|
|
50
|
+
ApiResponse
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
return self._request(
|
|
54
|
+
fill_query_params(kwargs.pop("path"), sellerId, sku), data=kwargs
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
@sp_endpoint("/listings/2021-08-01/items/{}/{}", method="GET")
|
|
58
|
+
def get_listings_item(self, sellerId, sku, **kwargs) -> ApiResponse:
|
|
59
|
+
"""
|
|
60
|
+
get_listings_item(self, sellerId, sku, **kwargs) -> ApiResponse
|
|
61
|
+
|
|
62
|
+
Returns details about a listings item for a selling partner.
|
|
63
|
+
|
|
64
|
+
**Usage Plan:**
|
|
65
|
+
|
|
66
|
+
====================================== ==============
|
|
67
|
+
Rate (requests per second) Burst
|
|
68
|
+
====================================== ==============
|
|
69
|
+
5 10
|
|
70
|
+
====================================== ==============
|
|
71
|
+
|
|
72
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
73
|
+
|
|
74
|
+
Examples:
|
|
75
|
+
literal blocks::
|
|
76
|
+
|
|
77
|
+
ListingsItemsV20210801().get_listings_item("value", "value")
|
|
78
|
+
|
|
79
|
+
Args:
|
|
80
|
+
sellerId: object | required A selling partner identifier, such as a merchant account or vendor code.
|
|
81
|
+
sku: object | required A selling partner provided identifier for an Amazon listing.
|
|
82
|
+
key marketplaceIds: object | required A comma-delimited list of Amazon marketplace identifiers for the request.
|
|
83
|
+
key issueLocale: object | A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: `en_US`, `fr_CA`, `fr_FR`. Localized messages default to `en_US` when a localization is not available in the specified locale.
|
|
84
|
+
key includedData: object | A comma-delimited list of data sets to include in the response. Default: `summaries`.
|
|
85
|
+
|
|
86
|
+
Returns:
|
|
87
|
+
ApiResponse
|
|
88
|
+
"""
|
|
89
|
+
normalize_included_data(kwargs, enum_cls=IncludedData)
|
|
90
|
+
|
|
91
|
+
return self._request(
|
|
92
|
+
fill_query_params(kwargs.pop("path"), sellerId, sku), params=kwargs
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
@sp_endpoint("/listings/2021-08-01/items/{}", method="GET")
|
|
96
|
+
def search_listings_items(self, sellerId, **kwargs) -> ApiResponse:
|
|
97
|
+
"""
|
|
98
|
+
search_listings_items(self, sellerId, **kwargs) -> ApiResponse
|
|
99
|
+
|
|
100
|
+
Search for and return a list of selling partner listings items and their respective details.
|
|
101
|
+
|
|
102
|
+
**Usage Plan:**
|
|
103
|
+
|
|
104
|
+
====================================== ==============
|
|
105
|
+
Rate (requests per second) Burst
|
|
106
|
+
====================================== ==============
|
|
107
|
+
5 5
|
|
108
|
+
====================================== ==============
|
|
109
|
+
|
|
110
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
111
|
+
|
|
112
|
+
Examples:
|
|
113
|
+
literal blocks::
|
|
114
|
+
|
|
115
|
+
ListingsItemsV20210801().search_listings_items("value")
|
|
116
|
+
|
|
117
|
+
Args:
|
|
118
|
+
sellerId: object | required A selling partner identifier, such as a merchant account or vendor code.
|
|
119
|
+
key marketplaceIds: object | required A comma-delimited list of Amazon marketplace identifiers for the request.
|
|
120
|
+
key issueLocale: object | A locale that is used to localize issues. When not provided, the default language code of the first marketplace is used. Examples: "en_US", "fr_CA", "fr_FR". When a localization is not available in the specified locale, localized messages default to "en_US".
|
|
121
|
+
key includedData: object | A comma-delimited list of datasets that you want to include in the response. Default: `summaries`.
|
|
122
|
+
key identifiers: object | A comma-delimited list of product identifiers that you can use to search for listings items.
|
|
123
|
+
**Note**:
|
|
124
|
+
1. This is required when you specify `identifiersType`.
|
|
125
|
+
2. You cannot use 'identifiers' if you specify `variationParentSku` or `packageHierarchySku`.
|
|
126
|
+
key identifiersType: object | A type of product identifiers that you can use to search for listings items.
|
|
127
|
+
**Note**:
|
|
128
|
+
This is required when `identifiers` is provided.
|
|
129
|
+
key variationParentSku: object | Filters results to include listing items that are variation children of the specified SKU.
|
|
130
|
+
**Note**: You cannot use `variationParentSku` if you include `identifiers` or `packageHierarchySku` in your request.
|
|
131
|
+
key packageHierarchySku: object | Filter results to include listing items that contain or are contained by the specified SKU.
|
|
132
|
+
**Note**: You cannot use `packageHierarchySku` if you include `identifiers` or `variationParentSku` in your request.
|
|
133
|
+
key createdAfter: object | A date-time that is used to filter listing items. The response includes listings items that were created at or after this time. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
134
|
+
key createdBefore: object | A date-time that is used to filter listing items. The response includes listings items that were created at or before this time. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
135
|
+
key lastUpdatedAfter: object | A date-time that is used to filter listing items. The response includes listings items that were last updated at or after this time. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
136
|
+
key lastUpdatedBefore: object | A date-time that is used to filter listing items. The response includes listings items that were last updated at or before this time. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
137
|
+
key withIssueSeverity: object | Filter results to include only listing items that have issues that match one or more of the specified severity levels.
|
|
138
|
+
key withStatus: object | Filter results to include only listing items that have the specified status.
|
|
139
|
+
key withoutStatus: object | Filter results to include only listing items that don't contain the specified statuses.
|
|
140
|
+
key sortBy: object | An attribute by which to sort the returned listing items.
|
|
141
|
+
key sortOrder: object | The order in which to sort the result items.
|
|
142
|
+
key pageSize: object | The number of results that you want to include on each page.
|
|
143
|
+
key pageToken: object | A token that you can use to fetch a specific page when there are multiple pages of results.
|
|
144
|
+
|
|
145
|
+
Returns:
|
|
146
|
+
ApiResponse
|
|
147
|
+
"""
|
|
148
|
+
normalize_included_data(kwargs, enum_cls=IncludedData)
|
|
149
|
+
|
|
150
|
+
return self._request(
|
|
151
|
+
fill_query_params(kwargs.pop("path"), sellerId), params=kwargs
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
@sp_endpoint("/listings/2021-08-01/items/{}/{}", method="PATCH")
|
|
155
|
+
def patch_listings_item(self, sellerId, sku, **kwargs) -> ApiResponse:
|
|
156
|
+
"""
|
|
157
|
+
patch_listings_item(self, sellerId, sku, **kwargs) -> ApiResponse
|
|
158
|
+
|
|
159
|
+
Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported.
|
|
160
|
+
|
|
161
|
+
**Usage Plan:**
|
|
162
|
+
|
|
163
|
+
====================================== ==============
|
|
164
|
+
Rate (requests per second) Burst
|
|
165
|
+
====================================== ==============
|
|
166
|
+
5 5
|
|
167
|
+
====================================== ==============
|
|
168
|
+
|
|
169
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
170
|
+
|
|
171
|
+
Examples:
|
|
172
|
+
literal blocks::
|
|
173
|
+
|
|
174
|
+
ListingsItemsV20210801().patch_listings_item("value", "value")
|
|
175
|
+
|
|
176
|
+
Args:
|
|
177
|
+
sellerId: object | required A selling partner identifier, such as a merchant account or vendor code.
|
|
178
|
+
sku: object | required A selling partner provided identifier for an Amazon listing.
|
|
179
|
+
key marketplaceIds: object | required A comma-delimited list of Amazon marketplace identifiers for the request.
|
|
180
|
+
key includedData: object | A comma-delimited list of data sets to include in the response. Default: `issues`.
|
|
181
|
+
key mode: object | The mode of operation for the request.
|
|
182
|
+
key issueLocale: object | A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: `en_US`, `fr_CA`, `fr_FR`. Localized messages default to `en_US` when a localization is not available in the specified locale.
|
|
183
|
+
body: ListingsItemPatchRequest | required The request body schema for the `patchListingsItem` operation.
|
|
184
|
+
|
|
185
|
+
Returns:
|
|
186
|
+
ApiResponse
|
|
187
|
+
"""
|
|
188
|
+
return self._request(
|
|
189
|
+
fill_query_params(kwargs.pop("path"), sellerId, sku),
|
|
190
|
+
data=kwargs.pop("body"),
|
|
191
|
+
params=kwargs,
|
|
192
|
+
)
|
|
193
|
+
|
|
194
|
+
@sp_endpoint("/listings/2021-08-01/items/{}/{}", method="PUT")
|
|
195
|
+
def put_listings_item(self, sellerId, sku, **kwargs) -> ApiResponse:
|
|
196
|
+
"""
|
|
197
|
+
put_listings_item(self, sellerId, sku, **kwargs) -> ApiResponse
|
|
198
|
+
|
|
199
|
+
Creates a new or fully-updates an existing listings item for a selling partner.
|
|
200
|
+
|
|
201
|
+
**Usage Plan:**
|
|
202
|
+
|
|
203
|
+
====================================== ==============
|
|
204
|
+
Rate (requests per second) Burst
|
|
205
|
+
====================================== ==============
|
|
206
|
+
5 10
|
|
207
|
+
====================================== ==============
|
|
208
|
+
|
|
209
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
210
|
+
|
|
211
|
+
Examples:
|
|
212
|
+
literal blocks::
|
|
213
|
+
|
|
214
|
+
ListingsItemsV20210801().put_listings_item("value", "value")
|
|
215
|
+
|
|
216
|
+
Args:
|
|
217
|
+
sellerId: object | required A selling partner identifier, such as a merchant account or vendor code.
|
|
218
|
+
sku: object | required A selling partner provided identifier for an Amazon listing.
|
|
219
|
+
key marketplaceIds: object | required A comma-delimited list of Amazon marketplace identifiers for the request.
|
|
220
|
+
key includedData: object | A comma-delimited list of data sets to include in the response. Default: `issues`.
|
|
221
|
+
key mode: object | The mode of operation for the request.
|
|
222
|
+
key issueLocale: object | A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: `en_US`, `fr_CA`, `fr_FR`. Localized messages default to `en_US` when a localization is not available in the specified locale.
|
|
223
|
+
body: ListingsItemPutRequest | required The request body schema for the `putListingsItem` operation.
|
|
224
|
+
|
|
225
|
+
Returns:
|
|
226
|
+
ApiResponse
|
|
227
|
+
"""
|
|
228
|
+
|
|
229
|
+
return self._request(
|
|
230
|
+
fill_query_params(kwargs.pop("path"), sellerId, sku),
|
|
231
|
+
data=kwargs.pop("body"),
|
|
232
|
+
params=kwargs,
|
|
233
|
+
)
|
|
@@ -16,18 +16,31 @@ class ListingsRestrictions(Client):
|
|
|
16
16
|
def get_listings_restrictions(self, **kwargs) -> ApiResponse:
|
|
17
17
|
"""
|
|
18
18
|
get_listings_restrictions(self, **kwargs) -> ApiResponse
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
Returns listing restrictions for an item in the Amazon Catalog.
|
|
21
|
-
|
|
21
|
+
|
|
22
|
+
**Usage Plan:**
|
|
23
|
+
|
|
24
|
+
====================================== ==============
|
|
25
|
+
Rate (requests per second) Burst
|
|
26
|
+
====================================== ==============
|
|
27
|
+
5 10
|
|
28
|
+
====================================== ==============
|
|
29
|
+
|
|
30
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
31
|
+
|
|
32
|
+
Examples:
|
|
33
|
+
literal blocks::
|
|
34
|
+
|
|
35
|
+
ListingsRestrictions().get_listings_restrictions()
|
|
36
|
+
|
|
22
37
|
Args:
|
|
23
|
-
|
|
24
|
-
key
|
|
25
|
-
key
|
|
26
|
-
key
|
|
27
|
-
key
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
key asin: object | required The Amazon Standard Identification Number (ASIN) of the item.
|
|
39
|
+
key conditionType: object | The condition used to filter restrictions.
|
|
40
|
+
key sellerId: object | required A selling partner identifier, such as a merchant account.
|
|
41
|
+
key marketplaceIds: object | required A comma-delimited list of Amazon marketplace identifiers for the request.
|
|
42
|
+
key reasonLocale: object | A locale for reason text localization. When not provided, the default language code of the first marketplace is used. Examples: "en_US", "fr_CA", "fr_FR". Localized messages default to "en_US" when a localization is not available in the specified locale.
|
|
43
|
+
|
|
31
44
|
Returns:
|
|
32
45
|
ApiResponse
|
|
33
46
|
"""
|