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
|
@@ -36,36 +36,33 @@ class Reports(AsyncBaseClient):
|
|
|
36
36
|
async def get_reports(self, **kwargs) -> ApiResponse:
|
|
37
37
|
"""
|
|
38
38
|
get_reports(self, **kwargs) -> ApiResponse
|
|
39
|
-
|
|
39
|
+
|
|
40
40
|
Returns report details for the reports that match the filters that you specify.
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
**Usage Plan:**
|
|
43
|
-
|
|
43
|
+
|
|
44
44
|
====================================== ==============
|
|
45
45
|
Rate (requests per second) Burst
|
|
46
46
|
====================================== ==============
|
|
47
47
|
0.0222 10
|
|
48
48
|
====================================== ==============
|
|
49
|
-
|
|
49
|
+
|
|
50
50
|
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
Examples:
|
|
53
53
|
literal blocks::
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
res = Reports().get_reports(reportTypes=report_types, processingStatuses=processing_status)
|
|
58
|
-
|
|
54
|
+
|
|
55
|
+
await Reports().get_reports()
|
|
56
|
+
|
|
59
57
|
Args:
|
|
60
|
-
key reportTypes:
|
|
61
|
-
key processingStatuses:
|
|
62
|
-
key marketplaceIds:
|
|
63
|
-
key pageSize:
|
|
64
|
-
key createdSince:
|
|
65
|
-
key
|
|
66
|
-
key nextToken:
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
key reportTypes: object | A list of report types used to filter reports. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required.
|
|
59
|
+
key processingStatuses: object | A list of processing statuses used to filter reports.
|
|
60
|
+
key marketplaceIds: object | A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify.
|
|
61
|
+
key pageSize: object | The maximum number of reports to return in a single call.
|
|
62
|
+
key createdSince: object | The earliest report creation date and time for reports to include in the response, in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> date time format. The default is 90 days ago. Reports are retained for a maximum of 90 days.
|
|
63
|
+
key createdUntil: object | The latest report creation date and time for reports to include in the response, in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> date time format. The default is now.
|
|
64
|
+
key nextToken: object | A string token returned in the response to your previous request. `nextToken` is returned when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the `getReports` operation and include this token as the only parameter. Specifying `nextToken` with any other parameters will cause the request to fail.
|
|
65
|
+
|
|
69
66
|
Returns:
|
|
70
67
|
ApiResponse
|
|
71
68
|
"""
|
|
@@ -84,36 +81,27 @@ class Reports(AsyncBaseClient):
|
|
|
84
81
|
async def create_report(self, **kwargs) -> ApiResponse:
|
|
85
82
|
"""
|
|
86
83
|
create_report(self, **kwargs) -> ApiResponse
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
84
|
+
|
|
85
|
+
Creates a report.
|
|
86
|
+
|
|
91
87
|
**Usage Plan:**
|
|
92
|
-
|
|
88
|
+
|
|
93
89
|
====================================== ==============
|
|
94
90
|
Rate (requests per second) Burst
|
|
95
91
|
====================================== ==============
|
|
96
92
|
0.0167 15
|
|
97
93
|
====================================== ==============
|
|
98
|
-
|
|
94
|
+
|
|
95
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
96
|
+
|
|
99
97
|
Examples:
|
|
100
98
|
literal blocks::
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
dataStartTime='2019-12-10T20:11:24.000Z',
|
|
105
|
-
marketplaceIds=[
|
|
106
|
-
"A1PA6795UKMFR9",
|
|
107
|
-
"ATVPDKIKX0DER"
|
|
108
|
-
])
|
|
109
|
-
|
|
99
|
+
|
|
100
|
+
await Reports().create_report()
|
|
101
|
+
|
|
110
102
|
Args:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
key dataStartTime: optional The start of a date and time range, in ISO 8601 date time format, used for selecting the data to report. The default is now. The value must be prior to or equal to the current date and time. Not all report types make use of this. string (date-time)
|
|
114
|
-
key dataEndTime: optional The end of a date and time range, in ISO 8601 date time format, used for selecting the data to report. The default is now. The value must be prior to or equal to the current date and time. Not all report types make use of this. string (date-time)
|
|
115
|
-
key marketplaceIds: optional, defaults to the client's marketplace A list of marketplace identifiers. The report document's contents will contain data for all of the specified marketplaces, unless the report type indicates otherwise. < string > array
|
|
116
|
-
|
|
103
|
+
body: CreateReportSpecification | required Information required to create the report.
|
|
104
|
+
|
|
117
105
|
Returns:
|
|
118
106
|
ApiResponse
|
|
119
107
|
"""
|
|
@@ -124,24 +112,29 @@ class Reports(AsyncBaseClient):
|
|
|
124
112
|
async def cancel_report(self, reportId, **kwargs) -> ApiResponse:
|
|
125
113
|
"""
|
|
126
114
|
cancel_report(self, reportId, **kwargs) -> ApiResponse
|
|
127
|
-
|
|
128
|
-
Cancels the report that you specify. Only reports with processingStatus=IN_QUEUE can be cancelled. Cancelled reports are returned in subsequent calls to the getReport and getReports operations.
|
|
129
|
-
|
|
115
|
+
|
|
116
|
+
Cancels the report that you specify. Only reports with `processingStatus=IN_QUEUE` can be cancelled. Cancelled reports are returned in subsequent calls to the `getReport` and `getReports` operations.
|
|
117
|
+
|
|
130
118
|
**Usage Plan:**
|
|
131
|
-
|
|
119
|
+
|
|
132
120
|
====================================== ==============
|
|
133
121
|
Rate (requests per second) Burst
|
|
134
122
|
====================================== ==============
|
|
135
|
-
0.
|
|
123
|
+
0.0222 10
|
|
136
124
|
====================================== ==============
|
|
137
|
-
|
|
125
|
+
|
|
138
126
|
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
139
|
-
|
|
127
|
+
|
|
128
|
+
Examples:
|
|
129
|
+
literal blocks::
|
|
130
|
+
|
|
131
|
+
await Reports().cancel_report("value")
|
|
132
|
+
|
|
140
133
|
Args:
|
|
141
|
-
reportId:
|
|
142
|
-
|
|
134
|
+
reportId: object | required The identifier for the report. This identifier is unique only in combination with a seller ID.
|
|
135
|
+
|
|
143
136
|
Returns:
|
|
144
|
-
ApiResponse
|
|
137
|
+
ApiResponse
|
|
145
138
|
"""
|
|
146
139
|
|
|
147
140
|
return await self._request(
|
|
@@ -151,31 +144,30 @@ class Reports(AsyncBaseClient):
|
|
|
151
144
|
@sp_endpoint("/reports/2021-06-30/reports/{}", method="GET")
|
|
152
145
|
async def get_report(self, reportId, **kwargs) -> ApiResponse:
|
|
153
146
|
"""
|
|
154
|
-
get_report(self,
|
|
155
|
-
|
|
156
|
-
|
|
147
|
+
get_report(self, reportId, **kwargs) -> ApiResponse
|
|
148
|
+
|
|
149
|
+
Returns report details (including the `reportDocumentId`, if available) for the report that you specify.
|
|
150
|
+
|
|
157
151
|
**Usage Plan:**
|
|
158
|
-
|
|
152
|
+
|
|
159
153
|
====================================== ==============
|
|
160
154
|
Rate (requests per second) Burst
|
|
161
155
|
====================================== ==============
|
|
162
156
|
2 15
|
|
163
157
|
====================================== ==============
|
|
164
|
-
|
|
165
|
-
|
|
158
|
+
|
|
166
159
|
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
167
|
-
|
|
160
|
+
|
|
168
161
|
Examples:
|
|
169
162
|
literal blocks::
|
|
170
|
-
|
|
171
|
-
Reports().get_report(
|
|
172
|
-
|
|
163
|
+
|
|
164
|
+
await Reports().get_report("value")
|
|
165
|
+
|
|
173
166
|
Args:
|
|
174
|
-
reportId:
|
|
175
|
-
|
|
167
|
+
reportId: object | required The identifier for the report. This identifier is unique only in combination with a seller ID.
|
|
168
|
+
|
|
176
169
|
Returns:
|
|
177
170
|
ApiResponse
|
|
178
|
-
|
|
179
171
|
"""
|
|
180
172
|
|
|
181
173
|
return await self._request(
|
|
@@ -185,21 +177,28 @@ class Reports(AsyncBaseClient):
|
|
|
185
177
|
@sp_endpoint("/reports/2021-06-30/schedules", method="GET")
|
|
186
178
|
async def get_report_schedules(self, **kwargs) -> ApiResponse:
|
|
187
179
|
"""
|
|
180
|
+
get_report_schedules(self, **kwargs) -> ApiResponse
|
|
181
|
+
|
|
188
182
|
Returns report schedule details that match the filters that you specify.
|
|
189
|
-
|
|
183
|
+
|
|
190
184
|
**Usage Plan:**
|
|
191
|
-
|
|
185
|
+
|
|
192
186
|
====================================== ==============
|
|
193
187
|
Rate (requests per second) Burst
|
|
194
188
|
====================================== ==============
|
|
195
189
|
0.0222 10
|
|
196
190
|
====================================== ==============
|
|
197
|
-
|
|
191
|
+
|
|
198
192
|
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
199
|
-
|
|
193
|
+
|
|
194
|
+
Examples:
|
|
195
|
+
literal blocks::
|
|
196
|
+
|
|
197
|
+
await Reports().get_report_schedules()
|
|
198
|
+
|
|
200
199
|
Args:
|
|
201
|
-
key reportTypes:
|
|
202
|
-
|
|
200
|
+
key reportTypes: object | required A list of report types used to filter report schedules. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information.
|
|
201
|
+
|
|
203
202
|
Returns:
|
|
204
203
|
ApiResponse
|
|
205
204
|
"""
|
|
@@ -211,34 +210,29 @@ class Reports(AsyncBaseClient):
|
|
|
211
210
|
async def create_report_schedule(self, **kwargs) -> ApiResponse:
|
|
212
211
|
"""
|
|
213
212
|
create_report_schedule(self, **kwargs) -> ApiResponse
|
|
214
|
-
|
|
213
|
+
|
|
215
214
|
Creates a report schedule. If a report schedule with the same report type and marketplace IDs already exists, it will be cancelled and replaced with this one.
|
|
216
|
-
|
|
215
|
+
|
|
217
216
|
**Usage Plan:**
|
|
218
|
-
|
|
217
|
+
|
|
219
218
|
====================================== ==============
|
|
220
219
|
Rate (requests per second) Burst
|
|
221
220
|
====================================== ==============
|
|
222
221
|
0.0222 10
|
|
223
222
|
====================================== ==============
|
|
224
|
-
|
|
223
|
+
|
|
224
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
225
|
+
|
|
225
226
|
Examples:
|
|
226
227
|
literal blocks::
|
|
227
|
-
|
|
228
|
-
Reports().create_report_schedule(
|
|
229
|
-
|
|
230
|
-
nextReportCreationTime="2019-12-10T20:11:24.000Z",
|
|
231
|
-
marketplaceIds=["A1PA6795UKMFR9", "ATVPDKIKX0DER"])
|
|
232
|
-
|
|
228
|
+
|
|
229
|
+
await Reports().create_report_schedule()
|
|
230
|
+
|
|
233
231
|
Args:
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
key reportOptions: dict
|
|
237
|
-
key period: Schedules
|
|
238
|
-
key nextReportCreationTime: str datetime isoformat
|
|
239
|
-
|
|
232
|
+
body: CreateReportScheduleSpecification | required Information required to create the report schedule.
|
|
233
|
+
|
|
240
234
|
Returns:
|
|
241
|
-
ApiResponse
|
|
235
|
+
ApiResponse
|
|
242
236
|
"""
|
|
243
237
|
|
|
244
238
|
return await self._request(kwargs.pop("path"), data=kwargs)
|
|
@@ -247,28 +241,27 @@ class Reports(AsyncBaseClient):
|
|
|
247
241
|
async def cancel_report_schedule(self, reportScheduleId, **kwargs) -> ApiResponse:
|
|
248
242
|
"""
|
|
249
243
|
cancel_report_schedule(self, reportScheduleId, **kwargs) -> ApiResponse
|
|
250
|
-
|
|
244
|
+
|
|
251
245
|
Cancels the report schedule that you specify.
|
|
252
|
-
|
|
246
|
+
|
|
253
247
|
**Usage Plan:**
|
|
254
|
-
|
|
248
|
+
|
|
255
249
|
====================================== ==============
|
|
256
250
|
Rate (requests per second) Burst
|
|
257
251
|
====================================== ==============
|
|
258
252
|
0.0222 10
|
|
259
253
|
====================================== ==============
|
|
260
|
-
|
|
254
|
+
|
|
261
255
|
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
262
|
-
|
|
256
|
+
|
|
263
257
|
Examples:
|
|
264
258
|
literal blocks::
|
|
265
|
-
|
|
266
|
-
Reports().cancel_report_schedule(
|
|
267
|
-
|
|
259
|
+
|
|
260
|
+
await Reports().cancel_report_schedule("value")
|
|
261
|
+
|
|
268
262
|
Args:
|
|
269
|
-
reportScheduleId:
|
|
270
|
-
|
|
271
|
-
|
|
263
|
+
reportScheduleId: object | required The identifier for the report schedule. This identifier is unique only in combination with a seller ID.
|
|
264
|
+
|
|
272
265
|
Returns:
|
|
273
266
|
ApiResponse
|
|
274
267
|
"""
|
|
@@ -278,29 +271,20 @@ class Reports(AsyncBaseClient):
|
|
|
278
271
|
|
|
279
272
|
def delete_report_schedule(self, reportScheduleId, **kwargs) -> ApiResponse:
|
|
280
273
|
"""
|
|
274
|
+
delete_report_schedule(self, reportScheduleId, **kwargs) -> ApiResponse
|
|
275
|
+
|
|
281
276
|
cancel_report_schedule(self, reportScheduleId, **kwargs) -> ApiResponse
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
**Usage Plan:**
|
|
286
|
-
|
|
287
|
-
====================================== ==============
|
|
288
|
-
Rate (requests per second) Burst
|
|
289
|
-
====================================== ==============
|
|
290
|
-
0.0222 10
|
|
291
|
-
====================================== ==============
|
|
292
|
-
|
|
293
|
-
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
294
|
-
|
|
277
|
+
Cancels the report schedule that you specify.
|
|
278
|
+
|
|
295
279
|
Examples:
|
|
296
280
|
literal blocks::
|
|
297
|
-
|
|
298
|
-
Reports().
|
|
299
|
-
|
|
281
|
+
|
|
282
|
+
Reports().delete_report_schedule("value")
|
|
283
|
+
|
|
300
284
|
Args:
|
|
301
|
-
reportScheduleId:
|
|
302
|
-
kwargs:
|
|
303
|
-
|
|
285
|
+
reportScheduleId: | required
|
|
286
|
+
**kwargs:
|
|
287
|
+
|
|
304
288
|
Returns:
|
|
305
289
|
ApiResponse
|
|
306
290
|
"""
|
|
@@ -310,28 +294,27 @@ class Reports(AsyncBaseClient):
|
|
|
310
294
|
async def get_report_schedule(self, reportScheduleId, **kwargs) -> ApiResponse:
|
|
311
295
|
"""
|
|
312
296
|
get_report_schedule(self, reportScheduleId, **kwargs) -> ApiResponse
|
|
313
|
-
|
|
297
|
+
|
|
314
298
|
Returns report schedule details for the report schedule that you specify.
|
|
315
|
-
|
|
299
|
+
|
|
316
300
|
**Usage Plan:**
|
|
317
|
-
|
|
301
|
+
|
|
318
302
|
====================================== ==============
|
|
319
303
|
Rate (requests per second) Burst
|
|
320
304
|
====================================== ==============
|
|
321
305
|
0.0222 10
|
|
322
306
|
====================================== ==============
|
|
323
|
-
|
|
307
|
+
|
|
324
308
|
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
325
|
-
|
|
309
|
+
|
|
326
310
|
Examples:
|
|
327
311
|
literal blocks::
|
|
328
|
-
|
|
329
|
-
Reports().get_report_schedule(
|
|
330
|
-
|
|
312
|
+
|
|
313
|
+
await Reports().get_report_schedule("value")
|
|
314
|
+
|
|
331
315
|
Args:
|
|
332
|
-
reportScheduleId:
|
|
333
|
-
|
|
334
|
-
|
|
316
|
+
reportScheduleId: object | required The identifier for the report schedule. This identifier is unique only in combination with a seller ID.
|
|
317
|
+
|
|
335
318
|
Returns:
|
|
336
319
|
ApiResponse
|
|
337
320
|
"""
|
|
@@ -351,47 +334,31 @@ class Reports(AsyncBaseClient):
|
|
|
351
334
|
**kwargs
|
|
352
335
|
) -> ApiResponse:
|
|
353
336
|
"""
|
|
354
|
-
get_report_document(self,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
If file is set to a file (or file like object), the report's contents are written to the file
|
|
359
|
-
|
|
360
|
-
|
|
337
|
+
get_report_document(self, reportDocumentId, download, file, character_code, stream, timeout, **kwargs) -> ApiResponse
|
|
338
|
+
|
|
339
|
+
Returns the information required for retrieving a report document's contents.
|
|
340
|
+
|
|
361
341
|
**Usage Plan:**
|
|
362
|
-
|
|
363
|
-
|
|
342
|
+
|
|
364
343
|
====================================== ==============
|
|
365
344
|
Rate (requests per second) Burst
|
|
366
345
|
====================================== ==============
|
|
367
346
|
0.0167 15
|
|
368
347
|
====================================== ==============
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
348
|
+
|
|
372
349
|
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
373
|
-
|
|
350
|
+
|
|
374
351
|
Examples:
|
|
375
352
|
literal blocks::
|
|
376
|
-
|
|
377
|
-
Reports().get_report_document(
|
|
378
|
-
|
|
353
|
+
|
|
354
|
+
await Reports().get_report_document("value", "value", "value", "value", "value", "value")
|
|
355
|
+
|
|
379
356
|
Args:
|
|
380
|
-
reportDocumentId:
|
|
381
|
-
|
|
382
|
-
file: If passed, will save the document to the file specified.
|
|
383
|
-
Only valid if decrypt=True
|
|
384
|
-
character_code: If passed, will be a file with the specified character code.
|
|
385
|
-
The default is the Content-Encoding in the response while
|
|
386
|
-
obtaining the document from the document URL.
|
|
387
|
-
It fallbacks to 'iso-8859-1' if no encoding was found.
|
|
388
|
-
Only valid if decrypt=True.
|
|
389
|
-
stream: bool | if True and file is provided, stream the document to disk
|
|
390
|
-
timeout: int | optional, the timeout for the request to download the document
|
|
391
|
-
|
|
357
|
+
reportDocumentId: object | required The identifier for the report document.
|
|
358
|
+
|
|
392
359
|
Returns:
|
|
393
|
-
|
|
394
|
-
"""
|
|
360
|
+
ApiResponse
|
|
361
|
+
"""
|
|
395
362
|
res = await self._request(
|
|
396
363
|
fill_query_params(kwargs.pop("path"), reportDocumentId),
|
|
397
364
|
add_marketplace=False,
|
|
@@ -21,45 +21,21 @@ class Sales(AsyncBaseClient):
|
|
|
21
21
|
**kwargs
|
|
22
22
|
) -> ApiResponse:
|
|
23
23
|
"""
|
|
24
|
-
get_order_metrics(self, interval
|
|
25
|
-
|
|
24
|
+
get_order_metrics(self, interval, granularity, granularityTimeZone, **kwargs) -> ApiResponse
|
|
25
|
+
|
|
26
26
|
Returns aggregated order metrics for given interval, broken down by granularity, for given buyer type.
|
|
27
|
-
|
|
28
|
-
**Usage Plan:**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
====================================== ==============
|
|
32
|
-
Rate (requests per second) Burst
|
|
33
|
-
====================================== ==============
|
|
34
|
-
0.5 15
|
|
35
|
-
====================================== ==============
|
|
36
|
-
|
|
37
|
-
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
38
|
-
|
|
27
|
+
|
|
39
28
|
Examples:
|
|
40
29
|
literal blocks::
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
Sales().get_order_metrics(interval, Granularity.TOTAL, granularityTimeZone='US/Central')
|
|
46
|
-
Sales().get_order_metrics(interval, Granularity.DAY, granularityTimeZone='US/Central')
|
|
47
|
-
Sales().get_order_metrics(interval, Granularity.TOTAL, granularityTimeZone='US/Central', asin='B008OLKVEW')
|
|
48
|
-
Sales().get_order_metrics(interval, Granularity.DAY, granularityTimeZone='US/Central', asin='B008OLKVEW')
|
|
49
|
-
|
|
50
|
-
|
|
30
|
+
|
|
31
|
+
await Sales().get_order_metrics("value", "value", "value")
|
|
32
|
+
|
|
51
33
|
Args:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
key firstDayOfWeek: str | Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. enum (FirstDayOfWeek) "Monday"
|
|
58
|
-
key asin: str | Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN. string -
|
|
59
|
-
key sku: str | Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU.
|
|
60
|
-
granularityTimeZone: str
|
|
61
|
-
|
|
62
|
-
|
|
34
|
+
interval: | required
|
|
35
|
+
granularity: | required
|
|
36
|
+
granularityTimeZone: | required
|
|
37
|
+
**kwargs:
|
|
38
|
+
|
|
63
39
|
Returns:
|
|
64
40
|
ApiResponse
|
|
65
41
|
"""
|
|
@@ -79,13 +55,20 @@ class Sales(AsyncBaseClient):
|
|
|
79
55
|
@staticmethod
|
|
80
56
|
def _create_datetime_stamp(datetime_obj: datetime or str):
|
|
81
57
|
"""
|
|
58
|
+
_create_datetime_stamp(datetime_obj) -> ApiResponse
|
|
59
|
+
|
|
82
60
|
Create datetimestring
|
|
83
|
-
|
|
61
|
+
|
|
62
|
+
Examples:
|
|
63
|
+
literal blocks::
|
|
64
|
+
|
|
65
|
+
Sales()._create_datetime_stamp("value")
|
|
66
|
+
|
|
84
67
|
Args:
|
|
85
|
-
datetime_obj:
|
|
86
|
-
|
|
68
|
+
datetime_obj: | required
|
|
69
|
+
|
|
87
70
|
Returns:
|
|
88
|
-
|
|
71
|
+
ApiResponse
|
|
89
72
|
"""
|
|
90
73
|
if isinstance(datetime_obj, str):
|
|
91
74
|
return datetime_obj
|
|
File without changes
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
from typing import Any, Literal, TYPE_CHECKING, overload
|
|
5
|
+
from sp_api.util.versioned_client import VersionedClientMeta
|
|
6
|
+
|
|
7
|
+
from sp_api.asyncio.base import AsyncBaseClient
|
|
8
|
+
|
|
9
|
+
from .seller_wallet_2024_03_01 import SellerWalletV20240301
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class SellerWalletVersion(str, enum.Enum):
|
|
13
|
+
V_2024_03_01 = "2024-03-01"
|
|
14
|
+
LATEST = "2024-03-01"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
if TYPE_CHECKING:
|
|
18
|
+
|
|
19
|
+
class _SellerWalletMeta(VersionedClientMeta):
|
|
20
|
+
@overload
|
|
21
|
+
def __call__(
|
|
22
|
+
cls,
|
|
23
|
+
*args: Any,
|
|
24
|
+
version: Literal[SellerWalletVersion.V_2024_03_01, SellerWalletVersion.LATEST, "2024-03-01"],
|
|
25
|
+
**kwargs: Any,
|
|
26
|
+
) -> SellerWalletV20240301: ...
|
|
27
|
+
|
|
28
|
+
@overload
|
|
29
|
+
def __call__(
|
|
30
|
+
cls,
|
|
31
|
+
*args: Any,
|
|
32
|
+
version: None = None,
|
|
33
|
+
**kwargs: Any,
|
|
34
|
+
) -> SellerWalletV20240301: ...
|
|
35
|
+
|
|
36
|
+
@overload
|
|
37
|
+
def __call__(
|
|
38
|
+
cls,
|
|
39
|
+
*args: Any,
|
|
40
|
+
version: str | SellerWalletVersion,
|
|
41
|
+
**kwargs: Any,
|
|
42
|
+
) -> AsyncBaseClient: ...
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
else:
|
|
46
|
+
_SellerWalletMeta = VersionedClientMeta
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class SellerWallet(AsyncBaseClient, metaclass=_SellerWalletMeta):
|
|
50
|
+
"""SellerWallet API client.
|
|
51
|
+
|
|
52
|
+
This class dispatches to a versioned SellerWallet API client.
|
|
53
|
+
|
|
54
|
+
If you do not pass a version, the constructor returns the oldest supported implementation ("2024-03-01").
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
if TYPE_CHECKING:
|
|
58
|
+
@overload
|
|
59
|
+
def __new__(
|
|
60
|
+
cls,
|
|
61
|
+
*args: Any,
|
|
62
|
+
version: Literal[SellerWalletVersion.V_2024_03_01, SellerWalletVersion.LATEST, "2024-03-01"],
|
|
63
|
+
**kwargs: Any,
|
|
64
|
+
) -> SellerWalletV20240301: ...
|
|
65
|
+
|
|
66
|
+
@overload
|
|
67
|
+
def __new__(
|
|
68
|
+
cls,
|
|
69
|
+
*args: Any,
|
|
70
|
+
version: None = None,
|
|
71
|
+
**kwargs: Any,
|
|
72
|
+
) -> SellerWalletV20240301: ...
|
|
73
|
+
|
|
74
|
+
@overload
|
|
75
|
+
def __new__(
|
|
76
|
+
cls,
|
|
77
|
+
*args: Any,
|
|
78
|
+
version: str | SellerWalletVersion,
|
|
79
|
+
**kwargs: Any,
|
|
80
|
+
) -> AsyncBaseClient: ...
|
|
81
|
+
|
|
82
|
+
_DISPATCH = True
|
|
83
|
+
|
|
84
|
+
_DEFAULT_VERSION = "2024-03-01"
|
|
85
|
+
|
|
86
|
+
_VERSION_MAP = {
|
|
87
|
+
"2024-03-01": SellerWalletV20240301,
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
_VERSION_ALIASES = {
|
|
91
|
+
"2024-03-01": "2024-03-01",
|
|
92
|
+
}
|