ChartMogul icon

ChartMogul

Interact with ChartMogul API

Actions88

Line Item → Create a Line Item

AI-generated

Summary

Creates a line item on the specified ChartMogul invoice. Choose a subscription or one-time line item, provide its amount, and optionally add type-specific and additional billing details.

Inputs

  • Invoice UUID (required) — UUID of the invoice to add the line item to.
  • Type — Line item type: subscription (default) or one_time.
  • Amount in Cents — Line item amount in cents; defaults to 0.
  • Subscription Line Item Fields — For subscription items, optional plan UUID, proration settings, service period dates, subscription external ID, and subscription set external ID.
  • Description — For one-time items, the line item description.
  • Additional Fields — Optional discount amount, code and description; event order; external ID; quantity; tax amount; and transaction fee currency and amount.
  • Handle As User Edit — Whether to treat the item as a user edit to an existing line item from an automatic source; defaults to false.

Output shape

A single API response item.

The provided source pack contains only source map comments for the operation modules, so it does not expose the response shape. Request options can configure batching and HTTP request behavior.

Links

Discussion