Accounting Export Reports that can be consumed by 3rd Party accounting systems
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.
{ "pageNumber": 1, "pageSize": 100, "stores": [ ":storeId" ], "items": [ ":itemId" ] }
{ "pageNumber": 1, "pageSize": 100, "stores": [ ":storeId" ], "rowUpdated": "2024-05-24" }
{ "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" }
{ "pageNumber": 1, "pageSize": 100, "items": [ ":itemId" ] }
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
curl -i -X POST \ https://developer.yellowdogsoftware.com/_mock/fetch/api/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": [ { … } ] }