# Schedule a price change for every subscriber of this plan

`POST /api/v1/plans/{id}/price-changes`

Requires `catalog.write`; `Idempotency-Key` is honoured. Each subscriber moves to `to_plan_id` at their first renewal on or after `effective_at`. Subscriptions that are canceling, or have a plan change staged, are skipped.

Needs the `catalog:write` scope, or a full-access key.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | required |  |

## Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string | optional | A unique value for this operation, chosen by you. A retry with the same key and the same body returns the first response instead of running again. The same key with a different body answers 409 `idempotency_key_reused`; a key whose first request is still running answers 409 `idempotency_in_progress`. |

## Request body

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "to_plan_id": {
      "type": "string",
      "format": "uuid",
      "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    },
    "effective_at": {
      "type": "string",
      "format": "date-time",
      "description": "At least 30 days from now."
    }
  },
  "required": [
    "to_plan_id",
    "effective_at"
  ]
}
```

## Responses

### 201

The scheduled change; every eligible subscriber has been notified.

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "from_plan_id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "to_plan_id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "effective_at": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "type": "string",
          "enum": [
            "scheduling",
            "scheduled",
            "canceled",
            "completed"
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "canceled_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "completed_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "counts": {
          "type": "object",
          "properties": {
            "pending": {
              "type": "integer"
            },
            "applied": {
              "type": "integer"
            },
            "skipped": {
              "type": "integer"
            },
            "canceled": {
              "type": "integer"
            },
            "notified": {
              "type": "integer"
            },
            "awaiting": {
              "type": "integer",
              "description": "Subscribers the change should move but has not notified yet: batches still running (`scheduling`), or a late joiner or reactivated subscriber the next sweep picks up."
            }
          },
          "required": [
            "pending",
            "applied",
            "skipped",
            "canceled",
            "notified",
            "awaiting"
          ]
        }
      },
      "required": [
        "id",
        "from_plan_id",
        "to_plan_id",
        "effective_at",
        "status",
        "created_at",
        "canceled_at",
        "completed_at",
        "counts"
      ]
    },
    "_agent": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok"
          ]
        },
        "next_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "summary",
        "status",
        "next_actions",
        "warnings"
      ]
    },
    "api_version": {
      "type": "string",
      "example": "2026-07-01"
    }
  },
  "required": [
    "data",
    "_agent",
    "api_version"
  ]
}
```

### 404

`not_found`.

### 409

`price_change_already_scheduled` (one open change per plan) or `price_change_not_open`.

### 422

`effective_at_too_soon` (`details.earliest_effective_at`), `invalid_target_plan` (same code, higher version, same interval and pricing model, active) or `currency_not_priced` (`details.currencies`).
