Drafts Orders and since_id

fbritop
New Member
1 0 0

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.

 

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
213 27 39

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 | Developer 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

0 Likes
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.

0 Likes