PATCH /api/instance/billing/:instance
Sets the billing mode of an instance. Use it to skip the trial and bill right away. The switch is one-way: once billable, an instance does not go back to trial. Authenticate with your account TokenAccount, the same one you use to create and manage instances.
Billing modes
Example
Success response
200 OK
Path parameters
string
required
Instance name.
Headers
string
required
Your TokenAccount, the same one you use to create and manage instances.
Body
string
required
One of
trial or billable. Once billable, the instance cannot go back to trial.What happens on each change
To billable
To billable
The instance starts being billed from now on. If it is already connected, the committed amount for the cycle starts counting at this moment and runs until renewal, even if you delete the instance before that.
To trial
To trial
Only valid while the instance has not become billable yet. An instance that is already
billable does not go back to trial, the API returns 400. The trial itself follows your contract rules and the number’s history.Errors
Next
How billing works
Understand the credit, the trial and per-day metering.
Enterprise webhooks
React to each state change via events.