SmartGare
API referenceEndpoints

Search station areas

Returns station areas matching optional text, kind and status filters.

GET/referential/v1/station-areas

Returns station areas matching optional text, kind and status filters.

AuthorizationBearer <token>

In: header

Query Parameters

search?string

Matches part of a code or name.

Defaultnull
kind?string

Restrict to one area kind, e.g. FORECOURT.

Defaultnull
status?string

Restrict to one lifecycle status; defaults to ACTIVE.

Defaultnull

Value in

  • "ACTIVE"
  • "RETIRED"
  • "ACTIVE"
  • "RETIRED"
sort?string

Result ordering.

Defaultnull

Value in

  • "codeAsc"
  • "codeDesc"
  • "newest"
  • "oldest"
  • "codeAsc"
  • "codeDesc"
  • "newest"
  • "oldest"
  • "codeAsc"
  • "codeDesc"
  • "newest"
  • "oldest"
page?integer

Zero-based page index.

Formatint32
Range0 <= value
Defaultnull
size?integer

Page size, at most 200.

Formatint32
Range0 <= value <= 200
Defaultnull

Response Body

*/*

curl -X GET "https://example.com/referential/v1/station-areas"
{  "data": [    {      "id": "string",      "code": "string",      "name": "string",      "kind": "string",      "status": "string",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "page": 0,  "size": 0,  "total": 0}