Skip to content

Stripe: List all Payment Intent Line Items

Stripe paymentIntents.getPaymentIntentsIntentAmountDetailsLineItems: arguments, response, policy and SDK examples.

← Payment intents operations · Get started

Operation stripe.getpaymentintentsintentamountdetailslineitems

Provider route: GET /v1/payment_intents/{intent}/amount_details_line_items. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/stripe with npm, or alter-sdk-stripe with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { StripeIntegration } from "@alter-ai/stripe";
async function execute(input: Parameters<StripeIntegration["paymentIntents"]["getPaymentIntentsIntentAmountDetailsLineItems"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new StripeIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.paymentIntents.getPaymentIntentsIntentAmountDetailsLineItems(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_stripe import StripeIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = StripeIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.payment_intents.get_payment_intents_intent_amount_details_line_items(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.intentstringRequired within parentMaximum length: 5000
queryobjectOptionalAdditional keys: not allowed
query.ending_beforestringOptionalMaximum length: 5000
query.expandarrayOptional
query.expand[]stringEach itemMaximum length: 5000
query.limitintegerOptional
query.starting_afterstringOptionalMaximum length: 5000

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$objectRoot
dataarrayRequired within parentDetails about each object.
data[]ModelEach itemExpand List all Payment Intent Line Items — response body — data item
has_morebooleanRequired within parentTrue if this list has another page of items after this one that can be fetched.
objectstringRequired within parentString representing the object’s type. Objects of the same type share the same value. Always has the value `list`.
Known values: list
urlstringRequired within parentThe URL where this list can be accessed.
Maximum length: 5000

Referenced models: List all Payment Intent Line Items — response body — data item

List all Payment Intent Line Items — response body — data item
FieldTypePresenceDescription and constraints
$objectRoot
discount_amountJSONOptional
discount_amount (anyOf 1)JSONAlternative
discount_amount (anyOf 1) (anyOf 1)integerAlternativeThe discount applied on this line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.

This field is mutually exclusive with the `amount_details[discount_amount]` field.
discount_amount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
discount_amount (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: payment_intent_amount_details_line_item
payment_method_optionsJSONOptional
payment_method_options (anyOf 1)JSONAlternativePayment method-specific information for line items.
payment_method_options (anyOf 1) (anyOf 1)ModelAlternativeExpand List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal
payment_method_options (anyOf 2)nullAlternative
product_codeJSONOptional
product_code (anyOf 1)stringAlternativeThe product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
Maximum length: 5000
product_code (anyOf 2)nullAlternative
product_namestringRequired within parentThe product name of the line item. Required for L3 rates. At most 1024 characters long.

For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters.
Maximum length: 5000
quantityJSONRequired within parent
quantity (anyOf 1)integerAlternativeThe quantity of items. Required for L3 rates. An integer greater than 0.
quantity (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
taxJSONOptional
tax (anyOf 1)JSONAlternativeContains information about the tax on the item.
tax (anyOf 1) (anyOf 1)ModelAlternativeExpand List all Payment Intent Line Items — response body — data item tax Contains information about the tax on the item total tax amount
tax (anyOf 2)nullAlternative
unit_costJSONRequired within parent
unit_cost (anyOf 1)integerAlternativeThe unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
unit_cost (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
unit_of_measureJSONOptional
unit_of_measure (anyOf 1)stringAlternativeA unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long.
Maximum length: 5000
unit_of_measure (anyOf 2)nullAlternative

Referenced models: List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal, List all Payment Intent Line Items — response body — data item tax Contains information about the tax on the item total tax amount

List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal
FieldTypePresenceDescription and constraints
$objectRoot
cardModelOptionalExpand List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal card
card_presentModelOptionalExpand List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal card
klarnaModelOptionalExpand List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal klarna
paypalModelOptionalExpand List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal paypal

Referenced models: List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal card, List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal klarna, List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal paypal

List all Payment Intent Line Items — response body — data item tax Contains information about the tax on the item total tax amount
FieldTypePresenceDescription and constraints
$objectRoot
total_tax_amountJSONRequired within parent
total_tax_amount (anyOf 1)integerAlternativeThe total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.

This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
total_tax_amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal card
FieldTypePresenceDescription and constraints
$objectRoot
commodity_codeJSONOptional
commodity_code (anyOf 1)stringAlternativeMaximum length: 5000
commodity_code (anyOf 2)nullAlternative
List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal klarna
FieldTypePresenceDescription and constraints
$objectRoot
image_urlJSONOptional
image_url (anyOf 1)stringAlternativeMaximum length: 2048
image_url (anyOf 2)nullAlternative
product_urlJSONOptional
product_url (anyOf 1)stringAlternativeMaximum length: 2048
product_url (anyOf 2)nullAlternative
referenceJSONOptional
reference (anyOf 1)stringAlternativeMaximum length: 255
reference (anyOf 2)nullAlternative
subscription_referenceJSONOptional
subscription_reference (anyOf 1)stringAlternativeMaximum length: 2048
subscription_reference (anyOf 2)nullAlternative
List all Payment Intent Line Items — response body — data item payment method options Payment method-specific information for line items card, card present, klarna, paypal paypal
FieldTypePresenceDescription and constraints
$objectRoot
categorystringOptionalType of the line item.
Known values: digital_goods, donation, physical_goods
descriptionstringOptionalDescription of the line item.
Maximum length: 5000
sold_bystringOptionalThe Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
Maximum length: 5000

SDK function policy ID: stripe.getpaymentintentsintentamountdetailslineitems. Catalog operation: GetPaymentIntentsIntentAmountDetailsLineItems. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned headers: {"Stripe-Version": "2026-09-30.endive"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.