SmartGare
API referenceEndpoints

Settle an unconfirmed barrier order

Records what the barrier did with an order nobody could confirm, who said so, when and why, beside the answer the order got. **Required permission:** `cycle.barrier-order:settle`

POST/cycle/v1/barrier-orders/{id}/resolution

Records what the barrier did with an order nobody could confirm, who said so, when and why, beside the answer the order got.

Required permission: cycle.barrier-order:settle

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*ResolveBarrierOrderRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/cycle/v1/barrier-orders/string/resolution" \  -H "Content-Type: application/json" \  -d '{    "finding": "OPENED",    "reason": "string"  }'
{  "order": {    "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"    ]  }}