Timeline

Read recorded stock changes from the Timeline in YourBarMate's Reports and inspect the entries behind them. These endpoints are read-only for the API token.

The app also adds workflow entries, such as sent Shop orders, order lists and Transfer requests, from other resources. GET /timeline returns the recorded stock-change entries, so it is not always an exact copy of every entry shown in the app.

All paths are relative to the base URL and use the API token.

Method Path Result
GET /timeline Recorded stock-change entries
GET /timeline/entries/{idempotency} One entry with its item changes
GET /timeline/deliveries/{reference} Entries for a delivery
GET /timeline/orders/{reference} Entries for a Transfer order
GET /timeline/inspections/{reference} Entries for an Inventory record

GET /timeline accepts optional division, area, from, to, limit and cursor query parameters. The default limit is 25. The response contains entries and, when more entries are available, a cursor to pass to the next request. Actor names are not included in the API response.

curl 'https://app.yourbarmate.com/api/timeline?limit=25' \
  --header 'accept: application/json' \
  --header 'authorization: token YOUR_API_TOKEN'

Use an entry's idempotency value for the detailed /timeline/entries/{idempotency} request. The three {reference} paths group timeline entries by the respective delivery, order or inspection reference; they do not return the original delivery, order or inspection document.