Fiscal and ERP developer integration
The Fiscal / ERP API is an integration surface, not a built-in fiscal cash register or a guaranteed connection to a particular accounting system.
Integration model
A compatible adapter can register narrowly defined document fields and supply validated values for a WooCommerce order. A merchant can then choose which permitted values appear in Pro current order printouts. The core order document remains distinct from the externally produced fiscal receipt or invoice.
Developer sequence
- Read the API documentation shipped with the approved Stable package before coding. The public field identifiers, registration hooks and permission rules from that package are the authoritative contracts; do not infer them from screenshots.
- Register only fields whose source, audience and lifecycle are understood. Ensure private values are not exposed through guest/customer routes.
- Supply order-scoped values with bounded runtime work; avoid unbounded queries or external calls on every public page request.
- Validate and escape text. Use HTTPS for permitted URL annotations, reject dangerous redirects, and keep full third-party credentials out of logs and PDF output.
- Test with no provider, one provider, several tracking values and a disconnected provider. Confirm the customer and merchant outputs differ correctly.
- Confirm that adding new external information does not mutate historical archived PDFs/contracts or trigger new customer email by itself.
What not to claim
Commerce Assistant does not issue a fiscal receipt, allocate fiscal invoice numbers or automatically synchronize a named ERP product without a separately built and configured integration. Support can help identify the plugin and API version involved but does not substitute for the developer who maintains the adapter.
Discount Rules and other pricing add-ons
Commerce Assistant does not bundle an automatic Discount Rules connector. A developer can connect another add-on’s reliable, recorded order-time discount information through the existing Pro Document Extension API 1.0.0. The separate integration must obtain the source add-on’s supported data and save its normalized facts through WooCommerce CRUD before the configured document event. It must not infer an old original price from today’s catalogue or perform repricing, network requests, writes or email delivery inside a field resolver.
Register typed money or structured_block fields with four-language labels, an explicit metadata allowlist and the correct privacy/phase. Select customer-visible FORMATION_SNAPSHOT / contract fields in a template copy for future contracts. Select separate POST_ORDER_CURRENT / operational fields in the additional-PDF-data configuration for the current order PDF. Registration alone does not insert output.
These selected fields display recorded additional information. They do not automatically replace native item prices, participate in the native discount summary or subtract the discount a second time. Once a contract is sealed, later changes to the provider or its metadata do not rewrite that original. The installed DOCUMENT-EXTENSION-API.md and PRODUCT-DISCOUNT-INTEGRATION.md describe the contract and tested example. The separate source-only example is not a production-ready vendor connector and must not be auto-activated for customers.
Included developer references
Use the references included with the matching approved packages. Free retains the neutral SDK contracts; Pro supplies advanced operational configuration and field resolution. A generic API is not a built-in carrier, ERP or fiscal connector.
Free: docs/FREE-DEVELOPER-INTEGRATION.md(TXT)Free: docs/PDF-EXTENSION-DEVELOPER-API.md(TXT)Free: docs/ORIGINAL-DOCUMENT-TRACKING.md(TXT)Pro: docs/DOCUMENT-EXTENSION-API.md(TXT)Pro: docs/FISCAL-ERP-API-v1.md(TXT)Pro: docs/fiscal-erp-openapi-v1.json(ZIP)
For field selection and visibility, see Additional PDF data.