API referenceSections

Provisioning (billing integration)

31 operations. Open one for its parameters, request body, responses and examples.

MethodPathSummary
GET/api/v1/tenants/{tid}/provisioning/accountsList accounts, a page at a time
GET/api/v1/tenants/{tid}/provisioning/accounts/{ref}An account by its reference (ADR 0051)
PUT/api/v1/tenants/{tid}/provisioning/accounts/{ref}Make the account for this reference, or update it; a retry makes nothing new
PATCH/api/v1/tenants/{tid}/provisioning/accounts/{ref}Change the name, owner email or expiry
DELETE/api/v1/tenants/{tid}/provisioning/accounts/{ref} 202Terminate the account; its websites, databases, mail, caches and DNS zones are removed the usual way (ADR 0104), in the background (ADR 0131)
POST/api/v1/tenants/{tid}/provisioning/accounts/{ref}/login-linkA one-time sign-in link for the account owner (60 seconds, single use)
PUT/api/v1/tenants/{tid}/provisioning/accounts/{ref}/passwordReplace the owner password; the owner sessions end
DELETE/api/v1/tenants/{tid}/provisioning/accounts/{ref}/permanent 202Delete a terminated account for good (ADR 0130)
PUT/api/v1/tenants/{tid}/provisioning/accounts/{ref}/planMove the account to a package or plan (its current revision)
POST/api/v1/tenants/{tid}/provisioning/accounts/{ref}/suspendSuspend with a reason; its sites stop and nothing is removed
POST/api/v1/tenants/{tid}/provisioning/accounts/{ref}/unsuspendStart the account again, whatever suspended it
GET/api/v1/tenants/{tid}/provisioning/accounts/{ref}/usageWhat the account uses this month
GET/api/v1/tenants/{tid}/provisioning/accounts/{ref}/usersThe account's people: its owner and the users added to it (ADR 0121)
POST/api/v1/tenants/{tid}/provisioning/accounts/{ref}/usersAdd a user to the account with a role, or invite one (ADR 0121)
DELETE/api/v1/tenants/{tid}/provisioning/accounts/{ref}/users/{uid}Take a user out of the account (ADR 0121)
PUT/api/v1/tenants/{tid}/provisioning/accounts/{ref}/users/{uid}/passwordReplace an added user's password; their sessions end (ADR 0121)
GET/api/v1/tenants/{tid}/provisioning/packagesList packages, archived included
GET/api/v1/tenants/{tid}/provisioning/packages/{ref}A package by its reference
PUT/api/v1/tenants/{tid}/provisioning/packages/{ref}Make the package, or change its name and limits; a retry changes nothing
DELETE/api/v1/tenants/{tid}/provisioning/packages/{ref}Archive the package; refused while accounts use it unless force=true; never removes accounts
DELETE/api/v1/tenants/{tid}/provisioning/packages/{ref}/permanentDelete an archived package and its plan for good, once no account has it (ADR 0130)
GET/api/v1/tenants/{tid}/provisioning/resellersList resellers (provider only)
GET/api/v1/tenants/{tid}/provisioning/resellers/{ref}A reseller with what its customers use together
PUT/api/v1/tenants/{tid}/provisioning/resellers/{ref}Make the reseller with its owner, or change its name and allocation
DELETE/api/v1/tenants/{tid}/provisioning/resellers/{ref} 202Terminate the reseller; refused while it has accounts unless cascade=true. Runs in the background (ADR 0131)
POST/api/v1/tenants/{tid}/provisioning/resellers/{ref}/login-linkA one-time sign-in link for the reseller owner
PUT/api/v1/tenants/{tid}/provisioning/resellers/{ref}/passwordReplace the reseller owner password
DELETE/api/v1/tenants/{tid}/provisioning/resellers/{ref}/permanent 202Delete an ended reseller for good; with cascade=true its ended customers go first (ADR 0130)
POST/api/v1/tenants/{tid}/provisioning/resellers/{ref}/suspendSuspend the reseller and its running customers
POST/api/v1/tenants/{tid}/provisioning/resellers/{ref}/unsuspendLift the reseller suspension and only the customer suspensions it caused
GET/api/v1/tenants/{tid}/provisioning/serversServers the caller may place a customer on, with their load