Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Drafts Orders and since_id

Drafts Orders and since_id

fbritop
Shopify Partner
8 0 4

Is there any docs on what an since_id refers in the case of Draft Orders?

Because you have:

id, name (#DXXXX) and order_id.

Any way, since_id is not returning from the starting id. Can someone please help as the docs states nothing with no examples.

https://shopify.dev/docs/admin-api/rest/reference/orders/draftorder?api[version]=2020-04#index-2020-...

 

Thanks in advance.

 

Replies 2 (2)

Kevin_A
Shopify Staff
318 42 61

Hey @fbritop 

You can use "since_id" so that we only return the draft orders that are newer than the specified draft order id:

admin/api/2020-07/draft_orders.json?since_id=1234567

You won't see "since_id" being returned in the response but you will see the "id" field.  

Kevin_A | Solutions Engineer @ 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

msk
Excursionist
28 5 3

Hello,

yes you are getting 100% right response.

since_id is only for your request in which you just tell from which order id you need data.

but it does not mean that in your response this tag will come.in your response only id's will come.