Getting stock with demandware/cloud commerce OCAPI

689 Views Asked by At

How would I get the stock of an item via the demandware/cloud commerce OCAPI?

2

There are 2 best solutions below

0
On

You can do that using the following OCAPI:

GET /inventory_lists/{inventory_list_id}/product_inventory_records/{product_id}
0
On

see below example which assumes that you have a valid token.

GET {{shop_url}}/products/701644676568M/availability