Toshl Developer

Get location

Get a location.

GET /entries/locations/{id}

Required scope:

Parameters

id *
required
string

Location id.

* denotes required field/parameter.

Request

$ curl https://api.toshl.com/entries/locations/42 \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl"

Response

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

{
  "id": "42",
  "venue_id": "4c3a5ad83849c92880e0c2b1",
  "name": "Blue Marble Ice Cream",
  "address": "Brooklyn Bridge Park - Pier 1, Brooklyn",
  "latitude": 40.70136599888968,
  "longitude": -73.99794101715088,
  "expenses": {
    "sum": 45,
    "count": 3
  },
  "incomes": {
    "sum": 1200,
    "count": 1
  },
  "modified": "2012-09-04T13:55:15Z"
}