Top up credits using saved payment method

Charges the saved payment method off-session via Stripe PaymentIntent and adds credits immediately. No checkout URL or browser redirect needed. Requires billing activated with a payment method on file.

post/api/v1/billing/credits/topup

Request

  • Base URL: https://api.virga.dev
  • URL: https://api.virga.dev/api/v1/billing/credits/topup
  • Auth: API key in header X-API-Key

Request body

bundle'500' | '2000' | '10000' required

500 credits = $5, 2000 credits = $18, 10000 credits = $75

Response

Credits added

messagestring
creditsnumber
bundlestring
paymentIntentIdstring

Changes

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