API / Billing
GET
/billing/checkout/{session_id}
Read how a checkout ended
The provider's redirect carries no outcome — a refused card lands on the same URL as a paid one — so the return page polls this while `status` is `pending` or `redirected`, and opens access on `paid`. Someone else's session reads as not found.
Authentification : clé API Bearer requise.
Paramètres
| Nom | Dans | Type | Description |
|---|---|---|---|
| session_id* | path | string | Checkout session id, from the lungor_session_id query parameter on the return URL |
Exemple curl
curl -X GET https://api.sporee.fr/billing/checkout/<session_id> \
-H "Authorization: Bearer $SPORE_API_KEY"Réponses
| Statut | Description | Type |
|---|---|---|
| 200 | OK | get_checkout_session.Result |
| 401 | Unauthorized | echo.HTTPError |
| 404 | Not Found | echo.HTTPError |
| 503 | Service Unavailable | echo.HTTPError |
Source machine : openapi.json · opération getBillingCheckoutSession