Browse docs

Sales

Get

GET/sales/{id}

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

Returns receipts

GET/sales/return-receipts

customerId
In the query: id starting with CU_.
number
In the query: text, up to 40 characters.
excludeId
In the query: id starting with SA_.
curl "http://app.telltailhq.com/api/v1/sales/return-receipts" \
  -H "Authorization: Bearer tt_pat_your_token"

Returns deposits

GET/customers/{customerId}/deposit-refund

customerIdRequired
In the path: id starting with CU_.
curl "http://app.telltailhq.com/api/v1/customers/{customerId}/deposit-refund" \
  -H "Authorization: Bearer tt_pat_your_token"

Returns returnable

GET/sales/{id}/returnable

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

Trade ins units

GET/customers/{customerId}/trade-in-units

customerIdRequired
In the path: id starting with CU_.
variantId
In the query: id starting with VA_.
curl "http://app.telltailhq.com/api/v1/customers/{customerId}/trade-in-units" \
  -H "Authorization: Bearer tt_pat_your_token"

Trade ins serial

GET/trade-ins/serial

variantIdRequired
In the query: id starting with VA_.
serialNoRequired
In the query: text, up to 80 characters.
customerId
In the query: id starting with CU_.
curl "http://app.telltailhq.com/api/v1/trade-ins/serial" \
  -H "Authorization: Bearer tt_pat_your_token"

Subscriptions bikes

GET/sales/{id}/subscriptions/bikes

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

Refunds destinations

GET/sales/{id}/refunds/destinations

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

Tenders tip recipients

GET/sales/tip-recipients

This route takes no parameters.

curl "http://app.telltailhq.com/api/v1/sales/tip-recipients" \
  -H "Authorization: Bearer tt_pat_your_token"

Void preview

GET/sales/{id}/void

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

List

GET/sales

q
In the query: text, up to 120 characters.
ids
In the query: list of id starting with SA_, up to 100.
customerId
In the query: id starting with CU_.
productId
In the query: id starting with PR_.
nonEmpty
In the query: true or false. Default false.
updatedWithinHours
In the query: integer, 1 to 8784.
locationId
In the query: id starting with LO_.
from
In the query: text.
to
In the query: text.
totalMin
In the query: integer, 0 to 100000000.
totalMax
In the query: integer, 0 to 100000000.
returns
In the query: true or false. Default false.
status
In the query: one of in_progress, open, completed, cancelled, voided, closed, all. Default all.
sort
In the query: one of updated, created, number, total. Default updated.
dir
In the query: one of asc, desc. Default desc.
limit
In the query: integer, 1 to 200. Default 50.
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/sales" \
  -H "Authorization: Bearer tt_pat_your_token"