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
|
@@ -13,62 +13,21 @@ class MerchantFulfillment(AsyncBaseClient):
|
|
|
13
13
|
self, shipment_request_details: dict, **kwargs
|
|
14
14
|
) -> ApiResponse:
|
|
15
15
|
"""
|
|
16
|
-
get_eligible_shipment_services_old(self, shipment_request_details
|
|
16
|
+
get_eligible_shipment_services_old(self, shipment_request_details, **kwargs) -> ApiResponse
|
|
17
|
+
|
|
17
18
|
Returns a list of shipping service offers that satisfy the specified shipment request details.
|
|
18
|
-
|
|
19
|
-
**Usage Plan:**
|
|
20
|
-
|
|
21
|
-
====================================== ==============
|
|
22
|
-
Rate (requests per second) Burst
|
|
23
|
-
====================================== ==============
|
|
24
|
-
1 1
|
|
25
|
-
====================================== ==============
|
|
26
|
-
|
|
27
|
-
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
28
|
-
|
|
19
|
+
|
|
29
20
|
Examples:
|
|
30
21
|
literal blocks::
|
|
31
|
-
|
|
32
|
-
MerchantFulfillment().get_eligible_shipment_services_old(
|
|
33
|
-
|
|
34
|
-
"ItemList": [
|
|
35
|
-
{
|
|
36
|
-
"OrderItemId": "52986411826454",
|
|
37
|
-
"Quantity": 1
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
"ShipFromAddress": {
|
|
41
|
-
"Name": "John Doe",
|
|
42
|
-
"AddressLine1": "300 Turnbull Ave",
|
|
43
|
-
"Email": "jdoeasdfllkj@yahoo.com",
|
|
44
|
-
"City": "Detroit",
|
|
45
|
-
"StateOrProvinceCode": "MI",
|
|
46
|
-
"PostalCode": "48123",
|
|
47
|
-
"CountryCode": "US",
|
|
48
|
-
"Phone": "7132341234"
|
|
49
|
-
},
|
|
50
|
-
"PackageDimensions": {
|
|
51
|
-
"Length": 10,
|
|
52
|
-
"Width": 10,
|
|
53
|
-
"Height": 10,
|
|
54
|
-
"Unit": "inches"
|
|
55
|
-
},
|
|
56
|
-
"Weight": {
|
|
57
|
-
"Value": 10,
|
|
58
|
-
"Unit": "oz"
|
|
59
|
-
},
|
|
60
|
-
"ShippingServiceOptions": {
|
|
61
|
-
"DeliveryExperience": "NoTracking",
|
|
62
|
-
"CarrierWillPickUp": False,
|
|
63
|
-
"CarrierWillPickUpOption": "ShipperWillDropOff"
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
|
|
22
|
+
|
|
23
|
+
await MerchantFulfillment().get_eligible_shipment_services_old("value")
|
|
24
|
+
|
|
67
25
|
Args:
|
|
68
|
-
shipment_request_details:
|
|
69
|
-
|
|
26
|
+
shipment_request_details: | required
|
|
27
|
+
**kwargs:
|
|
28
|
+
|
|
70
29
|
Returns:
|
|
71
|
-
|
|
30
|
+
ApiResponse
|
|
72
31
|
"""
|
|
73
32
|
# GetEligibleShipmentServicesRequest
|
|
74
33
|
data = {"ShipmentRequestDetails": shipment_request_details, **kwargs}
|
|
@@ -80,62 +39,30 @@ class MerchantFulfillment(AsyncBaseClient):
|
|
|
80
39
|
self, shipment_request_details: dict, **kwargs
|
|
81
40
|
) -> ApiResponse:
|
|
82
41
|
"""
|
|
83
|
-
get_eligible_shipment_services(self, shipment_request_details
|
|
42
|
+
get_eligible_shipment_services(self, shipment_request_details, **kwargs) -> ApiResponse
|
|
43
|
+
|
|
84
44
|
Returns a list of shipping service offers that satisfy the specified shipment request details.
|
|
85
|
-
|
|
45
|
+
|
|
86
46
|
**Usage Plan:**
|
|
87
|
-
|
|
47
|
+
|
|
88
48
|
====================================== ==============
|
|
89
49
|
Rate (requests per second) Burst
|
|
90
50
|
====================================== ==============
|
|
91
|
-
|
|
51
|
+
6 12
|
|
92
52
|
====================================== ==============
|
|
93
|
-
|
|
53
|
+
|
|
94
54
|
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
95
|
-
|
|
55
|
+
|
|
96
56
|
Examples:
|
|
97
57
|
literal blocks::
|
|
98
|
-
|
|
99
|
-
MerchantFulfillment().get_eligible_shipment_services(
|
|
100
|
-
|
|
101
|
-
"ItemList": [
|
|
102
|
-
{
|
|
103
|
-
"OrderItemId": "52986411826454",
|
|
104
|
-
"Quantity": 1
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"ShipFromAddress": {
|
|
108
|
-
"Name": "John Doe",
|
|
109
|
-
"AddressLine1": "300 Turnbull Ave",
|
|
110
|
-
"Email": "jdoeasdfllkj@yahoo.com",
|
|
111
|
-
"City": "Detroit",
|
|
112
|
-
"StateOrProvinceCode": "MI",
|
|
113
|
-
"PostalCode": "48123",
|
|
114
|
-
"CountryCode": "US",
|
|
115
|
-
"Phone": "7132341234"
|
|
116
|
-
},
|
|
117
|
-
"PackageDimensions": {
|
|
118
|
-
"Length": 10,
|
|
119
|
-
"Width": 10,
|
|
120
|
-
"Height": 10,
|
|
121
|
-
"Unit": "inches"
|
|
122
|
-
},
|
|
123
|
-
"Weight": {
|
|
124
|
-
"Value": 10,
|
|
125
|
-
"Unit": "oz"
|
|
126
|
-
},
|
|
127
|
-
"ShippingServiceOptions": {
|
|
128
|
-
"DeliveryExperience": "NoTracking",
|
|
129
|
-
"CarrierWillPickUp": False,
|
|
130
|
-
"CarrierWillPickUpOption": "ShipperWillDropOff"
|
|
131
|
-
}
|
|
132
|
-
})
|
|
133
|
-
|
|
58
|
+
|
|
59
|
+
await MerchantFulfillment().get_eligible_shipment_services("value")
|
|
60
|
+
|
|
134
61
|
Args:
|
|
135
|
-
|
|
136
|
-
|
|
62
|
+
body: GetEligibleShipmentServicesRequest | required The request schema for the `GetEligibleShipmentServices` operation.
|
|
63
|
+
|
|
137
64
|
Returns:
|
|
138
|
-
|
|
65
|
+
ApiResponse
|
|
139
66
|
"""
|
|
140
67
|
|
|
141
68
|
# GetEligibleShipmentServicesRequest
|
|
@@ -146,29 +73,21 @@ class MerchantFulfillment(AsyncBaseClient):
|
|
|
146
73
|
@sp_endpoint("/mfn/v0/shipments/{}")
|
|
147
74
|
async def get_shipment(self, shipment_id: str, **kwargs) -> ApiResponse:
|
|
148
75
|
"""
|
|
149
|
-
get_shipment(self,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
====================================== ==============
|
|
155
|
-
Rate (requests per second) Burst
|
|
156
|
-
====================================== ==============
|
|
157
|
-
1 1
|
|
158
|
-
====================================== ==============
|
|
159
|
-
|
|
160
|
-
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
161
|
-
|
|
76
|
+
get_shipment(self, shipment_id, **kwargs) -> ApiResponse
|
|
77
|
+
|
|
78
|
+
Returns the shipment information for an existing shipment.
|
|
79
|
+
|
|
162
80
|
Examples:
|
|
163
81
|
literal blocks::
|
|
164
|
-
|
|
165
|
-
MerchantFulfillment().get_shipment("
|
|
166
|
-
|
|
82
|
+
|
|
83
|
+
await MerchantFulfillment().get_shipment("value")
|
|
84
|
+
|
|
167
85
|
Args:
|
|
168
|
-
shipment_id:
|
|
169
|
-
|
|
86
|
+
shipment_id: | required
|
|
87
|
+
**kwargs:
|
|
88
|
+
|
|
170
89
|
Returns:
|
|
171
|
-
|
|
90
|
+
ApiResponse
|
|
172
91
|
"""
|
|
173
92
|
return await self._request(
|
|
174
93
|
fill_query_params(kwargs.pop("path"), shipment_id),
|
|
@@ -179,24 +98,30 @@ class MerchantFulfillment(AsyncBaseClient):
|
|
|
179
98
|
@sp_endpoint("/mfn/v0/shipments/{}", method="DELETE")
|
|
180
99
|
async def cancel_shipment(self, shipment_id: str, **kwargs) -> ApiResponse:
|
|
181
100
|
"""
|
|
182
|
-
cancel_shipment(self, shipment_id
|
|
101
|
+
cancel_shipment(self, shipment_id, **kwargs) -> ApiResponse
|
|
102
|
+
|
|
183
103
|
Cancel the shipment indicated by the specified shipment identifier.
|
|
184
|
-
|
|
104
|
+
|
|
185
105
|
**Usage Plan:**
|
|
186
|
-
|
|
106
|
+
|
|
187
107
|
====================================== ==============
|
|
188
108
|
Rate (requests per second) Burst
|
|
189
109
|
====================================== ==============
|
|
190
110
|
1 1
|
|
191
111
|
====================================== ==============
|
|
192
|
-
|
|
112
|
+
|
|
193
113
|
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
194
|
-
|
|
114
|
+
|
|
115
|
+
Examples:
|
|
116
|
+
literal blocks::
|
|
117
|
+
|
|
118
|
+
await MerchantFulfillment().cancel_shipment("value")
|
|
119
|
+
|
|
195
120
|
Args:
|
|
196
|
-
|
|
197
|
-
|
|
121
|
+
shipmentId: object | required The Amazon-defined shipment identifier for the shipment to cancel.
|
|
122
|
+
|
|
198
123
|
Returns:
|
|
199
|
-
|
|
124
|
+
ApiResponse
|
|
200
125
|
"""
|
|
201
126
|
return await self._request(
|
|
202
127
|
fill_query_params(kwargs.pop("path"), shipment_id),
|
|
@@ -207,24 +132,21 @@ class MerchantFulfillment(AsyncBaseClient):
|
|
|
207
132
|
@sp_endpoint("/mfn/v0/shipments/{}/cancel", method="PUT")
|
|
208
133
|
async def cancel_shipment_old(self, shipment_id: str, **kwargs) -> ApiResponse:
|
|
209
134
|
"""
|
|
210
|
-
cancel_shipment_old(self, shipment_id
|
|
135
|
+
cancel_shipment_old(self, shipment_id, **kwargs) -> ApiResponse
|
|
136
|
+
|
|
211
137
|
Cancel the shipment indicated by the specified shipment identifer.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
1 1
|
|
219
|
-
====================================== ==============
|
|
220
|
-
|
|
221
|
-
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
222
|
-
|
|
138
|
+
|
|
139
|
+
Examples:
|
|
140
|
+
literal blocks::
|
|
141
|
+
|
|
142
|
+
await MerchantFulfillment().cancel_shipment_old("value")
|
|
143
|
+
|
|
223
144
|
Args:
|
|
224
|
-
shipment_id:
|
|
225
|
-
|
|
145
|
+
shipment_id: | required
|
|
146
|
+
**kwargs:
|
|
147
|
+
|
|
226
148
|
Returns:
|
|
227
|
-
|
|
149
|
+
ApiResponse
|
|
228
150
|
"""
|
|
229
151
|
return await self._request(
|
|
230
152
|
fill_query_params(kwargs.pop("path"), shipment_id),
|
|
@@ -237,70 +159,30 @@ class MerchantFulfillment(AsyncBaseClient):
|
|
|
237
159
|
self, shipment_request_details: dict, shipping_service_id: str, **kwargs
|
|
238
160
|
) -> ApiResponse:
|
|
239
161
|
"""
|
|
240
|
-
create_shipment(self, shipment_request_details
|
|
162
|
+
create_shipment(self, shipment_request_details, shipping_service_id, **kwargs) -> ApiResponse
|
|
163
|
+
|
|
241
164
|
Create a shipment with the information provided.
|
|
242
|
-
|
|
165
|
+
|
|
243
166
|
**Usage Plan:**
|
|
244
|
-
|
|
167
|
+
|
|
245
168
|
====================================== ==============
|
|
246
169
|
Rate (requests per second) Burst
|
|
247
170
|
====================================== ==============
|
|
248
|
-
|
|
171
|
+
2 2
|
|
249
172
|
====================================== ==============
|
|
250
|
-
|
|
173
|
+
|
|
251
174
|
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
252
|
-
|
|
175
|
+
|
|
253
176
|
Examples:
|
|
254
177
|
literal blocks::
|
|
255
|
-
|
|
256
|
-
MerchantFulfillment().create_shipment(
|
|
257
|
-
|
|
258
|
-
"AmazonOrderId": "903-5563053-5647845",
|
|
259
|
-
"ItemList": [
|
|
260
|
-
{
|
|
261
|
-
"OrderItemId": "52986411826454",
|
|
262
|
-
"Quantity": 1
|
|
263
|
-
}
|
|
264
|
-
],
|
|
265
|
-
"ShipFromAddress": {
|
|
266
|
-
"Name": "John Doe",
|
|
267
|
-
"AddressLine1": "300 Turnbull Ave",
|
|
268
|
-
"Email": "jdoeasdfllkj@yahoo.com",
|
|
269
|
-
"City": "Detroit",
|
|
270
|
-
"StateOrProvinceCode": "MI",
|
|
271
|
-
"PostalCode": "48123",
|
|
272
|
-
"CountryCode": "US",
|
|
273
|
-
"Phone": "7132341234"
|
|
274
|
-
},
|
|
275
|
-
"PackageDimensions": {
|
|
276
|
-
"Length": 10,
|
|
277
|
-
"Width": 10,
|
|
278
|
-
"Height": 10,
|
|
279
|
-
"Unit": "inches"
|
|
280
|
-
},
|
|
281
|
-
"Weight": {
|
|
282
|
-
"Value": 10,
|
|
283
|
-
"Unit": "oz"
|
|
284
|
-
},
|
|
285
|
-
"ShippingServiceOptions": {
|
|
286
|
-
"DeliveryExperience": "NoTracking",
|
|
287
|
-
"CarrierWillPickUp": False,
|
|
288
|
-
"CarrierWillPickUpOption": "ShipperWillDropOff"
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
shipping_service_id="UPS_PTP_2ND_DAY_AIR",
|
|
292
|
-
ShippingServiceOfferId="WHgxtyn6qjGGaCzOCog1azF5HLHje5Pz3Lc2Fmt5eKoZAReW8oJ1SMumuBS8lA/Hjuglhyiu0"
|
|
293
|
-
"+KRLvyJxFV0PB9YFMDhygs3VyTL0WGYkGxiuRkmuEvpqldUn9rrkWVodqnR4vx2VtXvtER"
|
|
294
|
-
"/Ju6RqYoddJZGy6RS2KLzzhQ2NclN0NYXMZVqpOe5RsRBddXaGuJr7oza3M52"
|
|
295
|
-
"+JzChocAHzcurIhCRynpbxfmNLzZMQEbgnpGLzuaoSMzfxg90/NaXFR/Ou01du/uKd5AbfMW"
|
|
296
|
-
"/AxAKP9ht6Oi9lDHq6WkGqvjkVLW0/jj/fBgblIwcs+t"
|
|
297
|
-
)
|
|
298
|
-
|
|
178
|
+
|
|
179
|
+
await MerchantFulfillment().create_shipment("value", "value")
|
|
180
|
+
|
|
299
181
|
Args:
|
|
300
|
-
|
|
301
|
-
|
|
182
|
+
body: CreateShipmentRequest | required The request schema for the `CreateShipment` operation.
|
|
183
|
+
|
|
302
184
|
Returns:
|
|
303
|
-
|
|
185
|
+
ApiResponse
|
|
304
186
|
"""
|
|
305
187
|
|
|
306
188
|
# CreateShipmentRequest
|
|
@@ -316,27 +198,26 @@ class MerchantFulfillment(AsyncBaseClient):
|
|
|
316
198
|
self, shipping_service_id: str, ship_from_address: dict, order_id: str, **kwargs
|
|
317
199
|
) -> ApiResponse:
|
|
318
200
|
"""
|
|
201
|
+
get_additional_seller_inputs_old(self, shipping_service_id, ship_from_address, order_id, **kwargs) -> ApiResponse
|
|
202
|
+
|
|
319
203
|
get_additional_seller_inputs_old(self, shipping_service_id: str, ship_from_address: dict, order_id: str,
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
1 1
|
|
330
|
-
====================================== ==============
|
|
331
|
-
|
|
332
|
-
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
333
|
-
|
|
204
|
+
**kwargs) -> ApiResponse
|
|
205
|
+
Get a list of additional seller inputs required for a ship method. This is generally
|
|
206
|
+
used for international shipping.
|
|
207
|
+
|
|
208
|
+
Examples:
|
|
209
|
+
literal blocks::
|
|
210
|
+
|
|
211
|
+
await MerchantFulfillment().get_additional_seller_inputs_old("value", "value", "value")
|
|
212
|
+
|
|
334
213
|
Args:
|
|
335
|
-
shipping_service_id:
|
|
336
|
-
ship_from_address:
|
|
337
|
-
order_id:
|
|
214
|
+
shipping_service_id: | required
|
|
215
|
+
ship_from_address: | required
|
|
216
|
+
order_id: | required
|
|
217
|
+
**kwargs:
|
|
218
|
+
|
|
338
219
|
Returns:
|
|
339
|
-
|
|
220
|
+
ApiResponse
|
|
340
221
|
"""
|
|
341
222
|
|
|
342
223
|
# GetAdditionalSellerInputsRequest
|
|
@@ -344,6 +225,8 @@ class MerchantFulfillment(AsyncBaseClient):
|
|
|
344
225
|
"ShippingServiceId": shipping_service_id,
|
|
345
226
|
"ShipFromAddress": ship_from_address,
|
|
346
227
|
"OrderId": order_id,
|
|
228
|
+
**{k: v for k, v in kwargs.items() if k not in {"path", "method"}},
|
|
229
|
+
"method": kwargs.get("method", "POST"),
|
|
347
230
|
}
|
|
348
231
|
return await self._request(kwargs.pop("path"), data=data, add_marketplace=False)
|
|
349
232
|
|
|
@@ -352,27 +235,30 @@ class MerchantFulfillment(AsyncBaseClient):
|
|
|
352
235
|
self, shipping_service_id: str, ship_from_address: dict, order_id: str, **kwargs
|
|
353
236
|
) -> ApiResponse:
|
|
354
237
|
"""
|
|
355
|
-
get_additional_seller_inputs(self, shipping_service_id
|
|
356
|
-
|
|
357
|
-
Gets a list of additional seller inputs required for a ship method. This is
|
|
358
|
-
|
|
359
|
-
|
|
238
|
+
get_additional_seller_inputs(self, shipping_service_id, ship_from_address, order_id, **kwargs) -> ApiResponse
|
|
239
|
+
|
|
240
|
+
Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping.
|
|
241
|
+
|
|
360
242
|
**Usage Plan:**
|
|
361
|
-
|
|
243
|
+
|
|
362
244
|
====================================== ==============
|
|
363
245
|
Rate (requests per second) Burst
|
|
364
246
|
====================================== ==============
|
|
365
247
|
1 1
|
|
366
248
|
====================================== ==============
|
|
367
|
-
|
|
249
|
+
|
|
368
250
|
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
369
|
-
|
|
251
|
+
|
|
252
|
+
Examples:
|
|
253
|
+
literal blocks::
|
|
254
|
+
|
|
255
|
+
await MerchantFulfillment().get_additional_seller_inputs("value", "value", "value")
|
|
256
|
+
|
|
370
257
|
Args:
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
order_id: str:
|
|
258
|
+
body: GetAdditionalSellerInputsRequest | required The request schema for the `GetAdditionalSellerInputs` operation.
|
|
259
|
+
|
|
374
260
|
Returns:
|
|
375
|
-
|
|
261
|
+
ApiResponse
|
|
376
262
|
"""
|
|
377
263
|
|
|
378
264
|
# GetAdditionalSellerInputsRequest
|
|
@@ -380,5 +266,7 @@ class MerchantFulfillment(AsyncBaseClient):
|
|
|
380
266
|
"ShippingServiceId": shipping_service_id,
|
|
381
267
|
"ShipFromAddress": ship_from_address,
|
|
382
268
|
"OrderId": order_id,
|
|
269
|
+
**{k: v for k, v in kwargs.items() if k not in {"path", "method"}},
|
|
270
|
+
"method": kwargs.get("method", "POST"),
|
|
383
271
|
}
|
|
384
|
-
return await self._request(kwargs.pop("path"), data=data, add_marketplace=False)
|
|
272
|
+
return await self._request(kwargs.pop("path"), data=data, add_marketplace=False)
|