How to mark order fulfilled automatically while creating draft order using Draft Order API

Tourist
21 0 1

Hello Everyone,

I am working on App where I creating Draft order using API and redirecting user to the Invoice URL from where the customer completes the order. The order created is unfulfilled by default but I want it to be fulfilled by default.

Can anyone help me to accomplish this requirement?

I am using Shopify Draft Order API:https://help.shopify.com/en/api/reference/orders/draftorder

Any help will be appreciated.

Thank you in advance.

0 Likes
Shopify Staff
Shopify Staff
918 55 124

Hey @Milind2 , 

 

I'm not aware of any way off-hand that this can be accomplished via API. I think your best bet would be to : 

 

1) In Settings>Payments on your shop, configure your shop to automatically capture payments for orders

2) In Settings>Checkout on your shop, configure your shop to automatically fulfill orders after payment has been captured

 

That way, for the majority of payment methods at least (not manual/custom payment methods if I recall) once your drafts become orders they'll fulfill themselves. 

0 Likes