Factuarea APIDevelopers
Contract

The plan applies on every API and MCP request

The v1 API and the MCP server check on every request of the company axis that the plan includes the module of the operation, also with the * scope, and turning off auto-invoicing from Stripe does not depend on the plan. 37 updated operations.

2 December 2026 — The v1 API and the MCP server apply the contracted plan on every request. An operation of the company axis (/v1/companies/{company}/…) whose scope belongs to a module that the plan of the company does not include answers 403 with code feature_not_available_in_plan, whatever scopes the credential lists, * included, and whenever it was issued. No operation, field or code is added or removed.

What the API does

  • The check runs on every request. It comes after the scope of the credential and before the body is validated, so a write outside the plan applies nothing.
  • It reads the plan as it is now. It evaluates the plan that covers the company in the path at that moment, with the modules enabled or disabled for it, so a plan change applies to the keys already issued from their next request. Creating a key still answers 422 scope_not_allowed_by_plan for a fine-grained scope outside the plan.
  • Purchase documents follow the Purchases plan. The PDF of a purchase order (GET /v1/companies/{company}/purchase-orders/{purchase_order}/pdf) and the goods receipt sheet (GET /v1/companies/{company}/goods-receipts/{goods_receipt}/sheet) are read with pdfs:read, and the plan must include purchase orders; so must their MCP tools get_purchase_order_pdf and get_goods_receipt_sheet. The PDF of an invoice does not depend on the plan.
  • The account axis keeps its own rules. The operations under /v1/accounts/{account}/… (members, invitations, tax ID transfers, seats, account webhooks and return domains) keep the plan rules of the account they already had.
  • The message names the module and the minimum plan.
{
  "error": {
    "type": "authorization_error",
    "code": "feature_not_available_in_plan",
    "message": "Tu plan actual no incluye el módulo «Pedidos de compra», que necesita esta operación. Requiere el plan Avanzado o superior: actualiza tu suscripción para acceder.",
    "param": null,
    "doc_url": "https://docs.factuarea.com/guides/errors#feature_not_available_in_plan",
    "request_id": "req_01HKQS5NCK4V9N2L7Y8X3WPMRE"
  }
}

What the MCP server does

  • tools/list only lists the tools whose module the plan of the company includes, also with *.
  • A tool that declares its module keeps answering module_not_in_plan (-32005); the rest answer feature_not_available_in_plan, the same code as the REST API.
  • The tools of the account axis keep their own plan rules. See MCP scopes.

Turning off auto-invoicing

Turning off auto-invoicing from Stripe does not depend on the plan, so a company without the Stripe integration module, for example after a plan change, can stop it. PATCH /v1/companies/{company}/stripe-autoinvoicing/config and PATCH /v1/companies/{company}/connected-accounts/{account} accept a body that only sets their switches to false: enabled, refunds_enabled and subscription_autoinvoicing_enabled, plus email_invoice_to_payer and fee_expenses_enabled on an account. The MCP tools update_stripe_autoinvoicing_config and update_stripe_connected_account accept the same. Turning it on, changing any other field and reading the configuration still need the module. See Stripe auto-invoicing.

Operations whose description changes

The 403 of 33 operations now names feature_not_available_in_plan: the presentations of invoices, quotes, pro-formas and delivery notes (16), the PDF template of a series (2), the administrative revisions of an invoice (2), Facturae and FACe (5) and the purchase scanner (8). The two Stripe operations above describe the turn-off, and the purchase order PDF and the receipt sheet describe their plan. The other operations of the company axis already published the shared 403 response, which now carries this code and its example.

What to do. Branch on error.code: feature_not_available_in_plan is a plan decision, not a fault of the credential, and the same key works again once the plan includes the module. See Authentication and the error.

Updated endpoints37

EndpointDescription
PATCH/v1/companies/{company}/delivery-notes/{delivery_note}/presentationAssign the delivery-note visual template
GET/v1/companies/{company}/delivery-notes/{delivery_note}/presentationGet the delivery-note presentation
GET/v1/companies/{company}/delivery-notes/{delivery_note}/presentation-historyList retained delivery-note presentations
POST/v1/companies/{company}/delivery-notes/{delivery_note}/presentation-revisionsCreate a delivery-note presentation revision
POST/v1/companies/{company}/face-submissions/{faceSubmission}/cancelRequest FACe submission cancellation
GET/v1/companies/{company}/face-submissions/{faceSubmission}Retrieve a durable FACe attempt
GET/v1/companies/{company}/invoices/{invoice}/administrative-revisionsRetrieve invoice administrative routing history
POST/v1/companies/{company}/invoices/{invoice}/administrative-revisionsRevise invoice administrative routing
PATCH/v1/companies/{company}/invoices/{invoice}/presentationAssign the invoice visual template
GET/v1/companies/{company}/invoices/{invoice}/face-submissionsList invoice FACe submissions
POST/v1/companies/{company}/invoices/{invoice}/face-submissionsPrepare or continue a FACe submission
GET/v1/companies/{company}/invoices/{invoice}/facturaeDownload current or retained Facturae XML
GET/v1/companies/{company}/invoices/{invoice}/presentationGet the invoice presentation
GET/v1/companies/{company}/invoices/{invoice}/presentation-historyList retained invoice presentations
POST/v1/companies/{company}/invoices/{invoice}/presentation-revisionsCreate an invoice presentation revision
PATCH/v1/companies/{company}/proformas/{proforma}/presentationAssign the proforma visual template
GET/v1/companies/{company}/proformas/{proforma}/presentationGet the proforma presentation
GET/v1/companies/{company}/proformas/{proforma}/presentation-historyList retained proforma presentations
POST/v1/companies/{company}/proformas/{proforma}/presentation-revisionsCreate a proforma presentation revision
DEL/v1/companies/{company}/purchase-scans/{purchase_scan}Archive a purchase scan
POST/v1/companies/{company}/purchase-scans/{purchase_scan}/convertCreate the expense from a scan
POST/v1/companies/{company}/purchase-scansUpload documents to the purchase scanner
POST/v1/companies/{company}/purchase-scans/{purchase_scan}/duplicate-resolutionResolve a duplicate purchase scan
POST/v1/companies/{company}/purchase-scans/{purchase_scan}/restoreRestore an archived purchase scan
POST/v1/companies/{company}/purchase-scans/{purchase_scan}/retryRetry a failed purchase scan
PATCH/v1/companies/{company}/purchase-scans/{purchase_scan}/reviewSave the review of a purchase scan
GET/v1/companies/{company}/purchase-scans/{purchase_scan}/sourceDownload the original document
PATCH/v1/companies/{company}/quotes/{quote}/presentationAssign the quote visual template
GET/v1/companies/{company}/quotes/{quote}/presentationGet the quote presentation
GET/v1/companies/{company}/quotes/{quote}/presentation-historyList retained quote presentations
POST/v1/companies/{company}/quotes/{quote}/presentation-revisionsCreate a quote presentation revision
PATCH/v1/companies/{company}/series/{series}/pdf-templateAssign the PDF template of a series
GET/v1/companies/{company}/series/{series}/pdf-templateRetrieve the PDF template of a series
PATCH/v1/companies/{company}/connected-accounts/{account}Update a connected Stripe account
PATCH/v1/companies/{company}/stripe-autoinvoicing/configUpdate Stripe autoinvoicing config
GET/v1/companies/{company}/purchase-orders/{purchase_order}/pdfDownload purchase order PDF
GET/v1/companies/{company}/goods-receipts/{goods_receipt}/sheetDownload goods receipt sheet

On this page

Need a hand?Contact support