Authorizations
Enter your API key in the format x-api-key <api-key>*
Body
Subscription Request
RECURRING, ONETIME MONTHLY, ANNUAL, WEEKLY, DAILY, QUARTERLY, HALF_YEARLY Addons represents addons to be added to the subscription during creation
anniversary, calendar charge_automatically, send_invoice CommitmentAmount is the minimum amount a customer commits to paying for a billing period
SubscriptionCoupons is a list of coupon IDs to be applied to the subscription
Credit grants to be applied when subscription is created
customer_id is the flexprice customer id and it is prioritized over external_customer_id in case both are provided.
Timezone of the customer. If not set, the default value is UTC.
external_customer_id is the customer id in your DB and must be same as what you provided as external_id while creating the customer in flexprice.
SubscriptionLineItemsCoupons is a list of coupon IDs to be applied to the subscription line items
OverageFactor is a multiplier applied to usage beyond the commitment amount
OverrideLineItems allows customizing specific prices for this subscription
allow_incomplete, default_incomplete, error_if_incomplete, default_active Phases represents an optional timeline of subscription phases
create_prorations, none tax_rate_overrides is the tax rate overrides to be applied to the subscription
Response
Created
ActivePauseID references the current active pause configuration This will be null if no pause is active or scheduled
BillingAnchor is the reference point that aligns future billing cycle dates. It sets the day of week for week intervals, the day of month for month and year intervals, and the month of year for year intervals. The timestamp is in UTC format.
RECURRING, ONETIME anniversary, calendar MONTHLY, ANNUAL, WEEKLY, DAILY, QUARTERLY, HALF_YEARLY BillingPeriodCount is the total number units of the billing period.
CancelAt is the date the subscription will be canceled
CancelAtPeriodEnd is whether the subscription was canceled at the end of the current period
CanceledAt is the date the subscription was canceled
CollectionMethod determines how invoices are collected
CommitmentAmount is the minimum amount a customer commits to paying for a billing period
CouponAssociations are the coupon associations for this subscription
Currency is the currency of the subscription in lowercase 3 digit ISO codes
CurrentPeriodEnd is the end of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.
CurrentPeriodStart is the end of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.
Customer response object containing all customer information
CustomerID is the identifier for the customer in our system
EndDate is the end date of the subscription
EnvironmentID is the environment identifier for the subscription
GatewayPaymentMethodID is the gateway payment method ID for this subscription
ID is the unique identifier for the subscription
LookupKey is the key used to lookup the subscription in our system
OverageFactor is a multiplier applied to usage beyond the commitment amount
none, active, scheduled, completed, cancelled PaymentBehavior determines how subscription payments are handled
PlanID is the identifier for the plan in our system
create_prorations, none StartDate is the start date of the subscription
published, deleted, archived active, paused, cancelled, incomplete, incomplete_expired, past_due, trialing, unpaid TrialEnd is the end date of the trial period
TrialStart is the start date of the trial period
Version is used for optimistic locking

