List Checkout Sessions
Lists your Checkout Sessions in the key’s mode, newest first, so you can reconcile payments without having kept every id. Narrow it with status and a from/to created range. To page, pass the nextCursor you got as cursor until it is null.
Authentication
AuthorizationBearer
Your secret key: sk_test_… in Test mode, sk_live_… in Live mode.
Query parameters
limit
1 to 100; defaults to 10.
cursor
The nextCursor from the previous page; returns the sessions older than it. Opaque: don’t build or change one.
status
Only sessions with this status: one of pending, succeeded, failed or cancelled.
from
Only sessions created at or after this Unix ms timestamp.
to
Only sessions created at or before this Unix ms timestamp.
Response
A page of Checkout Sessions.
data
This page of Checkout Sessions, newest first.
nextCursor
Pass as cursor to get the next page; null on the last page.
Errors
400
Bad Request Error
401
Unauthorized Error