Update a recurring invoice

POST https://api.tamio.com/v2/orders/recurring/update/{uuid}

Updates an existing recurring invoice subscription with new billing cycles, products, customer details, and subscription settings.

The interval field maximum depends on the billing_cycle value:

  • day → max interval 365
  • week → max interval 52
  • month → max interval 12
  • year → max interval 1

Path Parameters

uuid string*

UUID of the recurring invoice subscription to update

Body Parameters

customer object*
date object*

Subscription start date

due_date object

Payment due date for each generated invoice

label string
locale string
currency string*
recurring boolean*
taxes string
accountoff
statement_descriptor string
send_to_customer boolean
trial_period integer
billing_cycle string*
dayweekmonthyear
interval integer*
payments array of string*
products array of object*

Responses

200 Recurring invoice updated successfully

Recurring invoice updated successfully

status integer
transaction object

Updated transaction object

400 Bad request. Possible `error_code` values:
401 Missing or invalid API key
/orders/recurring/update/{uuid}
1const response = await fetch("https://api.tamio.com/v2/orders/recurring/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,
  "transaction": {}
}