> For the complete documentation index, see [llms.txt](https://help.orderdesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.orderdesk.com/api-documentation/v2-api-reference/inventory-items/get-all-inventory-items.md).

# Get All Inventory Items

Get all the store's inventory items. You can search for which inventory items you'd like to return by passing the values below.

The `search` parameter matches against the name, code, and metadata together. Use `code` when the exact SKU is known.

The `update_source_not` parameter excludes items whose last update came from the named integration. When synchronizing in both directions, passing your own integration slug prevents your own updates from being returned.

```json
{"openapi":"3.0.3","info":{"title":"Order Desk API","version":"2.0"},"tags":[{"name":"Inventory Items"}],"servers":[{"url":"https://app.orderdesk.me/api/v2","description":"Production"}],"security":[{"OrderDeskStoreId":[],"OrderDeskApiKey":[]}],"components":{"securitySchemes":{"OrderDeskStoreId":{"type":"apiKey","in":"header","name":"ORDERDESK-STORE-ID","description":"Your store ID, found under Store Settings on the API tab."}},"schemas":{"DateTime":{"type":"string","description":"Date and time in `YYYY-MM-DD HH:MM:SS` format. UTC unless otherwise stated."},"ResponseEnvelope":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["success","error"],"description":"Either `success` or `error`."},"message":{"type":"string","description":"Describes the result. Always present when an error occurs."},"execution_time":{"type":"string","description":"Time taken to process the request."}}},"InventoryItem":{"description":"A product record, including the SKU, price, cost, weight, and stock count. Order Desk can\ndecrement stock as orders arrive and hold fulfillment when an item is out of stock.\n\nA valid inventory item includes a name and code (SKU). The code is how Order Desk matches an\norder line to an inventory record, so it must match the code that your orders arrive with.\n","allOf":[{"type":"object","properties":{"id":{"type":"integer","readOnly":true}}},{"$ref":"#/components/schemas/InventoryItemFields"},{"type":"object","properties":{"date_added":{"allOf":[{"$ref":"#/components/schemas/DateTime"}],"readOnly":true},"date_updated":{"allOf":[{"$ref":"#/components/schemas/DateTime"}],"readOnly":true}}}]},"InventoryItemFields":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string","description":"Product's unique SKU. This is how Order Desk matches an order line to an inventory\nrecord, so it must match the code that your orders arrive with.\n"},"price":{"type":"number","format":"double"},"cost":{"type":"number","format":"double","description":"Item cost in decimal format."},"weight":{"type":"number","format":"double","description":"The shipping weight of the item."},"stock":{"type":"integer","description":"The number of available units."},"variation_list":{"allOf":[{"$ref":"#/components/schemas/KeyValue"}],"description":"Collection of variations in key/value format, such as `{\"Size\": \"Large\", \"Color\":\n\"Red\"}`.\n"},"metadata":{"allOf":[{"$ref":"#/components/schemas/KeyValue"}],"description":"Collection of special information about the inventory item. Used by some\nintegrations.\n"},"manufacturer_sku":{"type":"string","description":"The SKU used by the manufacturer. This can be used as `print_sku`."},"location":{"type":"string","description":"Warehouse or fulfillment method responsible for the item."},"update_source":{"type":"string","description":"The name of the last system to update the item's details. Setting this allows those\nupdates to be excluded later using the `update_source_not` search parameter.\n"}}},"KeyValue":{"type":"object","additionalProperties":true,"description":"A collection in key/value format. Must be flat, with no nested arrays. Keys must be\nstrings, and values must be strings, numbers, booleans, or null.\n\nWhen the collection is empty, the API returns an empty array (`[]`) rather than an\nempty object. Treat both as \"no entries\" when parsing.\n"}},"responses":{"BadRequest":{"description":"The request was rejected. `message` names the problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEnvelope"}}}},"Unauthorized":{"description":"Authentication failed. See the Authentication guide, and\nnote that an invalid store ID blocks your store rather than simply\nfailing the request.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEnvelope"}}}},"RateLimited":{"description":"You are sending too fast. Wait `X-Retry-After` seconds. See\nthe Rate Limits guide.\n","headers":{"X-Tokens-Remaining":{"description":"Number of request tokens currently available.","schema":{"type":"integer"}},"X-Retry-After":{"description":"Seconds to wait before requests can resume.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEnvelope"}}}},"Error":{"description":"The request could not be completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEnvelope"}}}}}},"paths":{"/inventory-items":{"get":{"tags":["Inventory Items"],"summary":"Get All Inventory Items","description":"Get all the store's inventory items. You can search for which inventory items\nyou'd like to return by passing the values below.\n\nThe `search` parameter matches against the name, code, and metadata together.\nUse `code` when the exact SKU is known.\n\nThe `update_source_not` parameter excludes items whose last update came from the\nnamed integration. When synchronizing in both directions, passing your own\nintegration slug prevents your own updates from being returned.\n","operationId":"listInventoryItems","parameters":[{"name":"id","in":"query","description":"Order Desk's internal ID for the item.","schema":{"type":"integer"}},{"name":"search","in":"query","description":"Search metadata, name, and code for this value.","schema":{"type":"string"}},{"name":"name","in":"query","description":"Product name.","schema":{"type":"string"}},{"name":"code","in":"query","description":"The inventory item's unique SKU.","schema":{"type":"string"}},{"name":"metadata","in":"query","description":"A value that must be found somewhere in the list of the metadata keys and values.\n","schema":{"type":"string"}},{"name":"manufacturer_sku","in":"query","description":"The SKU used by the manufacturer.","schema":{"type":"string"}},{"name":"location","in":"query","description":"The warehouse or fulfillment method responsible for this item.","schema":{"type":"string"}},{"name":"update_source_not","in":"query","description":"The item must not have been updated by this integration. Use the integration slug.\n","schema":{"type":"string"}},{"name":"updated_start_date","in":"query","description":"The earliest date this item was updated in UTC format.","schema":{"$ref":"#/components/schemas/DateTime"}}],"responses":{"200":{"description":"Matching inventory items.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ResponseEnvelope"},{"type":"object","properties":{"total_records":{"type":"integer"},"records_returned":{"type":"integer"},"inventory_items":{"type":"array","items":{"$ref":"#/components/schemas/InventoryItem"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"default":{"$ref":"#/components/responses/Error"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.orderdesk.com/api-documentation/v2-api-reference/inventory-items/get-all-inventory-items.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
