Artikelen over: API

Synchronizing article data with your own database

Synchronizing article data with your own database



Most entity collection endpoints (called 'Search' in the reference documentation) provide a 'updatedFrom' request parameter.
This parameter allows you to fetch all entities which have an 'updatedAt' date that is equal to or greater than the updatedFrom parameter value.

If you are only interested in certain articles, you could define an extra field of type 'boolean' in Robaws or only save articles which have a specific articleGroupId.

We also define the include parameter with value 'availableStock' so that the response includes a non-null availableStock.

https://app.robaws.be/api/v2/articles?updatedFrom=2020-12-17T13:35:00.000Z&include=availableStock?page=0&size=100

Then use the paging information in the response to fetch nexts results.

https://app.robaws.be/api/v2/articles?updatedFrom=2020-12-17T13:35:00.000Z&include=availableStock&page=1&size=100

Bijgewerkt op: 17/12/2020

Was dit artikel nuttig?

Deel uw feedback

Annuleer

Dankuwel!