Sales orders represent the contractual agreement and commitment for services between a seller and a buyer. They act as a seamless interface connecting any sales system (such as CPQ, CRM, or Customer Portal) with Chargebee Billing. The sales order captures the following essential components
{}
charge_on_option
option is set to on_event
, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items. active
or non-renewing
state. Also includes reactivations of canceled subscriptions.charge_on_event
occurs. This parameter only applies to charge-items. state_code
as AZ
(not US-AZ
). For Tamil Nadu (India), set as TN
(not IN-TN
). For British Columbia (Canada), set as BC
(not CA-BC
). Brexit
If you have enabled EU VAT in 2021 or later, or have manually enable the Brexit configuration, then XI
(the code for United Kingdom – Northern Ireland) is available as an option.
type
, amount
, and currency_code
of the discount. For example, it can be 10% off
or 10$ off
. sub_total
.specific_item_priceThe discount is applied to the invoice.line_item.amount
that corresponds to the item price specified by item_price_id
.period
and period_unit
.discount.type
is percentage. discount.type
is fixed_amount
. period_units
. Applicable only when duration_type
is limited_period
. period
. Applicable only when duration_type
is limited_period
. apply_on
= specific_item_price
. state_code
as AZ
(not US-AZ
). For Tamil Nadu (India), set as TN
(not IN-TN
). For British Columbia (Canada), set as BC
(not CA-BC
). Brexit
If you have enabled EU VAT in 2021 or later, or have manually enable the Brexit configuration, then XI
(the code for United Kingdom – Northern Ireland) is available as an option.
0
and 9
(inclusive) for each group that is to be created. To increase this limit, contact Chargebee Support line_items
which have pricing_model
as tiered
, volume
or stairstep
. Learn more about pricing models.pricing_model
is tiered
or volume
. The total cost for the item price when the pricing_model
is stairstep
. The value is in the minor unit of the currency. pricing_type
will be set to flat_fee
by default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.packageIndicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).package
. Specify the number of units that make up one package. For example, if 1000 API hits are grouped into a single package, set the package size to 1000. Setting this attribute to true
would invoice the overages for the metered item during subscription changes
renewal_billing_cycles
.end_of_term_action
for the new contract term is set to renew
.This is a list of the event types we currently support. We will continue to add more events moving forward. All events follow a uniform pattern - <resource>_<event_name>. The resources that will be present in the event content are provided beneath each event type's description.
Note: If consolidated invoicing is enabled, the attributes invoice.subscription_id and credit_note.subscription_id should not be used (as it will not be present if the invoice / credit note has lines from multiple subscriptions). Instead to know the related subscriptions, their line_items' subscription_id attribute should be referred.
line_items
which have pricing_model
as tiered
, volume
or stairstep
. Learn more about pricing models.