Getting order id from draft order

Getting order id from draft order

4 0 0

Hi. I'm creating a draft order using the Admin REST API, and then later using the invoice_url to charge a user. This converts the draft order into an order, but the order has a different id from the draft order. How do I obtain this new order id since it was generated via this invoice_url? 

Reply 1 (1)

3 0 1

Hi Shaun,


Was searching the Community Boards for an answer to a different but related question and came across your post.


Not sure if you ever figured this out, but, if not, the DraftOrder resource has a property called order_id; posted a screenshot of the property def from the Admin REST API documentation ( 


Hope this helps get you pointed in the right direction.


Screen Shot 2022-08-04 at 10.30.31 AM.png