Jump to content

Adding orders from the past using WHMCS API. Possible?


webio

Recommended Posts

Hello,

 

I'm looking on making small conversion script from my current billing system to WHMCS and I'm wondering if I can add orders from the past using WHMCS API or maybe I should use direct WHMCS MySQL DB queries.

 

Thanks

 

P.S. Can I ask for some clarification/help about importing orders? For example user has one order which has already two annual invoices. In this scenario should I create:

 

  • add client
  • one order with date of user initial registration and product id already added to WHMCS which points to the same service which is used currently
  • two invoices: one with date equal to registration date and second one year later. Does recurrign invoices are different in some way from invoices which where created with service ordering?
  • .. anything else?

 

Are there any pitfalls which I should remember during conversion from different billing system?

 

Regards

Edited by webio
Link to comment
Share on other sites

I have another question. What is the way of handling/importing already created by previous billing system services which have different naming convetion (username instead of domain or e-mail)? It would be nice to have some documentation about moving from other biling systems to WHMCS. I'm aware of a lot of differences between all of them but some having general principles could be very helpfull.

Link to comment
Share on other sites

What billing system are you using? WHMCS provides a number of import scripts for the most common ones.

 

To answer your question, it would be best to go directly into the database. The database layout is fairly simple, and anyone with some basic programming abilities should be able to produce results.

Link to comment
Share on other sites

To answer your question, it would be best to go directly into the database. The database layout is fairly simple, and anyone with some basic programming abilities should be able to produce results.

 

Thank you for responding and you are right. Connecting to DB fixed my issues. I have only one question: when service is recurred does new order is being created or order is just being created when service is being registered (like hostng package) and "connected" with first invoice?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated