Zopping

Manage stock & prices

Keep price and availability current for each product in each store. This is the day-to-day companion to Sync your catalog — catalog defines what you sell, this keeps price and stock live.

The model

Price and stock are per store, held on an item (productId + storeId). Set mrp, discount and stock; mark unlimitedStock for made-to-order goods.

Upsert price & stock

curl -X POST https://zopping.com/api/inventory-service/item \
  -H "Authorization: Bearer $ZOPPING_TOKEN" -H "Content-Type: application/json" \
  -d '{"organizationId":"<org-id>","productId":88120,"storeId":"<store-id>","stock":240,"mrp":28.0,"discount":2.0,"status":"ENABLED"}'

Adjust stock relatively with stockDelta instead of sending an absolute stock — useful when you only know the delta (a sale, a restock).

Read it back

curl "https://zopping.com/api/inventory-service/item?organizationId=<org-id>&storeId=<store-id>&productId=88120" \
  -H "Authorization: Bearer $ZOPPING_TOKEN"

The catalog read also returns live price/stock when you pass storeId — see storeSpecificData in the Catalog reference.

Audit changes

Every stock movement is logged. Pull the trail to reconcile:

curl "https://zopping.com/api/inventory-service/inventory-log?organizationId=<org-id>&storeId=<store-id>&productId=88120" \
  -H "Authorization: Bearer $ZOPPING_TOKEN"

Going further

Reference: Inventory.