{"ok":true,"commandType":"recalculate-stock-costing","module":"Stock","mode":"write","summary":"Recalculate native stock costing for one exact item.","payloadSchema":{"itemCode":"required exact string item code; preserve leading zeros, no wildcard/list/range","validateOnly":"optional boolean; true is no-change preflight and still requires Stock Edit","confirm":"boolean; required true for execution unless validateOnly is true"},"examplePayload":{"itemCode":"000013","validateOnly":true},"examples":[{"itemCode":"000013","validateOnly":true},{"itemCode":"000013","confirm":true}],"payloadEnums":{},"requiredPayloadFields":["itemCode"],"conditionalPayloadRules":{},"notes":"Requires connector local-mvp-2026.09.27.01 or later, Stock Edit and native TOOLS_STKCOST_RECAL_OPEN. Calculation version 1 only; full history; both document-cost update flags false. Item method/settings are preserved. No all-items/range/date selector, cancellation or automatic retry. Preflight first, then send confirm:true with a distinct execution commandId. Identical requests reuse their commandId; partial/uncertain results require reconciliation, never a new-ID retry. Scoped native readback is not an independent valuation audit. Existing UOM rate/history guards are unchanged.","nativePayload":{"commandType":"recalculate-stock-costing","title":"Recalculate native stock costing for one exact item","supported":true,"schemaOnly":true,"required":["itemCode"],"fields":{"itemCode":{"type":"string","minLength":1,"pattern":"^(?!\\s)(?![\\s\\S]*\\s$)[^*%?\\r\\n\\u0000]+$","description":"Exact single item code; retain leading zeros. No wildcard, list, range or date selectors.","example":"000013","required":true},"validateOnly":{"type":"boolean","description":"True performs connector preflight without recalculation; still classified as Stock Edit/write."},"confirm":{"type":"boolean","description":"Must be true for actual recalculation."}},"additionalProperties":false,"example":{"itemCode":"000013","validateOnly":true},"notes":["Payload support is not native execution proof. Requires connector local-mvp-2026.09.27.01 or later and native TOOLS_STKCOST_RECAL_OPEN. Calculation version 1 only; full history, both document-cost update flags false. No all-items/date selection, cancellation or automatic retry. Use validateOnly:true before a distinct confirmed execution ID."]}}