SmartGare
API referenceEndpoints

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`

POST/referential/v1/carriers/{id}/ticketing-model-migrations

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

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*ScheduleTicketingModelMigrationRequest

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"}