Does anyone know how to use nop API Get api/products with limit and since_id?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hello,

I'm using nopCommerce 4.0 with source.

I'm trying to call the nop API Get api/products with this line:
$"/api/products?limit=250;since_id=1&fields=id,sku,name,images"


It's giving me a "404 Bad Request".

If I use it this way without the "since_id=1":
$"/api/products?limit=250&fields=id,sku,name,images"


It gives me 250 products.

Additionally, If I use it this way without the "limit=250":
$"/api/products?since_id=1&fields=id,sku,name,images"


It gives me the expected 50 products.

Does anyone know how to call the Get api/products with more than one parameter?

Thanks,
Tony
5 years ago
Why is your URL

$"/api/products?limit=250;since_id=1&fields=id,sku,name,images"

instead of

$"/api/products?limit=250&since_id=1&fields=id,sku,name,images"

?

The semi-colon (;) should be replaced by ampersand (&).


5 years ago
Thanks Wooncherk.

I thought I tried that option, but apparently not.

That fixed it.

Tony
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.