-4

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

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108

2 Answers2

1

You can do that using the following OCAPI:

GET /inventory_lists/{inventory_list_id}/product_inventory_records/{product_id}
Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
ddon-90
  • 2,816
  • 1
  • 20
  • 29
1

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

GET {{shop_url}}/products/701644676568M/availability
Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
Jesper
  • 304
  • 6
  • 10