Skip to main content
POST
Create subscription line item

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Path Parameters

id
string
required

Subscription ID

Body

application/json

Create Line Item Request

commitment_amount
number

Commitment fields

commitment_duration
enum<string>
Available options:
MONTHLY,
ANNUAL,
WEEKLY,
DAILY,
QUARTERLY,
HALF_YEARLY,
ONETIME
commitment_overage_factor
number
commitment_quantity
number
commitment_time_buckets
object[]
commitment_true_up_enabled
boolean
commitment_type
enum<string>
Available options:
amount,
quantity
commitment_windowed
boolean
display_name
string
end_date
string<date-time>
metadata
object
price
object
price_id
string

PriceID references an existing price (plan, addon, or subscription-scoped). Exactly one of price_id or price must be set.

proration_behavior
enum<string>
Available options:
create_prorations,
none
quantity
number
start_date
string<date-time>
subscription_phase_id
string

Response

Created

addon_association_id
string
billing_period
enum<string>
Available options:
MONTHLY,
ANNUAL,
WEEKLY,
DAILY,
QUARTERLY,
HALF_YEARLY,
ONETIME
billing_period_count
integer

from price at create; default 1

commitment_amount
string

Commitment fields

commitment_duration
enum<string>
Available options:
MONTHLY,
ANNUAL,
WEEKLY,
DAILY,
QUARTERLY,
HALF_YEARLY,
ONETIME
commitment_overage_factor
string
commitment_quantity
string
commitment_time_buckets
object[]
commitment_true_up_enabled
boolean
commitment_type
enum<string>
Available options:
amount,
quantity
commitment_windowed
boolean
created_at
string<date-time>
created_by
string
currency
string
customer_id
string
display_name
string
end_date
string<date-time>
entity_id
string
entity_type
enum<string>
Available options:
plan,
addon,
subscription
environment_id
string
id
string
invoice_cadence
enum<string>
Available options:
ARREAR,
ADVANCE
metadata
object
meter
object
meter_display_name
string
meter_id
string
plan_display_name
string
price
object
price_id
string
price_type
enum<string>
Available options:
USAGE,
FIXED
price_unit
string
price_unit_id
string
quantity
string
start_date
string<date-time>
status
enum<string>
Available options:
published,
deleted,
archived
subscription_id
string
subscription_phase_id
string
tenant_id
string
updated_at
string<date-time>
updated_by
string