Writing your own module (API)
When working with your own self-written billing, or a billing that ERP "UserSide" does not support by default, you should have a look at the page Universal API.
You can use the proposed scheme of work and take advantage of the free module usm_billing