Skip to main content
PUT

Update a recurring invoice

Scope:sales:invoices.write
https://api.holded.com/api/v2/recurring-invoices/{invoiceRecurringId}

Updates an existing recurring invoice, including its document fields (items, description, contact, date, tags, etc.) and its recurrence configuration (periodicity, convert_automatically, due_days, end_date, contact_payment_day). This is a partial update — only the fields you include in the request body will be changed. Changing the recurrence configuration only affects future occurrences; invoices already generated are not modified.

Parameters

Path parameters

invoiceRecurringIdstringrequired

Recurring invoice ID (24-char hex ObjectId)

Request body

object
contact_idstring

Identifier of an existing contact

contact_namestring

Name of the contact

periodicitystring

Recurrence interval. Accepted values: `daily` (d), `weekly` (w), `biweekly` (bw), `monthly` (m), `bimonthly` (bm), `quarterly` (q), `half-yearly` (ba), `yearly` (a)

convert_automaticallyboolean

Whether to automatically convert occurrences into invoices

due_daysinteger | null

Number of days after the invoice date that payment is due

contact_payment_dayinteger | null

Day of the month on which the contact pays

end_datestring<date> | null

Date on which the recurrence ends (inclusive). ISO 8601 format (YYYY-MM-DD)

descriptionstring | null

Free-text description

datestring<date>

Start date in ISO 8601 format (YYYY-MM-DD)

notesstring | null

Internal notes visible only to your team

bodystring | null

Rich-text content printed on generated invoices

languagestring | null

ISO 639-1 language code

currencystring | null

ISO 4217 currency code

currency_changenumber<float> | null

Exchange rate when currency differs from account currency

items[]object[]

Line items for the recurring invoice

namestring
typestring | null

Kind of line. `product` and `service` are billable lines whose amount (`units` × `price`, less `discount`, plus `taxes`) is added to the document total. `title` is a section-header line that shows only its `name` and carries no amount — it does not contribute to the total. Other values are special-purpose lines. Omit this field for an ordinary priced line item.

Enum:productshippingtitleroundingrefundecotaxwrappingservice
descriptionstring | null
product_idstring | null

Identifier of an existing catalog product to link this line to. The id is stored as a reference associating the line with the product (used for stock and reporting). Each line field (`price`, `taxes`, ...) is taken as sent; api2 stores the line values you provide and does not itself read them back from the product record. Leave unset for a free-text line that is not a catalog product.

variant_idstring | null

Identifier of the variant of `product_id` to link this line to. Requires `product_id`. Leave unset for a line without variant.

service_idstring | null
unitsnumber | null
pricenumber | null
discountnumber | null
taxes[]string[] | null

Tax keys applied to this line. When omitted, the contact default tax applies, or, if the contact has none, the account default tax when the request asks for it, else no tax.

tags[]string[] | null
skustring | null
accountstring | null
project_idstring | null
tags[]string[]

Tags to attach

number_line_idstring | null

Identifier of the numbering series to use

discountnumber | null

Global discount percentage

design_idstring | null

Identifier of the design template to apply to the document

Request

python
import requests

url = "https://api.holded.com/api/v2/recurring-invoices/{invoiceRecurringId}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "contact_id": "string",
    "contact_name": "string",
    "periodicity": "string",
    "convert_automatically": false,
    "due_days": 0,
    "contact_payment_day": 0,
    "end_date": "2024-01-15",
    "description": "string",
    "date": "2026-01-01",
    "notes": "string",
    "body": "string",
    "language": "es",
    "currency": "EUR",
    "currency_change": 0,
    "items": [
        {
            "name": "string",
            "type": "product",
            "description": "string",
            "product_id": "string",
            "variant_id": "string",
            "service_id": "string",
            "units": 0,
            "price": 0,
            "discount": 0,
            "taxes": [
                "s_iva_21"
            ],
            "tags": [
                "string"
            ],
            "sku": "string",
            "account": "string",
            "project_id": "string"
        }
    ],
    "tags": [
        "string"
    ],
    "number_line_id": "string",
    "discount": 0,
    "design_id": "string"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "string"
}

Success responses

200Recurring invoice updatedapplication/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Recurring invoice not foundapplication/json