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.
Call through Alter
Section titled “Call through Alter”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 osfrom alter_sdk import Appfrom 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()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.intent | string | Required within parent | Maximum length: 5000 |
query | object | Optional | Additional keys: not allowed |
query.ending_before | string | Optional | Maximum length: 5000 |
query.expand | array | Optional | |
query.expand[] | string | Each item | Maximum length: 5000 |
query.limit | integer | Optional | |
query.starting_after | string | Optional | Maximum length: 5000 |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
data | array | Required within parent | Details about each object. |
data[] | Model | Each item | Expand List all Payment Intent Line Items — response body — data item |
has_more | boolean | Required within parent | True if this list has another page of items after this one that can be fetched. |
object | string | Required within parent | String representing the object’s type. Objects of the same type share the same value. Always has the value `list`. Known values: list |
url | string | Required within parent | The URL where this list can be accessed. Maximum length: 5000 |
Referenced models: List all Payment Intent Line Items — response body — data item
Schemas
Section titled “Schemas”List all Payment Intent Line Items — response body — data item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
discount_amount | JSON | Optional | |
discount_amount (anyOf 1) | JSON | Alternative | |
discount_amount (anyOf 1) (anyOf 1) | integer | Alternative | The 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) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
discount_amount (anyOf 2) | null | Alternative | |
id | string | Required within parent | Unique identifier for the object. Maximum length: 5000 |
object | string | Required within parent | String representing the object's type. Objects of the same type share the same value. Known values: payment_intent_amount_details_line_item |
payment_method_options | JSON | Optional | |
payment_method_options (anyOf 1) | JSON | Alternative | Payment method-specific information for line items. |
payment_method_options (anyOf 1) (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
product_code | JSON | Optional | |
product_code (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
product_name | string | Required within parent | The 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 |
quantity | JSON | Required within parent | |
quantity (anyOf 1) | integer | Alternative | The quantity of items. Required for L3 rates. An integer greater than 0. |
quantity (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
tax | JSON | Optional | |
tax (anyOf 1) | JSON | Alternative | Contains information about the tax on the item. |
tax (anyOf 1) (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
unit_cost | JSON | Required within parent | |
unit_cost (anyOf 1) | integer | Alternative | The 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) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
unit_of_measure | JSON | Optional | |
unit_of_measure (anyOf 1) | string | Alternative | A 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) | null | Alternative |
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
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
total_tax_amount | JSON | Required within parent | |
total_tax_amount (anyOf 1) | integer | Alternative | The 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) | string | Alternative | Pattern: ^-?[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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
commodity_code | JSON | Optional | |
commodity_code (anyOf 1) | string | Alternative | Maximum length: 5000 |
commodity_code (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
image_url | JSON | Optional | |
image_url (anyOf 1) | string | Alternative | Maximum length: 2048 |
image_url (anyOf 2) | null | Alternative | |
product_url | JSON | Optional | |
product_url (anyOf 1) | string | Alternative | Maximum length: 2048 |
product_url (anyOf 2) | null | Alternative | |
reference | JSON | Optional | |
reference (anyOf 1) | string | Alternative | Maximum length: 255 |
reference (anyOf 2) | null | Alternative | |
subscription_reference | JSON | Optional | |
subscription_reference (anyOf 1) | string | Alternative | Maximum length: 2048 |
subscription_reference (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
category | string | Optional | Type of the line item. Known values: digital_goods, donation, physical_goods |
description | string | Optional | Description of the line item. Maximum length: 5000 |
sold_by | string | Optional | The 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 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”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"}