Toshl Developer

Get promo code

Get information about a promo code. If promo code does not exist, 404 Not Found is returned.

GET /me/promos/{code}

Required scope:

Parameters

code *
required
string

Promo code

* denotes required field/parameter.

Request

$ curl https://api.toshl.com/me/promos/hufierw821 \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl"

Response

HTTP/1.1 200 OK
Content-Type: application/json

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