Hi I am wanting to create a flow to automatically add a flat rate shipping price of $9.99 to all draft orders created please
You might be able to do this with a workflow that starts with a Draft order created trigger followed by a Send Admin API request action that uses a draftOrderUpdate mutation to update the shippingLine on the draft order.
Thank you so much, I am having a look now and the code is a bit confusing to me. I have pasted it below which bit should I update to make all draft shipping orders have $9.99.
{
“id”: “”,
“shippingLine”: {
“price”: {
“amount”: “”,
“currencyCode”: “”
},
“title”: “”
}
}
Try logging out the values so you can see what details are getting passed into the action.
Did this end up working for you? I have the exact same issue.