Re: Exclude unpaid lineitems

How to prevent unpaid items from being fulfilled in Flow app?

Z_Jonah
Excursionist
17 0 4

Hello,

In the Flow app I have the following Workflow that pulls orders' data from Shopify to a Google Sheet.

I use a post-purchase app and sometimes an item is added to the order but is not paid.

The flow still sends the lineitem's data to the sheet and this causes to sometimes fulfill items that haven't been paid for.

Any solution? Like a quantity parameter that only shows paid and therefore fulfillable items?

 

 

{{order.createdAt}},{{order.name}},{{lineItemsForeachitem.sku}}, {{lineItemsForeachitem.quantity}},{{lineItemsForeachitem.unfulfilledQuantity}},{{order.shippingAddress.name | replace: ",", " " }},{{order.shippingAddress.address1 | replace: ",", " " }},{{order.shippingAddress.address2 | replace: ",", " " }},{{order.shippingAddress.city | replace: ",", " " }},{{order.shippingAddress.province | replace: ",", " " }},{{order.shippingAddress.zip | replace: ",", " " }},{{order.shippingAddress.countryCodeV2}},{{order.shippingAddress.phone}},{{order.customer.email}}

 

 

 

Replies 2 (2)

lilyliward
Shopify Staff
19 1 9

Hello, 

 

I think you could add a condition to check if the lineitem.nonFulfillableQuantity == lineitem.quantity. 

 

Lily

To learn more visit the Shopify Help Center or the Community Blog.

paul_n
Shopify Staff
1314 148 300

I'm not aware of any field that tells you if a line item has been paid for or not. You could check to see if order / lineItems / nonFulfillableQuantity returns true in that scenario. 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.