List all PaymentIntent LineItems 

Core Resources
Payment Intents
List all PaymentIntent LineItems

Lists all LineItems of a given PaymentIntent.

Parameters

No parameters.

More parameters

  • ending_beforestring

    A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list.

  • limitinteger

    A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.

  • starting_afterstring

    A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.

Returns

A dictionary with a data property that contains an array of up to limit line items of the given PaymentIntent, starting after line item starting_after. Each entry in the array is a separate line item object. If no other line items are available, the resulting array is empty.

GET /v1/payment_intents/:id/amount_details_line_items
curl https://api.stripe.com/v1/payment_intents/pi_3MtwBwLkdIwHu7ix28a3tqPa/amount_details_line_items \
-u "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2:"
Response
{
"object": "list",
"url": "/v1/payment_intents/pi_3MtwBwLkdIwHu7ix28a3tqPa/amount_details_line_items",
"has_more": false,
"data": [
{
"id": "uli_T1KmwLEvkprqQb",
"object": "payment_intent_amount_details_line_item",
"discount_amount": 50,
"payment_method_options": null,
"product_code": "SKU001",
"product_name": "Product 001",
"quantity": 1,
"tax": {
"total_tax_amount": 20
},
"unit_cost": 2000,
"unit_of_measure": "each"
}
]
}