SmartGare
API referenceEndpoints

Search lines

Returns lines matching optional code text and status filters. **Required permission:** `referential.line:read`

GET/referential/v1/lines

Returns lines matching optional code text and status filters.

Required permission: referential.line:read

AuthorizationBearer <token>

In: header

Query Parameters

search?string

Matches part of a line code.

status?string

Line lifecycle status.

Value in

  • "ACTIVE"
  • "SUSPENDED"
sort?string

Result ordering.

Value in

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

Zero-based page index.

Formatint32
Range0 <= value
size?integer

Page size, at most 200.

Formatint32
Range0 <= value <= 200

Response Body

*/*

curl -X GET "https://example.com/referential/v1/lines"
{  "data": [    {      "code": "string",      "created_at": "2019-08-24T14:15:22Z",      "id": "string",      "name": "string",      "retired_at": "2019-08-24T14:15:22Z",      "status": "string",      "suspension_reason": "string",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "page": 0,  "size": 0,  "total": 0}