List Invoice Line Items

stripe.list_invoice_lines
ActionBusiness appsconnection required

Calls the Stripe API with the connection's secret key.

List the line items of one Stripe invoice.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Stripe
Secret shape
the Stripe secret key (sk_...)
Resolved by
config.connection_id, else node.connection_id

Configuration

4 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
invoice_id
The invoice to act on (in_...). Supports {{ }} expressions.
stringYes——in_1MtHbELkdIwHu7ixl4OzzPMv
limit
How many objects to return, 1-100. Stripe defaults to 10.
numberNo101–100—
starting_after
Cursor: return the page after this object id, for walking forward.
stringNo———
ending_before
Cursor: return the page before this object id, for walking backward.
stringNo———

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "invoice_id": "in_1MtHbELkdIwHu7ixl4OzzPMv",
  "limit": 10
}

Output

One shape.

result

FieldTypeExample
lines[].id
The line item id (il_...).
string—
lines[].description
What the line bills for.
string—
lines[].amount
Line total, in the currency's minor unit.
number—
lines[].currency
Three-letter lowercase ISO currency code.
string—
lines[].quantity
How many units the line bills.
number—
lines[].price
The price behind the line (price_...), or null.
string—
lines[].period_start
Start of the billed period, Unix seconds.
number—
lines[].period_end
End of the billed period, Unix seconds.
number—
count
How many objects this page returned.
number—
has_more
True when Stripe has a further page to fetch.
boolean—
{
  "count": 0,
  "has_more": false,
  "lines": [
    {
      "amount": 0,
      "currency": "",
      "description": "",
      "id": "",
      "period_end": 0,
      "period_start": 0,
      "price": "",
      "quantity": 0
    }
  ]
}

See List Invoice Line Items run in a workflow.

In a technical demo we add the Stripe connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.