ChargebeeAPI

Quote line groups

The line items of a quote are grouped by charge event. Each of these groups is called a quote line group. A quote would have at least one quote line group. Let's look at an example.

Consider the following:

  • A monthly plan A for $500 per month.
  • A non-recurring addon B for $50. Now consider a quote that is created for 3 billing cycles of the plan with the addon applied immediately. This quote would be associated with a list of quote line groups: one for each charge event as shown below:

Quote Line group 1

Plan A: $500

Addon B: $50

Total: $550

Quote Line group 2

Plan A: $500

Total: $500

Quote Line group 3

Plan A: $500

Total: $500

Sample Quote line groupJSON

Quote line groups attributes

version
optional, integer, default=1

Version of the quote line group.

id
optional, string, max chars=40

Uniquely identifies a quote line group.

sub_total
required, in cents, min=0

Subtotal in cents.

total
optional, in cents, default=0, min=0

Total in cents.

credits_applied
optional, in cents, default=0, min=0

Credits (in cents) applied to this quote line group.

amount_paid
optional, in cents, default=0, min=0

Existing outstanding payments (in cents) if any, applied to this quote line group.

amount_due
optional, in cents, default=0, min=0

Amount due in cents

charge_event
optional, enumerated string

Describes the time in the subscription lifecycle when the charge is to occur.

Possible Enum Values
immediate

Immediate

subscription_creation

Subscription Creation

trial_start

Trial Start

subscription_change

Subscription Change

subscription_renewal

Subscription Renewal

subscription_cancel

Subscription Cancel

billing_cycle_number
optional, integer

The serial number of the billing cycle of which the quote line group is a part.

discounts
optional, list of discount

The list of discounts applied to this quote line group.

taxes
optional, list of tax

The list of taxes applied to this quote line group.

line_items
optional, list of line_item

The list of items in this quote line group.

line_item_discounts
optional, list of line_item_discount

The list of discount(s) applied for line items in this quote line group.

line_item_taxes
optional, list of line_item_tax

The list of taxes applied on line items in this quote line group.