Skip to main content
POST
/
subscriptions
/
add-ons
Purchase Add-On
curl --request POST \
  --url https://api.veryfront.com/subscriptions/add-ons \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "ai_credits",
  "quantity": 100,
  "success_url": "<string>",
  "cancel_url": "<string>"
}
'
{
  "checkout_url": "<string>",
  "session_id": "<string>"
}

Authorizations

Authorization
string
header
required

Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.

Body

application/json
type
enum<string>
required

Type of add-on to purchase

Available options:
ai_credits,
storage,
bandwidth,
release_builds
Example:

"ai_credits"

quantity
number
required

Quantity to purchase

Required range: x >= 1
Example:

100

success_url
string<uri>

URL to redirect to after successful payment

cancel_url
string<uri>

URL to redirect to if payment is cancelled

Response

Add-on purchase checkout created

checkout_url
string<uri>
required
session_id
string