Hello,
In shop settings I have setup gift cards to be automatically fulfilled, but because merchant is using a 3rd party payment provider this isn’t working. Gift cards are not fulfilled automatically.
So I want to setup a Flow to handle this instead. Once an order ONLY INCLUDING GIFT CARDS (I will do a condition to check this) has been created and payment submitted the order should be automatically fulfilled, meaning email with the gift card should be sent to the customer.
Any advice on how to set this up?
I am struggling with triggers allowing me to fulfill the order. Maybe I need to use Admin API request??
You can probably use orders paid trigger, then a condition to check that all line items are gift cards, there is a property on the line items I believe.
You would need to get the “fulfillment order data” for the order that triggered the request and then “mark as fulfilled” for each of those
Fulfillment orders don’t need to be “gotten” on an order trigger…they are available in Flow via order.fulfillmentOrders (as long as the job has finished that adds them)
You can check something like if none of order.lineItems.product.isGiftCard is False
.
Not sure if you use “Request fulfillment” or “Mark as fulfilled” with gift cards.
1 Like