Buy a credit pack with a card (hosted checkout).

For a person without a crypto wallet; agents pay over x402 instead. Body {"bundle":"starter"|"pro"|"scale"}, plus an optional api_key to top up an existing key (only its id reaches the payment provider). A JSON caller gets {url, session_id}: open url to pay on the hosted page. A form post is redirected there. Card details never reach Lazaretto. The API key is shown once on the confirmation page. The page for people is /buy.

post/v1/checkout

Request

  • Base URL: https://lazaretto.dev
  • URL: https://lazaretto.dev/v1/checkout
  • Auth: none declared

Response

The hosted checkout URL and its session id.

Changes

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