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.
Files changed (214) hide show
  1. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/METADATA +7 -7
  2. python_amazon_sp_api-2.1.3.dist-info/RECORD +350 -0
  3. sp_api/__version__.py +1 -1
  4. sp_api/api/__init__.py +160 -4
  5. sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +85 -110
  6. sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu_2024_05_09.py +456 -0
  7. sp_api/api/aplus_content/aplus_content.py +176 -125
  8. sp_api/api/application_integrations/application_integrations.py +59 -68
  9. sp_api/api/application_management/application_management.py +20 -13
  10. sp_api/api/authorization/authorization.py +8 -26
  11. sp_api/api/catalog/catalog.py +27 -61
  12. sp_api/api/catalog_items/catalog_items.py +108 -78
  13. sp_api/api/catalog_items/catalog_items_2020_12_01.py +86 -0
  14. sp_api/api/catalog_items/catalog_items_2022_04_01.py +89 -0
  15. sp_api/api/customer_feedback/customer_feedback.py +100 -0
  16. sp_api/api/data_kiosk/data_kiosk.py +80 -75
  17. sp_api/api/delivery_by_amazon/__init__.py +0 -0
  18. sp_api/api/delivery_by_amazon/delivery_by_amazon.py +92 -0
  19. sp_api/api/delivery_by_amazon/delivery_by_amazon_2022_07_01.py +81 -0
  20. sp_api/api/easy_ship/easy_ship.py +121 -111
  21. sp_api/api/external_fulfillment/external_fulfillment.py +211 -434
  22. sp_api/api/external_fulfillment/inventory.py +120 -0
  23. sp_api/api/external_fulfillment/inventory_2021_01_06.py +71 -0
  24. sp_api/api/external_fulfillment/inventory_2024_09_11.py +96 -0
  25. sp_api/api/external_fulfillment/returns.py +120 -0
  26. sp_api/api/external_fulfillment/returns_2021_08_19.py +88 -0
  27. sp_api/api/external_fulfillment/returns_2024_09_11.py +141 -0
  28. sp_api/api/external_fulfillment/shipping.py +120 -0
  29. sp_api/api/external_fulfillment/shipping_2021_01_06.py +256 -0
  30. sp_api/api/external_fulfillment/shipping_2024_09_11.py +233 -0
  31. sp_api/api/fba_inbound_eligibility/fba_inbound_eligibility.py +30 -24
  32. sp_api/api/fba_small_and_light/fba_small_and_light.py +60 -99
  33. sp_api/api/feeds/feeds.py +75 -245
  34. sp_api/api/feeds/feeds_2021_06_30.py +320 -0
  35. sp_api/api/finances/finances.py +123 -90
  36. sp_api/api/finances/finances_2024_06_01.py +71 -0
  37. sp_api/api/finances/finances_2024_06_19.py +114 -0
  38. sp_api/api/finances/finances_v0.py +116 -0
  39. sp_api/api/fulfillment_inbound/fulfillment_inbound.py +107 -1784
  40. sp_api/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py +1722 -0
  41. sp_api/api/fulfillment_inbound/fulfillment_inbound_v0.py +1384 -0
  42. sp_api/api/fulfillment_outbound/fulfillment_outbound.py +256 -480
  43. sp_api/api/inventories/inventories.py +79 -42
  44. sp_api/api/invoices/__init__.py +0 -0
  45. sp_api/api/invoices/invoices.py +92 -0
  46. sp_api/api/invoices/invoices_2024_06_19.py +344 -0
  47. sp_api/api/listings_items/listings_items.py +110 -163
  48. sp_api/api/listings_items/listings_items_2020_09_01.py +189 -0
  49. sp_api/api/listings_items/listings_items_2021_08_01.py +233 -0
  50. sp_api/api/listings_restrictions/listings_restrictions.py +23 -10
  51. sp_api/api/merchant_fulfillment/merchant_fulfillment.py +107 -222
  52. sp_api/api/messaging/messaging.py +184 -198
  53. sp_api/api/notifications/notifications.py +144 -106
  54. sp_api/api/orders/orders.py +9 -46
  55. sp_api/api/orders/orders_2026_01_01.py +19 -65
  56. sp_api/api/orders/orders_v0.py +152 -184
  57. sp_api/api/product_fees/product_fees.py +101 -75
  58. sp_api/api/product_type_definitions/product_type_definitions.py +47 -36
  59. sp_api/api/products/products.py +94 -386
  60. sp_api/api/products/products_2022_05_01.py +96 -0
  61. sp_api/api/products/products_v0.py +389 -0
  62. sp_api/api/replenishment/replenishment.py +58 -69
  63. sp_api/api/reports/reports.py +124 -157
  64. sp_api/api/sales/sales.py +22 -39
  65. sp_api/api/seller_wallet/__init__.py +0 -0
  66. sp_api/api/seller_wallet/seller_wallet.py +92 -0
  67. sp_api/api/seller_wallet/seller_wallet_2024_03_01.py +300 -0
  68. sp_api/api/sellers/sellers.py +15 -35
  69. sp_api/api/services/services.py +479 -82
  70. sp_api/api/shipment_invoicing/__init__.py +0 -0
  71. sp_api/api/shipment_invoicing/shipment_invoicing.py +92 -0
  72. sp_api/api/shipment_invoicing/shipment_invoicing_v0.py +101 -0
  73. sp_api/api/shipping/shipping.py +94 -440
  74. sp_api/api/shipping/shippingV2.py +183 -474
  75. sp_api/api/shipping/shipping_v1.py +330 -0
  76. sp_api/api/shipping/shipping_v2.py +723 -0
  77. sp_api/api/solicitations/solicitations.py +28 -18
  78. sp_api/api/supply_sources/supply_sources.py +67 -57
  79. sp_api/api/tokens/tokens.py +14 -35
  80. sp_api/api/vehicles/__init__.py +0 -0
  81. sp_api/api/vehicles/vehicles.py +92 -0
  82. sp_api/api/vehicles/vehicles_2024_11_01.py +33 -0
  83. sp_api/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +16 -29
  84. sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +116 -189
  85. sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py +114 -0
  86. sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_v1.py +114 -0
  87. sp_api/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +15 -225
  88. sp_api/api/vendor_direct_fulfillment_sandbox_test_data/__init__.py +0 -0
  89. sp_api/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data.py +92 -0
  90. sp_api/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.py +50 -0
  91. sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +122 -624
  92. sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_2021_12_28.py +390 -0
  93. sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_v1.py +320 -0
  94. sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +113 -29
  95. sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_2021_12_28.py +47 -0
  96. sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_v1.py +47 -0
  97. sp_api/api/vendor_invoices/vendor_invoices.py +15 -264
  98. sp_api/api/vendor_orders/vendor_orders.py +83 -131
  99. sp_api/api/vendor_shipments/vendor_shipments.py +149 -68
  100. sp_api/api/vendor_transaction_status/vendor_transaction_status.py +16 -11
  101. sp_api/asyncio/api/__init__.py +159 -4
  102. sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +84 -110
  103. sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu_2024_05_09.py +457 -0
  104. sp_api/asyncio/api/aplus_content/aplus_content.py +176 -125
  105. sp_api/asyncio/api/application_integrations/application_integrations.py +59 -68
  106. sp_api/asyncio/api/application_management/application_management.py +20 -13
  107. sp_api/asyncio/api/authorization/authorization.py +8 -26
  108. sp_api/asyncio/api/catalog/catalog.py +27 -61
  109. sp_api/asyncio/api/catalog_items/catalog_items.py +94 -71
  110. sp_api/asyncio/api/catalog_items/catalog_items_2020_12_01.py +87 -0
  111. sp_api/asyncio/api/catalog_items/catalog_items_2022_04_01.py +90 -0
  112. sp_api/asyncio/api/customer_feedback/customer_feedback.py +100 -0
  113. sp_api/asyncio/api/data_kiosk/data_kiosk.py +80 -75
  114. sp_api/asyncio/api/delivery_by_amazon/__init__.py +0 -0
  115. sp_api/asyncio/api/delivery_by_amazon/delivery_by_amazon.py +92 -0
  116. sp_api/asyncio/api/delivery_by_amazon/delivery_by_amazon_2022_07_01.py +82 -0
  117. sp_api/asyncio/api/easy_ship/easy_ship.py +121 -111
  118. sp_api/asyncio/api/external_fulfillment/external_fulfillment.py +212 -435
  119. sp_api/asyncio/api/external_fulfillment/inventory.py +126 -0
  120. sp_api/asyncio/api/external_fulfillment/inventory_2021_01_06.py +73 -0
  121. sp_api/asyncio/api/external_fulfillment/inventory_2024_09_11.py +98 -0
  122. sp_api/asyncio/api/external_fulfillment/returns.py +124 -0
  123. sp_api/asyncio/api/external_fulfillment/returns_2021_08_19.py +90 -0
  124. sp_api/asyncio/api/external_fulfillment/returns_2024_09_11.py +143 -0
  125. sp_api/asyncio/api/external_fulfillment/shipping.py +124 -0
  126. sp_api/asyncio/api/external_fulfillment/shipping_2021_01_06.py +258 -0
  127. sp_api/asyncio/api/external_fulfillment/shipping_2024_09_11.py +235 -0
  128. sp_api/asyncio/api/fba_inbound_eligibility/fba_inbound_eligibility.py +31 -25
  129. sp_api/asyncio/api/fba_small_and_light/fba_small_and_light.py +61 -100
  130. sp_api/asyncio/api/feeds/feeds.py +75 -243
  131. sp_api/asyncio/api/feeds/feeds_2021_06_30.py +318 -0
  132. sp_api/asyncio/api/finances/finances.py +123 -91
  133. sp_api/asyncio/api/finances/finances_2024_06_01.py +72 -0
  134. sp_api/asyncio/api/finances/finances_2024_06_19.py +115 -0
  135. sp_api/asyncio/api/finances/finances_v0.py +117 -0
  136. sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound.py +107 -1785
  137. sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py +1723 -0
  138. sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound_v0.py +1385 -0
  139. sp_api/asyncio/api/fulfillment_outbound/fulfillment_outbound.py +257 -481
  140. sp_api/asyncio/api/inventories/inventories.py +79 -42
  141. sp_api/asyncio/api/invoices/__init__.py +0 -0
  142. sp_api/asyncio/api/invoices/invoices.py +92 -0
  143. sp_api/asyncio/api/invoices/invoices_2024_06_19.py +345 -0
  144. sp_api/asyncio/api/listings_items/listings_items.py +109 -163
  145. sp_api/asyncio/api/listings_items/listings_items_2020_09_01.py +190 -0
  146. sp_api/asyncio/api/listings_items/listings_items_2021_08_01.py +233 -0
  147. sp_api/asyncio/api/listings_restrictions/listings_restrictions.py +23 -10
  148. sp_api/asyncio/api/merchant_fulfillment/merchant_fulfillment.py +110 -222
  149. sp_api/asyncio/api/messaging/messaging.py +185 -199
  150. sp_api/asyncio/api/notifications/notifications.py +145 -107
  151. sp_api/asyncio/api/orders/orders.py +9 -46
  152. sp_api/asyncio/api/orders/orders_2026_01_01.py +19 -65
  153. sp_api/asyncio/api/orders/orders_v0.py +152 -184
  154. sp_api/asyncio/api/product_fees/product_fees.py +101 -75
  155. sp_api/asyncio/api/product_type_definitions/product_type_definitions.py +47 -36
  156. sp_api/asyncio/api/products/products.py +94 -387
  157. sp_api/asyncio/api/products/products_2022_05_01.py +109 -0
  158. sp_api/asyncio/api/products/products_v0.py +388 -0
  159. sp_api/asyncio/api/replenishment/replenishment.py +59 -70
  160. sp_api/asyncio/api/reports/reports.py +124 -157
  161. sp_api/asyncio/api/sales/sales.py +22 -39
  162. sp_api/asyncio/api/seller_wallet/__init__.py +0 -0
  163. sp_api/asyncio/api/seller_wallet/seller_wallet.py +92 -0
  164. sp_api/asyncio/api/seller_wallet/seller_wallet_2024_03_01.py +301 -0
  165. sp_api/asyncio/api/sellers/sellers.py +16 -36
  166. sp_api/asyncio/api/services/services.py +479 -82
  167. sp_api/asyncio/api/shipment_invoicing/__init__.py +0 -0
  168. sp_api/asyncio/api/shipment_invoicing/shipment_invoicing.py +92 -0
  169. sp_api/asyncio/api/shipment_invoicing/shipment_invoicing_v0.py +102 -0
  170. sp_api/asyncio/api/shipping/shipping.py +94 -441
  171. sp_api/asyncio/api/shipping/shippingV2.py +181 -472
  172. sp_api/asyncio/api/shipping/shipping_v1.py +331 -0
  173. sp_api/asyncio/api/shipping/shipping_v2.py +717 -0
  174. sp_api/asyncio/api/solicitations/solicitations.py +29 -19
  175. sp_api/asyncio/api/supply_sources/supply_sources.py +67 -57
  176. sp_api/asyncio/api/tokens/tokens.py +14 -35
  177. sp_api/asyncio/api/vehicles/__init__.py +0 -0
  178. sp_api/asyncio/api/vehicles/vehicles.py +92 -0
  179. sp_api/asyncio/api/vehicles/vehicles_2024_11_01.py +34 -0
  180. sp_api/asyncio/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +16 -29
  181. sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +120 -192
  182. sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py +116 -0
  183. sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_v1.py +115 -0
  184. sp_api/asyncio/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +15 -225
  185. sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/__init__.py +0 -0
  186. sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data.py +92 -0
  187. sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.py +51 -0
  188. sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +120 -623
  189. sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_2021_12_28.py +392 -0
  190. sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_v1.py +321 -0
  191. sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +112 -29
  192. sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_2021_12_28.py +49 -0
  193. sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_v1.py +48 -0
  194. sp_api/asyncio/api/vendor_invoices/vendor_invoices.py +16 -265
  195. sp_api/asyncio/api/vendor_orders/vendor_orders.py +84 -132
  196. sp_api/asyncio/api/vendor_shipments/vendor_shipments.py +150 -69
  197. sp_api/asyncio/api/vendor_transaction_status/vendor_transaction_status.py +17 -12
  198. sp_api/asyncio/base/client.py +2 -2
  199. sp_api/asyncio/util/load_date_bound.py +1 -1
  200. sp_api/base/__init__.py +10 -0
  201. sp_api/base/_core.py +2 -2
  202. sp_api/base/client.py +3 -3
  203. sp_api/base/helpers.py +12 -1
  204. sp_api/base/marketplaces.py +6 -3
  205. sp_api/util/__init__.py +2 -0
  206. sp_api/util/load_date_bound.py +1 -1
  207. sp_api/util/versioned_client.py +45 -0
  208. python_amazon_sp_api-2.0.15.dist-info/RECORD +0 -255
  209. sp_api/asyncio/api/models/__init__.py +0 -4
  210. sp_api/asyncio/api/overrides/__init__.py +0 -1
  211. {python_amazon_sp_api-2.0.15.data → python_amazon_sp_api-2.1.3.data}/scripts/make_endpoint +0 -0
  212. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/WHEEL +0 -0
  213. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/licenses/LICENSE +0 -0
  214. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/top_level.txt +0 -0
@@ -12,62 +12,21 @@ class MerchantFulfillment(Client):
12
12
  self, shipment_request_details: dict, **kwargs
13
13
  ) -> ApiResponse:
14
14
  """
15
- get_eligible_shipment_services_old(self, shipment_request_details: dict, **kwargs) -> ApiResponse
15
+ get_eligible_shipment_services_old(self, shipment_request_details, **kwargs) -> ApiResponse
16
+
16
17
  Returns a list of shipping service offers that satisfy the specified shipment request details.
17
-
18
- **Usage Plan:**
19
-
20
- ====================================== ==============
21
- Rate (requests per second) Burst
22
- ====================================== ==============
23
- 1 1
24
- ====================================== ==============
25
-
26
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
27
-
18
+
28
19
  Examples:
29
20
  literal blocks::
30
-
31
- MerchantFulfillment().get_eligible_shipment_services_old({
32
- "AmazonOrderId": "903-5563053-5647845",
33
- "ItemList": [
34
- {
35
- "OrderItemId": "52986411826454",
36
- "Quantity": 1
37
- }
38
- ],
39
- "ShipFromAddress": {
40
- "Name": "John Doe",
41
- "AddressLine1": "300 Turnbull Ave",
42
- "Email": "jdoeasdfllkj@yahoo.com",
43
- "City": "Detroit",
44
- "StateOrProvinceCode": "MI",
45
- "PostalCode": "48123",
46
- "CountryCode": "US",
47
- "Phone": "7132341234"
48
- },
49
- "PackageDimensions": {
50
- "Length": 10,
51
- "Width": 10,
52
- "Height": 10,
53
- "Unit": "inches"
54
- },
55
- "Weight": {
56
- "Value": 10,
57
- "Unit": "oz"
58
- },
59
- "ShippingServiceOptions": {
60
- "DeliveryExperience": "NoTracking",
61
- "CarrierWillPickUp": False,
62
- "CarrierWillPickUpOption": "ShipperWillDropOff"
63
- }
64
- })
65
-
21
+
22
+ MerchantFulfillment().get_eligible_shipment_services_old("value")
23
+
66
24
  Args:
67
- shipment_request_details: dict:
68
-
25
+ shipment_request_details: | required
26
+ **kwargs:
27
+
69
28
  Returns:
70
- GetEligibleShipmentServicesResponse:
29
+ ApiResponse
71
30
  """
72
31
  # GetEligibleShipmentServicesRequest
73
32
  data = {"ShipmentRequestDetails": shipment_request_details, **kwargs}
@@ -79,62 +38,30 @@ class MerchantFulfillment(Client):
79
38
  self, shipment_request_details: dict, **kwargs
80
39
  ) -> ApiResponse:
81
40
  """
82
- get_eligible_shipment_services(self, shipment_request_details: dict, **kwargs) -> ApiResponse
41
+ get_eligible_shipment_services(self, shipment_request_details, **kwargs) -> ApiResponse
42
+
83
43
  Returns a list of shipping service offers that satisfy the specified shipment request details.
84
-
44
+
85
45
  **Usage Plan:**
86
-
46
+
87
47
  ====================================== ==============
88
48
  Rate (requests per second) Burst
89
49
  ====================================== ==============
90
- 1 1
50
+ 6 12
91
51
  ====================================== ==============
92
-
52
+
93
53
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
94
-
54
+
95
55
  Examples:
96
56
  literal blocks::
97
-
98
- MerchantFulfillment().get_eligible_shipment_services({
99
- "AmazonOrderId": "903-5563053-5647845",
100
- "ItemList": [
101
- {
102
- "OrderItemId": "52986411826454",
103
- "Quantity": 1
104
- }
105
- ],
106
- "ShipFromAddress": {
107
- "Name": "John Doe",
108
- "AddressLine1": "300 Turnbull Ave",
109
- "Email": "jdoeasdfllkj@yahoo.com",
110
- "City": "Detroit",
111
- "StateOrProvinceCode": "MI",
112
- "PostalCode": "48123",
113
- "CountryCode": "US",
114
- "Phone": "7132341234"
115
- },
116
- "PackageDimensions": {
117
- "Length": 10,
118
- "Width": 10,
119
- "Height": 10,
120
- "Unit": "inches"
121
- },
122
- "Weight": {
123
- "Value": 10,
124
- "Unit": "oz"
125
- },
126
- "ShippingServiceOptions": {
127
- "DeliveryExperience": "NoTracking",
128
- "CarrierWillPickUp": False,
129
- "CarrierWillPickUpOption": "ShipperWillDropOff"
130
- }
131
- })
132
-
57
+
58
+ MerchantFulfillment().get_eligible_shipment_services("value")
59
+
133
60
  Args:
134
- shipment_request_details: dict:
135
-
61
+ body: GetEligibleShipmentServicesRequest | required The request schema for the `GetEligibleShipmentServices` operation.
62
+
136
63
  Returns:
137
- GetEligibleShipmentServicesResponse:
64
+ ApiResponse
138
65
  """
139
66
 
140
67
  # GetEligibleShipmentServicesRequest
@@ -145,29 +72,21 @@ class MerchantFulfillment(Client):
145
72
  @sp_endpoint("/mfn/v0/shipments/{}")
146
73
  def get_shipment(self, shipment_id: str, **kwargs) -> ApiResponse:
147
74
  """
148
- get_shipment(self, shipmentId:str) -> ApiResponse
149
- Returns a specified item and its attributes.
150
-
151
- **Usage Plan:**
152
-
153
- ====================================== ==============
154
- Rate (requests per second) Burst
155
- ====================================== ==============
156
- 1 1
157
- ====================================== ==============
158
-
159
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
160
-
75
+ get_shipment(self, shipment_id, **kwargs) -> ApiResponse
76
+
77
+ Returns the shipment information for an existing shipment.
78
+
161
79
  Examples:
162
80
  literal blocks::
163
-
164
- MerchantFulfillment().get_shipment("abcddcba-00c3-4f6f-a63a-639f76ee9253")
165
-
81
+
82
+ MerchantFulfillment().get_shipment("value")
83
+
166
84
  Args:
167
- shipment_id: str:
168
-
85
+ shipment_id: | required
86
+ **kwargs:
87
+
169
88
  Returns:
170
- GetShipmentResponse:
89
+ ApiResponse
171
90
  """
172
91
  return self._request(
173
92
  fill_query_params(kwargs.pop("path"), shipment_id),
@@ -178,24 +97,30 @@ class MerchantFulfillment(Client):
178
97
  @sp_endpoint("/mfn/v0/shipments/{}", method="DELETE")
179
98
  def cancel_shipment(self, shipment_id: str, **kwargs) -> ApiResponse:
180
99
  """
181
- cancel_shipment(self, shipment_id: str, **kwargs) -> ApiResponse
100
+ cancel_shipment(self, shipment_id, **kwargs) -> ApiResponse
101
+
182
102
  Cancel the shipment indicated by the specified shipment identifier.
183
-
103
+
184
104
  **Usage Plan:**
185
-
105
+
186
106
  ====================================== ==============
187
107
  Rate (requests per second) Burst
188
108
  ====================================== ==============
189
109
  1 1
190
110
  ====================================== ==============
191
-
111
+
192
112
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
193
-
113
+
114
+ Examples:
115
+ literal blocks::
116
+
117
+ MerchantFulfillment().cancel_shipment("value")
118
+
194
119
  Args:
195
- shipment_id: str:
196
-
120
+ shipmentId: object | required The Amazon-defined shipment identifier for the shipment to cancel.
121
+
197
122
  Returns:
198
- CancelShipmentResponse:
123
+ ApiResponse
199
124
  """
200
125
  return self._request(
201
126
  fill_query_params(kwargs.pop("path"), shipment_id),
@@ -206,24 +131,21 @@ class MerchantFulfillment(Client):
206
131
  @sp_endpoint("/mfn/v0/shipments/{}/cancel", method="PUT")
207
132
  def cancel_shipment_old(self, shipment_id: str, **kwargs) -> ApiResponse:
208
133
  """
209
- cancel_shipment_old(self, shipment_id: str, **kwargs) -> ApiResponse
134
+ cancel_shipment_old(self, shipment_id, **kwargs) -> ApiResponse
135
+
210
136
  Cancel the shipment indicated by the specified shipment identifer.
211
-
212
- **Usage Plan:**
213
-
214
- ====================================== ==============
215
- Rate (requests per second) Burst
216
- ====================================== ==============
217
- 1 1
218
- ====================================== ==============
219
-
220
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
221
-
137
+
138
+ Examples:
139
+ literal blocks::
140
+
141
+ MerchantFulfillment().cancel_shipment_old("value")
142
+
222
143
  Args:
223
- shipment_id: str:
224
-
144
+ shipment_id: | required
145
+ **kwargs:
146
+
225
147
  Returns:
226
- CancelShipmentResponse:
148
+ ApiResponse
227
149
  """
228
150
  return self._request(
229
151
  fill_query_params(kwargs.pop("path"), shipment_id),
@@ -236,70 +158,30 @@ class MerchantFulfillment(Client):
236
158
  self, shipment_request_details: dict, shipping_service_id: str, **kwargs
237
159
  ) -> ApiResponse:
238
160
  """
239
- create_shipment(self, shipment_request_details: dict, shipping_service_id: str, **kwargs) -> ApiResponse
161
+ create_shipment(self, shipment_request_details, shipping_service_id, **kwargs) -> ApiResponse
162
+
240
163
  Create a shipment with the information provided.
241
-
164
+
242
165
  **Usage Plan:**
243
-
166
+
244
167
  ====================================== ==============
245
168
  Rate (requests per second) Burst
246
169
  ====================================== ==============
247
- 1 1
170
+ 2 2
248
171
  ====================================== ==============
249
-
172
+
250
173
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
251
-
174
+
252
175
  Examples:
253
176
  literal blocks::
254
-
255
- MerchantFulfillment().create_shipment(
256
- shipment_request_details={
257
- "AmazonOrderId": "903-5563053-5647845",
258
- "ItemList": [
259
- {
260
- "OrderItemId": "52986411826454",
261
- "Quantity": 1
262
- }
263
- ],
264
- "ShipFromAddress": {
265
- "Name": "John Doe",
266
- "AddressLine1": "300 Turnbull Ave",
267
- "Email": "jdoeasdfllkj@yahoo.com",
268
- "City": "Detroit",
269
- "StateOrProvinceCode": "MI",
270
- "PostalCode": "48123",
271
- "CountryCode": "US",
272
- "Phone": "7132341234"
273
- },
274
- "PackageDimensions": {
275
- "Length": 10,
276
- "Width": 10,
277
- "Height": 10,
278
- "Unit": "inches"
279
- },
280
- "Weight": {
281
- "Value": 10,
282
- "Unit": "oz"
283
- },
284
- "ShippingServiceOptions": {
285
- "DeliveryExperience": "NoTracking",
286
- "CarrierWillPickUp": False,
287
- "CarrierWillPickUpOption": "ShipperWillDropOff"
288
- }
289
- },
290
- shipping_service_id="UPS_PTP_2ND_DAY_AIR",
291
- ShippingServiceOfferId="WHgxtyn6qjGGaCzOCog1azF5HLHje5Pz3Lc2Fmt5eKoZAReW8oJ1SMumuBS8lA/Hjuglhyiu0"
292
- "+KRLvyJxFV0PB9YFMDhygs3VyTL0WGYkGxiuRkmuEvpqldUn9rrkWVodqnR4vx2VtXvtER"
293
- "/Ju6RqYoddJZGy6RS2KLzzhQ2NclN0NYXMZVqpOe5RsRBddXaGuJr7oza3M52"
294
- "+JzChocAHzcurIhCRynpbxfmNLzZMQEbgnpGLzuaoSMzfxg90/NaXFR/Ou01du/uKd5AbfMW"
295
- "/AxAKP9ht6Oi9lDHq6WkGqvjkVLW0/jj/fBgblIwcs+t"
296
- )
297
-
177
+
178
+ MerchantFulfillment().create_shipment("value", "value")
179
+
298
180
  Args:
299
- shipment_request_details: dict
300
- shipping_service_id: str:
181
+ body: CreateShipmentRequest | required The request schema for the `CreateShipment` operation.
182
+
301
183
  Returns:
302
- CreateShipmentResponse:
184
+ ApiResponse
303
185
  """
304
186
 
305
187
  # CreateShipmentRequest
@@ -315,27 +197,23 @@ class MerchantFulfillment(Client):
315
197
  self, shipping_service_id: str, ship_from_address: dict, order_id: str, **kwargs
316
198
  ) -> ApiResponse:
317
199
  """
318
- get_additional_seller_inputs_old(self, shipping_service_id: str, ship_from_address: dict, order_id: str,
319
- **kwargs) -> ApiResponse
320
- Get a list of additional seller inputs required for a ship method. This is generally
321
- used for international shipping.
322
-
323
- **Usage Plan:**
324
-
325
- ====================================== ==============
326
- Rate (requests per second) Burst
327
- ====================================== ==============
328
- 1 1
329
- ====================================== ==============
330
-
331
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
332
-
200
+ get_additional_seller_inputs_old(self, shipping_service_id, ship_from_address, order_id, **kwargs) -> ApiResponse
201
+
202
+ Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping.
203
+
204
+ Examples:
205
+ literal blocks::
206
+
207
+ MerchantFulfillment().get_additional_seller_inputs_old("value", "value", "value")
208
+
333
209
  Args:
334
- shipping_service_id: str
335
- ship_from_address: dict
336
- order_id: str:
210
+ shipping_service_id: | required
211
+ ship_from_address: | required
212
+ order_id: | required
213
+ **kwargs:
214
+
337
215
  Returns:
338
- GetAdditionalSellerInputsResponse:
216
+ ApiResponse
339
217
  """
340
218
 
341
219
  # GetAdditionalSellerInputsRequest
@@ -343,6 +221,8 @@ class MerchantFulfillment(Client):
343
221
  "ShippingServiceId": shipping_service_id,
344
222
  "ShipFromAddress": ship_from_address,
345
223
  "OrderId": order_id,
224
+ **{k: v for k, v in kwargs.items() if k not in {"path", "method"}},
225
+ "method": kwargs.get("method", "POST"),
346
226
  }
347
227
  return self._request(kwargs.pop("path"), data=data, add_marketplace=False)
348
228
 
@@ -351,27 +231,30 @@ class MerchantFulfillment(Client):
351
231
  self, shipping_service_id: str, ship_from_address: dict, order_id: str, **kwargs
352
232
  ) -> ApiResponse:
353
233
  """
354
- get_additional_seller_inputs(self, shipping_service_id: str, ship_from_address: dict, order_id: str,
355
- **kwargs) -> ApiResponse
356
- Gets a list of additional seller inputs required for a ship method. This is
357
- generally used for international shipping.
358
-
234
+ get_additional_seller_inputs(self, shipping_service_id, ship_from_address, order_id, **kwargs) -> ApiResponse
235
+
236
+ Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping.
237
+
359
238
  **Usage Plan:**
360
-
239
+
361
240
  ====================================== ==============
362
241
  Rate (requests per second) Burst
363
242
  ====================================== ==============
364
243
  1 1
365
244
  ====================================== ==============
366
-
245
+
367
246
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
368
-
247
+
248
+ Examples:
249
+ literal blocks::
250
+
251
+ MerchantFulfillment().get_additional_seller_inputs("value", "value", "value")
252
+
369
253
  Args:
370
- shipping_service_id: str
371
- ship_from_address: dict
372
- order_id: str:
254
+ body: GetAdditionalSellerInputsRequest | required The request schema for the `GetAdditionalSellerInputs` operation.
255
+
373
256
  Returns:
374
- GetAdditionalSellerInputsResponse:
257
+ ApiResponse
375
258
  """
376
259
 
377
260
  # GetAdditionalSellerInputsRequest
@@ -379,5 +262,7 @@ class MerchantFulfillment(Client):
379
262
  "ShippingServiceId": shipping_service_id,
380
263
  "ShipFromAddress": ship_from_address,
381
264
  "OrderId": order_id,
265
+ **{k: v for k, v in kwargs.items() if k not in {"path", "method"}},
266
+ "method": kwargs.get("method", "POST"),
382
267
  }
383
268
  return self._request(kwargs.pop("path"), data=data, add_marketplace=False)