ExternalFulfillmentInventory V2024_09_11
- class sp_api.api.ExternalFulfillmentInventoryV20240911(marketplace: ~sp_api.base.marketplaces.Marketplaces = Marketplaces.US, *, refresh_token=None, account='default', credentials=None, restricted_data_token=None, proxies=None, verify=True, timeout=None, version=None, credential_providers=None, auth_token_client_class=<class 'sp_api.auth.access_token_client.AccessTokenClient'>)
External Fulfillment Inventory API (version 2024-09-11).
- get_inventory(self, locationId, skuId, **kwargs) ApiResponse
Get the current inventory for a given SKU at a given location.
Examples
literal blocks:
ExternalFulfillmentInventoryV20240911().get_inventory("value", "value")
- Parameters:
locationId –
requiredskuId –
required**kwargs
- Returns:
ApiResponse
- update_inventory(self, locationId, skuId, quantity, **kwargs) ApiResponse
Get the current inventory for a given SKU at a given location.
Examples
literal blocks:
ExternalFulfillmentInventoryV20240911().update_inventory("value", "value", "value")
- Parameters:
locationId –
requiredskuId –
requiredquantity –
required**kwargs
- Returns:
ApiResponse
- batch_inventory(self, **kwargs) ApiResponse
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.
Examples
literal blocks:
ExternalFulfillmentInventoryV20240911().batch_inventory()
- Parameters:
body – BatchInventoryRequest | required A list of inventory requests.
- Returns:
ApiResponse