Skip to content

Check a session

Checks whether a session is still valid for a domain. Useful for debugging before mounting the checkout.

Authorization: Bearer <API token>, required.

Name Type Required Description
sessionid string Yes The session ID.
landingDomain string Yes The domain to check against the session.
Terminal window
curl "https://api.creditcore.io/api/session?sessionid=3f6c2b8e-1d2a-4c55-9a3e-7b1f0c9d2e41&landingDomain=shop.example.com" \
-H "Authorization: Bearer $CREDITCORE_API_TOKEN"
Status Body Meaning
200 Sucess!! (plain text) The session is valid for this domain.
404 Not found! (plain text) The session exists but the domain doesn’t match.
404 {"code":"SESSION_NOT_FOUND", …} The session expired or doesn’t exist.