SmartGare
API referenceEndpoints

List barrier orders

Returns every order the station gave a lane's barrier to open, newest first: the lane, when, for which visit and presentation, which decision and who presented the evidence, and what became of it with the bridge's verdict on each try. An order still pending was recorded and not answered. An order the barrier took says nothing about whether the coach went through. An order whose outcome is unknown says how it was settled, once: by its barrier reporting itself open, or by a person with a reason. **Required permission:** `cycle.coach-cycle:read`

GET/cycle/v1/barrier-orders

Returns every order the station gave a lane's barrier to open, newest first: the lane, when, for which visit and presentation, which decision and who presented the evidence, and what became of it with the bridge's verdict on each try. An order still pending was recorded and not answered. An order the barrier took says nothing about whether the coach went through. An order whose outcome is unknown says how it was settled, once: by its barrier reporting itself open, or by a person with a reason.

Required permission: cycle.coach-cycle:read

AuthorizationBearer <token>

In: header

Query Parameters

checkpoint_id?string

Only the orders given at this checkpoint.

vehicle_cycle_id?string

Only the orders given for this visit.

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/cycle/v1/barrier-orders"
{  "data": [    {      "access_attempt_id": "string",      "actor": "string",      "answered_at": "2019-08-24T14:15:22Z",      "bridge_address": "string",      "checkpoint_id": "string",      "detail": "string",      "id": "string",      "outcome": "PENDING",      "reason": "string",      "requested_at": "2019-08-24T14:15:22Z",      "settled_as": "string",      "settled_at": "2019-08-24T14:15:22Z",      "settled_by": "string",      "settled_reason": "string",      "settled_report_id": "string",      "settled_source": "string",      "vehicle_cycle_id": "string",      "verdicts": [        "string"      ]    }  ],  "page": 0,  "size": 0,  "total": 0}