# Update the seat count

`PATCH /api/v1/subscriptions/{id}`

Seat changes are prorated by default (`proration: create`). An immediate proration invoice is finalized and charged against the default card after commit; the outcome is `proration.payment`.

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

## Path parameters

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

## Request body

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "quantity": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Seats.",
      "example": 5
    },
    "proration": {
      "type": "string",
      "enum": [
        "create",
        "none"
      ],
      "description": "`create` (default) prorates the change for the rest of the period: on an advance plan an increase is invoiced AND charged now (see `proration.payment`), a decrease is credited on the next invoice. `none` applies the count from the next period."
    }
  },
  "required": [
    "quantity"
  ]
}
```

## Responses

### 200

The new and previous seat counts.

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "subscription_id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "quantity": {
          "type": "integer"
        },
        "previous_quantity": {
          "type": "integer"
        },
        "proration": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "invoice_id": {
              "type": [
                "string",
                "null"
              ],
              "format": "uuid",
              "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
              "description": "The immediate proration invoice (advance increase)."
            },
            "invoice_status": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "finalized",
                "paid",
                null
              ]
            },
            "amount_cents": {
              "type": [
                "string",
                "null"
              ],
              "description": "Immediate proration amount, minor units as a decimal string."
            },
            "pending_cents": {
              "type": [
                "string",
                "null"
              ],
              "description": "An adjustment parked for the next invoice instead (signed decimal string; credits negative)."
            },
            "payment": {
              "allOf": [
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "attempted",
                        "skipped",
                        "failed"
                      ]
                    },
                    "payment_intent_id": {
                      "type": "string",
                      "description": "When attempted; settlement arrives by webhook."
                    },
                    "reason": {
                      "type": "string",
                      "description": "Why it was skipped or failed; the invoice stays open."
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "description": "What happened when the invoice was charged against the default card after commit."
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ]
            }
          },
          "required": [
            "invoice_id",
            "invoice_status",
            "amount_cents",
            "pending_cents",
            "payment"
          ]
        }
      },
      "required": [
        "subscription_id",
        "quantity",
        "previous_quantity",
        "proration"
      ]
    },
    "_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"
  ]
}
```
