Billing

Get a buy-credits link

Returns a URL the agent hands to a human to buy prepaid credits. With billing configured this is a real Stripe hosted-Checkout session (provider: "stripe") for the selected pack; credits are available seconds after the human completes payment. Falls back to a dashboard billing deep link (provider: "dashboard") on deployments without Stripe. A human must complete the payment either way.

get/v1/billing/upgrade-link

Request

  • Base URL: https://api.talonic.com
  • URL: https://api.talonic.com/v1/billing/upgrade-link
  • Auth: HTTP bearer

Query parameters

pack'10' | '50' | '250' | '1000'

Credit pack to check out (see GET /v1/billing/packs).

Response

Buy-credits link.

urlstring uri required
providerstring required

'stripe' (hosted Checkout session) or 'dashboard' (deep link fallback).

requires_humanboolean required
packobject

The selected pack (stripe provider only).

messagestring

Example response

{
  "url": "https://checkout.stripe.com/c/pay/cs_test_...",
  "provider": "stripe"
}

Changes

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