Browse docs

Pricing

Rules list

GET/pricing/rules

q
In the query: text, up to 120 characters.
state
In the query: one of all, live, scheduled, ended, off, archived. Default all.
promotionId
In the query: id starting with PRM_.
sort
In the query: one of name, starts, ends, updated. Default name.
dir
In the query: one of asc, desc. Default asc.
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/pricing/rules" \
  -H "Authorization: Bearer tt_pat_your_token"

Rules get

GET/pricing/rules/{id}

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

Deals get

GET/pricing/deals/{id}

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

Deals list

GET/pricing/deals

q
In the query: text, up to 120 characters.
state
In the query: one of all, live, scheduled, ended, off, archived. Default all.
promotionId
In the query: id starting with PRM_.
sort
In the query: one of name, starts, ends, updated. Default name.
dir
In the query: one of asc, desc. Default asc.
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/pricing/deals" \
  -H "Authorization: Bearer tt_pat_your_token"

Presets get

GET/pricing/presets/{id}

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

Presets list

GET/pricing/presets

q
In the query: text, up to 120 characters.
state
In the query: one of all, live, scheduled, ended, off, archived. Default all.
promotionId
In the query: id starting with PRM_.
sort
In the query: one of name, starts, ends, updated. Default name.
dir
In the query: one of asc, desc. Default asc.
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/pricing/presets" \
  -H "Authorization: Bearer tt_pat_your_token"

Coupons get

GET/pricing/coupons/{id}

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

Coupons list

GET/pricing/coupons

q
In the query: text, up to 120 characters.
state
In the query: one of all, live, scheduled, ended, off, archived. Default all.
promotionId
In the query: id starting with PRM_.
sort
In the query: one of name, starts, ends, updated. Default name.
dir
In the query: one of asc, desc. Default asc.
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/pricing/coupons" \
  -H "Authorization: Bearer tt_pat_your_token"

Coupons find

GET/pricing/coupons/find

codeRequired
In the query: text, up to 60 characters.
saleId
In the query: id starting with SA_.
customerId
In the query: id starting with CU_.
curl "http://app.telltailhq.com/api/v1/pricing/coupons/find" \
  -H "Authorization: Bearer tt_pat_your_token"

Coupons for customer

GET/pricing/coupons/for-customer

customerIdRequired
In the query: id starting with CU_.
curl "http://app.telltailhq.com/api/v1/pricing/coupons/for-customer" \
  -H "Authorization: Bearer tt_pat_your_token"

Promotions list

GET/pricing/promotions

q
In the query: text, up to 120 characters.
state
In the query: one of all, live, scheduled, ended, off, archived. Default all.
promotionId
In the query: id starting with PRM_.
sort
In the query: one of name, starts, ends, updated. Default name.
dir
In the query: one of asc, desc. Default asc.
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/pricing/promotions" \
  -H "Authorization: Bearer tt_pat_your_token"

Promotions get

GET/pricing/promotions/{id}

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