Skip to main content
PUT
Update 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

Line Item ID

Body

application/json

Update Line Item Request

amount
string

Amount is the new price amount that overrides the original price

billing_model
enum<string>
Available options:
FLAT_FEE,
PACKAGE,
TIERED
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[]

Pointer so an explicit empty array can clear existing buckets (omission keeps them).

commitment_true_up_enabled
boolean
commitment_type
enum<string>
Available options:
amount,
quantity
commitment_windowed
boolean
effective_from
string

EffectiveFrom for the existing line item (if not provided, defaults to now)

metadata
object

Metadata for the new line item

tier_mode
enum<string>
Available options:
VOLUME,
SLAB
tiers
object[]

Tiers determines the pricing tiers for this line item

transform_quantity
object

Response

OK

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