Automate Pass Updates with Shopify Flow
SleekPass includes a Shopify Flow action named Create or Refresh Loyalty Passes. Use it when a customer event in Shopify should create missing Wallet passes or refresh the customer’s existing passes with current data.
Before You Start
Section titled “Before You Start”- Install Shopify Flow on your store.
- Keep SleekPass installed and configured.
- Open Shopify admin > Customers and choose the customer you will use for the test.
- Make sure the customer does not already have the tag
sleekpass-flow-test. Remove that tag and save the customer first if necessary.
Create the Workflow
Section titled “Create the Workflow”- In Shopify admin, go to Apps > Shopify Flow.
- Click Create workflow.
- Click Select a trigger, search for
Customer tags added, and select Shopify’s Customer tags added trigger. - Click the + below the trigger, then click Action.
- Search for
Create or Refresh Loyalty Passesand select the action under SleekPass. - Select the SleekPass action on the canvas. In its Configuration panel, confirm it displays Customer: customer.id. Shopify supplies this reference automatically from Customer tags added; if the Customer value is missing, stop and remove the incomplete action instead of turning on the workflow.
- Click Turn on workflow and confirm the workflow is active.
The action runs asynchronously. SleekPass returns control to Flow promptly, then processes the customer’s Apple and Google Wallet passes in the background.
Verify the Workflow
Section titled “Verify the Workflow”Test the real activated workflow with development-store data:
- In Shopify admin, go to Customers and open the customer selected above.
- In Tags, add
sleekpass-flow-test, then click Save. Adding this new tag starts the workflow. - Go to Apps > Shopify Flow > Activity, open the newest run of the workflow, and confirm both Customer tags added and Create or Refresh Loyalty Passes show Succeeded. If either step fails, open it and record the displayed error before retrying.
- Wait for SleekPass’s background work to finish, then confirm the customer has one Apple pass and one Google pass with the current Wallet design.
- Change the customer’s first or last name in Shopify admin and click Save.
- Remove
sleekpass-flow-testfrom Tags and click Save. Add the same tag again and click Save to cause a second real run. - Return to Apps > Shopify Flow > Activity and confirm the new run succeeds.
- Confirm the existing Apple and Google passes show the changed name and that no duplicate pass was created.
Shopify Flow’s simulated test mode does not execute actions that change store data. To verify the complete SleekPass result, turn on the workflow and cause the real trigger event in a development store.
Troubleshooting
Section titled “Troubleshooting”The SleekPass action is missing
Section titled “The SleekPass action is missing”Confirm that both SleekPass and Shopify Flow are installed. During app development, keep the SleekPass development preview running so Shopify can expose the draft action to the selected development store.
The workflow cannot supply a customer
Section titled “The workflow cannot supply a customer”Delete the current trigger and use Shopify’s Customer tags added trigger. When the SleekPass action is added immediately below it, Flow should populate the required Customer reference automatically.
The Flow run succeeded but the pass has not changed yet
Section titled “The Flow run succeeded but the pass has not changed yet”Wallet publication happens in the background. Allow the SleekPass worker to finish, then verify the existing Apple or Google Wallet pass again. If the run continues to have no effect, contact [email protected].