v18

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-014211,6201.8 MB
gitpod.v1.BillingService

CreateSubscription

Creates a new subscription for an organization.

Use this method to:

  • Create a new subscription with specified type
  • Add subscription to existing Metronome contract
  • Create new contract if none exists
post/gitpod.v1.BillingService/CreateSubscription

Request body

amountCentsstring required

amount_cents is the amount of cents to charge the organization

couponCodestring

coupon_code is the code of the coupon to apply to the subscription

organizationIdstring uuid required

organization_id is the ID of the organization to create subscription for

subscriptionType'SUBSCRIPTION_TYPE_UNSPECIFIED' | 'SUBSCRIPTION_TYPE_CORE' required

Response

Success