Question:
Can the WIX REST APIs (Contact in particular) only be called from code running within WIX or a WIX app, or can they be called from code on an external web site? If they can, what is the authentification process for such a call?
Product:
WIX REST APIs
What are you trying to achieve:
I am trying to migrate an existing PHP/MySQL based ecommerce web site to WIX and want to know if/how I can write code on the existing WEB site that will copy the customer data across by creating new WIX Contacts.
What have you already tried:
I have read the WIX data API and REST API reference documentation and although this explains how to write the code, it does not seem to explain the wider picture of when and how these functions can be used.
I tried using cURL to call the Contact REST API from a PHP script on my existing site using an API key set up in Headless Settings in the WIX Dashboard Settings but this just returned {“message”:“”,“details”:{}} which I assume is either because you cannot access the REST APIs from outside WIX or I have not setup the auth correctly. I just need to rule out the former before looking into the latter.
I have tried the Contact import function in the WIX Dashboard but this is too primitive and only allows the import of a small set of fields.
Additional information:
I am completely new to WIX and Velo but have been coding PHP for many years and am moderately proficient at Javascript.