SmartGare
API referenceEndpoints

Trace a visit's confirmed exit

The confirmed exit that ended the visit: the coach and who is billed for it, when it entered and left, the way it got out and who let it out, the exit policy and its version, the charge revision and, where the exit holds, where the payment stood. No amount and no debt. A correction of the instant it left appears beside it. **Required permission:** `cycle.coach-cycle:read`

GET/cycle/v1/coach-cycles/{id}/exit-trace

The confirmed exit that ended the visit: the coach and who is billed for it, when it entered and left, the way it got out and who let it out, the exit policy and its version, the charge revision and, where the exit holds, where the payment stood. No amount and no debt. A correction of the instant it left appears beside it.

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/exit-trace"
{  "access_point_id": "string",  "carrier_id": "string",  "charge_revision": 0,  "corrections": [    {      "boundary_sequence": 0,      "corrected_at": "2019-08-24T14:15:22Z",      "cycle_id": "string",      "id": "string",      "previous_at": "2019-08-24T14:15:22Z",      "reason": "string",      "recorded_at": "2019-08-24T14:15:22Z",      "recorded_by": "string"    }  ],  "departure_id": "string",  "departure_label": "string",  "entered_at": "2019-08-24T14:15:22Z",  "exit_decision_id": "string",  "exit_passage_id": "string",  "exited_at": "2019-08-24T14:15:22Z",  "id": "string",  "policy": "string",  "policy_source": "string",  "release_reason": "string",  "released_by": "string",  "route": "string",  "rule_version_id": "string",  "rule_version_number": 0,  "settlement_state": "string",  "traced_at": "2019-08-24T14:15:22Z",  "vehicle_cycle_id": "string",  "vehicle_id": "string"}