Development discussions around Shopify APIs
Hello,
I am using order REST API to retrieve particular order with a certain field like a customer but I need first_name and last_name from the customer. Is there any solution that we can pass something in URL and it returns customer data with first_name and last_name?
GET /admin/api/2021-07/orders/{order_id}.json?fields=customer
Yes, that will work. I just tested it and making a call to that endpoint with the fields=customer returns a json array of customer information, including first_name and last_name.
CS | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hello @csam
I want only first_name and last_name in customer details, not all details.
User | RANK |
---|---|
15 | |
7 | |
5 | |
5 | |
5 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022