SmartGare
API referenceEndpoints

Read how a visit's charge was closed

Every close of this visit's chargeable stay, oldest first, with the instants an invoice is worked out from and whether billing has been told yet. **Required permission:** `cycle.coach-cycle:read`

GET/cycle/v1/coach-cycles/{id}/chargeable-stay-closures

Every close of this visit's chargeable stay, oldest first, with the instants an invoice is worked out from and whether billing has been told yet.

Required permission: cycle.coach-cycle:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

*/*

curl -X GET "https://example.com/cycle/v1/coach-cycles/string/chargeable-stay-closures"
{  "data": [    {      "announced_at": "2019-08-24T14:15:22Z",      "bay_entered_at": "2019-08-24T14:15:22Z",      "bay_left_at": "2019-08-24T14:15:22Z",      "carrier_id": "string",      "closed_at": "2019-08-24T14:15:22Z",      "closed_by": "COUNTER_REQUEST",      "correlation_id": "string",      "cut_off_policy": "SETTLEMENT_REQUESTED",      "cycle_id": "string",      "entered_at": "2019-08-24T14:15:22Z",      "id": "string",      "recorded_at": "2019-08-24T14:15:22Z",      "recorded_by": "string",      "regulation_entered_at": "2019-08-24T14:15:22Z",      "regulation_left_at": "2019-08-24T14:15:22Z",      "revision": 0,      "vehicle_id": "string"    }  ]}