python-amazon-sp-api 1.7.5__py3-none-any.whl → 2.0.10__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-1.7.5.data → python_amazon_sp_api-2.0.10.data}/scripts/make_endpoint +2 -2
- {python_amazon_sp_api-1.7.5.dist-info → python_amazon_sp_api-2.0.10.dist-info}/METADATA +58 -8
- python_amazon_sp_api-2.0.10.dist-info/RECORD +253 -0
- {python_amazon_sp_api-1.7.5.dist-info → python_amazon_sp_api-2.0.10.dist-info}/WHEEL +1 -1
- {python_amazon_sp_api-1.7.5.dist-info → python_amazon_sp_api-2.0.10.dist-info}/top_level.txt +0 -1
- sp_api/__version__.py +1 -1
- sp_api/api/__init__.py +48 -41
- sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +82 -76
- sp_api/api/aplus_content/aplus_content.py +76 -45
- sp_api/api/application_integrations/application_integrations.py +118 -0
- sp_api/api/application_management/application_management.py +6 -7
- sp_api/api/authorization/authorization.py +5 -5
- sp_api/api/catalog/catalog.py +9 -10
- sp_api/api/catalog_items/catalog_items.py +10 -13
- sp_api/api/customer_feedback/customer_feedback.py +110 -0
- sp_api/api/data_kiosk/data_kiosk.py +59 -39
- sp_api/api/easy_ship/easy_ship.py +190 -0
- sp_api/api/external_fulfillment/external_fulfillment.py +706 -0
- sp_api/api/fba_inbound_eligibility/fba_inbound_eligibility.py +23 -13
- sp_api/api/fba_small_and_light/fba_small_and_light.py +46 -20
- sp_api/api/feeds/feeds.py +60 -39
- sp_api/api/finances/finances.py +40 -9
- sp_api/api/fulfillment_inbound/fulfillment_inbound.py +844 -619
- sp_api/api/fulfillment_outbound/fulfillment_outbound.py +63 -57
- sp_api/api/inventories/inventories.py +13 -11
- sp_api/api/listings_items/listings_items.py +38 -25
- sp_api/api/listings_restrictions/listings_restrictions.py +6 -7
- sp_api/api/merchant_fulfillment/merchant_fulfillment.py +49 -36
- sp_api/api/messaging/messaging.py +129 -25
- sp_api/api/notifications/notifications.py +85 -45
- sp_api/api/orders/orders.py +123 -38
- sp_api/api/orders/orders_2026_01_01.py +54 -0
- sp_api/api/product_fees/product_fees.py +75 -67
- sp_api/api/product_type_definitions/product_type_definitions.py +9 -10
- sp_api/api/products/products.py +177 -53
- sp_api/api/products/products_definitions.py +11 -82
- sp_api/api/replenishment/replenishment.py +13 -11
- sp_api/api/reports/reports.py +113 -95
- sp_api/api/sales/sales.py +23 -13
- sp_api/api/sellers/sellers.py +3 -3
- sp_api/api/services/services.py +41 -30
- sp_api/api/shipping/shipping.py +39 -37
- sp_api/api/shipping/shippingV2.py +46 -30
- sp_api/api/solicitations/solicitations.py +20 -11
- sp_api/api/supply_sources/supply_sources.py +45 -37
- sp_api/api/tokens/tokens.py +4 -6
- sp_api/api/upload/upload.py +10 -8
- sp_api/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +10 -6
- sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +12 -14
- sp_api/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +4 -6
- sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +42 -37
- sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +8 -6
- sp_api/api/vendor_invoices/vendor_invoices.py +6 -4
- sp_api/api/vendor_orders/vendor_orders.py +16 -19
- sp_api/api/vendor_shipments/vendor_shipments.py +91 -262
- sp_api/api/vendor_transaction_status/vendor_transaction_status.py +6 -6
- sp_api/asyncio/api/__init__.py +167 -0
- sp_api/asyncio/api/amazon_warehousing_and_distribu/__init__.py +9 -0
- sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +130 -0
- sp_api/asyncio/api/aplus_content/__init__.py +5 -0
- sp_api/asyncio/api/aplus_content/aplus_content.py +330 -0
- sp_api/asyncio/api/application_integrations/__init__.py +5 -0
- sp_api/asyncio/api/application_integrations/application_integrations.py +119 -0
- sp_api/asyncio/api/application_management/__init__.py +5 -0
- sp_api/asyncio/api/application_management/application_management.py +36 -0
- sp_api/asyncio/api/authorization/__init__.py +5 -0
- sp_api/asyncio/api/authorization/authorization.py +54 -0
- sp_api/asyncio/api/catalog/__init__.py +5 -0
- sp_api/asyncio/api/catalog/catalog.py +111 -0
- sp_api/asyncio/api/catalog_items/__init__.py +6 -0
- sp_api/asyncio/api/catalog_items/catalog_items.py +93 -0
- sp_api/asyncio/api/clients/__init__.py +1 -0
- sp_api/asyncio/api/customer_feedback/__init__.py +5 -0
- sp_api/asyncio/api/customer_feedback/customer_feedback.py +111 -0
- sp_api/asyncio/api/data_kiosk/__init__.py +5 -0
- sp_api/asyncio/api/data_kiosk/data_kiosk.py +236 -0
- sp_api/asyncio/api/easy_ship/__init__.py +5 -0
- sp_api/asyncio/api/easy_ship/easy_ship.py +191 -0
- sp_api/asyncio/api/external_fulfillment/__init__.py +5 -0
- sp_api/asyncio/api/external_fulfillment/external_fulfillment.py +706 -0
- sp_api/asyncio/api/fba_inbound_eligibility/__init__.py +5 -0
- sp_api/asyncio/api/fba_inbound_eligibility/fba_inbound_eligibility.py +96 -0
- sp_api/asyncio/api/fba_small_and_light/__init__.py +5 -0
- sp_api/asyncio/api/fba_small_and_light/fba_small_and_light.py +213 -0
- sp_api/asyncio/api/feeds/feeds.py +260 -0
- sp_api/asyncio/api/finances/finances.py +100 -0
- sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound.py +1798 -0
- sp_api/asyncio/api/fulfillment_outbound/fulfillment_outbound.py +736 -0
- sp_api/asyncio/api/inventories/inventories.py +74 -0
- sp_api/asyncio/api/listings_items/__init__.py +0 -0
- sp_api/asyncio/api/listings_items/listings_items.py +170 -0
- sp_api/asyncio/api/listings_restrictions/__init__.py +0 -0
- sp_api/asyncio/api/listings_restrictions/listings_restrictions.py +36 -0
- sp_api/asyncio/api/merchant_fulfillment/__init__.py +0 -0
- sp_api/asyncio/api/merchant_fulfillment/merchant_fulfillment.py +384 -0
- sp_api/asyncio/api/messaging/__init__.py +0 -0
- sp_api/asyncio/api/messaging/messaging.py +511 -0
- sp_api/asyncio/api/models/__init__.py +4 -0
- sp_api/asyncio/api/notifications/__init__.py +0 -0
- sp_api/asyncio/api/notifications/notifications.py +295 -0
- sp_api/asyncio/api/orders/__init__.py +0 -0
- sp_api/asyncio/api/orders/orders.py +412 -0
- sp_api/asyncio/api/orders/orders_2026_01_01.py +40 -0
- sp_api/asyncio/api/overrides/__init__.py +1 -0
- sp_api/asyncio/api/product_fees/__init__.py +0 -0
- sp_api/asyncio/api/product_fees/product_fees.py +194 -0
- sp_api/asyncio/api/product_type_definitions/__init__.py +0 -0
- sp_api/asyncio/api/product_type_definitions/product_type_definitions.py +75 -0
- sp_api/asyncio/api/products/__init__.py +0 -0
- sp_api/asyncio/api/products/products.py +405 -0
- sp_api/asyncio/api/products/products_definitions.py +11 -0
- sp_api/asyncio/api/replenishment/__init__.py +0 -0
- sp_api/asyncio/api/replenishment/replenishment.py +121 -0
- sp_api/asyncio/api/reports/__init__.py +0 -0
- sp_api/asyncio/api/reports/reports.py +439 -0
- sp_api/asyncio/api/sales/__init__.py +0 -0
- sp_api/asyncio/api/sales/sales.py +93 -0
- sp_api/asyncio/api/sellers/__init__.py +0 -0
- sp_api/asyncio/api/sellers/sellers.py +70 -0
- sp_api/asyncio/api/services/__init__.py +0 -0
- sp_api/asyncio/api/services/services.py +218 -0
- sp_api/asyncio/api/shipping/__init__.py +0 -0
- sp_api/asyncio/api/shipping/shipping.py +459 -0
- sp_api/asyncio/api/shipping/shippingV2.py +651 -0
- sp_api/asyncio/api/solicitations/__init__.py +0 -0
- sp_api/asyncio/api/solicitations/solicitations.py +78 -0
- sp_api/asyncio/api/supply_sources/__init__.py +0 -0
- sp_api/asyncio/api/supply_sources/supply_sources.py +138 -0
- sp_api/asyncio/api/tokens/__init__.py +0 -0
- sp_api/asyncio/api/tokens/tokens.py +65 -0
- sp_api/asyncio/api/upload/__init__.py +0 -0
- sp_api/asyncio/api/upload/upload.py +18 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_inventory/__init__.py +0 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +64 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_orders/__init__.py +0 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +196 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_payments/__init__.py +0 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +254 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_shipping/__init__.py +0 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +627 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_transactions/__init__.py +0 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +43 -0
- sp_api/asyncio/api/vendor_invoices/__init__.py +0 -0
- sp_api/asyncio/api/vendor_invoices/vendor_invoices.py +295 -0
- sp_api/asyncio/api/vendor_orders/__init__.py +0 -0
- sp_api/asyncio/api/vendor_orders/vendor_orders.py +210 -0
- sp_api/asyncio/api/vendor_shipments/__init__.py +0 -0
- sp_api/asyncio/api/vendor_shipments/vendor_shipments.py +118 -0
- sp_api/asyncio/api/vendor_transaction_status/__init__.py +0 -0
- sp_api/asyncio/api/vendor_transaction_status/vendor_transaction_status.py +41 -0
- sp_api/asyncio/auth/__init__.py +12 -0
- sp_api/asyncio/auth/access_token_client.py +145 -0
- sp_api/asyncio/auth/exceptions.py +5 -0
- sp_api/asyncio/base/__init__.py +53 -0
- sp_api/asyncio/base/_transport_httpx.py +50 -0
- sp_api/asyncio/base/base_client.py +8 -0
- sp_api/asyncio/base/client.py +169 -0
- sp_api/asyncio/util/__init__.py +29 -0
- sp_api/asyncio/util/key_maker.py +5 -0
- sp_api/asyncio/util/load_all_pages.py +55 -0
- sp_api/asyncio/util/load_date_bound.py +53 -0
- sp_api/asyncio/util/retry.py +88 -0
- sp_api/auth/__init__.py +3 -3
- sp_api/auth/_core.py +39 -0
- sp_api/auth/access_token_client.py +20 -31
- sp_api/auth/access_token_response.py +4 -4
- sp_api/base/ApiResponse.py +5 -4
- sp_api/base/__init__.py +53 -42
- sp_api/base/_core.py +110 -0
- sp_api/base/_transport_httpx.py +39 -0
- sp_api/base/base_client.py +4 -4
- sp_api/base/client.py +131 -112
- sp_api/base/credential_provider.py +41 -34
- sp_api/base/exceptions.py +14 -3
- sp_api/base/feedTypes.py +44 -32
- sp_api/base/fulfillment_channel.py +2 -2
- sp_api/base/helpers.py +17 -16
- sp_api/base/identifiersType.py +8 -8
- sp_api/base/included_data.py +12 -12
- sp_api/base/marketplaces.py +5 -1
- sp_api/base/notifications.py +1 -1
- sp_api/base/processing_status.py +5 -5
- sp_api/base/reportTypes.py +198 -111
- sp_api/base/sales_enum.py +11 -13
- sp_api/util/__init__.py +42 -6
- sp_api/util/key_maker.py +4 -2
- sp_api/util/load_all_pages.py +16 -5
- sp_api/util/load_date_bound.py +28 -13
- sp_api/util/params.py +57 -0
- sp_api/util/product_fees.py +40 -0
- sp_api/util/products_definitions.py +169 -0
- sp_api/util/report_document.py +154 -0
- sp_api/util/retry.py +16 -15
- python_amazon_sp_api-1.7.5.dist-info/RECORD +0 -144
- tests/api/finances/test_finances.py +0 -19
- tests/api/notifications/test_notifications.py +0 -26
- tests/api/orders/test_orders.py +0 -122
- tests/api/product_fees/product_fees.py +0 -49
- tests/api/reports/test_reports.py +0 -127
- tests/client/test_auth.py +0 -59
- tests/client/test_base.py +0 -163
- tests/client/test_credential_provider.py +0 -45
- tests/client/test_helpers.py +0 -142
- {python_amazon_sp_api-1.7.5.dist-info → python_amazon_sp_api-2.0.10.dist-info/licenses}/LICENSE +0 -0
- {tests → sp_api/api/application_integrations}/__init__.py +0 -0
- {tests/api → sp_api/api/customer_feedback}/__init__.py +0 -0
- {tests/api/finances → sp_api/api/easy_ship}/__init__.py +0 -0
- {tests/api/notifications → sp_api/api/external_fulfillment}/__init__.py +0 -0
- {tests/api/orders → sp_api/asyncio}/__init__.py +0 -0
- {tests/api/product_fees → sp_api/asyncio/api/feeds}/__init__.py +0 -0
- {tests/api/reports → sp_api/asyncio/api/finances}/__init__.py +0 -0
- {tests/api/sellers → sp_api/asyncio/api/fulfillment_inbound}/__init__.py +0 -0
- {tests/client → sp_api/asyncio/api/fulfillment_outbound}/__init__.py +0 -0
- /tests/api/sellers/test_sellers.py → /sp_api/asyncio/api/inventories/__init__.py +0 -0
|
@@ -6,13 +6,12 @@ from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
|
6
6
|
class VendorDirectFulfillmentOrders(Client):
|
|
7
7
|
"""
|
|
8
8
|
VendorDirectFulfillmentOrders SP-API Client
|
|
9
|
-
:link:
|
|
9
|
+
:link:
|
|
10
10
|
|
|
11
11
|
The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data.
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
@sp_endpoint('/vendor/directFulfillment/orders/v1/purchaseOrders', method='GET')
|
|
14
|
+
@sp_endpoint("/vendor/directFulfillment/orders/v1/purchaseOrders", method="GET")
|
|
16
15
|
def get_orders(self, **kwargs) -> ApiResponse:
|
|
17
16
|
"""
|
|
18
17
|
get_orders(self, **kwargs) -> ApiResponse
|
|
@@ -42,11 +41,10 @@ class VendorDirectFulfillmentOrders(Client):
|
|
|
42
41
|
Returns:
|
|
43
42
|
ApiResponse:
|
|
44
43
|
"""
|
|
45
|
-
|
|
46
|
-
return self._request(kwargs.pop('path'), params=kwargs)
|
|
47
|
-
|
|
48
44
|
|
|
49
|
-
|
|
45
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
46
|
+
|
|
47
|
+
@sp_endpoint("/vendor/directFulfillment/orders/v1/purchaseOrders/{}", method="GET")
|
|
50
48
|
def get_order(self, purchaseOrderNumber, **kwargs) -> ApiResponse:
|
|
51
49
|
"""
|
|
52
50
|
get_order(self, purchaseOrderNumber, **kwargs) -> ApiResponse
|
|
@@ -69,11 +67,12 @@ class VendorDirectFulfillmentOrders(Client):
|
|
|
69
67
|
Returns:
|
|
70
68
|
ApiResponse:
|
|
71
69
|
"""
|
|
72
|
-
|
|
73
|
-
return self._request(fill_query_params(kwargs.pop('path'), purchaseOrderNumber), params=kwargs)
|
|
74
|
-
|
|
75
70
|
|
|
76
|
-
|
|
71
|
+
return self._request(
|
|
72
|
+
fill_query_params(kwargs.pop("path"), purchaseOrderNumber), params=kwargs
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
@sp_endpoint("/vendor/directFulfillment/orders/v1/acknowledgements", method="POST")
|
|
77
76
|
def submit_acknowledgement(self, **kwargs) -> ApiResponse:
|
|
78
77
|
"""
|
|
79
78
|
submit_acknowledgement(self, **kwargs) -> ApiResponse
|
|
@@ -192,6 +191,5 @@ class VendorDirectFulfillmentOrders(Client):
|
|
|
192
191
|
Returns:
|
|
193
192
|
ApiResponse:
|
|
194
193
|
"""
|
|
195
|
-
|
|
196
|
-
return self._request(kwargs.pop(
|
|
197
|
-
|
|
194
|
+
|
|
195
|
+
return self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
|
|
@@ -6,13 +6,12 @@ from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
|
6
6
|
class VendorDirectFulfillmentPayments(Client):
|
|
7
7
|
"""
|
|
8
8
|
VendorDirectFulfillmentPayments SP-API Client
|
|
9
|
-
:link:
|
|
9
|
+
:link:
|
|
10
10
|
|
|
11
11
|
The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor's invoice data.
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
@sp_endpoint('/vendor/directFulfillment/payments/v1/invoices', method='POST')
|
|
14
|
+
@sp_endpoint("/vendor/directFulfillment/payments/v1/invoices", method="POST")
|
|
16
15
|
def submit_invoice(self, **kwargs) -> ApiResponse:
|
|
17
16
|
"""
|
|
18
17
|
submit_invoice(self, **kwargs) -> ApiResponse
|
|
@@ -250,6 +249,5 @@ class VendorDirectFulfillmentPayments(Client):
|
|
|
250
249
|
Returns:
|
|
251
250
|
ApiResponse:
|
|
252
251
|
"""
|
|
253
|
-
|
|
254
|
-
return self._request(kwargs.pop(
|
|
255
|
-
|
|
252
|
+
|
|
253
|
+
return self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
|
|
@@ -6,13 +6,12 @@ from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
|
6
6
|
class VendorDirectFulfillmentShipping(Client):
|
|
7
7
|
"""
|
|
8
8
|
VendorDirectFulfillmentShipping SP-API Client
|
|
9
|
-
:link:
|
|
9
|
+
:link:
|
|
10
10
|
|
|
11
11
|
The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data.
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
@sp_endpoint('/vendor/directFulfillment/shipping/v1/shippingLabels', method='GET')
|
|
14
|
+
@sp_endpoint("/vendor/directFulfillment/shipping/v1/shippingLabels", method="GET")
|
|
16
15
|
def get_shipping_labels(self, **kwargs) -> ApiResponse:
|
|
17
16
|
"""
|
|
18
17
|
get_shipping_labels(self, **kwargs) -> ApiResponse
|
|
@@ -40,11 +39,10 @@ class VendorDirectFulfillmentShipping(Client):
|
|
|
40
39
|
Returns:
|
|
41
40
|
ApiResponse:
|
|
42
41
|
"""
|
|
43
|
-
|
|
44
|
-
return self._request(kwargs.pop('path'), params=kwargs)
|
|
45
|
-
|
|
46
42
|
|
|
47
|
-
|
|
43
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
44
|
+
|
|
45
|
+
@sp_endpoint("/vendor/directFulfillment/shipping/v1/shippingLabels", method="POST")
|
|
48
46
|
def submit_shipping_label_request(self, **kwargs) -> ApiResponse:
|
|
49
47
|
"""
|
|
50
48
|
submit_shipping_label_request(self, **kwargs) -> ApiResponse
|
|
@@ -180,11 +178,12 @@ class VendorDirectFulfillmentShipping(Client):
|
|
|
180
178
|
Returns:
|
|
181
179
|
ApiResponse:
|
|
182
180
|
"""
|
|
183
|
-
|
|
184
|
-
return self._request(kwargs.pop('path'), data=kwargs, add_marketplace=False)
|
|
185
|
-
|
|
186
181
|
|
|
187
|
-
|
|
182
|
+
return self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
|
|
183
|
+
|
|
184
|
+
@sp_endpoint(
|
|
185
|
+
"/vendor/directFulfillment/shipping/v1/shippingLabels/{}", method="GET"
|
|
186
|
+
)
|
|
188
187
|
def get_shipping_label(self, purchaseOrderNumber, **kwargs) -> ApiResponse:
|
|
189
188
|
"""
|
|
190
189
|
get_shipping_label(self, purchaseOrderNumber, **kwargs) -> ApiResponse
|
|
@@ -208,11 +207,14 @@ class VendorDirectFulfillmentShipping(Client):
|
|
|
208
207
|
Returns:
|
|
209
208
|
ApiResponse:
|
|
210
209
|
"""
|
|
211
|
-
|
|
212
|
-
return self._request(fill_query_params(kwargs.pop('path'), purchaseOrderNumber), params=kwargs)
|
|
213
|
-
|
|
214
210
|
|
|
215
|
-
|
|
211
|
+
return self._request(
|
|
212
|
+
fill_query_params(kwargs.pop("path"), purchaseOrderNumber), params=kwargs
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
@sp_endpoint(
|
|
216
|
+
"/vendor/directFulfillment/shipping/v1/shipmentConfirmations", method="POST"
|
|
217
|
+
)
|
|
216
218
|
def submit_shipment_confirmations(self, **kwargs) -> ApiResponse:
|
|
217
219
|
"""
|
|
218
220
|
submit_shipment_confirmations(self, **kwargs) -> ApiResponse
|
|
@@ -366,11 +368,12 @@ class VendorDirectFulfillmentShipping(Client):
|
|
|
366
368
|
Returns:
|
|
367
369
|
ApiResponse:
|
|
368
370
|
"""
|
|
369
|
-
|
|
370
|
-
return self._request(kwargs.pop('path'), data=kwargs, add_marketplace=False)
|
|
371
|
-
|
|
372
371
|
|
|
373
|
-
|
|
372
|
+
return self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
|
|
373
|
+
|
|
374
|
+
@sp_endpoint(
|
|
375
|
+
"/vendor/directFulfillment/shipping/v1/shipmentStatusUpdates", method="POST"
|
|
376
|
+
)
|
|
374
377
|
def submit_shipment_status_updates(self, **kwargs) -> ApiResponse:
|
|
375
378
|
"""
|
|
376
379
|
submit_shipment_status_updates(self, **kwargs) -> ApiResponse
|
|
@@ -495,11 +498,10 @@ class VendorDirectFulfillmentShipping(Client):
|
|
|
495
498
|
Returns:
|
|
496
499
|
ApiResponse:
|
|
497
500
|
"""
|
|
498
|
-
|
|
499
|
-
return self._request(kwargs.pop('path'), data=kwargs)
|
|
500
|
-
|
|
501
501
|
|
|
502
|
-
|
|
502
|
+
return self._request(kwargs.pop("path"), data=kwargs)
|
|
503
|
+
|
|
504
|
+
@sp_endpoint("/vendor/directFulfillment/shipping/v1/customerInvoices", method="GET")
|
|
503
505
|
def get_customer_invoices(self, **kwargs) -> ApiResponse:
|
|
504
506
|
"""
|
|
505
507
|
get_customer_invoices(self, **kwargs) -> ApiResponse
|
|
@@ -528,10 +530,12 @@ class VendorDirectFulfillmentShipping(Client):
|
|
|
528
530
|
Returns:
|
|
529
531
|
ApiResponse:
|
|
530
532
|
"""
|
|
531
|
-
|
|
532
|
-
return self._request(kwargs.pop('path'), params=kwargs)
|
|
533
533
|
|
|
534
|
-
|
|
534
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
535
|
+
|
|
536
|
+
@sp_endpoint(
|
|
537
|
+
"/vendor/directFulfillment/shipping/v1/customerInvoices/{}", method="GET"
|
|
538
|
+
)
|
|
535
539
|
def get_customer_invoice(self, purchaseOrderNumber, **kwargs) -> ApiResponse:
|
|
536
540
|
"""
|
|
537
541
|
get_customer_invoice(self, purchaseOrderNumber, **kwargs) -> ApiResponse
|
|
@@ -555,11 +559,12 @@ class VendorDirectFulfillmentShipping(Client):
|
|
|
555
559
|
Returns:
|
|
556
560
|
ApiResponse:
|
|
557
561
|
"""
|
|
558
|
-
|
|
559
|
-
return self._request(fill_query_params(kwargs.pop('path'), purchaseOrderNumber), params=kwargs)
|
|
560
|
-
|
|
561
562
|
|
|
562
|
-
|
|
563
|
+
return self._request(
|
|
564
|
+
fill_query_params(kwargs.pop("path"), purchaseOrderNumber), params=kwargs
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
@sp_endpoint("/vendor/directFulfillment/shipping/v1/packingSlips", method="GET")
|
|
563
568
|
def get_packing_slips(self, **kwargs) -> ApiResponse:
|
|
564
569
|
"""
|
|
565
570
|
get_packing_slips(self, **kwargs) -> ApiResponse
|
|
@@ -588,11 +593,10 @@ class VendorDirectFulfillmentShipping(Client):
|
|
|
588
593
|
Returns:
|
|
589
594
|
ApiResponse:
|
|
590
595
|
"""
|
|
591
|
-
|
|
592
|
-
return self._request(kwargs.pop('path'), params=kwargs)
|
|
593
|
-
|
|
594
596
|
|
|
595
|
-
|
|
597
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
598
|
+
|
|
599
|
+
@sp_endpoint("/vendor/directFulfillment/shipping/v1/packingSlips/{}", method="GET")
|
|
596
600
|
def get_packing_slip(self, purchaseOrderNumber, **kwargs) -> ApiResponse:
|
|
597
601
|
"""
|
|
598
602
|
get_packing_slip(self, purchaseOrderNumber, **kwargs) -> ApiResponse
|
|
@@ -616,6 +620,7 @@ class VendorDirectFulfillmentShipping(Client):
|
|
|
616
620
|
Returns:
|
|
617
621
|
ApiResponse:
|
|
618
622
|
"""
|
|
619
|
-
|
|
620
|
-
return self._request(
|
|
621
|
-
|
|
623
|
+
|
|
624
|
+
return self._request(
|
|
625
|
+
fill_query_params(kwargs.pop("path"), purchaseOrderNumber), params=kwargs
|
|
626
|
+
)
|
|
@@ -6,13 +6,14 @@ from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
|
6
6
|
class VendorDirectFulfillmentTransactions(Client):
|
|
7
7
|
"""
|
|
8
8
|
VendorDirectFulfillmentTransactions SP-API Client
|
|
9
|
-
:link:
|
|
9
|
+
:link:
|
|
10
10
|
|
|
11
11
|
The Selling Partner API for Direct Fulfillment Transaction Status provides programmatic access to a direct fulfillment vendor's transaction status.
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
@sp_endpoint(
|
|
15
|
+
"/vendor/directFulfillment/transactions/v1/transactions/{}", method="GET"
|
|
16
|
+
)
|
|
16
17
|
def get_transaction_status(self, transactionId, **kwargs) -> ApiResponse:
|
|
17
18
|
"""
|
|
18
19
|
get_transaction_status(self, transactionId, **kwargs) -> ApiResponse
|
|
@@ -35,6 +36,7 @@ class VendorDirectFulfillmentTransactions(Client):
|
|
|
35
36
|
Returns:
|
|
36
37
|
ApiResponse:
|
|
37
38
|
"""
|
|
38
|
-
|
|
39
|
-
return self._request(
|
|
40
|
-
|
|
39
|
+
|
|
40
|
+
return self._request(
|
|
41
|
+
fill_query_params(kwargs.pop("path"), transactionId), params=kwargs
|
|
42
|
+
)
|
|
@@ -6,12 +6,12 @@ from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
|
6
6
|
class VendorInvoices(Client):
|
|
7
7
|
"""
|
|
8
8
|
VendorInvoices SP-API Client
|
|
9
|
-
:link:
|
|
9
|
+
:link:
|
|
10
10
|
|
|
11
11
|
The Selling Partner API for Retail Procurement Payments provides programmatic access to vendors payments data.
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
@sp_endpoint(
|
|
14
|
+
@sp_endpoint("/vendor/payments/v1/invoices", method="POST")
|
|
15
15
|
def submit_invoices(self, data, **kwargs) -> ApiResponse:
|
|
16
16
|
"""
|
|
17
17
|
submit_invoices(self, data, **kwargs) -> ApiResponse
|
|
@@ -288,5 +288,7 @@ class VendorInvoices(Client):
|
|
|
288
288
|
Returns:
|
|
289
289
|
ApiResponse:
|
|
290
290
|
"""
|
|
291
|
-
|
|
292
|
-
return self._request(
|
|
291
|
+
|
|
292
|
+
return self._request(
|
|
293
|
+
kwargs.pop("path"), data={**data, **kwargs}, add_marketplace=False
|
|
294
|
+
)
|
|
@@ -6,13 +6,12 @@ from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
|
6
6
|
class VendorOrders(Client):
|
|
7
7
|
"""
|
|
8
8
|
VendorOrders SP-API Client
|
|
9
|
-
:link:
|
|
9
|
+
:link:
|
|
10
10
|
|
|
11
11
|
The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
@sp_endpoint('/vendor/orders/v1/purchaseOrders', method='GET')
|
|
14
|
+
@sp_endpoint("/vendor/orders/v1/purchaseOrders", method="GET")
|
|
16
15
|
def get_purchase_orders(self, **kwargs) -> ApiResponse:
|
|
17
16
|
"""
|
|
18
17
|
get_purchase_orders(self, **kwargs) -> ApiResponse
|
|
@@ -46,11 +45,10 @@ class VendorOrders(Client):
|
|
|
46
45
|
Returns:
|
|
47
46
|
ApiResponse:
|
|
48
47
|
"""
|
|
49
|
-
|
|
50
|
-
return self._request(kwargs.pop('path'), params=kwargs)
|
|
51
|
-
|
|
52
48
|
|
|
53
|
-
|
|
49
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
50
|
+
|
|
51
|
+
@sp_endpoint("/vendor/orders/v1/purchaseOrders/{}", method="GET")
|
|
54
52
|
def get_purchase_order(self, purchaseOrderNumber, **kwargs) -> ApiResponse:
|
|
55
53
|
"""
|
|
56
54
|
get_purchase_order(self, purchaseOrderNumber, **kwargs) -> ApiResponse
|
|
@@ -74,11 +72,12 @@ class VendorOrders(Client):
|
|
|
74
72
|
Returns:
|
|
75
73
|
ApiResponse:
|
|
76
74
|
"""
|
|
77
|
-
|
|
78
|
-
return self._request(fill_query_params(kwargs.pop('path'), purchaseOrderNumber), params=kwargs)
|
|
79
|
-
|
|
80
75
|
|
|
81
|
-
|
|
76
|
+
return self._request(
|
|
77
|
+
fill_query_params(kwargs.pop("path"), purchaseOrderNumber), params=kwargs
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
@sp_endpoint("/vendor/orders/v1/acknowledgements", method="POST")
|
|
82
81
|
def submit_acknowledgement(self, **kwargs) -> ApiResponse:
|
|
83
82
|
"""
|
|
84
83
|
submit_acknowledgement(self, **kwargs) -> ApiResponse
|
|
@@ -168,11 +167,10 @@ class VendorOrders(Client):
|
|
|
168
167
|
Returns:
|
|
169
168
|
ApiResponse:
|
|
170
169
|
"""
|
|
171
|
-
|
|
172
|
-
return self._request(kwargs.pop('path'), data=kwargs, add_marketplace=False)
|
|
173
|
-
|
|
174
170
|
|
|
175
|
-
|
|
171
|
+
return self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
|
|
172
|
+
|
|
173
|
+
@sp_endpoint("/vendor/orders/v1/purchaseOrdersStatus", method="GET")
|
|
176
174
|
def get_purchase_orders_status(self, **kwargs) -> ApiResponse:
|
|
177
175
|
"""
|
|
178
176
|
get_purchase_orders_status(self, **kwargs) -> ApiResponse
|
|
@@ -202,11 +200,10 @@ class VendorOrders(Client):
|
|
|
202
200
|
key itemConfirmationStatus:string | Filters purchase orders based on the specified purchase order item status. If not included in filter, purchase orders for all statuses are included.
|
|
203
201
|
key orderingVendorCode:string | Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned.
|
|
204
202
|
key shipToPartyId:string | Filters purchase orders for a specific buyer's Fulfillment Center/warehouse by providing ship to location id here. This value should be same as 'shipToParty.partyId' in the purchase order. If not included in filter, this will return purchase orders for all the buyer's warehouses used for vendor group purchase orders.
|
|
205
|
-
|
|
203
|
+
|
|
206
204
|
|
|
207
205
|
Returns:
|
|
208
206
|
ApiResponse:
|
|
209
207
|
"""
|
|
210
|
-
|
|
211
|
-
return self._request(kwargs.pop(
|
|
212
|
-
|
|
208
|
+
|
|
209
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|