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
@@ -9,35 +9,35 @@ class ExternalFulfillment(Client):
9
9
  :link:
10
10
 
11
11
  The Selling Partner API to work with Amazon External Fulfillment shipments management/processing services.
12
+
13
+ Deprecated: use ExternalFulfillmentInventory, ExternalFulfillmentReturns, and
14
+ ExternalFulfillmentShipping for versioned access. This facade remains for backward compatibility.
12
15
  """
13
16
 
14
17
  @sp_endpoint("/externalFulfillment/2024-09-11/shipments", method="GET")
15
18
  def get_shipments(self, **kwargs) -> ApiResponse:
16
19
  """
17
20
  get_shipments(self, **kwargs) -> ApiResponse
18
-
19
- Get a list of shipments dropped for the seller in the specified status. Shipments can be further filtered based on the fulfillment node and/or shipments' last updated date and time.
20
-
21
- **Usage Plans:**
22
-
23
- ======================================
24
- Rate (requests per second)
25
- ======================================
26
- 5
27
- ======================================
28
-
29
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
30
-
21
+
22
+ Get a list of shipments created for the seller in the status you specify. Shipments can be further filtered based on the fulfillment node or the time of the shipments' last update.
23
+
24
+ Examples:
25
+ literal blocks::
26
+
27
+ ExternalFulfillment().get_shipments()
28
+
31
29
  Args:
32
- key locationId:string | The SmartConnect location identifier for which shipments are to be retrieved
33
- key channelName:string | The channel name associated with the location. Valid values are FBA, MFN
34
- key status*:string | * REQUIRED Retrieves only those shipments which are in the specified status. The most common use-case would be to fetch all new shipments which would be in the ACCEPTED status. Valid values are ACCEPTED, CONFIRMED, PACKAGE_CREATED, PICKUP_SLOT_RETRIEVED, INVOICE_GENERATED, SHIPLABEL_GENERATED, SHIPPED, DELIVERED and CANCELLED.
35
- key lastUpdatedAfter:string | Shipments whose latest update is after the specified date/time are included in the response. This field should be in the ISO8601 date/time format.
36
- key lastUpdatedBefore:string | Shipments whose latest update is before the specified date/time are included in the response. This field should be in the ISO8601 date/time format.
37
- key maxResults:integer | Specify the number of shipments to be included in the response.
38
- key paginationToken:string | The nexToken value returned from a previous call to get shipments. Use this to retrieve the next page of shipments.
30
+ key locationId: object | The Amazon channel location identifier for the shipments you want to retrieve.
31
+ key marketplaceId: object | The marketplace ID associated with the location. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
32
+ key channelName: object | The channel name associated with the location.
33
+ key status: object | required The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `ACCEPTED`.
34
+ key lastUpdatedAfter: object | The response includes shipments whose latest update is after the specified time. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
35
+ key lastUpdatedBefore: object | The response includes shipments whose latest update is before the specified time. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
36
+ key maxResults: object | The maximum number of shipments to include in the response.
37
+ key paginationToken: object | A token that you use to retrieve the next page of results. The response includes `nextToken` when there are multiple pages of results. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
38
+
39
39
  Returns:
40
- ApiResponse:
40
+ ApiResponse
41
41
  """
42
42
 
43
43
  return self._request(kwargs.pop("path"), params=kwargs)
@@ -46,24 +46,19 @@ class ExternalFulfillment(Client):
46
46
  def get_shipment(self, shipmentId, **kwargs) -> ApiResponse:
47
47
  """
48
48
  get_shipment(self, shipmentId, **kwargs) -> ApiResponse
49
-
50
- Get a single shipment with the specified id.
51
-
52
- **Usage Plan:**
53
-
54
- ======================================
55
- Rate (requests per second)
56
- ======================================
57
- 5
58
- ======================================
59
-
60
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
61
-
49
+
50
+ Get a single shipment with the ID you specify.
51
+
52
+ Examples:
53
+ literal blocks::
54
+
55
+ ExternalFulfillment().get_shipment("value")
56
+
62
57
  Args:
63
- shipmentId:string | * REQUIRED The id of the shipment to be retrieved.
64
-
58
+ shipmentId: object | required The ID of the shipment you want to retrieve.
59
+
65
60
  Returns:
66
- ApiResponse:
61
+ ApiResponse
67
62
  """
68
63
  return self._request(
69
64
  fill_query_params(kwargs.pop("path"), shipmentId),
@@ -74,39 +69,22 @@ class ExternalFulfillment(Client):
74
69
  @sp_endpoint("/externalFulfillment/shipments/2021-01-06/shipments/{}", method="POST")
75
70
  def process_shipment(self, shipmentId, operation, **kwargs) -> ApiResponse:
76
71
  """
77
- process_shipment(self, shipmentId, **kwargs) -> ApiResponse
78
-
72
+ process_shipment(self, shipmentId, operation, **kwargs) -> ApiResponse
73
+
79
74
  Confirms/Rejects that a seller will be fulfilling or cancelling the specified shipment.
80
-
81
- **Usage Plan:**
82
-
83
- ======================================
84
- Rate (requests per second)
85
- ======================================
86
- 5
87
- ======================================
88
-
89
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
90
-
75
+
76
+ Examples:
77
+ literal blocks::
78
+
79
+ ExternalFulfillment().process_shipment("value", "value")
80
+
91
81
  Args:
92
- shipmentId:string | * REQUIRED The id of the shipment which is to be confirmed for fulfillment.
93
- operation:string | * REQUIRED The status in which shipment should be moved. Valid values are CONFIRM and REJECT.
94
-
95
- body: {
96
- "referenceId": "string",
97
- "lineItems": [
98
- {
99
- "lineItem": {
100
- "id": "string",
101
- "quantity": 1
102
- },
103
- "reason": "OUT_OF_STOCK"
104
- }
105
- ]
106
- }
107
-
82
+ shipmentId: | required
83
+ operation: | required
84
+ **kwargs:
85
+
108
86
  Returns:
109
- ApiResponse:
87
+ ApiResponse
110
88
  """
111
89
  return self._request(
112
90
  fill_query_params(kwargs.pop("path"), shipmentId),
@@ -120,60 +98,20 @@ class ExternalFulfillment(Client):
120
98
  def create_packages(self, shipmentId, **kwargs) -> ApiResponse:
121
99
  """
122
100
  create_packages(self, shipmentId, **kwargs) -> ApiResponse
123
-
101
+
124
102
  Provides details about the packages that will be used to fulfill the specified shipment.
125
-
126
- **Usage Plan:**
127
-
128
- ======================================
129
- Rate (requests per second)
130
- ======================================
131
- 5
132
- ======================================
133
-
134
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
135
-
103
+
104
+ Examples:
105
+ literal blocks::
106
+
107
+ ExternalFulfillment().create_packages("value")
108
+
136
109
  Args:
137
- shipmentId:string | * REQUIRED The id of the shipment for which package information is being provided.
138
-
139
- body: {
140
- "packages": [
141
- {
142
- "id": "string",
143
- "dimensions": {
144
- "length": {
145
- "value": "string",
146
- "dimensionUnit": "CM"
147
- },
148
- "width": {
149
- "value": "string",
150
- "dimensionUnit": "CM"
151
- },
152
- "height": {
153
- "value": "string",
154
- "dimensionUnit": "CM"
155
- },
156
- },
157
- "weight": {
158
- "value": "string",
159
- "weightUnit": "kilograms"
160
- },
161
- "hazmatLabels": [],
162
- "packageLineItems": [
163
- {
164
- "packageLineItemId": "string",
165
- "quantity": 1,
166
- "serialNumbers": [],
167
- "pieces": 1,
168
- "countryOfOrigin": "ES"
169
- }
170
- ],
171
- "status": "CREATED"
172
- }
173
- ]
174
- }
110
+ shipmentId: | required
111
+ **kwargs:
112
+
175
113
  Returns:
176
- ApiResponse:
114
+ ApiResponse
177
115
  """
178
116
 
179
117
  return self._request(
@@ -186,61 +124,21 @@ class ExternalFulfillment(Client):
186
124
  def update_package(self, shipmentId, packageId, **kwargs) -> ApiResponse:
187
125
  """
188
126
  update_package(self, shipmentId, packageId, **kwargs) -> ApiResponse
189
-
127
+
190
128
  Updates the details about the packages that will be used to fulfill the specified shipment.
191
-
192
- **Usage Plan:**
193
-
194
- ======================================
195
- Rate (requests per second)
196
- ======================================
197
- 5
198
- ======================================
199
-
200
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
201
-
129
+
130
+ Examples:
131
+ literal blocks::
132
+
133
+ ExternalFulfillment().update_package("value", "value")
134
+
202
135
  Args:
203
- shipmentId:string | * REQUIRED The id of the shipment for which package information is being updated.
204
- packageId:string | * REQUIRED The id of the shipment for which package information is being updated.
205
-
206
- body: {
207
- "packages": [
208
- {
209
- "id": "string",
210
- "dimensions": {
211
- "length": {
212
- "value": "string",
213
- "dimensionUnit": "CM"
214
- },
215
- "width": {
216
- "value": "string",
217
- "dimensionUnit": "CM"
218
- },
219
- "height": {
220
- "value": "string",
221
- "dimensionUnit": "CM"
222
- },
223
- },
224
- "weight": {
225
- "value": "string",
226
- "weightUnit": "kilograms"
227
- },
228
- "hazmatLabels": [],
229
- "packageLineItems": [
230
- {
231
- "packageLineItemId": "string",
232
- "quantity": 1,
233
- "serialNumbers": [],
234
- "pieces": 1,
235
- "countryOfOrigin": "ES"
236
- }
237
- ],
238
- "status": "SHIPPED"
239
- }
240
- ]
241
- }
136
+ shipmentId: | required
137
+ packageId: | required
138
+ **kwargs:
139
+
242
140
  Returns:
243
- ApiResponse:
141
+ ApiResponse
244
142
  """
245
143
 
246
144
  return self._request(
@@ -252,33 +150,22 @@ class ExternalFulfillment(Client):
252
150
  @sp_endpoint("/externalFulfillment/shipments/2021-01-06/shipments/{}/packages/{}", method="PATCH")
253
151
  def update_package_status(self, shipmentId, packageId, **kwargs) -> ApiResponse:
254
152
  """
255
- update_package_status(self, shipmentId, **kwargs) -> ApiResponse
256
-
153
+ update_package_status(self, shipmentId, packageId, **kwargs) -> ApiResponse
154
+
257
155
  Updates the status of the packages.
258
-
259
- **Usage Plan:**
260
-
261
- ======================================
262
- Rate (requests per second)
263
- ======================================
264
- 5
265
- ======================================
266
-
267
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
268
-
156
+
157
+ Examples:
158
+ literal blocks::
159
+
160
+ ExternalFulfillment().update_package_status("value", "value")
161
+
269
162
  Args:
270
- shipmentId:string | * REQUIRED The id of the shipment for which package information is being updated.
271
- packageId:string | * REQUIRED The id of the shipment for which package information is being updated.
272
- key status:string | * REQUIRED This field is deprecated. All the package status details should be defined in the body parameter.
273
-
274
- body: {
275
- "status": "SHIPPED",
276
- "subStatus": "OUT_FOR_DELIVERY",
277
- "reason": "OutForDelivery"
278
- }
279
-
163
+ shipmentId: | required
164
+ packageId: | required
165
+ **kwargs:
166
+
280
167
  Returns:
281
- ApiResponse:
168
+ ApiResponse
282
169
  """
283
170
  params = {}
284
171
  if "status" in kwargs:
@@ -296,24 +183,20 @@ class ExternalFulfillment(Client):
296
183
  def generate_invoice(self, shipmentId, **kwargs) -> ApiResponse:
297
184
  """
298
185
  generate_invoice(self, shipmentId, **kwargs) -> ApiResponse
299
-
186
+
300
187
  Generates and retrieves the invoice for the specified shipment.
301
-
302
- **Usage Plan:**
303
-
304
- ======================================
305
- Rate (requests per second)
306
- ======================================
307
- 5
308
- ======================================
309
-
310
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
311
-
188
+
189
+ Examples:
190
+ literal blocks::
191
+
192
+ ExternalFulfillment().generate_invoice("value")
193
+
312
194
  Args:
313
- shipmentId:string | * REQUIRED The id of the shipment whose invoice is to be generated and retrieved.
314
-
195
+ shipmentId: | required
196
+ **kwargs:
197
+
315
198
  Returns:
316
- ApiResponse:
199
+ ApiResponse
317
200
  """
318
201
 
319
202
  return self._request(
@@ -326,25 +209,20 @@ class ExternalFulfillment(Client):
326
209
  def retrieve_invoice(self, shipmentId, **kwargs) -> ApiResponse:
327
210
  """
328
211
  retrieve_invoice(self, shipmentId, **kwargs) -> ApiResponse
329
-
212
+
330
213
  Retrieves invoice for the specified shipment.
331
-
332
- **Usage Plan:**
333
-
334
- ======================================
335
- Rate (requests per second)
336
- ======================================
337
- 5
338
- ======================================
339
-
340
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
341
-
214
+
215
+ Examples:
216
+ literal blocks::
217
+
218
+ ExternalFulfillment().retrieve_invoice("value")
219
+
342
220
  Args:
343
- shipmentId:string | * REQUIRED The id of the shipment whose invoice is to be retrieved.
344
-
221
+ shipmentId: | required
222
+ **kwargs:
223
+
345
224
  Returns:
346
- ApiResponse:
347
-
225
+ ApiResponse
348
226
  """
349
227
 
350
228
  return self._request(
@@ -357,29 +235,25 @@ class ExternalFulfillment(Client):
357
235
  def retrieve_shipping_options(self, shipmentId, packageId, **kwargs) -> ApiResponse:
358
236
  """
359
237
  retrieve_shipping_options(self, shipmentId, packageId, **kwargs) -> ApiResponse
360
-
238
+
361
239
  An API for a client to retrieve an optional list of shippingOptions that marketplace/channel provides
362
- for the pickup of the packages of an shipment. This API will return a list of shippingOptions if the
363
- marketplace/channel provides transportation and allows the seller to choose a shippingOption. If the
364
- marketplace/channel does not allow for a shippingOption to be selected, but has a pre-determined shippingOption,
365
- then this API will return an empty response.
366
-
367
- **Usage Plan:**
368
-
369
- ======================================
370
- Rate (requests per second)
371
- ======================================
372
- 1
373
- ======================================
374
-
375
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
376
-
240
+ for the pickup of the packages of an shipment. This API will return a list of shippingOptions if the
241
+ marketplace/channel provides transportation and allows the seller to choose a shippingOption. If the
242
+ marketplace/channel does not allow for a shippingOption to be selected, but has a pre-determined shippingOption,
243
+ then this API will return an empty response.
244
+
245
+ Examples:
246
+ literal blocks::
247
+
248
+ ExternalFulfillment().retrieve_shipping_options("value", "value")
249
+
377
250
  Args:
378
- shipmentId:string | * REQUIRED The id of the shipment for which available shipping option needs to be fetched.
379
- packageId:string | * REQUIRED The id of the package for which available shipping option needs to be fetched.
380
-
251
+ shipmentId: | required
252
+ packageId: | required
253
+ **kwargs:
254
+
381
255
  Returns:
382
- ApiResponse:
256
+ ApiResponse
383
257
  """
384
258
  params = {"shipmentId": shipmentId, "packageId": packageId}
385
259
  return self._request(kwargs.pop("path"), params=params, add_marketplace=False)
@@ -388,35 +262,21 @@ class ExternalFulfillment(Client):
388
262
  def generate_ship_labels(self, shipmentId, operation, **kwargs) -> ApiResponse:
389
263
  """
390
264
  generate_ship_labels(self, shipmentId, operation, **kwargs) -> ApiResponse
391
-
265
+
392
266
  Generates and retrieves all ship-labels for one or more packages in the specified shipment.
393
-
394
- **Usage Plan:**
395
-
396
- ======================================
397
- Rate (requests per second)
398
- ======================================
399
- 1
400
- ======================================
401
-
402
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
403
-
267
+
268
+ Examples:
269
+ literal blocks::
270
+
271
+ ExternalFulfillment().generate_ship_labels("value", "value")
272
+
404
273
  Args:
405
- shipmentId:string | * REQUIRED The id of the shipment whose ship-label is to be generated and retrieved.
406
- key shippingOptionId:string | The id of the shippingOption for which a ship-label is to be generated and retrieved. Applicable only for MFN channels.
407
- operation:string | * REQUIRED The operation which says it is generation or regeneration of label. Valid values are GENERATE, REGENERATE
408
-
409
- body: {
410
- "packageIds": [
411
- "string"
412
- ],
413
- "courierSupportedAttributes": {
414
- "carrierName": "string",
415
- "trackingId": "string"
416
- }
417
- }
274
+ shipmentId: | required
275
+ operation: | required
276
+ **kwargs:
277
+
418
278
  Returns:
419
- ApiResponse:
279
+ ApiResponse
420
280
  """
421
281
 
422
282
  params = {"operation": operation}
@@ -434,25 +294,21 @@ class ExternalFulfillment(Client):
434
294
  def retrieve_ship_label(self, shipmentId, packageId, **kwargs) -> ApiResponse:
435
295
  """
436
296
  retrieve_ship_label(self, shipmentId, packageId, **kwargs) -> ApiResponse
437
-
297
+
438
298
  retrieves a ship-label for the specified package in the specified shipment.
439
-
440
- **Usage Plan:**
441
-
442
- ======================================
443
- Rate (requests per second)
444
- ======================================
445
- 1
446
- ======================================
447
-
448
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
449
-
299
+
300
+ Examples:
301
+ literal blocks::
302
+
303
+ ExternalFulfillment().retrieve_ship_label("value", "value")
304
+
450
305
  Args:
451
- shipmentId:string | * REQUIRED The id of the shipment whose ship-label is to be generated and retrieved.
452
- packageId:string | * REQUIRED The id of the package for which a ship-label is to be generated and retrieved.
453
-
306
+ shipmentId: | required
307
+ packageId: | required
308
+ **kwargs:
309
+
454
310
  Returns:
455
- ApiResponse:
311
+ ApiResponse
456
312
  """
457
313
 
458
314
  return self._request(
@@ -465,35 +321,19 @@ class ExternalFulfillment(Client):
465
321
  def list_returns(self, **kwargs) -> ApiResponse:
466
322
  """
467
323
  list_returns(self, **kwargs) -> ApiResponse
468
-
324
+
469
325
  Get a list of return items dropped for the seller in the specified node, and in the specified status. Returns can be further filtered based on their creation date/time
470
-
471
- **Usage Plans:**
472
-
473
- ======================================
474
- Rate (requests per second)
475
- ======================================
476
- 5
477
- ======================================
478
-
479
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
480
-
326
+
327
+ Examples:
328
+ literal blocks::
329
+
330
+ ExternalFulfillment().list_returns()
331
+
481
332
  Args:
482
- key returnLocationId:string | The SmartConnect location identifier for which return items are to be retrieved
483
- key rmaId:string | The RMA id of the return items to be listed
484
- key status:string | Retrieves only those return items which are in the specified status. The most common use-case would be to fetch all new return items which would be in the CREATED status
485
- key reverseTrackingId:string | The reverseTrackingId of the return items to be listed
486
- key createdSince:string | Return items whose creation is after the specified date/time are included in the response. This field should be in the ISO8601 date/time format.
487
- key createdUntil:string | Return items whose creation is before the specified date/time are included in the response. This field should be in the ISO8601 date/time format.
488
- key lastUpdatedSince:string | Return items whose last update is after the specified date/time are included in the response. This field should be in the ISO8601 date/time format. Only to be used along with returnLocationId and status params.
489
- key lastUpdatedUntil:string | Return items whose last update is before the specified date/time are included in the response. This field should be in the ISO8601 date/time format. Only to be used along with returnLocationId and status params.
490
- key lastUpdatedAfter:string | DEPRECATED. Use createdFrom param instead for same results. Return items whose creation is after the specified date/time are included in the response. This field should be in the ISO8601 date/time format.
491
- key lastUpdatedBefore:string | DEPRECATED. Use createdTo param instead for same results. Return items whose creation is before the specified date/time are included in the response. This field should be in the ISO8601 date/time format.
492
- key maxResults:integer | Specify the number of return items to be included in the response. It will default to 10 in case not provided. Maximum limit is 100.
493
- key nextToken:string | A cursor representing information about the next page of returns. Use the value returned in previous calls to page through the complete list of returns.
494
-
333
+ **kwargs:
334
+
495
335
  Returns:
496
- ApiResponse:
336
+ ApiResponse
497
337
  """
498
338
 
499
339
  return self._request(kwargs.pop("path"), params=kwargs, add_marketplace=False)
@@ -502,24 +342,20 @@ class ExternalFulfillment(Client):
502
342
  def get_return(self, returnId, **kwargs) -> ApiResponse:
503
343
  """
504
344
  get_return(self, returnId, **kwargs) -> ApiResponse
505
-
345
+
506
346
  Get a single return item with the specified id.
507
-
508
- **Usage Plan:**
509
-
510
- ======================================
511
- Rate (requests per second)
512
- ======================================
513
- 5
514
- ======================================
515
-
516
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
517
-
347
+
348
+ Examples:
349
+ literal blocks::
350
+
351
+ ExternalFulfillment().get_return("value")
352
+
518
353
  Args:
519
- returnId:string | * REQUIRED The id of the return item to be retrieved.
520
-
354
+ returnId: | required
355
+ **kwargs:
356
+
521
357
  Returns:
522
- ApiResponse:
358
+ ApiResponse
523
359
  """
524
360
  return self._request(
525
361
  fill_query_params(kwargs.pop("path"), returnId),
@@ -531,37 +367,20 @@ class ExternalFulfillment(Client):
531
367
  def process_return_item(self, returnId, **kwargs) -> ApiResponse:
532
368
  """
533
369
  process_return_item(self, returnId, **kwargs) -> ApiResponse
534
-
370
+
535
371
  Process a return by grading. Determine the item condition and update the quantities for each item condition.
536
-
537
- **Usage Plan:**
538
-
539
- ======================================
540
- Rate (requests per second)
541
- ======================================
542
- 5
543
- ======================================
544
-
545
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
546
-
372
+
373
+ Examples:
374
+ literal blocks::
375
+
376
+ ExternalFulfillment().process_return_item("value")
377
+
547
378
  Args:
548
- returnId:string | * REQUIRED The id of the return item to be retrieved.
549
-
550
- body: {
551
- "op": "increment",
552
- "path": "/processedReturns",
553
- "value": {
554
- "Sellable": 0,
555
- "Defective": 0,
556
- "CustomerDamaged": 0,
557
- "CarrierDamaged": 0,
558
- "Fraud": 0,
559
- "WrongItem": 0
560
- }
561
- }
562
-
379
+ returnId: | required
380
+ **kwargs:
381
+
563
382
  Returns:
564
- ApiResponse:
383
+ ApiResponse
565
384
  """
566
385
 
567
386
  headers = self.headers.copy()
@@ -581,25 +400,21 @@ class ExternalFulfillment(Client):
581
400
  def get_inventory(self, locationId, skuId, **kwargs) -> ApiResponse:
582
401
  """
583
402
  get_inventory(self, locationId, skuId, **kwargs) -> ApiResponse
584
-
403
+
585
404
  Get the current inventory for a given SKU at a given location.
586
-
587
- **Usage Plan:**
588
-
589
- ======================================
590
- Rate (requests per second)
591
- ======================================
592
- 5
593
- ======================================
594
-
595
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
596
-
405
+
406
+ Examples:
407
+ literal blocks::
408
+
409
+ ExternalFulfillment().get_inventory("value", "value")
410
+
597
411
  Args:
598
- locationId:string | * REQUIRED The node identifier for the seller's location in smart connect for which inventory is being updated
599
- skuId:string | * REQUIRED The seller's identifier for the SKU for which inventory is being updated
600
-
412
+ locationId: | required
413
+ skuId: | required
414
+ **kwargs:
415
+
601
416
  Returns:
602
- ApiResponse:
417
+ ApiResponse
603
418
  """
604
419
  return self._request(
605
420
  fill_query_params(kwargs.pop("path"), locationId, skuId),
@@ -611,28 +426,22 @@ class ExternalFulfillment(Client):
611
426
  def update_inventory(self, locationId, skuId, quantity, **kwargs) -> ApiResponse:
612
427
  """
613
428
  update_inventory(self, locationId, skuId, quantity, **kwargs) -> ApiResponse
614
-
429
+
615
430
  Get the current inventory for a given SKU at a given location.
616
-
617
- **Usage Plan:**
618
-
619
- ======================================
620
- Rate (requests per second)
621
- ======================================
622
- 5
623
- ======================================
624
-
625
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
626
-
431
+
432
+ Examples:
433
+ literal blocks::
434
+
435
+ ExternalFulfillment().update_inventory("value", "value", "value")
436
+
627
437
  Args:
628
- locationId:string | * REQUIRED The node identifier for the seller's location in smart connect for which inventory is being updated
629
- skuId:string | * REQUIRED The seller's identifier for the SKU for which inventory is being updated
630
- quantity:integer | * REQUIRED The absolute number of items of the specified SKU available at the specified node. This value should always be a non-zero or zero positive integer
631
- key if_match:string | A unique number provided with each call to update the inventory. This number must be latest version of entity that exist in system. It will be equal to comparison against existing version of entity.
632
- key if_unmodified_since:string | Timestamp or increasing number which does greater than comparison before applying the change. This is different than version of entity and used to overwrite the latest data. It should follow data/time format of rfc2616
633
-
438
+ locationId: | required
439
+ skuId: | required
440
+ quantity: | required
441
+ **kwargs:
442
+
634
443
  Returns:
635
- ApiResponse:
444
+ ApiResponse
636
445
  """
637
446
  kwargs["quantity"] = quantity
638
447
 
@@ -652,51 +461,19 @@ class ExternalFulfillment(Client):
652
461
  def batch_inventory(self, **kwargs) -> ApiResponse:
653
462
  """
654
463
  batch_inventory(self, **kwargs) -> ApiResponse
655
-
656
- Returns the set of responses that correspond to the batched list of up to 10 requests defined in the request
657
- body. The response for each successful (HTTP status code 200) request in the set includes the inventory count
658
- for provided sku and locationId pair
659
-
660
- **Usage Plan:**
661
-
662
- ======================================
663
- Rate (requests per second)
664
- ======================================
665
- 5
666
- ======================================
667
-
668
- For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
669
-
464
+
465
+ Make up to 10 inventory requests. The response includes the set of responses that correspond to requests. The response for each successful request in the set includes the inventory count for the provided `sku` and `locationId` pair.
466
+
467
+ Examples:
468
+ literal blocks::
469
+
470
+ ExternalFulfillment().batch_inventory()
471
+
670
472
  Args:
671
- body: {
672
- "requests": [
673
- {
674
- "method": "POST",
675
- "uri": "/inventory/update?locationId=EXSB&skuId=efptestsku1",
676
- "body": {
677
- "quantity": 15,
678
- "clientSequenceNumber": 12345678,
679
- "marketplaceAttributes": {
680
- "marketplaceId": "AXJDDKDFDKDF",
681
- "channelName": "FBA"
682
- }
683
- }
684
- },
685
- {
686
- "method": "POST",
687
- "uri": "/inventory/fetch?locationId=EXSB&skuId=efptestsku2",
688
- "body": {
689
- "marketplaceAttributes": {
690
- "marketplaceId": "AXJDDKDFDKDF",
691
- "channelName": "FBA"
692
- }
693
- }
694
- }
695
- ]
696
- }
697
-
473
+ body: BatchInventoryRequest | required A list of inventory requests.
474
+
698
475
  Returns:
699
- ApiResponse:
476
+ ApiResponse
700
477
  """
701
478
 
702
479
  return self._request(