Fetch API (v3.0: 3.25.0.4)
For differences between versions, see Changelog.
https://fetch.yellowdogsoftware.com/api/v3/
Request
This endpoint is recommended for any frequent polling of item onhands. Although the GET Items
endpoint includes a stores onhand value, the onhand value being changed does not trigger an update of the rowUpdated for that endpoint.
This endpoint uses pagination to limit the amount of items that are returned in a response. The use of these values is similar to how the query string pagination works in other endpoints, however these are a component of the response body.
Note: As they do not use a query string for pagination, the pagination headers used in other endpoints will not work for this. Recommended use case is to pull at a known pageSize and stop when the returned item array is less than the requested pageSize.
Example Request Body for Common Usage Scenarios
Get an Item's onhand in a particular Store
{
"pageNumber": 1,
"pageSize": 100,
"stores": [
":storeId"
],
"items": [
":itemId"
]
}
Get an Stores Onhands updated since a certain date
{
"pageNumber": 1,
"pageSize": 100,
"stores": [
":storeId"
],
"rowUpdated": "2024-05-24"
}
Get all Current onhands for all Stores and Items based on the last pulled date
{
"pageNumber": 1,
"pageSize": 100,
"lastUpdated": "2024-03-05T06:06:58.529Z"
}
or
{
"pageNumber": 1,
"pageSize": 100,
"lastUpdated": "2024-03-05T06:06:58.529-05:00"
}
or
{
"pageNumber": 1,
"pageSize": 100,
"lastUpdated": "2020-05-29 00:00:00"
}
Get the Current onhand for a particular Item across all Stores.
{
"pageNumber": 1,
"pageSize": 100,
"items": [
":itemId"
]
}
- application/json-patch+json
- application/json
- text/json
- application/*+json
- List of ItemIDs
- If provided the LastUpdated field will be ignored.
When provided this will limit the response to only include items that have had an on hand adjustment since this passed in date.
This is ignored if any values are passed in the Items parameter
- Production server
https://fetch.yellowdogsoftware.com/api/v3/inventory
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://fetch.yellowdogsoftware.com/api/v3/inventory \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"stores": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"items": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"lastUpdated": "2019-08-24T14:15:22Z",
"pageNumber": 0,
"pageSize": 0
}'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "stores": [ { … } ] }