---
title: "Retry migration"
method: POST
path: "/plan-version-migrations/{plan_version_migration_id}/retry"
tags: ["planmigrations"]
---

# Retry migration

`POST /plan-version-migrations/{plan_version_migration_id}/retry`

## Path parameters

- `plan_version_migration_id` string, required

## Request body

- RetryMigrationRequestBody
  - `error_codes` MigrationErrorCode[], required

## Response `200`

OK

- object
  - `data` PlanVersionMigrationResponseData, required
    - `completed_at` string, date-time, nullable
    - `completed_companies` integer, required
    - `created_at` string, date-time, required
    - `error` string, nullable
    - `failed_companies` integer, required
    - `id` string, required
    - `next_due_at` string, date-time, nullable
    - `plan_id` string, required
    - `plan_version_id_from` string, nullable
    - `plan_version_id_to` string, required
    - `plan_version_ids_from` string[], required
    - `proration_behavior` 'always_invoice' | 'create_prorations' | 'none'
    - `skipped_companies` integer, required
    - `started_at` string, date-time, nullable
    - `status` 'cancelled' | 'completed' | 'failed' | 'in_progress' | 'pending', required
    - `strategy` 'end_of_billing_period' | 'immediate' | 'leave', required
    - `total_companies` integer, required
    - `updated_at` string, date-time, required
  - `params` object, required — Input parameters

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Server error

## Changes

- **2026-08-24** `54c21fb8a4b7` — 2 warning, 1 info
  - added the new `cancelled` enum value to the `data/status` response property for the response status `200`
  - added the new `end_of_billing_period` enum value to the `data/strategy` response property for the response status `200`
  - added the optional property `data/next_due_at` to the response with the `200` status
- **2026-08-18** `82656c1cb6fc` — 1 warning
  - added the new `none` enum value to the `data/proration_behavior/allOf[#/components/schemas/MigrationProrationBehavior]/` response property for the response status `200`
- **2026-08-10** `8b0d50574230` — 1 info
  - added the optional property `data/proration_behavior` to the response with the `200` status
- **2026-06-05** `c0d7b479cd11` — 1 info
  - added the new `operation_item_not_found` enum value to the request property `error_codes/items/`
- **2026-05-27** `b059af8ebdc0` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/schematichq/apis/schematic-api/changes/plan-version-migrations/:plan_version_migration_id/retry/post.md)

---

[API](https://skmtc.dev/schematichq/apis/schematic-api.md) · [All operations](https://skmtc.dev/schematichq/apis/schematic-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/schematichq/schematic-api/revisions/0b238e148fa1/schema)
