fmEcommerce Link (Shopify Edition) Webhooks and the FileMaker Data API

We’ve been progressively updating the Webhooks for our integration solutions to support the new FileMaker Data API and the latest to be updated is fmEcommerce Link (Shopify Edition).

The FileMaker Server Data API will replace the current XML and PHP APIs over time so we’re excited to include support for the Data API. Supporting the Data API also means you can now use Webhooks when your file is hosted by FileMaker Cloud for AWS, as well as FileMaker Server v17 or later. We’ve been testing these Data API Webhooks for the past few months with a FileMaker Cloud for AWS hosted solution and the PHP files running on Amazon Lightsail successfully.

The Data API is language agnostic – you can use whichever programming language you prefer here. We’ve gone with PHP for our examples as that is what we know best. Remember when working with the Data API you will need to enable the fmrest extended privilege for the Webhooks Privilege Set:

You’ll now find 2 folders in the Webhooks folder containing the php files for both the Data API Webhooks and the PHP API Webhooks:

Both folders contain the same 3 files:

  • webhookUpdateOrder.php
  • webhookOrderCancellation.php
  • webhookNewOrder.php

You’ll need to upload these to your chosen Web Server and then enter the URL for each Webhook that you plan to use in your Shopify settings – see our Webhooks page for further details on setting these up.

If you are just looking to use the Data API PHP files make sure you also update the Process Webhooks Order script and the Update Current Order from Shopify script as these have been updated to work with the Data API version of the Webhooks which work slightly differently to the existing PHP API ones.

We also include a few other updates with this release, including:

  • Product Variants: added example to download Product Variants
  • Products: added new fields to upload the SEO Title and SEO Description

Once again this is a free update to all existing customers (simply download using the same link that was on your original order email or if you created an account at the time of ordering you can login to our site and download it from your order history page). If you’re having any issues with downloading the new version please contact us if you need the link to be reset etc.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published.