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

NomDansTypeDescription
session_id*pathstringCheckout 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

StatutDescriptionType
200OKget_checkout_session.Result
401Unauthorizedecho.HTTPError
404Not Foundecho.HTTPError
503Service Unavailableecho.HTTPError

Source machine : openapi.json · opération getBillingCheckoutSession