GET/billing/items-queue
Scope read:billingRead only
Requires the read:billing scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
limitintegerin query
Page size, 1 to 100 (default 25).
Min 1. Max 100. Default 25.
cursorstringin query
Opaque continuation token: pass back the nextCursor you were given. Never construct one.
organizationIdstringin query
Only the queued ticket items of this client (organization id).
Errors (401, 403, 404, 429)
401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
POST/billing/items-queue
Scope write:ticketsChanges data
Requires the write:tickets scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
Idempotency-Keystringin header
Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.
Request body
ticketIdintegerRequired
Ticket number (the number shown in the portal, not an internal id).
productIdstringRequired
ID of the product.
quantitynumber
Quantity.
Max 999999999.999. Default 1.
unitPricenumber
Price per unit; defaults to the product price.
descriptionstring
Text for the billable line; defaults to the product description.
Up to 50000 characters.
displayNamestring
Name to show on the line instead of the product name.
Up to 500 characters.
requestIdstring
Retry key you choose (1 to 200 characters). Sending the same key again returns the item already made instead of adding a second one.
Up to 200 characters.
Response 200
dataobjectRequired
The result of the action.
data.okbooleanRequired
True when the action was carried out (or, with dryRun, previewed).
data.messagestringRequired
Plain-words sentence describing what happened.
data.entityobject or nullRequired
The record the action touched, or null when it did not touch one.
data.entity.typestring or nullRequired
Kind of record that was acted on, when there is one.
data.entity.idstring or nullRequired
Id of that record, when there is one.
data.entity.hrefstring or nullRequired
Absolute portal link to that record, when there is one.
data.outputobjectRequired
Anything else the action returned (may be empty).
Errors (400, 401, 402, 403, 404, 429)
400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
GET/billing/plans
Scope read:billingRead only
Requires the read:billing scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
limitintegerin query
Page size, 1 to 100 (default 25).
Min 1. Max 100. Default 25.
cursorstringin query
Opaque continuation token: pass back the nextCursor you were given. Never construct one.
planTypeKeystringin query
Only plans of this plan-type key.
Errors (401, 403, 404, 429)
401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
GET/billing/plans/{planId}
Scope read:billingRead only
Requires the read:billing scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Errors (401, 403, 404, 429)
401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
GET/billing/products
Scope read:billingRead only
Requires the read:billing scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
limitintegerin query
Page size, 1 to 100 (default 25).
Min 1. Max 100. Default 25.
cursorstringin query
Opaque continuation token: pass back the nextCursor you were given. Never construct one.
searchstringin query
Only products matching this text.
Errors (401, 403, 404, 429)
401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
GET/billing/subscriptions
Scope read:billingRead only
Requires the read:billing scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
limitintegerin query
Page size, 1 to 100 (default 25).
Min 1. Max 100. Default 25.
cursorstringin query
Opaque continuation token: pass back the nextCursor you were given. Never construct one.
organizationIdstringin query
Only the subscriptions of this client (organization id).
statusstringin query
Subscription status; ACTIVE when omitted.
One of: ACTIVE, PAUSED, CANCELLED, SCHEDULED.
Errors (401, 403, 404, 429)
401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
POST/billing/subscriptions
Scope write:billingChanges data
Requires the write:billing scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
Idempotency-Keystringin header
Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.
Request body
organizationIdstringRequired
ID of the client company (organization) this applies to.
servicePlanIdstringRequired
ID of the service plan.
billingFrequencystring
How often the client is billed: MONTHLY, QUARTERLY or ANNUAL.
One of: MONTHLY, QUARTERLY, ANNUAL.
startBillingDatestring
Date billing starts, ISO 8601 date (YYYY-MM-DD).
Response 200
dataobjectRequired
The result of the action.
data.okbooleanRequired
True when the action was carried out (or, with dryRun, previewed).
data.messagestringRequired
Plain-words sentence describing what happened.
data.entityobject or nullRequired
The record the action touched, or null when it did not touch one.
data.entity.typestring or nullRequired
Kind of record that was acted on, when there is one.
data.entity.idstring or nullRequired
Id of that record, when there is one.
data.entity.hrefstring or nullRequired
Absolute portal link to that record, when there is one.
data.outputobjectRequired
Anything else the action returned (may be empty).
Errors (400, 401, 402, 403, 404, 429)
400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
PATCH/billing/subscriptions/{subscriptionId}
Scope write:billingChanges data
Requires the write:billing scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
subscriptionIdstringin pathRequired
Client subscription id.
Idempotency-Keystringin header
Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.
Request body
statusstring
Status of the subscription. Allowed values: ACTIVE, PAUSED, CANCELLED, SCHEDULED.
One of: ACTIVE, PAUSED, CANCELLED, SCHEDULED.
cancelReasonstring or null
Why it is being cancelled. Send null to clear it.
scheduledStartAtstring or null
When the subscription starts, ISO 8601 date-time. Send null to clear it.
Response 200
dataobjectRequired
The result of the action.
data.okbooleanRequired
True when the action was carried out (or, with dryRun, previewed).
data.messagestringRequired
Plain-words sentence describing what happened.
data.entityobject or nullRequired
The record the action touched, or null when it did not touch one.
data.entity.typestring or nullRequired
Kind of record that was acted on, when there is one.
data.entity.idstring or nullRequired
Id of that record, when there is one.
data.entity.hrefstring or nullRequired
Absolute portal link to that record, when there is one.
data.outputobjectRequired
Anything else the action returned (may be empty).
Errors (400, 401, 402, 403, 404, 429)
400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
DELETE/billing/subscriptions/{subscriptionId}
Scope write:billingChanges data
Requires the write:billing scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
subscriptionIdstringin pathRequired
Client subscription id.
Idempotency-Keystringin header
Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.
Request body
cancelReasonstring
Why it is being cancelled.
reasonstringRequired
Why this destructive action is being done (recorded in the audit log with the door it came through).
At least 3 characters. Up to 2000 characters.
Response 200
dataobjectRequired
The result of the action.
data.okbooleanRequired
True when the action was carried out (or, with dryRun, previewed).
data.messagestringRequired
Plain-words sentence describing what happened.
data.entityobject or nullRequired
The record the action touched, or null when it did not touch one.
data.entity.typestring or nullRequired
Kind of record that was acted on, when there is one.
data.entity.idstring or nullRequired
Id of that record, when there is one.
data.entity.hrefstring or nullRequired
Absolute portal link to that record, when there is one.
data.outputobjectRequired
Anything else the action returned (may be empty).
Errors (400, 401, 402, 403, 404, 429)
400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
POST/billing/subscriptions/{subscriptionId}/generate-invoice
Scope write:billingChanges data
Requires the write:billing scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
subscriptionIdstringin pathRequired
Client subscription id.
Idempotency-Keystringin header
Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.
Response 200
dataobjectRequired
The result of the action.
data.okbooleanRequired
True when the action was carried out (or, with dryRun, previewed).
data.messagestringRequired
Plain-words sentence describing what happened.
data.entityobject or nullRequired
The record the action touched, or null when it did not touch one.
data.entity.typestring or nullRequired
Kind of record that was acted on, when there is one.
data.entity.idstring or nullRequired
Id of that record, when there is one.
data.entity.hrefstring or nullRequired
Absolute portal link to that record, when there is one.
data.outputobjectRequired
Anything else the action returned (may be empty).
Errors (400, 401, 402, 403, 404, 429)
400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
POST/clients/{organizationId}/subscriptions/schedule
Scope write:billingChanges data
Requires the write:billing scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
organizationIdstringin pathRequired
Client id.
Idempotency-Keystringin header
Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.
Request body
servicePlanIdstringRequired
The service plan to move the client to.
effectiveAtstringRequired
The calendar day the change takes effect, YYYY-MM-DD.
supersedesIdstring
The current ACTIVE subscription this change replaces, when it replaces one.
billingFrequencystring
Overrides the plan's billing frequency; leave out to use the plan default.
One of: MONTHLY, QUARTERLY, ANNUAL.
Response 200
dataobjectRequired
The scheduled change.
data.subscriptionIdstringRequired
The new SCHEDULED subscription.
data.willAutoActivatebooleanRequired
True when the agreement is signed or approval is bypassed, so the nightly job will activate it.
data.agreementStatusstringRequired
The new subscription's agreement state (DRAFT until signed).
data.warningstring
Why it will not activate by itself, when it will not.
data.alreadyScheduledboolean
True when an identical pending change already existed and was returned instead of a second one.
Errors (400, 401, 402, 403, 404, 429)
400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
DELETE/clients/{organizationId}/subscriptions/schedule/{subId}
Scope write:billingChanges data
Requires the write:billing scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
organizationIdstringin pathRequired
Client id.
subIdstringin pathRequired
The SCHEDULED subscription id, as schedule_change returned it.
Idempotency-Keystringin header
Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.
Response 200
dataobjectRequired
The result of the cancel.
data.cancelledbooleanRequired
Always true: the scheduled change is gone.
Errors (400, 401, 402, 403, 404, 429)
400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
POST/invoices/send
Scope write:billingChanges data
Requires the write:billing scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
Idempotency-Keystringin header
Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.
Request body
invoiceIdstring
The id of the one invoice to e-mail. Give this or invoiceIds.
invoiceIdsstring[]
Up to 25 invoice ids to e-mail in one call; each gets its own result. Give this or invoiceId.
Up to 25 items.
resendboolean
True to send an invoice that was already sent. Needs the typed human confirm; over the API or MCP at most one resend per invoice per 24 hours.
Default false.
reasonstringRequired
Why this destructive action is being done (recorded in the audit log with the door it came through).
At least 3 characters. Up to 2000 characters.
Response 200
dataobjectRequired
Per-invoice send results.
data.resultsobject[]Required
One result per distinct invoice id, in request order.
data.results[].invoiceIdstringRequired
The invoice id.
data.results[].invoiceNumberstring or nullRequired
The invoice number, when it has one.
data.results[].sentbooleanRequired
True when the e-mail went out (or is queued).
data.results[].reasonstring
Why it was not sent.
data.results[].sentTostring[]
Addresses the mail was accepted for.
data.results[].queuedstring[]
The subset of sentTo that is queued, not yet delivered.
Errors (400, 401, 402, 403, 404, 429)
400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404 Not found for this key (a record in another organization is also a 404, never a 403).429 Rate limit exceeded; wait Retry-After seconds.
All API areas →