Skip to main content
POST
/
credits
/
topup
Create credit checkout
curl --request POST \
  --url https://api.veryfront.com/credits/topup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "packageId": "small",
  "package_id": "small",
  "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "successUrl": "<string>",
  "success_url": "<string>",
  "cancelUrl": "<string>",
  "cancel_url": "<string>"
}
'
{
  "status": "checkout_created",
  "checkout_url": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Body

application/json
packageId
enum<string>

Credit package ID in camelCase form

Available options:
small,
medium,
large,
xl
package_id
enum<string>

Credit package ID in snake_case form

Available options:
small,
medium,
large,
xl
projectId
string<uuid>

Project ID for owner-pays top-up in camelCase form

project_id
string<uuid>

Project ID for owner-pays top-up in snake_case form

successUrl
string<uri>

Checkout success redirect URL in camelCase form

success_url
string<uri>

Checkout success redirect URL in snake_case form

cancelUrl
string<uri>

Checkout cancellation redirect URL in camelCase form

cancel_url
string<uri>

Checkout cancellation redirect URL in snake_case form

Response

Checkout session result

status
enum<string>
required

Checkout creation status

Available options:
checkout_created
checkout_url
string<uri>
required

Stripe checkout URL for the credit purchase