Sample - Stripe API
GET/v1/payment_intents/{intent}/amount_details_line_items

List PaymentIntent line items

Lists all line items associated with a PaymentIntent. Use starting_after or ending_before with limit to navigate through the list, and use expand when you need additional response fields.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

5 parameters
intentstringrequired
The identifier of the PaymentIntent whose line items to list. Maximum 5,000 characters.
ending_beforestringoptional
An object ID that marks the end of the requested page; use it to retrieve the preceding page of line items.
expandarray<string>optional
Specifies response fields to expand. Each expansion path can contain up to 5,000 characters.
limitintegeroptional
The number of line items to return. Must be between 1 and 100, and defaults to 10 when omitted.
starting_afterstringoptional
An object ID that marks the start of the requested page; use it to retrieve the next page of line items.

2 status codes
200Returns a list object containing PaymentIntent line items in `data`, a `has_more` pagination flag, the object type `list`, and the list URL.
dataarray<PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItem>required
Details about each object.
has_morebooleanrequired
True if this list has another page of items after this one that can be fetched.
objectstringrequired
String representing the object's type. Objects of the same type share the same value. Always has the value `list`.
Allowed:list
urlstringrequired
The URL where this list can be accessed.
defaultReturns an error object containing an `error` field with the error type and related details.
errorobjectrequired

Error handling

intent must identify the PaymentIntent whose line items you want to list. limit must be an integer between 1 and 100, and starting_after and ending_before must be object IDs used as pagination cursors.