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,456 @@
|
|
|
1
|
+
import urllib.parse
|
|
2
|
+
|
|
3
|
+
from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AmazonWarehousingAndDistributionV20240509(Client):
|
|
7
|
+
"""
|
|
8
|
+
AmazonWarehousingAndDistribu SP-API Client
|
|
9
|
+
:link:
|
|
10
|
+
|
|
11
|
+
The Selling Partner API for Amazon Warehousing and Distribution (AWD).
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
@sp_endpoint("/awd/2024-05-09/inboundShipments/{}", method="GET")
|
|
15
|
+
def get_inbound_shipment(self, shipmentId, **kwargs) -> ApiResponse:
|
|
16
|
+
"""
|
|
17
|
+
get_inbound_shipment(self, shipmentId, **kwargs) -> ApiResponse
|
|
18
|
+
|
|
19
|
+
Retrieves an AWD inbound shipment.
|
|
20
|
+
|
|
21
|
+
**Usage Plan:**
|
|
22
|
+
|
|
23
|
+
====================================== ==============
|
|
24
|
+
Rate (requests per second) Burst
|
|
25
|
+
====================================== ==============
|
|
26
|
+
2 2
|
|
27
|
+
====================================== ==============
|
|
28
|
+
|
|
29
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
30
|
+
|
|
31
|
+
Examples:
|
|
32
|
+
literal blocks::
|
|
33
|
+
|
|
34
|
+
AmazonWarehousingAndDistributionV20240509().get_inbound_shipment("value")
|
|
35
|
+
|
|
36
|
+
Args:
|
|
37
|
+
shipmentId: object | required ID for the shipment. A shipment contains the cases being inbounded.
|
|
38
|
+
key skuQuantities: object | If equal to `SHOW`, the response includes the shipment SKU quantity details.
|
|
39
|
+
Defaults to `HIDE`, in which case the response does not contain SKU quantities
|
|
40
|
+
|
|
41
|
+
Returns:
|
|
42
|
+
ApiResponse
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
return self._request(
|
|
46
|
+
fill_query_params(kwargs.pop("path"), shipmentId), params=kwargs
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
@sp_endpoint("/awd/2024-05-09/inboundShipments", method="GET")
|
|
50
|
+
def list_inbound_shipments(self, **kwargs) -> ApiResponse:
|
|
51
|
+
"""
|
|
52
|
+
list_inbound_shipments(self, **kwargs) -> ApiResponse
|
|
53
|
+
|
|
54
|
+
Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters.
|
|
55
|
+
|
|
56
|
+
**Usage Plan:**
|
|
57
|
+
|
|
58
|
+
====================================== ==============
|
|
59
|
+
Rate (requests per second) Burst
|
|
60
|
+
====================================== ==============
|
|
61
|
+
1 1
|
|
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
|
+
AmazonWarehousingAndDistributionV20240509().list_inbound_shipments()
|
|
70
|
+
|
|
71
|
+
Args:
|
|
72
|
+
key sortBy: object | Field to sort results by. By default, the response will be sorted by UPDATED_AT.
|
|
73
|
+
key sortOrder: object | Sort the response in ASCENDING or DESCENDING order. By default, the response will be sorted in DESCENDING order.
|
|
74
|
+
key shipmentStatus: object | Filter by inbound shipment status.
|
|
75
|
+
key updatedAfter: object | List the inbound shipments that were updated after a certain time (inclusive). The date must be in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> format.
|
|
76
|
+
key updatedBefore: object | List the inbound shipments that were updated before a certain time (inclusive). The date must be in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> format.
|
|
77
|
+
key maxResults: object | Maximum number of results to return.
|
|
78
|
+
key nextToken: object | A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. 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.
|
|
79
|
+
|
|
80
|
+
Returns:
|
|
81
|
+
ApiResponse
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
85
|
+
|
|
86
|
+
@sp_endpoint("/awd/2024-05-09/inventory", method="GET")
|
|
87
|
+
def list_inventory(self, **kwargs) -> ApiResponse:
|
|
88
|
+
"""
|
|
89
|
+
list_inventory(self, **kwargs) -> ApiResponse
|
|
90
|
+
|
|
91
|
+
Lists AWD inventory associated with a merchant with the ability to apply optional filters.
|
|
92
|
+
|
|
93
|
+
**Usage Plan:**
|
|
94
|
+
|
|
95
|
+
====================================== ==============
|
|
96
|
+
Rate (requests per second) Burst
|
|
97
|
+
====================================== ==============
|
|
98
|
+
2 2
|
|
99
|
+
====================================== ==============
|
|
100
|
+
|
|
101
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
102
|
+
|
|
103
|
+
Examples:
|
|
104
|
+
literal blocks::
|
|
105
|
+
|
|
106
|
+
AmazonWarehousingAndDistributionV20240509().list_inventory()
|
|
107
|
+
|
|
108
|
+
Args:
|
|
109
|
+
key sku: object | Filter by seller or merchant SKU for the item.
|
|
110
|
+
key sortOrder: object | Sort the response in `ASCENDING` or `DESCENDING` order.
|
|
111
|
+
key details: object | Set to `SHOW` to return summaries with additional inventory details. Defaults to `HIDE,` which returns only inventory summary totals.
|
|
112
|
+
key nextToken: object | A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. 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.
|
|
113
|
+
key maxResults: object | Maximum number of results to return.
|
|
114
|
+
|
|
115
|
+
Returns:
|
|
116
|
+
ApiResponse
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
120
|
+
|
|
121
|
+
@sp_endpoint("/awd/2024-05-09/inboundOrders", method="POST")
|
|
122
|
+
def create_inbound(self, **kwargs) -> ApiResponse:
|
|
123
|
+
"""
|
|
124
|
+
create_inbound(self, **kwargs) -> ApiResponse
|
|
125
|
+
|
|
126
|
+
Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order.
|
|
127
|
+
|
|
128
|
+
**Usage Plan:**
|
|
129
|
+
|
|
130
|
+
====================================== ==============
|
|
131
|
+
Rate (requests per second) Burst
|
|
132
|
+
====================================== ==============
|
|
133
|
+
1 1
|
|
134
|
+
====================================== ==============
|
|
135
|
+
|
|
136
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
137
|
+
|
|
138
|
+
Examples:
|
|
139
|
+
literal blocks::
|
|
140
|
+
|
|
141
|
+
AmazonWarehousingAndDistributionV20240509().create_inbound()
|
|
142
|
+
|
|
143
|
+
Args:
|
|
144
|
+
body: InboundOrderCreationData | required Payload for creating an inbound order.
|
|
145
|
+
|
|
146
|
+
Returns:
|
|
147
|
+
ApiResponse
|
|
148
|
+
"""
|
|
149
|
+
return self._request(kwargs.pop("path"), data=kwargs)
|
|
150
|
+
|
|
151
|
+
@sp_endpoint("/awd/2024-05-09/inboundOrders/{}", method="GET")
|
|
152
|
+
def get_inbound(self, orderId, **kwargs) -> ApiResponse:
|
|
153
|
+
"""
|
|
154
|
+
get_inbound(self, orderId, **kwargs) -> ApiResponse
|
|
155
|
+
|
|
156
|
+
Retrieves an AWD inbound order.
|
|
157
|
+
|
|
158
|
+
**Usage Plan:**
|
|
159
|
+
|
|
160
|
+
====================================== ==============
|
|
161
|
+
Rate (requests per second) Burst
|
|
162
|
+
====================================== ==============
|
|
163
|
+
2 2
|
|
164
|
+
====================================== ==============
|
|
165
|
+
|
|
166
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
167
|
+
|
|
168
|
+
Examples:
|
|
169
|
+
literal blocks::
|
|
170
|
+
|
|
171
|
+
AmazonWarehousingAndDistributionV20240509().get_inbound("value")
|
|
172
|
+
|
|
173
|
+
Args:
|
|
174
|
+
orderId: object | required The ID of the inbound order that you want to retrieve.
|
|
175
|
+
|
|
176
|
+
Returns:
|
|
177
|
+
ApiResponse
|
|
178
|
+
"""
|
|
179
|
+
return self._request(fill_query_params(kwargs.pop("path"), orderId), params=kwargs)
|
|
180
|
+
|
|
181
|
+
@sp_endpoint("/awd/2024-05-09/inboundOrders/{}", method="PUT")
|
|
182
|
+
def update_inbound(self, orderId, **kwargs) -> ApiResponse:
|
|
183
|
+
"""
|
|
184
|
+
update_inbound(self, orderId, **kwargs) -> ApiResponse
|
|
185
|
+
|
|
186
|
+
Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes.
|
|
187
|
+
|
|
188
|
+
**Usage Plan:**
|
|
189
|
+
|
|
190
|
+
====================================== ==============
|
|
191
|
+
Rate (requests per second) Burst
|
|
192
|
+
====================================== ==============
|
|
193
|
+
1 1
|
|
194
|
+
====================================== ==============
|
|
195
|
+
|
|
196
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
197
|
+
|
|
198
|
+
Examples:
|
|
199
|
+
literal blocks::
|
|
200
|
+
|
|
201
|
+
AmazonWarehousingAndDistributionV20240509().update_inbound("value")
|
|
202
|
+
|
|
203
|
+
Args:
|
|
204
|
+
orderId: object | required The ID of the inbound order that you want to update.
|
|
205
|
+
body: InboundOrder | required Represents an AWD inbound order.
|
|
206
|
+
|
|
207
|
+
Returns:
|
|
208
|
+
ApiResponse
|
|
209
|
+
"""
|
|
210
|
+
return self._request(fill_query_params(kwargs.pop("path"), orderId), data=kwargs)
|
|
211
|
+
|
|
212
|
+
@sp_endpoint("/awd/2024-05-09/inboundOrders/{}/cancellation", method="POST")
|
|
213
|
+
def cancel_inbound(self, orderId, **kwargs) -> ApiResponse:
|
|
214
|
+
"""
|
|
215
|
+
cancel_inbound(self, orderId, **kwargs) -> ApiResponse
|
|
216
|
+
|
|
217
|
+
Cancels an AWD Inbound order and its associated shipment.
|
|
218
|
+
|
|
219
|
+
**Usage Plan:**
|
|
220
|
+
|
|
221
|
+
====================================== ==============
|
|
222
|
+
Rate (requests per second) Burst
|
|
223
|
+
====================================== ==============
|
|
224
|
+
1 1
|
|
225
|
+
====================================== ==============
|
|
226
|
+
|
|
227
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
228
|
+
|
|
229
|
+
Examples:
|
|
230
|
+
literal blocks::
|
|
231
|
+
|
|
232
|
+
AmazonWarehousingAndDistributionV20240509().cancel_inbound("value")
|
|
233
|
+
|
|
234
|
+
Args:
|
|
235
|
+
orderId: object | required The ID of the inbound order you want to cancel.
|
|
236
|
+
|
|
237
|
+
Returns:
|
|
238
|
+
ApiResponse
|
|
239
|
+
"""
|
|
240
|
+
return self._request(fill_query_params(kwargs.pop("path"), orderId), data=kwargs)
|
|
241
|
+
|
|
242
|
+
@sp_endpoint("/awd/2024-05-09/inboundOrders/{}/confirmation", method="POST")
|
|
243
|
+
def confirm_inbound(self, orderId, **kwargs) -> ApiResponse:
|
|
244
|
+
"""
|
|
245
|
+
confirm_inbound(self, orderId, **kwargs) -> ApiResponse
|
|
246
|
+
|
|
247
|
+
Confirms an AWD inbound order in `DRAFT` status.
|
|
248
|
+
|
|
249
|
+
**Usage Plan:**
|
|
250
|
+
|
|
251
|
+
====================================== ==============
|
|
252
|
+
Rate (requests per second) Burst
|
|
253
|
+
====================================== ==============
|
|
254
|
+
1 1
|
|
255
|
+
====================================== ==============
|
|
256
|
+
|
|
257
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
258
|
+
|
|
259
|
+
Examples:
|
|
260
|
+
literal blocks::
|
|
261
|
+
|
|
262
|
+
AmazonWarehousingAndDistributionV20240509().confirm_inbound("value")
|
|
263
|
+
|
|
264
|
+
Args:
|
|
265
|
+
orderId: object | required The ID of the inbound order that you want to confirm.
|
|
266
|
+
|
|
267
|
+
Returns:
|
|
268
|
+
ApiResponse
|
|
269
|
+
"""
|
|
270
|
+
return self._request(fill_query_params(kwargs.pop("path"), orderId), data=kwargs)
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
@sp_endpoint("/awd/2024-05-09/inboundShipments/{}/labels", method="GET")
|
|
274
|
+
def get_inbound_shipment_labels(self, shipmentId, **kwargs) -> ApiResponse:
|
|
275
|
+
"""
|
|
276
|
+
get_inbound_shipment_labels(self, shipmentId, **kwargs) -> ApiResponse
|
|
277
|
+
|
|
278
|
+
Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available.
|
|
279
|
+
|
|
280
|
+
**Usage Plan:**
|
|
281
|
+
|
|
282
|
+
====================================== ==============
|
|
283
|
+
Rate (requests per second) Burst
|
|
284
|
+
====================================== ==============
|
|
285
|
+
1 2
|
|
286
|
+
====================================== ==============
|
|
287
|
+
|
|
288
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
289
|
+
|
|
290
|
+
Examples:
|
|
291
|
+
literal blocks::
|
|
292
|
+
|
|
293
|
+
AmazonWarehousingAndDistributionV20240509().get_inbound_shipment_labels("value")
|
|
294
|
+
|
|
295
|
+
Args:
|
|
296
|
+
shipmentId: object | required ID for the shipment.
|
|
297
|
+
key pageType: object | Page type for the generated labels. The default is `PLAIN_PAPER`.
|
|
298
|
+
key formatType: object | The format type of the output file that contains your labels. The default format type is `PDF`.
|
|
299
|
+
|
|
300
|
+
Returns:
|
|
301
|
+
ApiResponse
|
|
302
|
+
"""
|
|
303
|
+
return self._request(fill_query_params(kwargs.pop("path"), shipmentId), params=kwargs)
|
|
304
|
+
|
|
305
|
+
@sp_endpoint("/awd/2024-05-09/inboundShipments/{}/transport", method="PUT")
|
|
306
|
+
def update_inbound_shipment_transport_details(self, shipmentId, **kwargs) -> ApiResponse:
|
|
307
|
+
"""
|
|
308
|
+
update_inbound_shipment_transport_details(self, shipmentId, **kwargs) -> ApiResponse
|
|
309
|
+
|
|
310
|
+
Updates transport details for an AWD shipment.
|
|
311
|
+
|
|
312
|
+
**Usage Plan:**
|
|
313
|
+
|
|
314
|
+
====================================== ==============
|
|
315
|
+
Rate (requests per second) Burst
|
|
316
|
+
====================================== ==============
|
|
317
|
+
1 1
|
|
318
|
+
====================================== ==============
|
|
319
|
+
|
|
320
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
321
|
+
|
|
322
|
+
Examples:
|
|
323
|
+
literal blocks::
|
|
324
|
+
|
|
325
|
+
AmazonWarehousingAndDistributionV20240509().update_inbound_shipment_transport_details("value")
|
|
326
|
+
|
|
327
|
+
Args:
|
|
328
|
+
shipmentId: object | required The shipment ID.
|
|
329
|
+
body: TransportationDetails | required Transportation details for the shipment.
|
|
330
|
+
|
|
331
|
+
Returns:
|
|
332
|
+
ApiResponse
|
|
333
|
+
"""
|
|
334
|
+
return self._request(fill_query_params(kwargs.pop("path"), shipmentId), data=kwargs)
|
|
335
|
+
|
|
336
|
+
@sp_endpoint("/awd/2024-05-09/inboundEligibility", method="POST")
|
|
337
|
+
def check_inbound_eligibility(self, **kwargs) -> ApiResponse:
|
|
338
|
+
"""
|
|
339
|
+
check_inbound_eligibility(self, **kwargs) -> ApiResponse
|
|
340
|
+
|
|
341
|
+
Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages.
|
|
342
|
+
|
|
343
|
+
**Usage Plan:**
|
|
344
|
+
|
|
345
|
+
====================================== ==============
|
|
346
|
+
Rate (requests per second) Burst
|
|
347
|
+
====================================== ==============
|
|
348
|
+
1 1
|
|
349
|
+
====================================== ==============
|
|
350
|
+
|
|
351
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
352
|
+
|
|
353
|
+
Examples:
|
|
354
|
+
literal blocks::
|
|
355
|
+
|
|
356
|
+
AmazonWarehousingAndDistributionV20240509().check_inbound_eligibility()
|
|
357
|
+
|
|
358
|
+
Args:
|
|
359
|
+
body: InboundPackages | required Represents the packages you want to inbound.
|
|
360
|
+
|
|
361
|
+
Returns:
|
|
362
|
+
ApiResponse
|
|
363
|
+
"""
|
|
364
|
+
return self._request(kwargs.pop("path"), data=kwargs)
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
@sp_endpoint("/awd/2024-05-09/replenishmentOrders", method="GET")
|
|
369
|
+
def list_replenishment_orders(self, **kwargs) -> ApiResponse:
|
|
370
|
+
"""
|
|
371
|
+
list_replenishment_orders(self, **kwargs) -> ApiResponse
|
|
372
|
+
|
|
373
|
+
Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters.
|
|
374
|
+
API by default will sort orders by updatedAt attribute in descending order.
|
|
375
|
+
|
|
376
|
+
Examples:
|
|
377
|
+
literal blocks::
|
|
378
|
+
|
|
379
|
+
AmazonWarehousingAndDistributionV20240509().list_replenishment_orders()
|
|
380
|
+
|
|
381
|
+
Args:
|
|
382
|
+
key updatedAfter: object | Get the replenishment orders updated after certain time (Inclusive)
|
|
383
|
+
Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
|
|
384
|
+
key updatedBefore: object | Get the replenishment orders updated before certain time (Inclusive)
|
|
385
|
+
Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
|
|
386
|
+
key sortOrder: object | Sort the response in ASCENDING or DESCENDING order. The default sort order is DESCENDING.
|
|
387
|
+
key maxResults: object | Maximum results to be returned in a single response.
|
|
388
|
+
key nextToken: object | A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. 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.
|
|
389
|
+
|
|
390
|
+
Returns:
|
|
391
|
+
ApiResponse
|
|
392
|
+
"""
|
|
393
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
394
|
+
|
|
395
|
+
@sp_endpoint("/awd/2024-05-09/replenishmentOrders", method="POST")
|
|
396
|
+
def create_replenishment_order(self, **kwargs) -> ApiResponse:
|
|
397
|
+
"""
|
|
398
|
+
create_replenishment_order(self, **kwargs) -> ApiResponse
|
|
399
|
+
|
|
400
|
+
Creates an AWD replenishment order with given products to replenish.
|
|
401
|
+
The API will return the order ID of the newly created order and also start an async validation check on the products to e.
|
|
402
|
+
The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
|
|
403
|
+
|
|
404
|
+
Examples:
|
|
405
|
+
literal blocks::
|
|
406
|
+
|
|
407
|
+
AmazonWarehousingAndDistributionV20240509().create_replenishment_order()
|
|
408
|
+
|
|
409
|
+
Args:
|
|
410
|
+
body: ReplenishmentOrderCreationData | required Payload for creating a replenishment order.
|
|
411
|
+
|
|
412
|
+
Returns:
|
|
413
|
+
ApiResponse
|
|
414
|
+
"""
|
|
415
|
+
return self._request(kwargs.pop("path"), data=kwargs)
|
|
416
|
+
|
|
417
|
+
@sp_endpoint("/awd/2024-05-09/replenishmentOrders/{}", method="GET")
|
|
418
|
+
def get_replenishment_order(self, orderId, **kwargs) -> ApiResponse:
|
|
419
|
+
"""
|
|
420
|
+
get_replenishment_order(self, orderId, **kwargs) -> ApiResponse
|
|
421
|
+
|
|
422
|
+
Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
|
|
423
|
+
|
|
424
|
+
Examples:
|
|
425
|
+
literal blocks::
|
|
426
|
+
|
|
427
|
+
AmazonWarehousingAndDistributionV20240509().get_replenishment_order("value")
|
|
428
|
+
|
|
429
|
+
Args:
|
|
430
|
+
orderId: object | required ID of the replenishment order to be retrieved.
|
|
431
|
+
|
|
432
|
+
Returns:
|
|
433
|
+
ApiResponse
|
|
434
|
+
"""
|
|
435
|
+
return self._request(fill_query_params(kwargs.pop("path"), orderId), params=kwargs)
|
|
436
|
+
|
|
437
|
+
@sp_endpoint("/awd/2024-05-09/replenishmentOrders/{}/confirmation", method="POST")
|
|
438
|
+
def confirm_replenishment_order(self, orderId, **kwargs) -> ApiResponse:
|
|
439
|
+
"""
|
|
440
|
+
confirm_replenishment_order(self, orderId, **kwargs) -> ApiResponse
|
|
441
|
+
|
|
442
|
+
Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node.
|
|
443
|
+
Order can only be confirmed in ELIGIBLE state.
|
|
444
|
+
|
|
445
|
+
Examples:
|
|
446
|
+
literal blocks::
|
|
447
|
+
|
|
448
|
+
AmazonWarehousingAndDistributionV20240509().confirm_replenishment_order("value")
|
|
449
|
+
|
|
450
|
+
Args:
|
|
451
|
+
orderId: object | required ID of the replenishment order to be confirmed.
|
|
452
|
+
|
|
453
|
+
Returns:
|
|
454
|
+
ApiResponse
|
|
455
|
+
"""
|
|
456
|
+
return self._request(fill_query_params(kwargs.pop("path"), orderId), data=kwargs)
|