Sitecore OrderCloud Documentation

docs

Portal login

Tracking Inventory Changes in Your Markeplace

Published by Miranda Danielson on December 4, 2024

Learn more about the new functionality to track changes in inventory across products, variants, and specific inventory records.

Use Cases

  • I want to be able to alert purchasing managers when inventory for any products at their warehouse are low in stock.

  • I would like to be able to notify my customers when a product they were interested in is back in stock when quantity is replenished from 0 to 10 or more.

  • I need to clearance out products with less than 5 quantity remaining.

Key Highlights

  • Send Inventory changes to the Delivery Target(s) of your choice

    • One InventoryIntegration allowed per marketplace

  • Ability to receive every change or only changes where the NotificationPoint is met or exceeded

  • QuantityAvailable and PreviousQuantity will be included in the payload

    • This allows your code to distinguish between replenishment/restocking events vs product purchases

New Properties

Variant.Inventory.NotificationPoint and InventoryRecord.NotificationPoint

Added in order to support NotificationPointOnly events on Variants and Inventory Records. Product level inventory already had this property.

New Resource: InventoryIntegration

1{
2 "DeliveryConfigID": "",
3 "NotificationPointOnly": true
4}

InventoryChangedPayload

1{
2 "ProductID": "",
3 "VariantID": "",
4 "InventoryRecordID": "",
5 "QuantityAvailable": 0,
6 "PreviousQuantity": 0,
7 "NotificationPoint": 0,
8}

New Endpoints

  • GET v1/integrations/inventory

  • PUT v1/integrations/inventory

  • DELETE v1/integrations/inventory

  • PATCH v1/integrations/inventory


Still have questions?
Ask in our Community Channel

Content Powered By
Sitecore Logo

© Copyright 2024, Sitecore OrderCloud®. All rights reserved.

Contact Us
Privacy Policy
Sitecore