A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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?
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 (https://shopify.dev/api/admin-rest/2022-01/resources/draftorder).
Hope this helps get you pointed in the right direction.