A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I found that you can create an order through admin api but I couldn't find how we can add a customer in the api parameters.
Solved! Go to the solution
This is an accepted solution.
Hi, @mukeshgmon!
See the examples section here: Shopify AdminAPI docs
Check this 2 points:
If you have an existing Customer, just pass their 'id' in the order creation parameters.
If not, you first need to create a new Customer, get a response from AdminAPI with that Customer's data, and then create an order with that data.
I hope my explanations will help you, if not, please describe the problem in more detail, with code examples.
Have a nice day! 😉
This is an accepted solution.
Hi, @mukeshgmon!
See the examples section here: Shopify AdminAPI docs
Check this 2 points:
If you have an existing Customer, just pass their 'id' in the order creation parameters.
If not, you first need to create a new Customer, get a response from AdminAPI with that Customer's data, and then create an order with that data.
I hope my explanations will help you, if not, please describe the problem in more detail, with code examples.
Have a nice day! 😉
this worked beautifully. Thank you!