Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 4, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 21 additions & 8 deletions 29 mws/mws.py
Original file line number Diff line number Diff line change
Expand Up @@ -1511,8 +1511,10 @@ def list_inbound_shipment_items(


class Inventory(MWS):
"""
Amazon MWS Inventory Fulfillment API
"""Amazon MWS Inventory Fulfillment API

`MWS Docs: Inventory API
<https://docs.developer.amazonservices.com/en_US/fba_inventory/FBAInventory_Overview.html>`_
"""

URI = "/FulfillmentInventory/2010-10-01"
Expand All @@ -1524,24 +1526,35 @@ class Inventory(MWS):

@utils.next_token_action("ListInventorySupply")
def list_inventory_supply(
self, skus=(), datetime_=None, response_group="Basic", next_token=None
self,
skus=(),
datetime_=None,
response_group="Basic",
marketplace_id=None,
next_token=None,
):
"""
Returns information on available inventory
"""Returns information on available inventory

Pass ``next_token`` to call "ListInventorySupplyByNextToken" instead.

`MWS Docs: ListInventorySupply
<https://docs.developer.amazonservices.com/en_US/fba_inventory/FBAInventory_ListInventorySupply.html>`_
"""

data = dict(
Action="ListInventorySupply",
QueryStartDateTime=datetime_,
ResponseGroup=response_group,
MarketplaceId=marketplace_id,
)
data.update(utils.enumerate_param("SellerSkus.member.", skus))
return self.make_request(data, "POST")

def list_inventory_supply_by_next_token(self, token):
"""
Deprecated.
Use `list_inventory_supply(next_token=token)` instead.
"""Alias for ``list_inventory_supply(next_token=token)``

`MWS Docs: ListInventorySupplyByNextToken
<https://docs.developer.amazonservices.com/en_US/fba_inventory/FBAInventory_ListInventorySupplyByNextToken.html>`_
"""
# data = dict(Action='ListInventorySupplyByNextToken', NextToken=token)
# return self.make_request(data, "POST")
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.