View Single Post
  #1  
Old 12-12-2021, 07:53 AM
 
GDavis GDavis is offline
 

Newbie
  
Join Date: Nov 2021
Posts: 3
 

Default Rest API pulling Orders

I am on 5.3.6.8 and I am using it to pull down Orders. I have two questions.

1. It isn't pulling down some fields like Profile_Id, Payment_Status_id, Shipping_Status_ID etc... But the documentation seems to indicate it will pull down the entire entity. I get almost all the fields but missing just a few. Is this a problem with my install or these fields aren't supported.

2. Does anyone have the paging working?

in my code I have this:

request.QueryStringParams.Add($"_cnd[limit][0]={start}");
request.QueryStringParams.Add($"_cnd[limit][1]={pageSize}");

My start number is incremented by the pageSize + 1 so I should just page and page until I get a partial return with < less that pageSize and I would know I was at the end. But it doesn't seem to work that way, I get to the end and it still gives me 100 records. Is Limit the way to go here?






X-Cart
Business 5.3.6.8
__________________
X-Cart 5.3.6.8
Reply With Quote