Draft Order API

Hello Hope you are doing well,

I make code for get Draft orders in Jason Format, I have successfully get the all orders in Jason?

can you please help me to get customer ID based get all orders?

API URL: /admin/api/2023-07/draft_orders.json

I wish to use like this: /admin/api/2023-07/draft_orders.json?customer_id={customer-id}

Can you please provide URL for get draft orders User ID wise?

Thank you in Advance!!!

Hi Devsinfluencer,

Unfortunately it looks like the Shopify Draft Orders API does not support fetching draft orders by a customer ID directly from the endpoint URL. It only provides a list of all draft orders.

However, you could fetch all draft orders and then process the data on your side to filter out the orders relevant to the particular customer ID.

Hope this helps!

1 Like