# Add an item (add-on / per-seat item)

`POST /api/v1/subscriptions/{id}/items`

Needs the `subscriptions: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": {
    "plan_id": {
      "type": "string",
      "format": "uuid",
      "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    },
    "quantity": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ]
    },
    "proration": {
      "type": "string",
      "enum": [
        "create",
        "none"
      ],
      "description": "`create` (default) prorates the rest of the period; an immediate invoice is charged against the default card (see `proration.payment`)."
    }
  },
  "required": [
    "plan_id"
  ]
}
```

## Responses

### 201

The item and its proration outcome.

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "plan_id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "quantity": {
          "type": "integer",
          "description": "Seats on this item (an integer, not money)."
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "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": [
        "id",
        "plan_id",
        "quantity",
        "created_at",
        "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"
  ]
}
```

### 422

Usage-priced plan, different interval, or the base plan itself.
