{"ok":true,"commandType":"reorder-sales-invoice-line","module":"Linked Documents","mode":"write","summary":"Move an existing transferred Sales Invoice detail row to a new line position.","payloadSchema":{"docNo":"required existing invoice number","dtlKey":"preferred invoice detail DtlKey","lineNo":"fallback current line number","fromDocNo":"optional source DO/SO/QT number","fromDtlKey":"optional source detail key","toLineNo":"required new 1-based line position","allowUnlinked":"optional boolean, default false"},"examplePayload":{"docNo":"IV-000001","dtlKey":3002162,"toLineNo":1},"examples":[],"payloadEnums":{},"requiredPayloadFields":[],"conditionalPayloadRules":{},"notes":"Safe reorder only. The connector changes only the detail sequence column, does not delete/recreate rows, and verifies item, quantity, UOM, location, price, stock values, and transfer linkage after save.","nativePayload":{"commandType":"reorder-sales-invoice-line","title":"Reorder Sales Invoice Detail Line","description":"Move an existing transferred Sales Invoice detail row to a specified line position without changing item, quantity, UOM, location, price, stock movement, or DO/source linkage.","required":["docNo","toLineNo"],"fields":{"docNo":{"type":"string","required":true,"description":"Existing Sales Invoice document number."},"dtlKey":{"type":"number|string","required":false,"description":"Preferred target invoice detail DtlKey from get-sales-invoice/read-sales-invoice-lines."},"lineNo":{"type":"number","required":false,"description":"Fallback current 1-based invoice line number when DtlKey is not available."},"fromDocNo":{"type":"string","required":false,"description":"Optional source document number used to identify the transferred row."},"fromDtlKey":{"type":"number|string","required":false,"description":"Optional source detail key used to identify the transferred row."},"toLineNo":{"type":"number","required":true,"description":"New 1-based line position."},"allowUnlinked":{"type":"boolean","required":false,"description":"Default false. Set true only to reorder a row without transfer/link evidence."}},"example":{"docNo":"IV-000001","dtlKey":3002162,"toLineNo":1},"notes":["Safe reorder only: the connector changes the AutoCount detail sequence column only.","It does not call DeleteDetail, ClearDetails, AddDetail, or overwrite detail values.","After save, the connector reloads the invoice and verifies ItemCode, Qty, UOM, Location, UnitPrice, amounts, and FromDoc linkage did not change.","The command blocks when e-Invoice state is not safe for maintenance or when no sequence column is exposed."]}}