stabisoDocs

Start here

What each record needs

Every customer, vendor, product, invoice and other record has a set of details it must have. Stabiso keeps that set in one place, and every way of entering a record follows it: the screens, the assistant (typed or spoken), the imports (Shopify, CSV, Salesforce, e-invoices), the till and the API. The service enforces the same requirements regardless of the entry path.

Capture, draft and normal business

A lead is a person or enquiry, not a billing customer. Capture requires the person's last name. Contact details, company and country can be added as they become known; public website forms also require an email so the enquiry can be answered. An opportunity requires a title and either an existing customer or a named prospect. Budget, close date and contact can remain unknown. Neither requires a billing address, VAT number or bank account.

Creating a customer requires a nonblank legal/person name, country and an explicit choice of business or private customer. A vendor requires a nonblank name and country. A VAT number with a recognized country prefix can establish the country; the seller's country alone cannot. Currency, number, normal payment terms and an unambiguous correspondence language can still follow known data.

A customer or vendor missing its street/postal delivery address, town, postal code where required, or state/province where required is saved as a draft. The address country's file defines postal and subdivision requirements (currently US and Canada require subdivisions; Ireland does not require a postal code). Countries without a configured address rule require street and town; these rules are business policy, separate from invoice legislation. Completing a draft does not activate it automatically: the existing approval controls still apply.

These requirements run centrally on creation and changes, activation and its approval, reactivation, new document submission and posting, purchase orders, sales-order confirmation, quote acceptance, won opportunities and recurring/revenue terms activation. Existing active profiles are checked when used for new business. Historic documents are kept; corrections of existing invoices and recording money already executed remain possible under their existing controls. Captured incoming bills stay drafts while the vendor needs completion rather than losing the capture.

Conversion from a lead can supply the complete billing address and must explicitly classify a new customer. A shared contact e-mail never silently selects the first customer; conversion lists ambiguous matches and requires an explicit choice. An incomplete converted customer is a draft, reported as such; the lead's contact and opportunity are still retained. A walk-in counter sale uses its explicit private-customer profile at the shop's real address, rather than collecting every anonymous buyer's home address.

Requirements that depend on the next action

  • Invoice: the seller and buyer details required by the issuing country's invoice rules; VAT/tax registrations and identifiers where the applicable tax treatment requires them.
  • Email or e-invoice: a valid recipient or electronic addressing/routing information for that delivery channel. Email and phone are not universal requirements for saving a record.
  • Bank instruction: a verified IBAN, or valid routing/account details for the payment scheme, and the existing approval controls. A supplier paid by card needs no invented bank account.
  • Accounting: valid company/party/account references, dates, currency, lines and amounts; posting requires open periods, tax rules, dimensions, balance and approval checks. Free work, a zero initial opportunity estimate and a zero-interest lease are not missing information.

What a company needs

A company is created with its name, its country and, where its country requires one (the United States, Canada), its state or province: its tax depends on it. The setup and Add company ask it, and the API refuses a company without it. On top of that, a company needs details before some of its documents and files:

  • Invoice: the seller details the invoice law of its country requires (its address, and in Germany its tax number or VAT number). The setup marks the address and, on its last step, says what is still needed before the first invoice.
  • XRechnung (a German company's e-invoice to a public-sector customer): a contact person, telephone, e-mail address and a bank account to be paid to.
  • SAF-T AT (an Austrian company's audit file): a contact person, telephone and the full address. The tax number (Steuernummer) is entered in the VAT settings.
  • FEC (a French company's audit file): its VAT number, from which the SIREN is taken.
  • Skatteverket's file of a Swedish company's periodisk sammanställning: a contact person and telephone.

The company profile marks each of these fields, and the file is refused until they are filled in: the refusal names each detail and links to the company profile with them marked (or to Bank accounts for a bank account).

Required names and references reject empty or whitespace-only text. Defaults only supply facts that can be derived; they do not turn a guess into a confirmed customer classification.

The assistant asks first

Voice and typed assistants use the same tools and shared requirements. They ask for missing creation and operational details before creating a customer or vendor. If a billing detail is unknown, the person can say so: not_known permits an explicitly incomplete draft, and the reply lists what remains required. It cannot waive country or business/private classification. A refused activation names the missing fields and links to the profile with those fields highlighted. A successful completion save clears the previous refusal. The assistant must never invent an address, registration, contact or bank account.

The list

The table is made from the rules themselves, so it always matches what Stabiso enforces. The API gives the same list for your company at GET /v1/entities/{entity}/required-details. The records that still miss a detail are at GET /v1/entities/{entity}/incomplete-records.

Record You give Also needed API
Customer Name Its country, always (the country determines tax and address format; supply it or a VAT number that names it)
Its business, always (business or private status determines tax treatment; confirm it explicitly)
Before activation or operational use: state (where the address country requires a state or province)
Before activation or operational use: street
Before activation or operational use: town
Before activation or operational use: postal code (where the address country uses postal codes)
Before an invoice: the address the invoice law of the company's country asks for (Switzerland: town; Germany: street, postal code, town; other countries: street, town)
POST /v1/entities/{entity}/parties
Vendor Name Its country, always (the country determines tax and address format; supply it or a VAT number that names it)
Before activation or operational use: state (where the address country requires a state or province)
Before activation or operational use: street
Before activation or operational use: town
Before activation or operational use: postal code (where the address country uses postal codes)
Before a bank payment file: bank account
POST /v1/entities/{entity}/parties
Contact Last name, customer or vendor — POST /v1/contacts
Product Name, kind — POST /v1/products
Lead Last name — POST /v1/leads
Deal Title — POST /v1/opportunities
Quote Customer, lines — POST /v1/entities/{entity}/quotes
Sales order Customer, lines — POST /v1/entities/{entity}/sales-orders
Sales invoice Customer or vendor — POST /v1/documents
Purchase bill Customer or vendor — POST /v1/documents
Purchase order Vendor, lines — POST /v1/entities/{entity}/purchase-orders
Payment Direction, customer or vendor, amount — POST /v1/payments
Journal entry Entry date, description, lines — POST /v1/journal-entries
Fixed asset Name, acquisition date, acquisition cost — POST /v1/assets
Lease Name, commencement date, term (months), payment, rate (%) — POST /v1/leases
Project Customer, name, hourly rate — POST /v1/projects
Time entry Project, hours — POST /v1/time-entries
Employee First name, last name, job title, start Before a bank payment file: date of birth
Before a bank payment file: street
Before a bank payment file: postal code
Before a bank payment file: town
Before a bank payment file: social insurance number
Before a bank payment file: bank account
POST /v1/employees
Subscription Customer or vendor, title, start, term (months), lines — POST /v1/subscriptions
Recurring invoice Customer or vendor, name, frequency, start, lines — POST /v1/recurring-invoices
Revenue contract Customer or vendor, title, start, end date, transaction price, performance obligations — POST /v1/revenue-contracts
Warehouse Name — POST /v1/warehouses
Price list Name — POST /v1/price-lists
Account Code, name, type, report line — POST /v1/entities/{entity}/accounts
Dimension Name — POST /v1/dimensions
Support case Queue, subject, description — POST /v1/support/cases
Till Name — POST /v1/tills
Company Code, name, country Its state, where its country requires a state or province (the company's tax depends on the state or province it is in)
Before an invoice: the details of the company the invoice law of the company's country asks for (Switzerland: town; Germany: street, postal code, town, tax id; other countries: street, town)
Before an e-invoice, an XRechnung (Germany): contact person, contact phone, contact email, bank account
Before the tax auditors' file, the SAF-T AT (Austria): contact person, contact phone, street, postal code, town
Before the tax auditors' file, the FEC (France): VAT number
Before the file of a recapitulative statement, Skatteverket's file (Sweden): contact person, contact phone
POST /v1/entities
Dimension value Name — POST /v1/dimensions/{code}/values
Company bank account Town — PUT /v1/entities/{entity}/bank-accounts/{account}
Ach authorization Signed on — POST /v1/entities/{entity}/customers/{party}/ach-authorizations

The API column names the operation that creates the record (API reference). The rules are in src/erp/seed/required_details.yaml (ADR-0124).

Bank details are needed to make a bank payment file. Record payment can still record money the bank already executed without a vendor IBAN or US account; it creates no bank instruction. Party status and bill approval controls still apply.

Review coverage and conditional checks

The catalog covers 29 standard business record kinds. Its generated table shows required top-level input; it must be read together with the conditional and nested requirements below. The API schemas and service checks remain authoritative; configuration, industry-specific workflows and external protocols can impose additional requirements for their particular operation.

Records Additional required information or checks Implementation
Customer, vendor Explicit identity; complete billing profile before activation/new business; bank/tax details for applicable operations; approvals recheck completeness modules/party_entry.py, modules/required_details.py, modules/party_checks.py, modules/trade/submit.py
Lead, opportunity Person's last name for a lead; title and either customer or named prospect for an opportunity; ready active customer before won features/crm/contracts/leads.py, features/crm/contracts/crm.py, features/crm/rules/opportunities.py
Contact, product Contact's party and last name; product name and kind; price/date/currency when adding prices, documented SSP basis for revenue allocation contracts/contacts.py, contracts/products.py
Quote, sales order, purchase order Nonempty lines; description and price where not derived from a product; quantities, references, discounts and dates checked; ready party before commitment features/crm/contracts/sales.py, features/purchasing/contracts.py
Invoice, bill At least one valid line; line description and price unless derived from a product/credited line; bill date comes from the supplier; open accounting period, tax and account checks at posting contracts/trade.py, contracts/trade_lines.py, modules/trade/submit.py
Payment, journal entry Payment direction, party, positive amount and allocation/on-account treatment; journal date, nonblank description and balanced lines with valid accounts; approval policy applies contracts/payments.py, contracts/ledger.py, modules/payments.py, modules/journals.py
Fixed asset, lease Asset acquisition date, cost and useful life; lease commencement, positive payment/term and explicit discount rate (zero is allowed); compatible accounts/frameworks features/assets/contracts/assets.py, features/assets/contracts/leases.py
Project, time entry Named customer project and agreed hourly rate (zero allowed); project and positive hours for a time entry; weekly approval before invoicing features/projects/contracts.py
Subscription, recurring invoice, revenue contract Customer, named terms, start and schedule/term, nonempty lines or obligations; contract end and transaction price; SSP basis/service periods when applicable; approval and ready customer before activation features/revenue/contracts/, features/revenue/rules/
Warehouse, price list, dimension, dimension value, support case, till Names and company context where applicable; support queue, subject and description; referenced products/accounts and currencies must exist features/inventory/contracts/stock.py, contracts/price_lists.py, contracts/dimensions.py, features/support/contracts.py, features/till/contracts.py
Account, company, company bank account Account code/name/type/report line; company code/name/country at setup, legal seller details before invoice output; valid IBAN or routing/account pair and holder address for banking contracts/accounts.py, contracts/setup.py, contracts/payments.py, modules/invoice_content.py

Internal employee reimbursement and company-card payable profiles use the actual company workplace correspondence address; an employee is a private payee. They use the same approval checks, and require a completed workplace address rather than an invented employee home address.

Managed intercompany parties derive their identity and address from the other company. Their relationship approval supplies activation; new business still checks their current billing profile, including when the company profile changes.

The regression checks cover REST/MCP refusal, incomplete drafts, explicitly private customers, country-specific addresses, CSV classification, lightweight prospects, conditional nonblank line text, activation/change approvals, actual posting after approval and feature migration cache invalidation. Test fixtures use explicit fictitious profiles; production services have no fixture exception or invented fallback address.

Rollout and existing records

Before enabling these rules in production, review each company's incomplete-record list and complete known details from verified business records. Existing invoices and ledger history are not rewritten. An active legacy profile with missing billing details will be refused for new business until completed; completing it in one change can still require approval of key details. Older entry paths may have defaulted country or business/private status. A populated value does not establish that someone confirmed it: review those existing classifications and countries too. Never backfill invented addresses or classifications. Update integrations and run customer import files in dry-run mode, including explicit business/private classification, before committing them. Apply Shopify migration 0184 before running code that creates distinct guest-order identities.

Stabiso, the Enterprise System of Record · generated from the code and its guides · release 3262ae655e81