Factuarea APIDevelopers
Contract

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 activate and reset actions 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 (the public_link of invoices, quotes, proformas and delivery notes, and that of the sales order) now carries a required state: never_activated, active or revoked.
  • enabled. It is true only when state is active.
  • url. It is a URL while the link is active and null in every other case, also once it has expired. It was always a URL before.
  • link_state. The quote and proforma resources publish link_state (never_activated, active or revoked) next to link_is_active and link_expires_at. link_is_active is true only with active.
  • expires_at. The server sets it and bounds it by max_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.subcodeWhen
public_link_not_shareableactivate, reset or extend on a document that cannot be shared, for example a voided invoice or a cancelled document.
public_link_not_activeextend on a link that is not active (never activated or revoked): activate it first.
public_link_plan_unresolvedactivate, 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

  • url can be null. 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 check state.
  • Activate before handing it over. To give your own link for a document you have not sent from Factuarea, use activate and read the url of the response.
  • Do not rely on a link that never expires. Every link expires; renew it with extend or reset.
  • Do not assume a null expires_at will stay null. A link that returns expires_at: null today will return a date once the existing links are migrated.
  • Quotes and proformas. If you read link_is_active, read link_state too, 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:

OperationMCP tool
Retrieve invoice public linkget_invoice_public_link
Update invoice public linkupdate_invoice_public_link
Retrieve quote public linkget_quote_public_link
Update quote public linkupdate_quote_public_link
Retrieve proforma public linkget_proforma_public_link
Update proforma public linkupdate_proforma_public_link
Retrieve a delivery note public linkget_delivery_note_public_link
Update a delivery note public linkupdate_delivery_note_public_link
Retrieve a sales order public linkget_sales_order_public_link
Update a sales order public linkupdate_sales_order_public_link

Updated endpoints53

EndpointDescription
GET/v1/companies/{company}/invoices/{invoice}/public-linkRetrieve invoice public link
PATCH/v1/companies/{company}/invoices/{invoice}/public-linkUpdate invoice public link
GET/v1/companies/{company}/quotes/{quote}/public-linkRetrieve quote public link
PATCH/v1/companies/{company}/quotes/{quote}/public-linkUpdate quote public link
GET/v1/companies/{company}/proformas/{proforma}/public-linkRetrieve proforma public link
PATCH/v1/companies/{company}/proformas/{proforma}/public-linkUpdate proforma public link
GET/v1/companies/{company}/delivery-notes/{delivery_note}/public-linkRetrieve a delivery note public link
PATCH/v1/companies/{company}/delivery-notes/{delivery_note}/public-linkUpdate a delivery note public link
GET/v1/companies/{company}/sales-orders/{sales_order}/public-linkRetrieve a sales order public link
PATCH/v1/companies/{company}/sales-orders/{sales_order}/public-linkUpdate a sales order public link
POST/v1/companies/{company}/delivery-notes/{delivery_note}/convertConvert delivery note to invoice
POST/v1/companies/{company}/invoices/{invoice}/annulAnnul an invoice
POST/v1/companies/{company}/invoices/{invoice}/assign-real-numberAssign a real invoice number
POST/v1/companies/{company}/invoices/{invoice}/correctiveGenerate corrective invoice
GET/v1/companies/{company}/invoices/{invoice}/correctivesList corrective invoices
POST/v1/companies/{company}/invoicesCreate an invoice
POST/v1/companies/{company}/invoices/{invoice}/duplicateDuplicate an invoice
POST/v1/companies/{company}/invoices/find-by-external-idFind an invoice by external ID
POST/v1/companies/{company}/invoices/find-by-numberFind an invoice by number
POST/v1/companies/{company}/invoices/{invoice}/issueIssue an invoice
GET/v1/companies/{company}/invoicesList all invoices
POST/v1/companies/{company}/invoices/{invoice}/mark-paidMark invoice as paid
POST/v1/companies/{company}/invoices/{invoice}/mark-sentMark an invoice as sent
PATCH/v1/companies/{company}/invoices/{invoice}/rescheduleReschedule an invoice
POST/v1/companies/{company}/invoices/{invoice}/scheduleSchedule an invoice
POST/v1/companies/{company}/invoices/{invoice}/sendSend invoice by email
GET/v1/companies/{company}/invoices/{invoice}Retrieve an invoice
POST/v1/companies/{company}/invoices/substitute-simplifiedSubstitute simplified invoices with full invoice
POST/v1/companies/{company}/invoices/{invoice}/unscheduleUnschedule an invoice
POST/v1/companies/{company}/invoices/{invoice}/unsendUnsend an invoice
PATCH/v1/companies/{company}/invoices/{invoice}Update an invoice
POST/v1/companies/{company}/invoices/{invoice}/voidVoid an invoice
POST/v1/companies/{company}/proformas/{proforma}/acceptAccept a proforma
POST/v1/companies/{company}/proformas/{proforma}/convertConvert proforma to invoice
POST/v1/companies/{company}/proformasCreate a proforma
POST/v1/companies/{company}/proformas/{proforma}/duplicateDuplicate a proforma
POST/v1/companies/{company}/proformas/find-by-external-idFind a proforma by external ID
GET/v1/companies/{company}/proformasList all proformas
POST/v1/companies/{company}/proformas/{proforma}/rejectReject a proforma
POST/v1/companies/{company}/proformas/{proforma}/sendSend proforma by email
GET/v1/companies/{company}/proformas/{proforma}Retrieve a proforma
PATCH/v1/companies/{company}/proformas/{proforma}Update a proforma
POST/v1/companies/{company}/quotes/{quote}/acceptAccept a quote
POST/v1/companies/{company}/quotes/{quote}/convertConvert quote to invoice
POST/v1/companies/{company}/quotesCreate a quote
POST/v1/companies/{company}/quotes/{quote}/duplicateDuplicate a quote
POST/v1/companies/{company}/quotes/find-by-external-idFind a quote by external ID
GET/v1/companies/{company}/quotesList all quotes
POST/v1/companies/{company}/quotes/{quote}/rejectReject a quote
POST/v1/companies/{company}/quotes/{quote}/sendSend quote by email
GET/v1/companies/{company}/quotes/{quote}Retrieve a quote
PATCH/v1/companies/{company}/quotes/{quote}Update a quote
POST/v1/companies/{company}/sales-orders/{sales_order}/convert-to-invoiceConvert a sales order to an invoice

On this page

Need a hand?Contact support