Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 795 Bytes

File metadata and controls

27 lines (18 loc) · 795 Bytes

list

Retrieve a Checkout Session's line items

When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.

API Endpoint: GET /v1/checkout/sessions/{session}/line_items

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.checkout.session.line_items.list(session="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.checkout.session.line_items.list(session="string")