cURL
curl --request POST \ --url https://api.togai.com/v2/price_plans/{price_plan_id}/finalize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "migrationMode": "IMMEDIATE", "versionsToMigrate": "LATEST_VERSION" } '
{ "success": true }
Finalize a price plan
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
50
"pp.1zYnCiM9Bpg.lv25y"
Payload to finalize price plan
Request to finalize a price plan version
IMMEDIATE
IMMEDIATE_IGNORE_OVERRIDE
NEXT_CYCLE
NEXT_CYCLE_IGNORE_OVERRIDE
NONE
START_OF_CURRENT_CYCLE
LATEST_VERSION
ALL_VERSION
OK
true