updateSubscription

Change the plan, billing cycle, seats or add-ons of an account; returns what changed, or a checkout URL when the change needs payment. Requires account.billing.manage.

Arguments

  • inputUpdateSubscriptionInput!required

  • input.typeSubscriptionType!required

    One of free, pro, enterprise.

  • input.cycleSubscriptionCycle!required

    One of monthly, yearly.

  • input.quantityInt

    Seat quantity for licensed subscriptions

  • input.serverQuantityInt

    Recurring server add-on quantity

  • input.sandboxQuantityInt

    Recurring sandbox add-on quantity

  • input.successUrlString

    URL to redirect to after successful payment

  • input.cancelUrlString

    URL to redirect to if payment is canceled.

Responses

mutation UpdateSubscription($input: UpdateSubscriptionInput!) {  updateSubscription(input: $input) {    status    amount    currency    checkoutUrl  }}
{  "data": {    "updateSubscription": {      "status": "string",      "amount": "string",      "currency": "string",      "checkoutUrl": "https://example.com"    }  }}

The SubscriptionChange! in data.updateSubscription.