Rails 24:00 Orvane Home & Outdoor

← Ledger

#281 Oversell on listing 79146 · Fri 20:58:30

outcome
auto done
action and tier
resync stock 0
call
PUT /listings/79146/inventory
definition
oversell v1
decided by
rules
approved by
—
why
Allowed: resync_stock is tier 0 (just do it); within budget (0 of 4 actions on listing:79146 this hour).
rationale
2 orders failed allocation while the listing showed 6 units and the warehouses hold 0; push the real stock.
note
OV-100608 on Tradewick now shows 0 units (it showed 6).
at stake
EUR 83.98, 2 orders taken that cannot ship
undo
Push the quantity the listing showed before.

Evidence

eur at risk83.98
failed orders2
feedservice
last failed at2026-11-27 20:58:22.066977
last stock sync2026-11-27 09:22:02.405956
listing id79146
lookback minutes180
marketplaceTradewick
marketplace id3
order ids[296202, 297897]
orders affected2
productDriftmoor Trailhead 2-Person Tent
product id20279
qty shown6
scopelisting:79146
skuOV-100608
stake note2 orders taken that cannot ship
started at2026-11-27T20:17:12.953843
value at risk83.98
warehouse on hand0

Chain

#timeoutcomebynote
281Fri 20:58auto donerulesOV-100608 on Tradewick now shows 0 units (it showed 6).

Before and after

{
 "after": {
  "listing_events": [
   {
    "id": 924,
    "listing_id": 79146,
    "type": "stock_sync",
    "undo_payload": {
     "qty": 6,
     "source": "rollback"
    },
    "undo_type": "stock_sync"
   }
  ],
  "listings": [
   {
    "id": 79146,
    "last_synced_at": "2026-11-27T20:58:30",
    "qty_shown": 0
   }
  ]
 },
 "before": {
  "listings": [
   {
    "id": 79146,
    "last_synced_at": "2026-11-27T09:22:02.405956",
    "qty_shown": 6
   }
  ]
 },
 "endpoint": "PUT /listings/79146/inventory (Tradewick) qty=0",
 "note": "OV-100608 on Tradewick now shows 0 units (it showed 6).",
 "ok": true,
 "rollback_fn_name": "undo_resync_stock"
}