Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // GET the list of products from this product catalogue
- String catalogueId = "catalogueId"; // Your product catalogue Id
- Filter filter = new Filter();// filter options (name, externalId, barcode value, product category name, barcode type, currency, amount range, page, size and sorting)
- accept.inventory().getProducts(catalogue.getId(), new Filter())
- .subscribe(products -> {
- // list of category products
- }
- }, throwable -> {
- handle error
- });
- // GET product from with given product ID inside catalogue with given catalogue ID
- accept.inventory().getProduct("catalogueId", "productId")
- .subscribe(product -> {
- // product object
- }, throwable -> {
- // handle error
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement