Skip to content

Build a Paddle.js checkout config for Invogi Control (ADMIN+)

POST
/billing/checkout
curl --request POST \
--url https://api.invogi.com/v1/billing/checkout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "plan_code": "CONTROL", "billing_interval": "month", "additional_legal_entities": 0, "conversion_source": "business_case", "conversion_variant": "plan_led", "scan_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "expected_monthly_invoices": 1 }'
X-Invogi-Organization
string format: uuid

For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.

Media typeapplication/json
object
plan_code
string
default: CONTROL
Allowed values: CONTROL
billing_interval
string
default: month
Allowed values: month year
additional_legal_entities

Must cover every active company beyond Control’s three included entities; more than 10 total entities requires Enterprise.

integer
0 <= 7
conversion_source

Controlled attribution for the upgrade surface that opened checkout.

string
Allowed values: business_case monitoring_trial trial_ending trial_ended erp_integrations recurring_scans upgrade_request verified_value checkout_abandoned pricing other
conversion_variant

Stable business-case CTA experiment assignment; valid only with business_case.

string
Allowed values: plan_led outcome_led
scan_id

Tenant-owned audit used for attribution and the post-checkout activation return.

string format: uuid
expected_monthly_invoices

Buyer-confirmed planning assumption recorded for funnel analysis. It does not alter line-item pricing; values above 20,000 are routed to Enterprise and cannot open self-service checkout.

integer
<= 10000000

Paddle.js Checkout.open() options

Media typeapplication/json
object
items
required
Array<object>
object
priceId
required
string
quantity
required
integer
customer
object
email
required
string
customData
required
object
organization_id
required
string format: uuid
checkout_attempt_id

Server-recorded checkout attempt used for conversion attribution.

string format: uuid
settings
required
object
successUrl
required
string format: uri

Example generated

{
"items": [
{
"priceId": "example",
"quantity": 1
}
],
"customer": {
"email": "example"
},
"customData": {
"organization_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"checkout_attempt_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
},
"settings": {
"successUrl": "https://example.com"
}
}

Invalid request

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

Missing or invalid API key

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

API key lacks required scope/role

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

Organization already has a subscription