From deal to invoice
A signed deal in the CRM automatically becomes a debtor in the invoicing system, with no retyping and no duplicate customers.
Starting point
After every signed deal, someone had to retype the customer.
A group of B2B service companies used a CRM for sales and a separate invoicing system for finance. As soon as a deal moved to “Signed”, someone had to create the customer as a debtor by hand: company name, company registration number, billing address. Only then could the first invoice go out. There were relatively few deals, but large ones, so every day of delay and every typo in an address directly affected revenue.
The problem
Delays, typos and the risk of duplicate customers.
Retyping by hand caused three kinds of problems:
- time between signing and invoicing, because someone had to remember;
- errors in billing addresses and registration numbers that later held up invoices;
- duplicate debtors when an existing customer signed a new deal and was entered again.
There were also two technical constraints. Constantly checking the CRM for changes would have meant API traffic all day for a handful of events per week. And an existing customer must never become a second debtor.
The approach
The CRM sends the signal, the integration does the rest.
Instead of repeatedly querying the CRM, the CRM itself sends a webhook as soon as a deal is “Signed” and the required fields are filled in. The integration then checks whether the customer already exists as a debtor, creates one only if needed, and writes the debtor number back to the CRM.
- Deal set to Signed in the CRMrequired fields are filled in
- CRM sends a webhookonly when the conditions are met
- Customer data to the integrationname, company number, billing address
- Does the debtor already exist?No, new customer
- Create the debtorin the invoicing system
- Debtor number back to the CRM
Yes, existing customer- Reuse the existing debtorno second record
- Debtor number back to the CRM
That way both systems reference each other one-to-one. Sales doesn’t have to do anything extra, and finance sees the debtor appear the moment the deal closes.
Key decisions
Four choices that made the difference.
- A signal instead of constant checking. A webhook at the right moment means the integration only runs when something actually happens. Polling the CRM would have meant continuous API traffic and cost, plus delay.
- The conditions live in the CRM. When the integration fires is visible and editable in the CRM itself, where the sales team already works, rather than hidden in a filter in the automation tool.
- Check first, then create. One extra API call to see whether the customer exists prevents the administration from fragmenting across duplicate debtors.
- Writing back completes the link. The debtor number on the deal turns the CRM into a reliable index into the books. Later automations, such as cost centres and the handover to planning, key on exactly that field. Every flow leaves behind what the next one needs.
What made it hard
Two systems that store customer data differently.
The hardest part was translating between the two systems: registration number, billing address and contact details had to land in the right fields of the invoicing system for every type of service. Because the CRM enforces the required fields before the webhook fires, incomplete data rarely reaches the integration.
The result
From manual delay to near-instant.
- Time from signed deal to invoice-ready debtor went from “whenever someone remembers” to near-instant.
- Retyping, and with it typos in addresses and registration numbers, has largely disappeared.
- No duplicate debtors: CRM and bookkeeping stay linked one-to-one through the written-back debtor number.
- Because the integration only runs on real events, it costs almost no API traffic or platform fees.
Built at organisations in finance, operations and business services. Client names and confidential details are left out.