ChargebeeAPI

Unbilled charges

Unbilled charge represents the charges that are held by passing invoice_immediately in various operations such as update subscription, add charge, create subscription, etc. Learn more.

If any invoice is to be created for a subscription all the unbilled charges associated with the subscription will be included in that invoice.

If any invoice is to be created for a customer, all the unbilled charges associated with its subscriptions will be included in that invoice.

Any automatic invoice creation like renewal, activation, etc., will include the unbilled charges.

Subscriptions are invoiced at the start of every term based on the recurring items and charged immediately against the customer's credit card if 'auto_collection' is turned 'on', otherwise the resulting invoice will be created as 'Payment Due'.

If consolidated invoicing is enabled, the charges during the subscription renewals/activations will be held and consolidated at the last renewal/activation that takes place on that particular day.

Sample Unbilled chargeJSON

Unbilled charges attributes

id
optional, string, max chars=40

Uniquely identifies an unbilled charge.

customer_id
optional, string, max chars=50

A unique identifier for the customer being charged.

subscription_id
optional, string, max chars=50

A unique identifier for the subscription this charge belongs to.

date_from
optional, timestamp(UTC) in seconds

Start date of this charge.

date_to
optional, timestamp(UTC) in seconds

End date of this charge.

unit_amount
optional, in cents, min=0

Unit amount of the charge item.

pricing_model
optional, enumerated string

The pricing scheme for this line item.

Possible Enum Values
flat_fee

A fixed price that is not quantity-based.

per_unit

A fixed price per unit quantity.

tiered

There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.

volume

The per unit price is based on the tier that the total quantity falls in.

stairstep

A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.

quantity
optional, integer, min=0

Quantity of the item which is represented by this charge.

amount
optional, in cents, min=0

Total amount of this charge. Typically equals to unit amount x quantity.

currency_code
required, string, max chars=3

The currency code (ISO 4217 format) for the charge.

discount_amount
optional, in cents, min=0

Total discounts for this charge.

entity_type
required, enumerated string

Specifies the modelled entity this line item is based on.

Possible Enum Values
adhoc

Indicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case

plan_item_price

Indicates that this line item is based on plan Item Price

addon_item_price

Indicates that this line item is based on addon Item Price

charge_item_price

Indicates that this line item is based on charge Item Price

entity_id
optional, string, max chars=100

The identifier of the modelled entity this charge is based on. Will be null for 'adhoc' entity type.

is_voided
required, boolean, default=false

Will be true if the charge has been voided. Usually the unbilled charge will be voided and revised to different charges(s) during proration.

voided_at
optional, timestamp(UTC) in seconds

Timestamp indicating the date and time this charge got voided.

unit_amount_in_decimal
optional, string, max chars=39

The decimal representation of the unit amount for the entity. The value is in major units of the currency. Returned when the entity is quantity-based and multi-decimal pricing is enabled.

quantity_in_decimal
optional, string, max chars=33

The decimal representation of the quantity of this entity. Returned when the entity is quantity-based and multi-decimal pricing is enabled.

amount_in_decimal
optional, string, max chars=39

The decimal representation of the amount for the charge, in major units of the currency. Typically equals to unit_amount_in_decimal x quantity_in_decimal. Returned when multi-decimal pricing is enabled.

updated_at
required, timestamp(UTC) in seconds

Timestamp indicating when the unbilled charge was last updated

is_advance_charge
optional, boolean, default=false

The value of this parameter will be true if it is a recurring unbilled charge for a future term.

business_entity_id
optional, string, max chars=50

The unique ID of the business entity of this unbilled charge. This is always the same as the business entity of the customer.

deleted
required, boolean

Indicates that this resource has been deleted.

tiers
optional, list of line_item_tier

The list of tiers applicable for this line item