Duplicate Order via API or GraphQL

hepworthd
Tourist
6 1 2

I've seen a couple requests to see if it is possible to duplicate an order using the API, however I have not seen any response on any of them.

 

Is there a way outside of using the front end to duplicate an existing order either by API or API/GraphQL?

Replies 4 (4)

Klondev
Shopify Partner
689 82 272

Hi and hello, you can extract the existing order via API or GraphQL and then post it back without the id and the order number, those values are unique. There is no reason to duplicate an order, its easiert to clone the order data and work with it.

 

If you need further assistance you can write us a note.

Stephan | Co-Founder @ Klondev Automation GmbH
- War meine Antwort hilfreich? Dann freu' ich mich über ein Like
- Wurde deine Frage beantwortet? Dann markiere gerne meine Antwort als Akzeptierte Lösung
- Hier findest du unser Profil und unseren Kontakt

hepworthd
Tourist
6 1 2

Cloning sounds correct to me as well, however is there a way to clone an existing order as a new order that can be modified as required, using the API/GraphQL approach?  I have not been able to find any documentation on this.

 

thanks.

udaantech
Shopify Partner
9 0 1

No, We need to build a custom app or a private app for your store only, which will provide a functionality to duplicate fully after have all checking.

 

You can hire any developer to do the job, there is no app which does this.

 

So we need to build a set of rules like Inventory present for all line items of the orders or any others which you can define . Post that duplicate the order including the discount code applied earlier. 

 

This will require API calls for the Shopify ADMIN Apis to create orders from the backend.

 

Please let get connected on a whatsapp/mobile on +91-9810421063 or write to us at info@udaantechnologies.com for detailed discussion if required.

 

 

NotSoShabby
Visitor
2 0 0

We came across the same issue. this solution did not work for as as it doesnt duplicate the line items discounts  and the left-over payments of the order.