Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I have been trying to create a flow that once the customer pays the "overdue" order with PaymentTerms, then sends me an internal email notification.
and also i got a reply from Shopify support for reference:
if (paymentSchedule.amount.amount <= 0) {
// Payment is made
return true;
} else {
// Payment is not made
return false;
}
So the questions:
1, The code in the "advanced query" part - “paymentSchedule.amount.amount <= 0” is correct or not? or something else still need to be added???
2, Which “Sort data by” should i choose (*It is also a key point for flow, right?)
Thank u for ur help in advance!
*This flow is very important for my work, i have tried many different versions to make it work in the past weeks.
Solved! Go to the solution
This is an accepted solution.
Hello! If you are looking to get an email for each paid order, I'd recommend switching to the "Order Paid" trigger instead.
With that you can make a check if all the PaymentTerms -> PaymentSchedules of the order are less than or equal to 0.
This is a sample workflow that could achieve that:
This is an accepted solution.
Hello! If you are looking to get an email for each paid order, I'd recommend switching to the "Order Paid" trigger instead.
With that you can make a check if all the PaymentTerms -> PaymentSchedules of the order are less than or equal to 0.
This is a sample workflow that could achieve that:
Thank u for ur advice, it's a big help to me, i will try it now
Moreover, if advanced query part is filled with:
{
orders(first: 10, query: "paymentStatus:PAID") {
edges {
node {
id
paymentSchedule {
amount {
amount }
}
}
}
}
}
Does it works for this flow? Because i still wanna add order tags, like
Thanks for ur answers!
Update:
Amount is currently not available with PaymentTerms > PaymentSchedules.
The amount criteria is with the "Order paid" trigger. It would start with totalReceivedSet > presentmentMoney > Amount.
Essentially, since your goal is to send an internal email if an order is already paid and the value is less than or equal to zero, our team recommends using Order paid > totalReceivedSet > presentmentMoney > Amount in place of Order paid > PaymentTerms > PaymentSchedules.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024