[BUGREPORT] Duplicate order being created on orders.json

Had to repost this in order for me to post it as a bug. This is 100% a bug.

When posting to /admin/api/2022-04/orders.json it creates a duplicate order every time.

I also built a quick development store to test the same code and the same thing happens, a duplicate order every time.

The code shows every time, it’s only making 1 request to shopify but it creates 2 orders.

Can this be resolved?

I can post a request ID.

Issue was in the code, curl was being executed twice.

Hey TruckStore i hope you doing well,i have same query related to creating order issue could you please share your code that will be really helpful to me thanks in advance