Skip to main content

Minimal Flow integration with APIEase

This setup starts in APIEase and triggers a Shopify Flow workflow. To start in Shopify Flow and run a saved APIEase request instead, follow Run a saved request from Shopify Flow.

Connect a webhook with Apex and Sidekick​

Ask Apex, for example: I want to trigger a new Shopify Flow workflow from the locations/update webhook topic. You do not need to choose additional business actions to prepare the connection.

  1. Review and approve Apex's proposed APIEase Flow request. It uses the webhook topic and the System parameter IMMEDIATE_FLOW_RESPONSE set to "true" so the webhook caller does not wait for Flow to finish.
  2. Open the saved request from Apex's completion link. Check webhook readiness separately from the saved-request status. If the subscription is unregistered, access is denied, or setup fails, check the permissions required by your selected topic in Settings > Permissions, then choose Retry webhook setup. Declaring an optional permission does not grant access; Shopify authorizes subscription creation. Retrying uses the same saved request.
  3. Choose Copy Sidekick instructions, then Open Shopify Flow. Open Sidekick in Flow and paste the instructions into an ordinary conversation. If copying fails, expand Instructions and manual setup and copy the text manually.
  4. Review the generated inactive workflow. Confirm the APIEase trigger, the exact saved request ID condition, all actions on True, and an empty False branch. The final APIEase action must pass through the trigger's original flowParameters, including its executionId.
  5. Activate the workflow only after review. An APIEase save, a successful copy, or opening Flow does not confirm that a Shopify workflow exists or is active. Events received before activation are not guaranteed to replay.

The prepared instructions contain the saved request's actual internal ID, not its handle. The completion action is required even with immediate response enabled. The webhook data is carried as JSON text; it is not exposed as a typed native Shopify resource.

If you close Sidekick or workflow creation fails, return to the saved APIEase request to copy the same instructions again. You can ask Apex to resume the same setup, or explicitly ask for another distinct setup when you want a separate request.

Configure the workflow manually​

  1. Create and save a Flow request in APIEase. Add any Flow parameters your workflow needs.
  2. In Shopify Flow, create a workflow using the APIEase Flow Trigger.
  3. Add a Condition matching the trigger's requestId to the saved Flow request's ID. This trigger field contains the request ID, not its handle. You can find the ID in the request's edit-page URL.
  4. Connect all workflow steps to the condition's True branch and leave False empty. The trigger's flowParameters is JSON text containing the inputs and an executionId generated by APIEase.
  5. To return a result to the waiting APIEase request, add the APIEase Flow Action. Its required Flow Parameters field must contain JSON preserving that executionId. You can pass through the trigger's flowParameters variable, or parse it in Run code, add result fields, and serialize it again. Do not replace it with an empty object or invent an execution ID.
  6. Keep the workflow inactive until you have reviewed it, then turn it on. Run the saved Flow request from APIEase, from one of its configured triggers, or by chaining to its handle as Next Request from another request.

For example, a Run code step that receives the trigger's flowParameters can return a JSON string for the action:

export default function main(input) {
const parameters = JSON.parse(input.flowParameters);
parameters.result = "complete";
return {message: JSON.stringify(parameters)};
}

Select that step's message output as the action's Flow Parameters value. Configure the Run code input to include the trigger's flowParameters.

APIEase normally waits for a callback containing the matching executionId, subject to its Flow response wait limit (25 seconds by default). Without that callback it can time out; completion of an unrelated action does not resolve the request. An immediate-response configuration returns before workflow completion and still requires the completion callback.

To also run a subsequent saved APIEase request, add its handle as requestId inside the returned JSON while preserving executionId. APIEase resolves the originating execution first, then invokes that saved request. The trigger's top-level requestId identifies the originating Flow request; a requestId inside the action JSON selects a request to run.