FROM CACHE - en_header

GraphQL Order Creation

TomSmith
Tourist
9 0 2

Hello

Regarding creating orders using GraphQl API. Actually, there seems to be no way to create orders using GraphQL API and we have to make a draft order and complete it to make one. On the other hand, REST API has a route for creating orders directly and it gives the options to specify inventory behaviour and sending order confirmation to the customer. How can we use GraphQL API to make an order directly and specify those options too? Is it possible to specify the order's name on either APIs? 

Reply 1 (1)
ConnorLeech
New Member
2 0 0

Yes it looks like there's no createOrder mutation for the Shopify GraphQL Admin API. Why not? 

 

Is the best practice to send a request to create a draft order then send another mutation to mark that draft order as complete? It would be helpful to be able to send one request to create an order like the REST API allows.