Stock inventory record tracking product availability, quantities, reserved items, and warehouse location. Used for inventory management and stock level monitoring.
https://api.mockly.codes/inventories?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/inventoriesGet a collection of inventory
/commerce/inventories/inventories/:idGet a single inventory by ID
/commerce/inventories/:id/inventories/metaGet resource metadata and schema
/commerce/inventories/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/inventories?q=laptopGET https://api.mockly.codes/inventories?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 inventory
fetch('https://api.mockly.codes/inventories?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/inventories?count=10'
)
data = response.json()curl "https://api.mockly.codes/inventories?count=10"fetch('https://api.mockly.codes/inventories?nocache=true')idintegerUnique identifier for the inventory record
random_intproduct_idintegerForeign key reference to the product this inventory record belongs to
random_intskustringStock Keeping Unit - unique identifier for the specific product variant
uuidquantityintegerCurrent available stock quantity for this product
random_intreservedintegerNumber of units reserved for pending orders or holds
random_intlocationstringWarehouse or storage location where this inventory is stored
citylast_updatedstringTimestamp when the inventory quantity was last updated
past_datedate-timecountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request