Skip to content

Ask the workspace's owners and admins to subscribe (ANALYST, VIEWER)

POST
/billing/upgrade-requests
curl --request POST \
--url https://api.invogi.com/v1/billing/upgrade-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "scan_id": "4f1c2a9e-6f4b-4b8e-9a51-2f1d3c7b8e10", "note": "We nearly paid two of these twice." }'

For members who cannot open checkout. Emails and notifies the workspace’s OWNERs and ADMINs (never another address), with the given scan’s results and verified value, reply-to the requester. One per requester per workspace per UTC day; a repeat returns ALREADY_REQUESTED and sends nothing. Signed-in members only.

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
scan_id

A completed scan of this workspace whose results to include

string format: uuid
note
string
<= 500 characters

Examples

ExamplefromAudit
{
"scan_id": "4f1c2a9e-6f4b-4b8e-9a51-2f1d3c7b8e10",
"note": "We nearly paid two of these twice."
}

Already requested today; nothing sent

Media typeapplication/json
object
status
required
string
Allowed values: SENT ALREADY_REQUESTED
recipients
required
integer

Example

{
"status": "SENT"
}

Sent

Media typeapplication/json
object
status
required
string
Allowed values: SENT ALREADY_REQUESTED
recipients
required
integer

Examples

Examplesent
{
"status": "SENT",
"recipients": 2
}

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"
}
}

Resource not found

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"
}
}

The requester is an OWNER or ADMIN, the workspace already subscribes, the scan has not completed, or there is nobody to ask