Create user with REST-API issue

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #105421
    Maarten
    Guest

    Hello Support,

    On our site we are using the EU/UK VAT plugin.

    The VAT ID is set to optional.

    When I create a new user with the REST-API customer endpoint with the following post data:

    Array (
    	[first_name] => Firstname
    	[last_name] => Lastname
    	[email] => <Valid mail address>
    )
    

    I get the following error as response:

    Error: BTW nummer is niet geldig [billing_eu_vat_number_error] => VAT is invalid

    Can you let me know why validation is started in this situation? My assumption was that when no Vat number is provided the validation would be skipped.

    • This topic was modified 1 year, 4 months ago by Omar Dabbas.
    #105422
    WPWhale
    Moderator

    Hi Maarten,

    Which version you have? And do you have the option “Add EU VAT field to signup form” ticked? I know it should be optional even if ticked, but want to reproduce the issue and see why it happens.

    Omar

    #105423
    Maarten
    Guest

    Hi Omar,

    I am using version 2.6. The option you mention is ticked. In a development environment i disabled the validate option (Validation & progress). Only disable plugin will let me create new customers.

    Maarten

    #105424
    WPWhale
    Moderator

    Hi Maarten,

    Can you please contact us at [email protected] with access to your dev/staging website? Thanks,

    Omar

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.