Subscriptions
View as Markdown

Update the seat count

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

PATCH
/api/v1/subscriptions/{id}

Authorization

Authorization
Required
Bearer <token>

An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).

In: header

Request Body

application/jsonOptional

quantity
Required
Any properties in integer, string

Seats.

prorationstring

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.

Value in: "create" | "none"

Path Parameters

id
Required
string

Format: "uuid"
curl -X PATCH "https://globalymint.com/api/v1/subscriptions/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "quantity": 5,
    "proration": "create"
  }'

The new and previous seat counts.

{
  "data": {
    "subscription_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "quantity": 0,
    "previous_quantity": 0,
    "proration": {
      "invoice_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "invoice_status": "finalized",
      "amount_cents": "string",
      "pending_cents": "string",
      "payment": {
        "status": "attempted",
        "payment_intent_id": "string",
        "reason": "string"
      }
    }
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}