Toshl Developer

Promos

Promo endpoint can be used to inquire about promo codes. If a promo code is active the endpoint returns details about the promo code.

Resource representation

{
  "code": "hufierw821",
  "discount": 20,
  "valid_until": "2012-09-04 13:55:15"
}

Properties

code
readonly
string

Promo code

discount
readonly
number

Discount amount

Minimum: > 0
Maximum: =< 100
valid_until
read, write
string

Date until promo code is valid.

Format: date-time

* denotes required field/parameter.