billing

Creates a checkout session for a plan or a token top-up.

post/api/billing/checkout

Request

  • Base URL: https://api.pricklymails.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.pricklymails.com/api/billing/checkout
  • Auth: HTTP bearer

Request body

cancel_urlstring required

URL the buyer is redirected to when they cancel the checkout.

localestring nullable

Language of the hosted checkout page and of the terms the buyer accepts there ("en" or "fr").

success_urlstring required

URL the buyer is redirected to after a successful payment.

Response

Hosted checkout redirect URL.

urlstring required

Hosted checkout URL to redirect the user to.

Changes

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