v1

latestOpenAPI 3.1.02026-07-2684271522.2 KB
Checkout Sessions

Get Line Items

Returns the line items for the given Checkout Session. Each line item includes its price, quantity, and computed amounts.

get/v1/checkout/sessions/{id}/line_items

Path parameters

idstring required
Example:fcs_01J9XR8M3K7VZ8N2YB4WJ6T0RA

Response

An envelope wrapping a list of line item objects.

Example response

{
  "line_items": [
    {
      "line_item_id": "fli_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
      "amount_discount": 2500,
      "amount_subtotal": 2500,
      "amount_tax": 2500,
      "amount_total": 2500,
      "amount_shipping": 2500,
      "amount_fee": 2500,
      "description": "Premium SPF 50 mineral sunscreen",
      "fees": [],
      "price": {},
      "quantity": 2500,
      "eligibility": "not_eligible",
      "shipping_rate": "fshr_01J9XR8M3K7VZ8N2YB4WJ6T0RA"
    }
  ]
}