SmartGare
API referenceEndpoints

List the towns sellable on a day

Returns, by name, each town a departure of the day still sellable reaches after a station this deployment runs, with its names per locale — the towns a search by town can be asked for. **Required permission:** `ticketing.sale:read`

GET/ticketing/v1/sellable-localities

Returns, by name, each town a departure of the day still sellable reaches after a station this deployment runs, with its names per locale — the towns a search by town can be asked for.

Required permission: ticketing.sale:read

AuthorizationBearer <token>

In: header

Query Parameters

date*string

Station operational day, as YYYY-MM-DD.

Length1 <= length

Response Body

*/*

curl -X GET "https://example.com/ticketing/v1/sellable-localities?date=string"
{  "date": "string",  "localities": [    {      "code": "string",      "id": "string",      "name": "string",      "names_by_locale": {        "property1": "string",        "property2": "string"      }    }  ]}