Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi,
We have one product on our store that requires no fulfilment at all. Let's just say its ID is '123456'. We're a charity and this product is a donation that customers can make in the basket/cart.
What I'm trying to do is get to a solution where whenever an order is made that contains that line_item it is immediately set to 'fulfilled'.
Ideally I'd do this without paying for a new app so I was wondering if it would be possible with Flow and a send HTTP request action.
I've had a look at the mutations available on the GraphQL API (https://shopify.dev/docs/api/admin-graphql/2023-01/mutations/fulfillmentCreateV2) but couldn't quite see anything that would work.
So I'm putting it out there here. Has anyone done anything similar or would know how to get it working?
thanks
Yeah it's possible. This is a working query mutation that I use in Send HTTP Request to Mark all fulfillment orders as fulfilled:
{ "query": "mutation fulfillmentCreateV2($fulfillment: FulfillmentV2Input!) { fulfillmentCreateV2(fulfillment: $fulfillment) { fulfillment { id } userErrors { field message } } }", "variables": { "fulfillment": { "lineItemsByFulfillmentOrder": [{% for fo in order.fulfillmentOrders %}{ "fulfillmentOrderId": "{{fo.id}}"}{% unless forloop.last %}, {% endunless %}{% endfor %}]}}}
Note that you'll need an API key to use this. The action looks like this:
Thanks @paul_n . Always good to see you pop up with a solution. A real Shopify Forums hero.
I'll give this a go. I may be reading the code wrong but is this going to fulfil only the targeted line item or the entire order.
Our item that requires no fulfilment can be on an order with other items that do so we wouldn't want to automatically fulfil the whole thing.
thanks,
Hi Jake, did you found solutions for your charity?
François, Digico Paris
We now have a "Mark fulfillment order as fulfilled" action to fulfill an entire fulfillment order, you would have to ensure that it is the only product in the fulfillment order. If this product is setup as digital product it will automatically be its own fulfillment order and you could us a template we have. Look up "Fulfill a digital item in an order" in the templates section.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025