lines
, representing items billed for the subscription. A typical line
item contains:
line
item in the invoice follows these computation rules:
⚠️ Note:item.amount
does not necessarily equalamountExcludingTax + tax
becausediscountAmount
is computed externally and distributed back into the items (e.g., for proration or code-level discounting).
Field | Description |
---|---|
subscriptionAmount | Original total including VAT |
discountAmount | Calculated based on discount code |
taxAmount | Total VAT applied |
totalAmount | Final amount user needs to pay |
lines[n].amount | Final amount of each item after discounts |
lines[n].originAmount | Amount before discount |
lines[n].taxPercentage | Represented in basis points (e.g., 500 = 5%) |
discountAmount
and reflect it across individual items.planAmount
: the full amount of the plantotalPeriodDurationInSeconds
: full length of the billing cycle in secondsactualUsageDurationInSeconds
: the portion of time the plan was used
💡 Prorated discounts (if any) are calculated externally and applied to the discountAmount
field at the invoice or item level.
pdfDescription
unitAmountExcludingTax
(converted from cents)quantity
tax
originAmount
(before discounts)💡 Note: The discounted amount is shown in the invoice summary, not in this table.
subscriptionAmountExcludingTax
discountAmount
taxAmount
totalAmount