SmartGare
API referenceEndpoints

Read a departure's selling log

Returns every time the departure's selling opened or closed, oldest first, under `changes`: `opened`, the `reason` (FIRST_ON_SALE, DAY_OPENED, COACH_IN_STATION, PASSING_OPENED, REOPENED, DELAYED, DAY_CLOSED, PASSING_CUTOFF, IMMINENT_DEPARTURE, DEPARTURE_TIME, CANCELLED, CLOSED, WITHDRAWN, COACH_NOT_IN_STATION, PASSING_NOT_YET_OPEN, NOT_SELLABLE), the instant `at` and the departure time then in force. Empty for a departure never on sale. **Required permission:** `ticketing.seat-inventory:read`

GET/ticketing/v1/departures/{departureId}/selling-changes

Returns every time the departure's selling opened or closed, oldest first, under changes: opened, the reason (FIRST_ON_SALE, DAY_OPENED, COACH_IN_STATION, PASSING_OPENED, REOPENED, DELAYED, DAY_CLOSED, PASSING_CUTOFF, IMMINENT_DEPARTURE, DEPARTURE_TIME, CANCELLED, CLOSED, WITHDRAWN, COACH_NOT_IN_STATION, PASSING_NOT_YET_OPEN, NOT_SELLABLE), the instant at and the departure time then in force. Empty for a departure never on sale.

Required permission: ticketing.seat-inventory:read

AuthorizationBearer <token>

In: header

Response Body

*/*

curl -X GET "https://example.com/ticketing/v1/departures/{departureId}/selling-changes"
{  "changes": [    {      "at": "2019-08-24T14:15:22Z",      "departs_at": "2019-08-24T14:15:22Z",      "opened": true,      "reason": "string",      "sequence": 0    }  ],  "departure_id": "string"}