billing

Save a card for auto-recharge

Open a hosted Stripe Checkout (mode=setup) to save a reusable card.

Returns the checkout URL for client redirect. On completion the setup webhook persists the PaymentMethod onto the user's config; the user can then enable auto-recharge via PUT /billing/auto-recharge.

post/billing/auto-recharge/setup

Request

  • Base URL: https://api.whoisgeni.us (the document declares no server; this is the origin it was published from)
  • URL: https://api.whoisgeni.us/billing/auto-recharge/setup
  • Auth: HTTP bearer

Headers

X-API-Keystring nullable

Request body

success_urlstring required
cancel_urlstring required

Response

Successful Response

metaobject nullable

Example response

{
  "error": {
    "code": "JOB_NOT_FOUND",
    "message": "No job found with the given ID."
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.