Lists all LineItems of a given PaymentIntent.
Parameters
No parameters.
More parameters
- ending_
beforestring A cursor for use in pagination.
ending_is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withbefore obj_, your subsequent call can includebar ending_in order to fetch the previous page of the list.before=obj_ bar - 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_is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withafter obj_, your subsequent call can includefoo starting_in order to fetch the next page of the list.after=obj_ foo
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_. Each entry in the array is a separate line item object. If no other line items are available, the resulting array is empty.
{ "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" } ]}