Jump to content

Issues with State and custom import


Trekkan

Recommended Posts

I'm working on a custom import script to pull users from a DB table into WHMCS

 

Overall, this hasn't been an issue and I'm using the API action "addclient" to do this. The problem appears to be that during import, some of the data contains a country code like "ca" for Canada, but we don't have a state value for them.

 

When trying to add the new client, WHMCS throws and error about the missing state value. It's doing this for other countries as well. I understand it want's a state value, but what if there shouldn't be one, or I just don't have it?

 

I'd like to be able to add the client to WHMCS anyway, then I can have the user correct the issue later. Is there anything I can do to disable this validation?

 

I could just assign "bogus" data, but I'd rather not do that.

 

Thank you for your help!

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