A document's public link is born inactive and is activated when it is shared
A new document no longer has an open public link without expiry: its link is born never activated and is switched on when the document is shared, with an expiry the server sets according to the plan. The link publishes its state, quotes and proformas publish link_state, url is null while the link is not active, and activating or extending a link can answer 422 with three new subcodes. Ten link operations and those that return invoices, quotes or proformas, with their MCP tools.
4 December 2026 — A new document no longer comes with an open public link without expiry. Its link is born never activated, opens nothing and is switched on when the document is shared. Every active link expires, and the server sets the date. The contract adds state, makes url nullable and publishes link_state on quotes and proformas.
When a link is activated
A document's link moves from never_activated to active when the document is shared:
- when it is sent by email, or when the payment reminder of an invoice is sent;
- when its payment link is generated;
- when the email of a sales order is sent;
- with the
activateandresetactions of the public link, and when the link is copied or opened in the app.
A link the owner revoked (revoked) is not reopened by sharing: reactivate it with activate or reset.
Which documents are shared
- Invoice. A draft or scheduled invoice is shared like any other draft, and the public page serves it marked as a draft and without payment. A cancelled or voided invoice is not shared.
- Quote, proforma and delivery note. They are sent while in draft, so their draft is shared and served. A cancelled document is not shared.
- Sales order. A draft is shared only when its channel is the storefront, because the buyer follows it; a draft from any other channel and a cancelled order are not.
The server sets the expiry
Every active link expires: the server calculates the date according to the plan and bounds it by max_days; there is no link without expiry. For an invoice the date takes its due date into account. extend lengthens the expiry, with the same ceiling. Sharing a document again only renews the expiry if it extends the current one by at least one day. Links already delivered to the customer before this change that are still active without expiry (expires_at: null) get, when Factuarea migrates the existing links, an expiry equal to the maximum the company's plan allows (max_days), counted from that moment. Links that had not been delivered are switched off.
What a link answers
Whoever opens the link of a never-activated document gets 404, exactly as for an identifier that does not exist, with no issuer data. A revoked or expired link answers 410.
Contract changes
state. The link object (thepublic_linkof invoices, quotes, proformas and delivery notes, and that of the sales order) now carries a requiredstate:never_activated,activeorrevoked.enabled. It istrueonly whenstateisactive.url. It is a URL while the link is active andnullin every other case, also once it has expired. It was always a URL before.link_state. The quote and proforma resources publishlink_state(never_activated,activeorrevoked) next tolink_is_activeandlink_expires_at.link_is_activeistrueonly withactive.expires_at. The server sets it and bounds it bymax_days; there are no links without expiry any more. The schema still declares the field as nullable.
Activating or extending can answer 422
Updating the public link is rejected with 422, error.code: business_rule_violation, and these subcodes, and the link stays as it was:
error.subcode | When |
|---|---|
public_link_not_shareable | activate, reset or extend on a document that cannot be shared, for example a voided invoice or a cancelled document. |
public_link_not_active | extend on a link that is not active (never activated or revoked): activate it first. |
public_link_plan_unresolved | activate, reset or extend when the plan of the company cannot be resolved and the expiry cannot be calculated. |
Handle these subcodes by error.subcode, not by message. The existing parameter_invalid_range error with the subcode public_link_expires_at_exceeds_max_days still applies when you extend above the plan ceiling.
What to check in your integration
urlcan benull. If you store the URL when you create the document, do not expect to have it: read it with the link operation after sharing, and checkstate.- Activate before handing it over. To give your own link for a document you have not sent from Factuarea, use
activateand read theurlof the response. - Do not rely on a link that never expires. Every link expires; renew it with
extendorreset. - Do not assume a null
expires_atwill stay null. A link that returnsexpires_at: nulltoday will return a date once the existing links are migrated. - Quotes and proformas. If you read
link_is_active, readlink_statetoo, to tell a never-activated link from a revoked one.
Operations in this release
Ten public link operations, with their MCP tool, and all those that return an invoice, a quote or a proforma, which include state or link_state:
| Operation | MCP tool |
|---|---|
| Retrieve invoice public link | get_invoice_public_link |
| Update invoice public link | update_invoice_public_link |
| Retrieve quote public link | get_quote_public_link |
| Update quote public link | update_quote_public_link |
| Retrieve proforma public link | get_proforma_public_link |
| Update proforma public link | update_proforma_public_link |
| Retrieve a delivery note public link | get_delivery_note_public_link |
| Update a delivery note public link | update_delivery_note_public_link |
| Retrieve a sales order public link | get_sales_order_public_link |
| Update a sales order public link | update_sales_order_public_link |