API / Billing
GET
/billing/checkout/methods
List how a plan may be paid for
Returns the payment methods the provider accepts for this tier, in the order to offer them, each id being what the checkout takes as paymentMethod. The list is asked rather than assumed: a tier billed monthly drops every method that leaves no mandate behind, and the provider refuses at checkout what it omits here. An empty list means no choice to present — check out with no preselection.
Authentification : clé API Bearer requise.
Paramètres
| Nom | Dans | Type | Description |
|---|---|---|---|
| plan* | query | string | Plan to be paid for |
Exemple curl
curl -X GET https://api.sporee.fr/billing/checkout/methods \
-H "Authorization: Bearer $SPORE_API_KEY"Réponses
| Statut | Description | Type |
|---|---|---|
| 200 | OK | list_checkout_methods.Result |
| 401 | Unauthorized | echo.HTTPError |
| 422 | plan is not purchasable | echo.HTTPError |
| 500 | Internal Server Error | echo.HTTPError |
| 503 | billing is not configured | echo.HTTPError |
Source machine : openapi.json · opération listBillingCheckoutMethods