Schedule a ticketing-model migration
Schedules the carrier's switch to another ticketing model from a station day ahead, with why. It waits for a second person's approval. Sales made before that day keep their model. **Required permission:** `referential.carrier:write`
/referential/v1/carriers/{id}/ticketing-model-migrationsSchedules the carrier's switch to another ticketing model from a station day ahead, with why. It waits for a second person's approval. Sales made before that day keep their model.
Required permission: referential.carrier:write
Authorization
oauth2 In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
*/*
*/*
curl -X POST "https://example.com/referential/v1/carriers/string/ticketing-model-migrations" \ -H "Content-Type: application/json" \ -d '{ "effective_from": "2019-08-24", "reason": "string", "target_ticketing_model": "CARRIER_MANAGED" }'{ "approved_at": "2019-08-24T14:15:22Z", "approved_by": "string", "carrier_id": "string", "change_reason": "string", "changed_at": "2019-08-24T14:15:22Z", "changed_by": "string", "effective_from": "2019-08-24", "from_ticketing_model": "string", "held_reason": "string", "id": "string", "reason": "string", "scheduled_at": "2019-08-24T14:15:22Z", "scheduled_by": "string", "status": "string", "target_ticketing_model": "string", "took_effect_at": "2019-08-24T14:15:22Z"}List a carrier's ticketing-model migrations
Every migration of the carrier — waiting, cancelled or taken effect — by effective day, with who scheduled, approved, moved or withdrew it, when and why. **Required permission:** `referential.carrier:read`
Reschedule a ticketing-model migration
Moves the waiting migration to another station day ahead, with why; the new day is approved again. **Required permission:** `referential.carrier:write`