I’ve achieved this with an HTTPRequest using GraphQL.
Just note that the IDs for both the order and line item need to be gIDs rather than liquid IDs, so {{ order.id }} wont work in flow for either RestAPI or GraphQL requests.
{
"query": "mutation fulfillmentCreateV2($fulfillment: FulfillmentV2Input!) {
fulfillmentCreateV2(fulfillment: $fulfillment) {
fulfillment {
id
status
}
userErrors {
field
message
}
}
}",
"variables": {
{
"fulfillment": {
"lineItemsByFulfillmentOrder": {
"fulfillmentOrderId": "{{ ID OF ORDER FULFILLMENT}}",
"fulfillmentOrderLineItems": {
"id": "{{ LINE ITEM FULFILLMENT ID OF ITEM TO BE FULFILLED }}",
"quantity": 1
}
}
}
},
"message": "Autofulfilled by Flow"
}
}