Skip to main content
POST
/
billing
/
top-up
/
card-link
Create a Stripe card-checkout link to top up credits.
curl --request POST \
  --url https://api.streamloop.app/v1/billing/top-up/card-link \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amountCents": 123
}
'
{
  "checkoutUrl": "<string>",
  "credits": 123,
  "sessionId": "<string>"
}

Authorizations

Authorization
string
header
required

OAuth 2.1 authorization-code flow with PKCE.

Headers

Idempotency-Key
string

Optional client-generated key. A repeated request with the same key replays the original response (within 24h) instead of re-executing — safe retries.

Body

application/json
amountCents
integer
required

Response

Successful response.

checkoutUrl
string
required
credits
integer
required

Credits that will be added to the account after payment

sessionId
string
required