Payment Intents
get/v1/payment_intents/{intent}/amount_details_line_items

List all PaymentIntent LineItems

Lists all LineItems of a given PaymentIntent.

Path parameters

NameDescription
intent*

Query parameters

NameDescription
ending_beforeA 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.
expandSpecifies which fields in the response should be expanded.
limitA limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
starting_afterA 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.

Request body

object (no properties in spec)

Response

FieldTypeDescription
data*array<payment_intent_amount_details_line_item>

Details about each object.

array item fields
FieldTypeDescription
discount_amountinteger

The discount applied on this line item represented in the smallest currency unit. An integer greater than 0. This field is mutually exclusive with the amount_details[discount_amount] field.

id*string

Unique identifier for the object.

object*string

String representing the object's type. Objects of the same type share the same value.

payment_method_optionspayment_flows_amount_details_resource_line_items_list_resource_line_item_resource_payment_method_options

Payment method-specific information for line items.

product_codestring

The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.

product_name*string

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.

quantity*integer

The quantity of items. Required for L3 rates. An integer greater than 0.

taxpayment_flows_amount_details_resource_line_items_list_resource_line_item_resource_tax

Contains information about the tax on the item.

unit_cost*integer

The unit cost of the line item represented in the smallest currency unit. Required for L3 rates. An integer greater than or equal to 0.

unit_of_measurestring

A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long.

has_more*boolean

True if this list has another page of items after this one that can be fetched.

object*string

String representing the object's type. Objects of the same type share the same value. Always has the value list.

url*string

The URL where this list can be accessed.