Update a billing plan

POST https://api.tamio.com/v2/agency/plans/update/{uuid}

Updates an existing agency billing plan. The UUID and tax category are required. Only the fields you want to change need to be included.

Path Parameters

uuid string*

Body Parameters

uuid string*
tax_category string*
Agency Billing Plan
buyable boolean
shown boolean
on_sale boolean
discount_allowed boolean
unlimited_stock boolean
trial_period integer
retries integer
cancel_action string
cancelpause
cancel_behaviour string
immediateend_of_period
descriptor string
languages object
quotas object
permissions object
overages object

Responses

200 Billing plan updated successfully

Billing plan updated successfully

status integer
product Product
400 Validation or business-logic error. Possible `error_code` values:
401 Unauthorized – invalid or missing Bearer token
/agency/plans/update/{uuid}
1const response = await fetch("https://api.tamio.com/v2/agency/plans/update/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "product": {
    "id": "string",
    "object": "product",
    "name": "Starter Plan",
    "type": "agency_plan",
    "price": 2999,
    "currency": "EUR",
    "buyable": true,
    "shown": true,
    "on_sale": true,
    "discount_allowed": true,
    "unlimited_stock": false,
    "trial_period": 14,
    "created_at": 1700000000
  }
}