Solved

[BUGREPORT] Duplicate order being created on orders.json

Truckstore
Tourist
7 3 0

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.

 

 

Accepted Solution (1)

Truckstore
Tourist
7 3 0

This is an accepted solution.

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

View solution in original post

Replies 2 (2)

Truckstore
Tourist
7 3 0

This is an accepted solution.

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

SwagKicks
Visitor
2 0 0

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