Check a session
Checks whether a session is still valid for a domain. Useful for debugging before mounting the checkout.
Authentication
Section titled “Authentication”Authorization: Bearer <API token>, required.
Query parameters
Section titled “Query parameters”| Name | Type | Required | Description |
|---|---|---|---|
sessionid |
string | Yes | The session ID. |
landingDomain |
string | Yes | The domain to check against the session. |
Request
Section titled “Request”curl "https://api.creditcore.io/api/session?sessionid=3f6c2b8e-1d2a-4c55-9a3e-7b1f0c9d2e41&landingDomain=shop.example.com" \ -H "Authorization: Bearer $CREDITCORE_API_TOKEN"Responses
Section titled “Responses”| 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. |