billing

Create credit pack checkout session

Create a Stripe Checkout Session for a one-time credit pack purchase.

Maps the requested pack to a Stripe price ID and creates a payment-mode checkout session. Returns the checkout URL for client-side redirect.

post/billing/credits/checkout

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/credits/checkout
  • Auth: HTTP bearer

Headers

X-API-Keystring nullable

Request body

pack'100_credits' | '500_credits' | '2000_credits' required
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.