Area: Optimizely Content Delivery API
Applies to versions: 2.9.0 and higher


Recommended reading 
get/api/episerver/v2.0/inventoryGets sku inventory information.

CD.Commerce exposes a separate endpoint /api/episerver/v2.0/inventory?contentId={{contentguid}} to query inventory info. Clients send a request to the endpoint along with the catalog content contentId in the query string to acquire inventory info.

Request: /api/episerver/v2.0/inventory?contentId=3c69e19f-43eb-40cf-b0ba-4a61c6d443f4


    "entryCode"                 : "Single-Day-Ticket---Monday_1",
    "warehouseCode"             : "default",
    "purchaseAvailableQuantity" : 1000.0,
    "purchaseRequestedQuantity" : 0.0,
    "purchaseAvailable"         : "2019-11-30T17:00:00Z"

Do you find this information helpful? Please log in to provide feedback.

Last updated: Mar 24, 2021

Recommended reading