Checkout Sessions
Get Line Items
Returns a list of line items corresponding to a checkout session.
GET
/
v1
/
checkout
/
sessions
/
{id}
/
line_items
Copy
curl --request GET \
--url https://api.withflex.com/v1/checkout/sessions/{id}/line_items \
--header 'Authorization: Bearer <token>'
Copy
{
"line_items": [
{
"line_item_id": "<string>",
"amount_discount": 123,
"amount_subtotal": 123,
"amount_tax": 123,
"amount_total": 123,
"amount_shipping": 123,
"description": "<string>",
"price": {
"price_id": "<string>",
"description": "<string>",
"trial_period_days": 123,
"unit_amount": 123,
"recurring": {
"interval": "daily",
"interval_count": 1,
"trial_period_days": 1
},
"active": true,
"product": {
"product_id": "<string>",
"name": "<string>",
"description": "<string>",
"created_at": "<string>",
"visit_type": "cbtSleep",
"active": true,
"upc_code": "<string>",
"gtin": "<string>",
"reference_gtin": "<string>",
"hsa_fsa_eligibility": "not_eligible",
"test_mode": true,
"metadata": {}
},
"created_at": "<string>",
"type": "one_time",
"metadata": {},
"hsa_fsa_eligibility": "not_eligible",
"test_mode": true
},
"quantity": 123,
"eligibility": "not_eligible",
"shipping_rate": "<string>"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200
application/json
The response is of type object
.
Copy
curl --request GET \
--url https://api.withflex.com/v1/checkout/sessions/{id}/line_items \
--header 'Authorization: Bearer <token>'
Copy
{
"line_items": [
{
"line_item_id": "<string>",
"amount_discount": 123,
"amount_subtotal": 123,
"amount_tax": 123,
"amount_total": 123,
"amount_shipping": 123,
"description": "<string>",
"price": {
"price_id": "<string>",
"description": "<string>",
"trial_period_days": 123,
"unit_amount": 123,
"recurring": {
"interval": "daily",
"interval_count": 1,
"trial_period_days": 1
},
"active": true,
"product": {
"product_id": "<string>",
"name": "<string>",
"description": "<string>",
"created_at": "<string>",
"visit_type": "cbtSleep",
"active": true,
"upc_code": "<string>",
"gtin": "<string>",
"reference_gtin": "<string>",
"hsa_fsa_eligibility": "not_eligible",
"test_mode": true,
"metadata": {}
},
"created_at": "<string>",
"type": "one_time",
"metadata": {},
"hsa_fsa_eligibility": "not_eligible",
"test_mode": true
},
"quantity": 123,
"eligibility": "not_eligible",
"shipping_rate": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.