Wix
19 min
wix is a platform that allows users to create, manage, and update their websites and online businesses with the wix app in , you can manage the contacts, cards, collections, products, orders, fulfillments, forms, and messages in your wix account requirements to use the wix app in , you must have a paid wix account https //users wix com/signin/signup/ for the subscription information, refer to the wix pricing page https //www wix com/plans connect wix and to get started, you must first create a connection between wix and , allowing the two services to communicate make provides two ways to create a connection wix (legacy) docid\ nn5plhe9uc3sy4qdxukiz wix (client credentials) docid\ nn5plhe9uc3sy4qdxukiz create a wix (legacy) connection legacy connection due to a recent wix change, new connections to this app cannot currently be created we are looking into possible fixes existing connections continue to work to create a connection in make, first you need to create a custom application in wix to create a custom application in wix log in to your wix account in the left sidebar, click custom apps in the top right corner, click create new app select how you'll create your app from blocks template from blocks blank canvas or explore other frameworks (cli and self hosted) if you choose blocks template select a template click the use template button in the name field, introduce the app name and click save & continue build your app from a template if you choose blocks blank canvas , build your app from a blank layout if you choose explore other frameworks select wix cli or self hosted select start from scratch or start with template build your app from a template, or configure everything from scratch once you're done, click wixblocks > dashboard in the upper left corner in the left sidebar, click develop > permissions by default, you only have wix developer permission click + add permissions , and add the following permissions manage products manage orders manage chats read payments manage coupons read form submissions click save in the left sidebar, click develop > oauth copy the app id and app secret key values shown and store them in a safe place expand custom authentication (legacy) and do the following in the app url field, enter the link https //www make com/oauth/cb/wix in the redirect url field, enter the link https //www integromat com/oauth/cb/wix click save you have created a custom application you will use app id and app secret key in the app id and app secret fields in establish the connection with wix in to establish the connection in log in to your account, add an wix module to your , and click create a connection if you add a module with an instant tag, click create a webhook , then create a connection optional in the connection name field, enter a name for the connection in the app id field, enter the app id value that you copied above in the app secret field, enter the app secret key value that you copied above click save select your custom app and agree to the permissions you have successfully established the connection you can now edit your and add more wix modules if your connection requires reauthorization at any point, follow the connection renewal steps here docid\ so88fm6pkt0g adkddfzz create a connection in make (client credentials) the wix (client credentials) connection uses oauth and requires an app id , app secret , and instance id obtained from your wix oauth app you can also follow the wix authenticate using oauth https //dev wix com/docs/build apps/develop your app/access/authentication/authenticate using oauth documentation add a watch events module to your scenario without a connection make sure it is active, then copy the generated webhook url create an oauth app in wix in your wix account, go to develop → oauth and create a new app when prompted, select self hosted as the app type set permissions on the oauth app add the manage your app and read site owner email permissions note that individual modules may require additional scopes to function create a webhook inside the oauth app choose the app installed webhook (or any webhook your scenario needs to trigger), paste the webhook url from step 1, and click subscribe for app installed install the oauth app on the wix site you want to work with the webhook will fire on installation — note that activation may take up to 10 minutes for other webhook types perform the action that triggers the webhook, and make sure the latest version of your oauth app is installed on the target site retrieve the instance id check the last run of your watch events module the decoded instance id will appear in the module's output gather your credentials your app id and app secret are available in the wix oauth app settings ( develop → oauth ) the instance id comes from step 5 create the connection in make open the connection dialog, select wix (client credentials) as the connection type, and enter your app id , app secret , and instance id , then click save you've successfully created the connection and can now use the wix app in your if you want to make changes to your connection in the future, follow the steps here https //help make com/connect an application#tn2pj set up a wix webhook wix has many instant modules — webhooks that watch for certain changes in wix and immediately start your when those changes happen to use these modules, you must set up the webhook in your wix account to set up a webhook add a wix instant module to your and click create a webhook enter a name for the webhook in the webhook name field select the corresponding connection for the webhook in the connection field and fill in all required fields click save > copy address to clipboard log in to wix developer center https //dev wix com/ and go to the custom app that you created above in the left sidebar, click webhooks in the upper right corner, click + create webhook search for the event that you want to watch, and then click select event in the add callback url field, enter the webhook link that you copied in click subscribe wix will now send data to make through the webhook when the selected event occurs wix modules wix modules after connecting to the wix app, you can choose from a list of available modules to build your add products to a collection adds selected products to a specific collection in your store create a collection creates a new collection to organize and store related items or data create a product creates a new product entry in your system or database delete products from a collection removes selected products from a specific collection in your store delete a collection permanently removes an entire collection and all its contents from your account delete a product permanently removes a selected product from your inventory generate orders pdf link creates a downloadable pdf link containing the details of specified orders get a cart retrieves detailed information about a specific shopping cart get a collection retrieves detailed information from a specific collection you select get a product retrieves detailed information for a specific product get an order retrieves detailed information for a specific order make an api call performs an arbitrary authorized api call search collections searches for collections that match specific filter criteria search orders searches for orders that match specific filter criteria search products searches for products that match specific filter criteria send message sends a text message to a designated channel as the site owner update a collection updates the details or properties of a specified collection update a product modifies the details of an existing product in your inventory watch carts triggers when a shopping cart is created, completed, abandoned, or recovered on an online store website watch collections triggers when a new collection is created, an existing collection is updated, or a collection is deleted in your account watch form submissions triggers when a user completes and submits a form, capturing the submitted data watch fulfillments triggers when a fulfillment record is created, updated, or deleted in your system watch messages triggers when a new chat message is received in your account watch orders triggers when a new order is placed in your system watch products triggers when a product is created, updated or deleted templates you can look for wix templates in make's template gallery https //www make com/en/templates , where you'll find thousands of pre created wix resources wix api documentation https //dev wix com/docs/rest