Skip to main content
POST
/
v1
/
api
/
billing
/
topup
Buy a credit pack
curl --request POST \
  --url https://api.hq.zone/v1/api/billing/topup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pack_slug": "<string>"
}
'
{
  "url": "<string>"
}

Returns a Stripe redirect URL

Creates a one-time payment session for a credit pack and returns { "url": "..." }redirect the customer there to pay. Credits land on the workspace’s balance asynchronously once Stripe confirms the payment. Available to any tier.

Authorizations

Authorization
string
header
required

Personal Access Token. Send as Authorization: Bearer hq_pat_....

Body

application/json
pack_slug
string
required

Response

Stripe Checkout URL for the credit pack

url
string
required