Ask the workspace's owners and admins to subscribe (ANALYST, VIEWER)
const url = 'https://api.invogi.com/v1/billing/upgrade-requests';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"scan_id":"4f1c2a9e-6f4b-4b8e-9a51-2f1d3c7b8e10","note":"We nearly paid two of these twice."}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”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.
Request Body
Section titled “Request Body”object
A completed scan of this workspace whose results to include
Examples
{ "scan_id": "4f1c2a9e-6f4b-4b8e-9a51-2f1d3c7b8e10", "note": "We nearly paid two of these twice."}Responses
Section titled “Responses”Already requested today; nothing sent
object
Example
{ "status": "SENT"}Sent
object
Examples
{ "status": "SENT", "recipients": 2}Invalid request
Missing or invalid API key
API key lacks required scope/role
Resource not found
The requester is an OWNER or ADMIN, the workspace already subscribes, the scan has not completed, or there is nobody to ask