I am trying to create an DraftOrder using the Admin graphql api and wanted to know if there is a way to guarantee that the orders can be uniquely identified during creation time. More broadly, how does Idempotency work with the admin apis.
This is an older post, wondering if anything has changed recently or if there is a workaround I can use in the interim.
There are no idempotent operations in the Shopify API. You can not guarantee the draft order is uniquely identified prior to creation. Simply when you make the call the return value will have the unique ID and name.
Hope that helps,
I hope you are having a great weekend.
I am using GraphQL to create an order, so I first use the draftOrderCreate mutation and then the draftOrderComplete mutation.
But in this case, the order confirmation email was sent to customers.
Is there any way to prevent sending an email when using GraphQL?
Thank you & have a great weekend.