Purchase orders
List
GET/purchase-orders
- q
- In the query: text, up to 120 characters.
- view
- In the query: one of draft, ordered, received, open, complete, cancelled, all. Default open.
- vendorIds
- In the query: list of id starting with VE_, up to 50.
- locationIds
- In the query: list of id starting with LO_, up to 50.
- productId
- In the query: id starting with PR_.
- sort
- In the query: one of updated, created, number, vendor, status, items, to, expected, total. Default updated.
- 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/purchase-orders" \
-H "Authorization: Bearer tt_pat_your_token"Get
GET/purchase-orders/{id}
- idRequired
- In the path: id starting with PO_.
curl "http://app.telltailhq.com/api/v1/purchase-orders/{id}" \
-H "Authorization: Bearer tt_pat_your_token"Cart
GET/purchase-orders/{id}/cart
- idRequired
- In the path: id starting with PO_.
curl "http://app.telltailhq.com/api/v1/purchase-orders/{id}/cart" \
-H "Authorization: Bearer tt_pat_your_token"Supplier stock
GET/purchase-orders/{id}/supplier-stock
- idRequired
- In the path: id starting with PO_.
curl "http://app.telltailhq.com/api/v1/purchase-orders/{id}/supplier-stock" \
-H "Authorization: Bearer tt_pat_your_token"Suggestions
GET/purchase-orders/{id}/suggestions
- idRequired
- In the path: id starting with PO_.
curl "http://app.telltailhq.com/api/v1/purchase-orders/{id}/suggestions" \
-H "Authorization: Bearer tt_pat_your_token"