Payment

Creates a hosted checkout session for the authenticated customer to add the given amount to their prepaid balance.

Changed on

Rejected for non-prepaid customers and for amounts below the configured minimum. On successful payment a voucher for the amount is minted, which raises the customer's balance.

post/payment/topup

Request

  • Base URL
    https://api.rapidata.ai
  • URL
    https://api.rapidata.ai/payment/topup
  • Auth
    OpenID Connect (https://auth.rapidata.ai/.well-known/openid-configuration, scopes: openid, profile, email, offline_access, api)

Request body

amountnumber double required

The amount in dollars to add to the prepaid balance.

Response

OK

urlstring required

The hosted Stripe checkout url to redirect the customer to.

Changes