All insightsLeer en español
Software and integration

From completed service to invoice, with control intact.

KaiOne team4 min readPublished

Connecting completed work to an invoice takes more than copying data into an ERP. The process needs to retain service evidence, validate what can be billed and confirm that each record is created only once, with clear owners for exceptions.

Consider a service business: a team completes a visit, records materials and time, and hands over evidence to the customer. Administration later receives a mixture of emails, files and messages. This is an illustrative scenario for examining the process, not a report of a KaiOne client result.

Start with the condition that makes work billable

Before automating, business and administration teams should agree what ready for invoicing means. Depending on the contract, it may require an identified order, delivery evidence, acceptance or supervisor review. The system needs to represent that condition rather than infer it from a completed task.

A minimum record can connect customer, order, service, date, approved items and evidence. These fields do not all need to live in one application, but they do need a stable reference linking them. Decide which system owns each field and who may correct it.

Give exceptions a visible state

Distinguish recorded work, pending review, approved for invoicing and recorded in the ERP. Incomplete evidence, a price difference or a rejection needs a visible outcome and an owner. It should not disappear into a generic list of technical errors.

Approval workflows must be verified in the specific ERP. For example, Business Central documents requests, record states and approvals. This is a product-specific mechanism, not a promise that another ERP works the same way or that enabling it resolves the full business process.

For international teams coordinating operations in Mexico, agree who interprets service evidence, who resolves commercial differences and who validates invoicing requirements. A change of language should not change approval responsibility.

Separate preparation, approval and recording

  1. Capture service evidence and connect it to the relevant order.
  2. Review items, quantities and conditions, with differences assigned to an owner.
  3. Prepare document data and request the agreed approval.
  4. Record the document through a supported ERP integration and retain its identifier.
  5. Confirm the outcome to operations and administration, or show what is preventing progress.

Business Central sales invoicing guidance distinguishes documents and posting. Creating a draft, posting it and delivering the resulting document should therefore not automatically be treated as the same event. Validate the exact stages in the relevant system and operation.

Prevent a retry from creating another document

A connection can fail after the ERP has received a request but before the integration receives its response. Repeating it without checking the outcome can create a duplicate. The HTTP specification on idempotency cautions against automatically retrying non-idempotent operations without knowing their guarantees.

Our proposed design uses a stable operation reference, recorded state and a check for the created document before retrying. The mechanism depends on the API: an idempotency key, uniqueness constraint or reconciliation query may be part of the solution. None should be assumed without testing actual behavior.

Measure the whole process

Useful measures may include time from validated service to prepared document, records requiring re-entry and exceptions without an assigned owner. Agree on definitions and a baseline before comparing periods.

A first phase can connect one service type and handle its exceptions from end to end. Expanding to more operations is easier to assess once there is evidence that states, permissions and retries work as expected.

Define what the integration should resolve

Automation can coordinate data and approvals. Tax, contractual and accounting review still belongs with the relevant owners. Operations in Mexico may introduce specific requirements that must be reviewed before defining the document and its issuance; this article does not prescribe compliance steps.

At KaiOne, the discussion starts with the process that needs to move forward, the systems involved and the expected business impact. That becomes the basis for a defined software and integration scope, with agreed business tests, acceptance and handover. The intended value is less manual coordination between teams while preserving traceability and control.

Scope and conditions

  • An illustrative scenario, not evidence of a client implementation or result.
  • Compatibility, permissions and controls must be validated for the specific ERP.
  • Integration design does not replace the relevant tax, contractual or accounting review.

Sources and references

Sources support the concepts indicated. The proposed approach and scope decisions are KaiOne’s.

  1. Microsoft Learn: approval workflows in Business CentralAccessed
  2. Microsoft Learn: sales invoicing in Business CentralAccessed
  3. IETF RFC 9110: HTTP idempotency and retriesAccessed

Technical review: Codex · revisión editorial asistida