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,120 @@
|
|
|
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 .inventory_2021_01_06 import ExternalFulfillmentInventoryV20210106
|
|
10
|
+
from .inventory_2024_09_11 import ExternalFulfillmentInventoryV20240911
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ExternalFulfillmentInventoryVersion(str, enum.Enum):
|
|
14
|
+
V_2021_01_06 = "2021-01-06"
|
|
15
|
+
V_2024_09_11 = "2024-09-11"
|
|
16
|
+
LATEST = "2024-09-11"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
if TYPE_CHECKING:
|
|
20
|
+
|
|
21
|
+
class _ExternalFulfillmentInventoryMeta(VersionedClientMeta):
|
|
22
|
+
@overload
|
|
23
|
+
def __call__(
|
|
24
|
+
cls,
|
|
25
|
+
*args: Any,
|
|
26
|
+
version: Literal[
|
|
27
|
+
ExternalFulfillmentInventoryVersion.V_2024_09_11,
|
|
28
|
+
ExternalFulfillmentInventoryVersion.LATEST,
|
|
29
|
+
"2024-09-11",
|
|
30
|
+
],
|
|
31
|
+
**kwargs: Any,
|
|
32
|
+
) -> ExternalFulfillmentInventoryV20240911: ...
|
|
33
|
+
|
|
34
|
+
@overload
|
|
35
|
+
def __call__(
|
|
36
|
+
cls,
|
|
37
|
+
*args: Any,
|
|
38
|
+
version: Literal[ExternalFulfillmentInventoryVersion.V_2021_01_06, "2021-01-06"],
|
|
39
|
+
**kwargs: Any,
|
|
40
|
+
) -> ExternalFulfillmentInventoryV20210106: ...
|
|
41
|
+
|
|
42
|
+
@overload
|
|
43
|
+
def __call__(
|
|
44
|
+
cls,
|
|
45
|
+
*args: Any,
|
|
46
|
+
version: None = None,
|
|
47
|
+
**kwargs: Any,
|
|
48
|
+
) -> ExternalFulfillmentInventoryV20210106: ...
|
|
49
|
+
|
|
50
|
+
@overload
|
|
51
|
+
def __call__(
|
|
52
|
+
cls,
|
|
53
|
+
*args: Any,
|
|
54
|
+
version: str | ExternalFulfillmentInventoryVersion,
|
|
55
|
+
**kwargs: Any,
|
|
56
|
+
) -> Client: ...
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
else:
|
|
60
|
+
_ExternalFulfillmentInventoryMeta = VersionedClientMeta
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class ExternalFulfillmentInventory(Client, metaclass=_ExternalFulfillmentInventoryMeta):
|
|
64
|
+
"""External Fulfillment Inventory API client.
|
|
65
|
+
|
|
66
|
+
This class dispatches to a versioned External Fulfillment Inventory API client.
|
|
67
|
+
|
|
68
|
+
If you do not pass a version, the constructor returns the oldest supported implementation ("2021-01-06").
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
if TYPE_CHECKING:
|
|
72
|
+
@overload
|
|
73
|
+
def __new__(
|
|
74
|
+
cls,
|
|
75
|
+
*args: Any,
|
|
76
|
+
version: Literal[
|
|
77
|
+
ExternalFulfillmentInventoryVersion.V_2024_09_11,
|
|
78
|
+
ExternalFulfillmentInventoryVersion.LATEST,
|
|
79
|
+
"2024-09-11",
|
|
80
|
+
],
|
|
81
|
+
**kwargs: Any,
|
|
82
|
+
) -> ExternalFulfillmentInventoryV20240911: ...
|
|
83
|
+
|
|
84
|
+
@overload
|
|
85
|
+
def __new__(
|
|
86
|
+
cls,
|
|
87
|
+
*args: Any,
|
|
88
|
+
version: Literal[ExternalFulfillmentInventoryVersion.V_2021_01_06, "2021-01-06"],
|
|
89
|
+
**kwargs: Any,
|
|
90
|
+
) -> ExternalFulfillmentInventoryV20210106: ...
|
|
91
|
+
|
|
92
|
+
@overload
|
|
93
|
+
def __new__(
|
|
94
|
+
cls,
|
|
95
|
+
*args: Any,
|
|
96
|
+
version: None = None,
|
|
97
|
+
**kwargs: Any,
|
|
98
|
+
) -> ExternalFulfillmentInventoryV20210106: ...
|
|
99
|
+
|
|
100
|
+
@overload
|
|
101
|
+
def __new__(
|
|
102
|
+
cls,
|
|
103
|
+
*args: Any,
|
|
104
|
+
version: str | ExternalFulfillmentInventoryVersion,
|
|
105
|
+
**kwargs: Any,
|
|
106
|
+
) -> Client: ...
|
|
107
|
+
|
|
108
|
+
_DISPATCH = True
|
|
109
|
+
|
|
110
|
+
_DEFAULT_VERSION = "2021-01-06"
|
|
111
|
+
|
|
112
|
+
_VERSION_MAP = {
|
|
113
|
+
"2021-01-06": ExternalFulfillmentInventoryV20210106,
|
|
114
|
+
"2024-09-11": ExternalFulfillmentInventoryV20240911,
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
_VERSION_ALIASES = {
|
|
118
|
+
"2021-01-06": "2021-01-06",
|
|
119
|
+
"2024-09-11": "2024-09-11",
|
|
120
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ExternalFulfillmentInventoryV20210106(Client):
|
|
5
|
+
"""
|
|
6
|
+
External Fulfillment Inventory API (version 2021-01-06).
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
@sp_endpoint("/externalFulfillment/inventory/2021-01-06/locations/{}/skus/{}", method="GET")
|
|
10
|
+
def get_inventory(self, locationId, skuId, **kwargs) -> ApiResponse:
|
|
11
|
+
"""
|
|
12
|
+
get_inventory(self, locationId, skuId, **kwargs) -> ApiResponse
|
|
13
|
+
|
|
14
|
+
Get the current inventory for a given SKU at a given location.
|
|
15
|
+
|
|
16
|
+
Examples:
|
|
17
|
+
literal blocks::
|
|
18
|
+
|
|
19
|
+
ExternalFulfillmentInventoryV20210106().get_inventory("value", "value")
|
|
20
|
+
|
|
21
|
+
Args:
|
|
22
|
+
locationId: | required
|
|
23
|
+
skuId: | required
|
|
24
|
+
**kwargs:
|
|
25
|
+
|
|
26
|
+
Returns:
|
|
27
|
+
ApiResponse
|
|
28
|
+
"""
|
|
29
|
+
headers = self.headers.copy()
|
|
30
|
+
return self._request(
|
|
31
|
+
fill_query_params(kwargs.pop("path"), locationId, skuId),
|
|
32
|
+
params=kwargs,
|
|
33
|
+
headers=headers,
|
|
34
|
+
add_marketplace=False,
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
@sp_endpoint("/externalFulfillment/inventory/2021-01-06/locations/{}/skus/{}", method="PUT")
|
|
38
|
+
def update_inventory(self, locationId, skuId, quantity, **kwargs) -> ApiResponse:
|
|
39
|
+
"""
|
|
40
|
+
update_inventory(self, locationId, skuId, quantity, **kwargs) -> ApiResponse
|
|
41
|
+
|
|
42
|
+
Get the current inventory for a given SKU at a given location.
|
|
43
|
+
|
|
44
|
+
Examples:
|
|
45
|
+
literal blocks::
|
|
46
|
+
|
|
47
|
+
ExternalFulfillmentInventoryV20210106().update_inventory("value", "value", "value")
|
|
48
|
+
|
|
49
|
+
Args:
|
|
50
|
+
locationId: | required
|
|
51
|
+
skuId: | required
|
|
52
|
+
quantity: | required
|
|
53
|
+
**kwargs:
|
|
54
|
+
|
|
55
|
+
Returns:
|
|
56
|
+
ApiResponse
|
|
57
|
+
"""
|
|
58
|
+
kwargs["quantity"] = quantity
|
|
59
|
+
|
|
60
|
+
headers = self.headers.copy()
|
|
61
|
+
if "if_match" in kwargs:
|
|
62
|
+
headers["If-Match"] = kwargs.pop("if_match")
|
|
63
|
+
if "if_unmodified_since" in kwargs:
|
|
64
|
+
headers["If-Unmodified-Since"] = kwargs.pop("if_unmodified_since")
|
|
65
|
+
|
|
66
|
+
return self._request(
|
|
67
|
+
fill_query_params(kwargs.pop("path"), locationId, skuId),
|
|
68
|
+
params=kwargs,
|
|
69
|
+
headers=headers,
|
|
70
|
+
add_marketplace=False,
|
|
71
|
+
)
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ExternalFulfillmentInventoryV20240911(Client):
|
|
5
|
+
"""
|
|
6
|
+
External Fulfillment Inventory API (version 2024-09-11).
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
@sp_endpoint("/externalFulfillment/inventory/2024-09-11/locations/{}/skus/{}", method="GET")
|
|
10
|
+
def get_inventory(self, locationId, skuId, **kwargs) -> ApiResponse:
|
|
11
|
+
"""
|
|
12
|
+
get_inventory(self, locationId, skuId, **kwargs) -> ApiResponse
|
|
13
|
+
|
|
14
|
+
Get the current inventory for a given SKU at a given location.
|
|
15
|
+
|
|
16
|
+
Examples:
|
|
17
|
+
literal blocks::
|
|
18
|
+
|
|
19
|
+
ExternalFulfillmentInventoryV20240911().get_inventory("value", "value")
|
|
20
|
+
|
|
21
|
+
Args:
|
|
22
|
+
locationId: | required
|
|
23
|
+
skuId: | required
|
|
24
|
+
**kwargs:
|
|
25
|
+
|
|
26
|
+
Returns:
|
|
27
|
+
ApiResponse
|
|
28
|
+
"""
|
|
29
|
+
headers = self.headers.copy()
|
|
30
|
+
return self._request(
|
|
31
|
+
fill_query_params(kwargs.pop("path"), locationId, skuId),
|
|
32
|
+
params=kwargs,
|
|
33
|
+
headers=headers,
|
|
34
|
+
add_marketplace=False,
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
@sp_endpoint("/externalFulfillment/inventory/2024-09-11/locations/{}/skus/{}", method="PUT")
|
|
38
|
+
def update_inventory(self, locationId, skuId, quantity, **kwargs) -> ApiResponse:
|
|
39
|
+
"""
|
|
40
|
+
update_inventory(self, locationId, skuId, quantity, **kwargs) -> ApiResponse
|
|
41
|
+
|
|
42
|
+
Get the current inventory for a given SKU at a given location.
|
|
43
|
+
|
|
44
|
+
Examples:
|
|
45
|
+
literal blocks::
|
|
46
|
+
|
|
47
|
+
ExternalFulfillmentInventoryV20240911().update_inventory("value", "value", "value")
|
|
48
|
+
|
|
49
|
+
Args:
|
|
50
|
+
locationId: | required
|
|
51
|
+
skuId: | required
|
|
52
|
+
quantity: | required
|
|
53
|
+
**kwargs:
|
|
54
|
+
|
|
55
|
+
Returns:
|
|
56
|
+
ApiResponse
|
|
57
|
+
"""
|
|
58
|
+
kwargs["quantity"] = quantity
|
|
59
|
+
|
|
60
|
+
headers = self.headers.copy()
|
|
61
|
+
if "if_match" in kwargs:
|
|
62
|
+
headers["If-Match"] = kwargs.pop("if_match")
|
|
63
|
+
if "if_unmodified_since" in kwargs:
|
|
64
|
+
headers["If-Unmodified-Since"] = kwargs.pop("if_unmodified_since")
|
|
65
|
+
|
|
66
|
+
return self._request(
|
|
67
|
+
fill_query_params(kwargs.pop("path"), locationId, skuId),
|
|
68
|
+
params=kwargs,
|
|
69
|
+
headers=headers,
|
|
70
|
+
add_marketplace=False,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
@sp_endpoint("/externalFulfillment/inventory/2024-09-11/inventories", method="POST")
|
|
74
|
+
def batch_inventory(self, **kwargs) -> ApiResponse:
|
|
75
|
+
"""
|
|
76
|
+
batch_inventory(self, **kwargs) -> ApiResponse
|
|
77
|
+
|
|
78
|
+
Make up to 10 inventory requests. The response includes the set of responses that correspond to requests. The response for each successful request in the set includes the inventory count for the provided `sku` and `locationId` pair.
|
|
79
|
+
|
|
80
|
+
Examples:
|
|
81
|
+
literal blocks::
|
|
82
|
+
|
|
83
|
+
ExternalFulfillmentInventoryV20240911().batch_inventory()
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
body: BatchInventoryRequest | required A list of inventory requests.
|
|
87
|
+
|
|
88
|
+
Returns:
|
|
89
|
+
ApiResponse
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
return self._request(
|
|
93
|
+
kwargs.pop("path"),
|
|
94
|
+
data=kwargs,
|
|
95
|
+
add_marketplace=False,
|
|
96
|
+
)
|
|
@@ -0,0 +1,120 @@
|
|
|
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 .returns_2021_08_19 import ExternalFulfillmentReturnsV20210819
|
|
10
|
+
from .returns_2024_09_11 import ExternalFulfillmentReturnsV20240911
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ExternalFulfillmentReturnsVersion(str, enum.Enum):
|
|
14
|
+
V_2021_08_19 = "2021-08-19"
|
|
15
|
+
V_2024_09_11 = "2024-09-11"
|
|
16
|
+
LATEST = "2024-09-11"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
if TYPE_CHECKING:
|
|
20
|
+
|
|
21
|
+
class _ExternalFulfillmentReturnsMeta(VersionedClientMeta):
|
|
22
|
+
@overload
|
|
23
|
+
def __call__(
|
|
24
|
+
cls,
|
|
25
|
+
*args: Any,
|
|
26
|
+
version: Literal[
|
|
27
|
+
ExternalFulfillmentReturnsVersion.V_2024_09_11,
|
|
28
|
+
ExternalFulfillmentReturnsVersion.LATEST,
|
|
29
|
+
"2024-09-11",
|
|
30
|
+
],
|
|
31
|
+
**kwargs: Any,
|
|
32
|
+
) -> ExternalFulfillmentReturnsV20240911: ...
|
|
33
|
+
|
|
34
|
+
@overload
|
|
35
|
+
def __call__(
|
|
36
|
+
cls,
|
|
37
|
+
*args: Any,
|
|
38
|
+
version: Literal[ExternalFulfillmentReturnsVersion.V_2021_08_19, "2021-08-19"],
|
|
39
|
+
**kwargs: Any,
|
|
40
|
+
) -> ExternalFulfillmentReturnsV20210819: ...
|
|
41
|
+
|
|
42
|
+
@overload
|
|
43
|
+
def __call__(
|
|
44
|
+
cls,
|
|
45
|
+
*args: Any,
|
|
46
|
+
version: None = None,
|
|
47
|
+
**kwargs: Any,
|
|
48
|
+
) -> ExternalFulfillmentReturnsV20210819: ...
|
|
49
|
+
|
|
50
|
+
@overload
|
|
51
|
+
def __call__(
|
|
52
|
+
cls,
|
|
53
|
+
*args: Any,
|
|
54
|
+
version: str | ExternalFulfillmentReturnsVersion,
|
|
55
|
+
**kwargs: Any,
|
|
56
|
+
) -> Client: ...
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
else:
|
|
60
|
+
_ExternalFulfillmentReturnsMeta = VersionedClientMeta
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class ExternalFulfillmentReturns(Client, metaclass=_ExternalFulfillmentReturnsMeta):
|
|
64
|
+
"""External Fulfillment Returns API client.
|
|
65
|
+
|
|
66
|
+
This class dispatches to a versioned External Fulfillment Returns API client.
|
|
67
|
+
|
|
68
|
+
If you do not pass a version, the constructor returns the oldest supported implementation ("2021-08-19").
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
if TYPE_CHECKING:
|
|
72
|
+
@overload
|
|
73
|
+
def __new__(
|
|
74
|
+
cls,
|
|
75
|
+
*args: Any,
|
|
76
|
+
version: Literal[
|
|
77
|
+
ExternalFulfillmentReturnsVersion.V_2024_09_11,
|
|
78
|
+
ExternalFulfillmentReturnsVersion.LATEST,
|
|
79
|
+
"2024-09-11",
|
|
80
|
+
],
|
|
81
|
+
**kwargs: Any,
|
|
82
|
+
) -> ExternalFulfillmentReturnsV20240911: ...
|
|
83
|
+
|
|
84
|
+
@overload
|
|
85
|
+
def __new__(
|
|
86
|
+
cls,
|
|
87
|
+
*args: Any,
|
|
88
|
+
version: Literal[ExternalFulfillmentReturnsVersion.V_2021_08_19, "2021-08-19"],
|
|
89
|
+
**kwargs: Any,
|
|
90
|
+
) -> ExternalFulfillmentReturnsV20210819: ...
|
|
91
|
+
|
|
92
|
+
@overload
|
|
93
|
+
def __new__(
|
|
94
|
+
cls,
|
|
95
|
+
*args: Any,
|
|
96
|
+
version: None = None,
|
|
97
|
+
**kwargs: Any,
|
|
98
|
+
) -> ExternalFulfillmentReturnsV20210819: ...
|
|
99
|
+
|
|
100
|
+
@overload
|
|
101
|
+
def __new__(
|
|
102
|
+
cls,
|
|
103
|
+
*args: Any,
|
|
104
|
+
version: str | ExternalFulfillmentReturnsVersion,
|
|
105
|
+
**kwargs: Any,
|
|
106
|
+
) -> Client: ...
|
|
107
|
+
|
|
108
|
+
_DISPATCH = True
|
|
109
|
+
|
|
110
|
+
_DEFAULT_VERSION = "2021-08-19"
|
|
111
|
+
|
|
112
|
+
_VERSION_MAP = {
|
|
113
|
+
"2021-08-19": ExternalFulfillmentReturnsV20210819,
|
|
114
|
+
"2024-09-11": ExternalFulfillmentReturnsV20240911,
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
_VERSION_ALIASES = {
|
|
118
|
+
"2021-08-19": "2021-08-19",
|
|
119
|
+
"2024-09-11": "2024-09-11",
|
|
120
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import uuid
|
|
2
|
+
|
|
3
|
+
from sp_api.base import Client, sp_endpoint, ApiResponse, fill_query_params
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ExternalFulfillmentReturnsV20210819(Client):
|
|
7
|
+
"""
|
|
8
|
+
External Fulfillment Returns API (version 2021-08-19).
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
@sp_endpoint("/externalFulfillment/returns/2021-08-19/returns", method="GET")
|
|
12
|
+
def list_returns(self, **kwargs) -> ApiResponse:
|
|
13
|
+
"""
|
|
14
|
+
list_returns(self, **kwargs) -> ApiResponse
|
|
15
|
+
|
|
16
|
+
Get a list of return items dropped for the seller in the specified node, and in the specified status. Returns can be further filtered based on their creation date/time
|
|
17
|
+
|
|
18
|
+
Examples:
|
|
19
|
+
literal blocks::
|
|
20
|
+
|
|
21
|
+
ExternalFulfillmentReturnsV20210819().list_returns()
|
|
22
|
+
|
|
23
|
+
Args:
|
|
24
|
+
**kwargs:
|
|
25
|
+
|
|
26
|
+
Returns:
|
|
27
|
+
ApiResponse
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
return self._request(kwargs.pop("path"), params=kwargs, add_marketplace=False)
|
|
31
|
+
|
|
32
|
+
@sp_endpoint("/externalFulfillment/returns/2021-08-19/returns/{}", method="GET")
|
|
33
|
+
def get_return(self, returnId, **kwargs) -> ApiResponse:
|
|
34
|
+
"""
|
|
35
|
+
get_return(self, returnId, **kwargs) -> ApiResponse
|
|
36
|
+
|
|
37
|
+
Get a single return item with the specified id.
|
|
38
|
+
|
|
39
|
+
Examples:
|
|
40
|
+
literal blocks::
|
|
41
|
+
|
|
42
|
+
ExternalFulfillmentReturnsV20210819().get_return("value")
|
|
43
|
+
|
|
44
|
+
Args:
|
|
45
|
+
returnId: | required
|
|
46
|
+
**kwargs:
|
|
47
|
+
|
|
48
|
+
Returns:
|
|
49
|
+
ApiResponse
|
|
50
|
+
"""
|
|
51
|
+
return self._request(
|
|
52
|
+
fill_query_params(kwargs.pop("path"), returnId),
|
|
53
|
+
params=kwargs,
|
|
54
|
+
add_marketplace=False,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
@sp_endpoint("/externalFulfillment/returns/2021-08-19/returns/{}", method="PATCH")
|
|
58
|
+
def process_return_item(self, returnId, **kwargs) -> ApiResponse:
|
|
59
|
+
"""
|
|
60
|
+
process_return_item(self, returnId, **kwargs) -> ApiResponse
|
|
61
|
+
|
|
62
|
+
Process a return by grading. Determine the item condition and update the quantities for each item condition.
|
|
63
|
+
|
|
64
|
+
Examples:
|
|
65
|
+
literal blocks::
|
|
66
|
+
|
|
67
|
+
ExternalFulfillmentReturnsV20210819().process_return_item("value")
|
|
68
|
+
|
|
69
|
+
Args:
|
|
70
|
+
returnId: | required
|
|
71
|
+
**kwargs:
|
|
72
|
+
|
|
73
|
+
Returns:
|
|
74
|
+
ApiResponse
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
headers = self.headers.copy()
|
|
78
|
+
if "x-amzn-idempotency-token" in kwargs:
|
|
79
|
+
headers["x-amzn-idempotency-token"] = kwargs.pop("x-amzn-idempotency-token")
|
|
80
|
+
else:
|
|
81
|
+
headers["x-amzn-idempotency-token"] = str(uuid.uuid4())
|
|
82
|
+
|
|
83
|
+
return self._request(
|
|
84
|
+
fill_query_params(kwargs.pop("path"), returnId),
|
|
85
|
+
data=kwargs,
|
|
86
|
+
headers=headers,
|
|
87
|
+
add_marketplace=False,
|
|
88
|
+
)
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import uuid
|
|
2
|
+
|
|
3
|
+
from sp_api.base import Client, sp_endpoint, ApiResponse, fill_query_params
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ExternalFulfillmentReturnsV20240911(Client):
|
|
7
|
+
"""
|
|
8
|
+
External Fulfillment Returns API (version 2024-09-11).
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
@sp_endpoint("/externalFulfillment/returns/2024-09-11/returns", method="GET")
|
|
12
|
+
def list_returns(self, **kwargs) -> ApiResponse:
|
|
13
|
+
"""
|
|
14
|
+
list_returns(self, **kwargs) -> ApiResponse
|
|
15
|
+
|
|
16
|
+
Get a list of return items dropped for the seller in the specified node, and in the specified status. Returns can be further filtered based on their creation date/time
|
|
17
|
+
|
|
18
|
+
Examples:
|
|
19
|
+
literal blocks::
|
|
20
|
+
|
|
21
|
+
ExternalFulfillmentReturnsV20240911().list_returns()
|
|
22
|
+
|
|
23
|
+
Args:
|
|
24
|
+
**kwargs:
|
|
25
|
+
|
|
26
|
+
Returns:
|
|
27
|
+
ApiResponse
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
return self._request(kwargs.pop("path"), params=kwargs, add_marketplace=False)
|
|
31
|
+
|
|
32
|
+
@sp_endpoint("/externalFulfillment/returns/2024-09-11/returns/{}", method="GET")
|
|
33
|
+
def get_return(self, returnId, **kwargs) -> ApiResponse:
|
|
34
|
+
"""
|
|
35
|
+
get_return(self, returnId, **kwargs) -> ApiResponse
|
|
36
|
+
|
|
37
|
+
Get a single return item with the specified id.
|
|
38
|
+
|
|
39
|
+
Examples:
|
|
40
|
+
literal blocks::
|
|
41
|
+
|
|
42
|
+
ExternalFulfillmentReturnsV20240911().get_return("value")
|
|
43
|
+
|
|
44
|
+
Args:
|
|
45
|
+
returnId: | required
|
|
46
|
+
**kwargs:
|
|
47
|
+
|
|
48
|
+
Returns:
|
|
49
|
+
ApiResponse
|
|
50
|
+
"""
|
|
51
|
+
return self._request(
|
|
52
|
+
fill_query_params(kwargs.pop("path"), returnId),
|
|
53
|
+
params=kwargs,
|
|
54
|
+
add_marketplace=False,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
@sp_endpoint("/externalFulfillment/returns/2024-09-11/returns/{}", method="PATCH")
|
|
58
|
+
def process_return_item(self, returnId, **kwargs) -> ApiResponse:
|
|
59
|
+
"""
|
|
60
|
+
process_return_item(self, returnId, **kwargs) -> ApiResponse
|
|
61
|
+
|
|
62
|
+
Process a return by grading. Determine the item condition and update the quantities for each item condition.
|
|
63
|
+
|
|
64
|
+
Examples:
|
|
65
|
+
literal blocks::
|
|
66
|
+
|
|
67
|
+
ExternalFulfillmentReturnsV20240911().process_return_item("value")
|
|
68
|
+
|
|
69
|
+
Args:
|
|
70
|
+
returnId: | required
|
|
71
|
+
**kwargs:
|
|
72
|
+
|
|
73
|
+
Returns:
|
|
74
|
+
ApiResponse
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
headers = self.headers.copy()
|
|
78
|
+
if "x-amzn-idempotency-token" in kwargs:
|
|
79
|
+
headers["x-amzn-idempotency-token"] = kwargs.pop("x-amzn-idempotency-token")
|
|
80
|
+
else:
|
|
81
|
+
headers["x-amzn-idempotency-token"] = str(uuid.uuid4())
|
|
82
|
+
|
|
83
|
+
return self._request(
|
|
84
|
+
fill_query_params(kwargs.pop("path"), returnId),
|
|
85
|
+
data=kwargs,
|
|
86
|
+
headers=headers,
|
|
87
|
+
add_marketplace=False,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
@sp_endpoint("/externalFulfillment/2024-09-11/returns", method="GET")
|
|
91
|
+
def list_returns_get(self, **kwargs) -> ApiResponse:
|
|
92
|
+
"""
|
|
93
|
+
list_returns_get(self, **kwargs) -> ApiResponse
|
|
94
|
+
|
|
95
|
+
Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
|
|
96
|
+
|
|
97
|
+
Examples:
|
|
98
|
+
literal blocks::
|
|
99
|
+
|
|
100
|
+
ExternalFulfillmentReturnsV20240911().list_returns_get()
|
|
101
|
+
|
|
102
|
+
Args:
|
|
103
|
+
key returnLocationId: object | The SmartConnect location ID of the location from which you want to retrieve return items.
|
|
104
|
+
key rmaId: object | The RMA ID of the return items you want to list.
|
|
105
|
+
key status: object | The status of return items you want to list. You can retrieve all new return items with the `CREATED` status.
|
|
106
|
+
key reverseTrackingId: object | The reverse tracking ID of the return items you want to list.
|
|
107
|
+
key createdSince: object | Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
108
|
+
key createdUntil: object | Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
109
|
+
key lastUpdatedSince: object | Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply `returnLocationId` and `status`.
|
|
110
|
+
key lastUpdatedUntil: object | Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply `returnLocationId` and `status`.
|
|
111
|
+
key lastUpdatedAfter: object | DEPRECATED. Use the `createdSince` parameter.
|
|
112
|
+
key lastUpdatedBefore: object | DEPRECATED. Use the `createdUntil` parameter.
|
|
113
|
+
key maxResults: object | The number of return items you want to include in the response.
|
|
114
|
+
**Default:** 10
|
|
115
|
+
**Maximum:** 100
|
|
116
|
+
key nextToken: object | A token that you use to retrieve the next page of results. The response includes `nextToken` when there are multiple pages of results. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
117
|
+
|
|
118
|
+
Returns:
|
|
119
|
+
ApiResponse
|
|
120
|
+
"""
|
|
121
|
+
return self._request(kwargs.pop("path"), params=kwargs, add_marketplace=False)
|
|
122
|
+
|
|
123
|
+
@sp_endpoint("/externalFulfillment/2024-09-11/returns/{}", method="GET")
|
|
124
|
+
def get_return_get(self, returnId, **kwargs) -> ApiResponse:
|
|
125
|
+
"""
|
|
126
|
+
get_return_get(self, returnId, **kwargs) -> ApiResponse
|
|
127
|
+
|
|
128
|
+
Retrieve the return item with the specified ID.
|
|
129
|
+
|
|
130
|
+
Examples:
|
|
131
|
+
literal blocks::
|
|
132
|
+
|
|
133
|
+
ExternalFulfillmentReturnsV20240911().get_return_get("value")
|
|
134
|
+
|
|
135
|
+
Args:
|
|
136
|
+
returnId: object | required The ID of the return item you want.
|
|
137
|
+
|
|
138
|
+
Returns:
|
|
139
|
+
ApiResponse
|
|
140
|
+
"""
|
|
141
|
+
return self._request(fill_query_params(kwargs.pop("path"), returnId), params=kwargs, add_marketplace=False)
|