Billing

Create a top-up checkout

Returns a hosted checkout URL with amountCents prefilled (editable there, $20 to $5,000). The balance is credited when the payment lands, within a minute, and tracking the wallet had paused resumes at once. Nothing is charged by this call itself. successUrl must be on an origin this deployment trusts; omit it for the dashboard's billing page.

post/v1/billing/top-ups

Request

  • Base URL: https://api.mentio.dev
  • URL: https://api.mentio.dev/v1/billing/top-ups
  • Auth: HTTP bearer

Request body

amountCentsinteger required

Amount to add, in USD cents (2000 to 500000). Prefilled at checkout, editable there.

successUrlstring uri

Where the customer lands after paying: a page on an origin this deployment trusts (the dashboard). Omit it and the dashboard's billing page is used.

Response

Hosted checkout URL with the amount prefilled

urlstring required

Hosted Polar checkout URL.

Changes

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