We have multiple systems using billing service for invoice sending and payments. A feature of billing system is also checking the balance of bank accounts to detect new payments and processing those. Reference number is the key to matching received payment to customer/partner account and marking existing invoice as paid or creating new invoice if matching invoice was not found.
Reference numbers are requested from billing system that keeps registry of them and providing uniqueness
https://billing.internet.ee/references
But it makes sense to make billing system able to create the whole invoice on the request of a connected application that would make it easy to manage invoice number uniqueness as well in addition to the reference numbers. So each application can be configured to use billing system for invoice issuance instead of internal invoice creation option.
Billing system should send the invoice copy back to the application.
We have multiple systems using billing service for invoice sending and payments. A feature of billing system is also checking the balance of bank accounts to detect new payments and processing those. Reference number is the key to matching received payment to customer/partner account and marking existing invoice as paid or creating new invoice if matching invoice was not found.
Reference numbers are requested from billing system that keeps registry of them and providing uniqueness
https://billing.internet.ee/references
But it makes sense to make billing system able to create the whole invoice on the request of a connected application that would make it easy to manage invoice number uniqueness as well in addition to the reference numbers. So each application can be configured to use billing system for invoice issuance instead of internal invoice creation option.
Billing system should send the invoice copy back to the application.