Browse docs

Drawers

State

GET/drawers/state

registerIdRequired
In the query: id starting with RG_.
curl "http://app.telltailhq.com/api/v1/drawers/state" \
  -H "Authorization: Bearer tt_pat_your_token"

Preview

POST/drawers/preview

idRequired
In the JSON body: id starting with RS_.
countsRequired
In the JSON body: list of object, up to 20.
curl -X POST "http://app.telltailhq.com/api/v1/drawers/preview" \
  -H "Authorization: Bearer tt_pat_your_token" \
  -H "Content-Type: application/json" \
  -d '{"id":"RS_…","counts":[{"paymentMethodId":"PM_…","counted":0}]}'

List

GET/drawers

status
In the query: one of open, closed.
registerIds
In the query: list of id starting with RG_, up to 50.
locationIds
In the query: list of id starting with LO_, up to 50.
employeeIds
In the query: list of id starting with EMP_, up to 50.
discrepancy
In the query: true or false.
from
In the query: text.
to
In the query: text.
sort
In the query: one of opened, closed, register, over_short, withdrawn. Default opened.
dir
In the query: one of asc, desc. Default desc.
limit
In the query: integer, 1 to 200. Default 100.
cursor
In the query: text. Where the next page starts. Opaque: follow the next URL from the last answer, which carries it.
curl "http://app.telltailhq.com/api/v1/drawers" \
  -H "Authorization: Bearer tt_pat_your_token"

Get

GET/drawers/{id}

idRequired
In the path: id starting with RS_.
curl "http://app.telltailhq.com/api/v1/drawers/{id}" \
  -H "Authorization: Bearer tt_pat_your_token"