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,392 @@
|
|
|
1
|
+
import urllib.parse
|
|
2
|
+
|
|
3
|
+
from sp_api.base import sp_endpoint, fill_query_params, ApiResponse
|
|
4
|
+
from sp_api.asyncio.base import AsyncBaseClient
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class VendorDirectFulfillmentShippingV20211228(AsyncBaseClient):
|
|
8
|
+
"""
|
|
9
|
+
VendorDirectFulfillmentShipping SP-API Client
|
|
10
|
+
:link:
|
|
11
|
+
|
|
12
|
+
The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
@sp_endpoint("/vendor/directFulfillment/shipping/2021-12-28/shippingLabels", method="GET")
|
|
16
|
+
async def get_shipping_labels(self, **kwargs) -> ApiResponse:
|
|
17
|
+
"""
|
|
18
|
+
get_shipping_labels(self, **kwargs) -> ApiResponse
|
|
19
|
+
|
|
20
|
+
Returns a list of shipping labels created during the time frame that you specify. Use the `createdAfter` and `createdBefore` parameters to define the time frame. You must use both of these parameters. The date range to search must not be more than seven days.
|
|
21
|
+
|
|
22
|
+
**Usage Plan:**
|
|
23
|
+
|
|
24
|
+
====================================== ==============
|
|
25
|
+
Rate (requests per second) Burst
|
|
26
|
+
====================================== ==============
|
|
27
|
+
10 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
|
+
await VendorDirectFulfillmentShippingV20211228().get_shipping_labels()
|
|
36
|
+
|
|
37
|
+
Args:
|
|
38
|
+
key shipFromPartyId: object | The vendor `warehouseId` for order fulfillment. If not specified, the result contains orders for all warehouses.
|
|
39
|
+
key limit: object | The limit to the number of records returned.
|
|
40
|
+
key createdAfter: object | required Shipping labels that became available after this date and time will be included in the result. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
41
|
+
key createdBefore: object | required Shipping labels that became available before this date and time will be included in the result. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
42
|
+
key sortOrder: object | The sort order creation date. You can choose between ascending (`ASC`) or descending (`DESC`) sort order.
|
|
43
|
+
key nextToken: object | Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call.
|
|
44
|
+
|
|
45
|
+
Returns:
|
|
46
|
+
ApiResponse
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
return await self._request(kwargs.pop("path"), params=kwargs)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@sp_endpoint("/vendor/directFulfillment/shipping/2021-12-28/shippingLabels", method="POST")
|
|
53
|
+
async def submit_shipping_label_request(self, **kwargs) -> ApiResponse:
|
|
54
|
+
"""
|
|
55
|
+
submit_shipping_label_request(self, **kwargs) -> ApiResponse
|
|
56
|
+
|
|
57
|
+
Creates a shipping label for a purchase order and returns a `transactionId` for reference.
|
|
58
|
+
|
|
59
|
+
**Usage Plan:**
|
|
60
|
+
|
|
61
|
+
====================================== ==============
|
|
62
|
+
Rate (requests per second) Burst
|
|
63
|
+
====================================== ==============
|
|
64
|
+
10 10
|
|
65
|
+
====================================== ==============
|
|
66
|
+
|
|
67
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
68
|
+
|
|
69
|
+
Examples:
|
|
70
|
+
literal blocks::
|
|
71
|
+
|
|
72
|
+
await VendorDirectFulfillmentShippingV20211228().submit_shipping_label_request()
|
|
73
|
+
|
|
74
|
+
Args:
|
|
75
|
+
body: SubmitShippingLabelsRequest | required The request body that contains the shipping labels data.
|
|
76
|
+
|
|
77
|
+
Returns:
|
|
78
|
+
ApiResponse
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
return await self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
|
|
82
|
+
|
|
83
|
+
@sp_endpoint(
|
|
84
|
+
"/vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{}", method="GET"
|
|
85
|
+
)
|
|
86
|
+
async def get_shipping_label(self, purchaseOrderNumber, **kwargs) -> ApiResponse:
|
|
87
|
+
"""
|
|
88
|
+
get_shipping_label(self, purchaseOrderNumber, **kwargs) -> ApiResponse
|
|
89
|
+
|
|
90
|
+
Returns a shipping label for the `purchaseOrderNumber` that you specify.
|
|
91
|
+
|
|
92
|
+
**Usage Plan:**
|
|
93
|
+
|
|
94
|
+
====================================== ==============
|
|
95
|
+
Rate (requests per second) Burst
|
|
96
|
+
====================================== ==============
|
|
97
|
+
10 10
|
|
98
|
+
====================================== ==============
|
|
99
|
+
|
|
100
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
101
|
+
|
|
102
|
+
Examples:
|
|
103
|
+
literal blocks::
|
|
104
|
+
|
|
105
|
+
await VendorDirectFulfillmentShippingV20211228().get_shipping_label("value")
|
|
106
|
+
|
|
107
|
+
Args:
|
|
108
|
+
purchaseOrderNumber: object | required The purchase order number for which you want to return the shipping label. It should be the same `purchaseOrderNumber` that you received in the order.
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
ApiResponse
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
return await self._request(
|
|
115
|
+
fill_query_params(kwargs.pop("path"), purchaseOrderNumber), params=kwargs
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
@sp_endpoint(
|
|
119
|
+
"/vendor/directFulfillment/shipping/2021-12-28/shipmentConfirmations", method="POST"
|
|
120
|
+
)
|
|
121
|
+
async def submit_shipment_confirmations(self, **kwargs) -> ApiResponse:
|
|
122
|
+
"""
|
|
123
|
+
submit_shipment_confirmations(self, **kwargs) -> ApiResponse
|
|
124
|
+
|
|
125
|
+
Submits one or more shipment confirmations for vendor orders.
|
|
126
|
+
|
|
127
|
+
**Usage Plan:**
|
|
128
|
+
|
|
129
|
+
====================================== ==============
|
|
130
|
+
Rate (requests per second) Burst
|
|
131
|
+
====================================== ==============
|
|
132
|
+
10 10
|
|
133
|
+
====================================== ==============
|
|
134
|
+
|
|
135
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
136
|
+
|
|
137
|
+
Examples:
|
|
138
|
+
literal blocks::
|
|
139
|
+
|
|
140
|
+
await VendorDirectFulfillmentShippingV20211228().submit_shipment_confirmations()
|
|
141
|
+
|
|
142
|
+
Args:
|
|
143
|
+
body: SubmitShipmentConfirmationsRequest | required Request body containing the shipment confirmations data.
|
|
144
|
+
|
|
145
|
+
Returns:
|
|
146
|
+
ApiResponse
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
return await self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
|
|
150
|
+
|
|
151
|
+
@sp_endpoint(
|
|
152
|
+
"/vendor/directFulfillment/shipping/2021-12-28/shipmentStatusUpdates", method="POST"
|
|
153
|
+
)
|
|
154
|
+
async def submit_shipment_status_updates(self, **kwargs) -> ApiResponse:
|
|
155
|
+
"""
|
|
156
|
+
submit_shipment_status_updates(self, **kwargs) -> ApiResponse
|
|
157
|
+
|
|
158
|
+
This operation is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API submits a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility.
|
|
159
|
+
|
|
160
|
+
**Usage Plan:**
|
|
161
|
+
|
|
162
|
+
====================================== ==============
|
|
163
|
+
Rate (requests per second) Burst
|
|
164
|
+
====================================== ==============
|
|
165
|
+
10 10
|
|
166
|
+
====================================== ==============
|
|
167
|
+
|
|
168
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
169
|
+
|
|
170
|
+
Examples:
|
|
171
|
+
literal blocks::
|
|
172
|
+
|
|
173
|
+
await VendorDirectFulfillmentShippingV20211228().submit_shipment_status_updates()
|
|
174
|
+
|
|
175
|
+
Args:
|
|
176
|
+
body: SubmitShipmentStatusUpdatesRequest | required Request body containing the shipment status update data.
|
|
177
|
+
|
|
178
|
+
Returns:
|
|
179
|
+
ApiResponse
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
return await self._request(kwargs.pop("path"), data=kwargs)
|
|
183
|
+
|
|
184
|
+
@sp_endpoint("/vendor/directFulfillment/shipping/2021-12-28/customerInvoices", method="GET")
|
|
185
|
+
async def get_customer_invoices(self, **kwargs) -> ApiResponse:
|
|
186
|
+
"""
|
|
187
|
+
get_customer_invoices(self, **kwargs) -> ApiResponse
|
|
188
|
+
|
|
189
|
+
Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days.
|
|
190
|
+
|
|
191
|
+
**Usage Plan:**
|
|
192
|
+
|
|
193
|
+
====================================== ==============
|
|
194
|
+
Rate (requests per second) Burst
|
|
195
|
+
====================================== ==============
|
|
196
|
+
10 10
|
|
197
|
+
====================================== ==============
|
|
198
|
+
|
|
199
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
200
|
+
|
|
201
|
+
Examples:
|
|
202
|
+
literal blocks::
|
|
203
|
+
|
|
204
|
+
await VendorDirectFulfillmentShippingV20211228().get_customer_invoices()
|
|
205
|
+
|
|
206
|
+
Args:
|
|
207
|
+
key shipFromPartyId: object | The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses.
|
|
208
|
+
key limit: object | The limit to the number of records returned
|
|
209
|
+
key createdAfter: object | required Orders that became available after this date and time will be included in the result. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
210
|
+
key createdBefore: object | required Orders that became available before this date and time will be included in the result. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
211
|
+
key sortOrder: object | Sort ASC or DESC by order creation date.
|
|
212
|
+
key nextToken: object | Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
|
|
213
|
+
|
|
214
|
+
Returns:
|
|
215
|
+
ApiResponse
|
|
216
|
+
"""
|
|
217
|
+
|
|
218
|
+
return await self._request(kwargs.pop("path"), params=kwargs)
|
|
219
|
+
|
|
220
|
+
@sp_endpoint(
|
|
221
|
+
"/vendor/directFulfillment/shipping/2021-12-28/customerInvoices/{}", method="GET"
|
|
222
|
+
)
|
|
223
|
+
async def get_customer_invoice(self, purchaseOrderNumber, **kwargs) -> ApiResponse:
|
|
224
|
+
"""
|
|
225
|
+
get_customer_invoice(self, purchaseOrderNumber, **kwargs) -> ApiResponse
|
|
226
|
+
|
|
227
|
+
Returns a customer invoice based on the purchaseOrderNumber that you specify.
|
|
228
|
+
|
|
229
|
+
**Usage Plan:**
|
|
230
|
+
|
|
231
|
+
====================================== ==============
|
|
232
|
+
Rate (requests per second) Burst
|
|
233
|
+
====================================== ==============
|
|
234
|
+
10 10
|
|
235
|
+
====================================== ==============
|
|
236
|
+
|
|
237
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
238
|
+
|
|
239
|
+
Examples:
|
|
240
|
+
literal blocks::
|
|
241
|
+
|
|
242
|
+
await VendorDirectFulfillmentShippingV20211228().get_customer_invoice("value")
|
|
243
|
+
|
|
244
|
+
Args:
|
|
245
|
+
purchaseOrderNumber: object | required Purchase order number of the shipment for which to return the invoice.
|
|
246
|
+
|
|
247
|
+
Returns:
|
|
248
|
+
ApiResponse
|
|
249
|
+
"""
|
|
250
|
+
|
|
251
|
+
return await self._request(
|
|
252
|
+
fill_query_params(kwargs.pop("path"), purchaseOrderNumber), params=kwargs
|
|
253
|
+
)
|
|
254
|
+
|
|
255
|
+
@sp_endpoint("/vendor/directFulfillment/shipping/2021-12-28/packingSlips", method="GET")
|
|
256
|
+
async def get_packing_slips(self, **kwargs) -> ApiResponse:
|
|
257
|
+
"""
|
|
258
|
+
get_packing_slips(self, **kwargs) -> ApiResponse
|
|
259
|
+
|
|
260
|
+
Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days.
|
|
261
|
+
|
|
262
|
+
**Usage Plan:**
|
|
263
|
+
|
|
264
|
+
====================================== ==============
|
|
265
|
+
Rate (requests per second) Burst
|
|
266
|
+
====================================== ==============
|
|
267
|
+
10 10
|
|
268
|
+
====================================== ==============
|
|
269
|
+
|
|
270
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
271
|
+
|
|
272
|
+
Examples:
|
|
273
|
+
literal blocks::
|
|
274
|
+
|
|
275
|
+
await VendorDirectFulfillmentShippingV20211228().get_packing_slips()
|
|
276
|
+
|
|
277
|
+
Args:
|
|
278
|
+
key shipFromPartyId: object | The vendor `warehouseId` for order fulfillment. If not specified, the result contains orders for all warehouses.
|
|
279
|
+
key limit: object | The maximum number of records to return.
|
|
280
|
+
key createdAfter: object | required Packing slips that become available after this date and time will be included in the result. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
281
|
+
key createdBefore: object | required Packing slips that became available before this date and time will be included in the result. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
282
|
+
key sortOrder: object | The packing slip creation dates, which are sorted by ascending or descending order.
|
|
283
|
+
key nextToken: object | Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call.
|
|
284
|
+
|
|
285
|
+
Returns:
|
|
286
|
+
ApiResponse
|
|
287
|
+
"""
|
|
288
|
+
|
|
289
|
+
return await self._request(kwargs.pop("path"), params=kwargs)
|
|
290
|
+
|
|
291
|
+
@sp_endpoint("/vendor/directFulfillment/shipping/2021-12-28/packingSlips/{}", method="GET")
|
|
292
|
+
async def get_packing_slip(self, purchaseOrderNumber, **kwargs) -> ApiResponse:
|
|
293
|
+
"""
|
|
294
|
+
get_packing_slip(self, purchaseOrderNumber, **kwargs) -> ApiResponse
|
|
295
|
+
|
|
296
|
+
Returns a packing slip based on the purchaseOrderNumber that you specify.
|
|
297
|
+
|
|
298
|
+
**Usage Plan:**
|
|
299
|
+
|
|
300
|
+
====================================== ==============
|
|
301
|
+
Rate (requests per second) Burst
|
|
302
|
+
====================================== ==============
|
|
303
|
+
10 10
|
|
304
|
+
====================================== ==============
|
|
305
|
+
|
|
306
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
307
|
+
|
|
308
|
+
Examples:
|
|
309
|
+
literal blocks::
|
|
310
|
+
|
|
311
|
+
await VendorDirectFulfillmentShippingV20211228().get_packing_slip("value")
|
|
312
|
+
|
|
313
|
+
Args:
|
|
314
|
+
purchaseOrderNumber: object | required The `purchaseOrderNumber` for the packing slip that you want.
|
|
315
|
+
|
|
316
|
+
Returns:
|
|
317
|
+
ApiResponse
|
|
318
|
+
"""
|
|
319
|
+
|
|
320
|
+
return await self._request(
|
|
321
|
+
fill_query_params(kwargs.pop("path"), purchaseOrderNumber), params=kwargs
|
|
322
|
+
)
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
@sp_endpoint("/vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{}", method="POST")
|
|
328
|
+
async def create_shipping_labels(self, purchaseOrderNumber, **kwargs) -> ApiResponse:
|
|
329
|
+
"""
|
|
330
|
+
create_shipping_labels(self, purchaseOrderNumber, **kwargs) -> ApiResponse
|
|
331
|
+
|
|
332
|
+
Creates shipping labels for a purchase order and returns the labels.
|
|
333
|
+
|
|
334
|
+
**Usage Plan:**
|
|
335
|
+
|
|
336
|
+
====================================== ==============
|
|
337
|
+
Rate (requests per second) Burst
|
|
338
|
+
====================================== ==============
|
|
339
|
+
10 10
|
|
340
|
+
====================================== ==============
|
|
341
|
+
|
|
342
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
343
|
+
|
|
344
|
+
Examples:
|
|
345
|
+
literal blocks::
|
|
346
|
+
|
|
347
|
+
await VendorDirectFulfillmentShippingV20211228().create_shipping_labels("value")
|
|
348
|
+
|
|
349
|
+
Args:
|
|
350
|
+
purchaseOrderNumber: object | required The purchase order number for which you want to return the shipping labels. It should be the same number as the `purchaseOrderNumber` in the order.
|
|
351
|
+
body: CreateShippingLabelsRequest | required The request payload that contains the parameters for creating shipping labels.
|
|
352
|
+
|
|
353
|
+
Returns:
|
|
354
|
+
ApiResponse
|
|
355
|
+
"""
|
|
356
|
+
return await self._request(fill_query_params(kwargs.pop("path"), purchaseOrderNumber), data=kwargs)
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
@sp_endpoint("/vendor/directFulfillment/shipping/2021-12-28/containerLabel", method="POST")
|
|
365
|
+
async def create_container_label(self, **kwargs) -> ApiResponse:
|
|
366
|
+
"""
|
|
367
|
+
create_container_label(self, **kwargs) -> ApiResponse
|
|
368
|
+
|
|
369
|
+
Creates a container (pallet) label for the associated shipment package.
|
|
370
|
+
|
|
371
|
+
**Usage Plan:**
|
|
372
|
+
|
|
373
|
+
====================================== ==============
|
|
374
|
+
Rate (requests per second) Burst
|
|
375
|
+
====================================== ==============
|
|
376
|
+
10 10
|
|
377
|
+
====================================== ==============
|
|
378
|
+
|
|
379
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
380
|
+
|
|
381
|
+
Examples:
|
|
382
|
+
literal blocks::
|
|
383
|
+
|
|
384
|
+
await VendorDirectFulfillmentShippingV20211228().create_container_label()
|
|
385
|
+
|
|
386
|
+
Args:
|
|
387
|
+
body: CreateContainerLabelRequest | required Request body containing the container label data.
|
|
388
|
+
|
|
389
|
+
Returns:
|
|
390
|
+
ApiResponse
|
|
391
|
+
"""
|
|
392
|
+
return await self._request(kwargs.pop("path"), data=kwargs)
|