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

NomDansTypeDescription
plan*querystringPlan to be paid for

Exemple curl

curl -X GET https://api.sporee.fr/billing/checkout/methods \
  -H "Authorization: Bearer $SPORE_API_KEY"

Réponses

StatutDescriptionType
200OKlist_checkout_methods.Result
401Unauthorizedecho.HTTPError
422plan is not purchasableecho.HTTPError
500Internal Server Errorecho.HTTPError
503billing is not configuredecho.HTTPError

Source machine : openapi.json · opération listBillingCheckoutMethods