Hi there! I’ve set up a customer reward programme that runs solely off the back of a combination of Flow, Segments, Customer Tags and OmniSend. I am automatically rewarding the customers a percentage of their purchases to their accounts as Store Credit, based on the customer tiers they have earned.
There is one thing I have been unable to do however, which is to update the amount of available Store Credit to OmniSend via Shopify Flow.
It doesn’t seem to matter which trigger I use in Flow, or if I use the Get Customer Data or Get Order Data and attempt to get the available credit from there - it always returns as blank.
When a customer is logged in to the website, it’s easy to use Liquid and {{ customer.store_credit_account.balance | money_with_currency }} to show the balance so that is fine and kind of enough… But it’d be just great to be able to use Flow to pull this amount somehow and synchronise to OmniSend, so I am able to send reminders of the exact amount of available credit before it expires.
As an example if you use the Store Credit Balance via the order paid trigger, this is available as a selection on Flow - yet it returns nothing:
{% for storeCreditAccounts_item in order.customer.storeCreditAccounts %}
{{storeCreditAccounts_item.balance.amount}}
{% endfor %}
Am I missing something here? Is this something that should be possible on Shopify Flow?
Many thanks in advance
Omisend is a third-party service that operates independently of Shopify—so for specific support related to it, you’ll need to reach out to their dedicated help I guess.
Thanks for the response. The query however is not related to OmniSend as such. I’d just need to figure out if it is possible to get the total amount of store credit available for a customer somehow via Flow. And if I can pull that value with Flow - I can then send this to OmniSend.
Try it with direct tests against the api either in the shopify-cli or shopify graphiql app
I ended giving up in the end trying to do this directly, and found a workaround: I’m setting and updating a separate custom customer metafield with the store credit balance when an order is paid/refunded. This custom metafield was then easy to push through to Omnisend as it’s just a set value.
I’m not sure if the ‘blank’ value / nothing being pulled through has to do with Shopify not allowing certain apps access certain data, or if it’s something completely different… But setting the value separately in a metafield, and then sending this works just fine.
If you just need a free solution to sync the current balance to Omnisend. You can have a look at Dollarback app - which integrates both with Omnisend and Klaviyo and syncs store credit balances whenever a credit / debit action is done by the app / the customer.
Here’s a screenshot of exactly what parameters are passed by our app to Omnisend customer profile. (help article)
Pretty sure we can also do the customer segment based rewards + credit automatically + handle refunds and returns and much more too.
But that’s not what your question was about, so I won’t go there haha 