Remove a tax ID
/billing/account/{team_id}/tax-id/{tax_id}
Removes a tax ID from the team's Stripe customer and answers the re-synced account.
Path Parameters
The id of an entry in the account's tax_ids (Stripe txi_…).
Response Body
The team's own auto top-up amount, in cents, charged as set plus any negative balance. Null for the default, max($50, 7 days of usage) in $50 steps. A default amount is raised to the trigger when the trigger is higher, so one top-up always lifts the balance over it.
The team's own auto top-up trigger, in cents. A top-up is charged when the prepaid balance falls below it. Null for the default, max($15, 3 days of usage).
State of the prepaid balance. past_due means a top-up failed and is being retried; action_required means the card needs to be replaced or authenticated; restricted (14 days unpaid) refuses new connections only; review (30 days unpaid) is with Truto staff. Existing traffic and inbound webhooks keep running in every state. Always active for invoice teams.
activerechargingpast_dueaction_requiredrestrictedreview
Why the balance is in its state, for example a decline code or stripe_unavailable.
The name on invoices (Stripe customer name).
Informational; nothing is enforced on it today.
activepast_duesuspendedexempt
usdvisa4242cardThe team's own monthly cap on usage spend, in cents. Null for no cap. Alerts at 80% and 100%.
When true, outbound API calls get 429 spend_limit_reached once the month's spend reaches spend_limit_cents, until the month ends. Inbound webhooks are always accepted.
Stripe tax ID (txi_…); pass it to DELETE /billing/account/{team_id}/tax-id/{tax_id}. Absent on a row cached before ids were stored, until the next sync.
txi_1Abcus_einHow usage is paid. prepaid teams (self-serve signups) pay usage from a prepaid balance topped up in $50 steps; invoice teams get usage invoices.
invoiceprepaid
Errors
| Status | Description |
|---|---|
403 | Forbidden if the caller is not an admin of the team |
404 | The team has no Stripe customer, or the tax ID is not its own |
curl -X DELETE 'https://api.truto.one/billing/account/{team_id}/tax-id/{tax_id}' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/billing/account/{team_id}/tax-id/{tax_id}', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/billing/account/{team_id}/tax-id/{tax_id}"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.delete(url, headers=headers, params=params)
print(response.json())