{"ok":true,"commandType":"read-sales-invoice-line-order","module":"Linked Documents","mode":"read","summary":"Read a Sales Invoice's sequence-sorted line order and stable lineKey values.","payloadSchema":{"docNo":"required existing invoice number"},"examplePayload":{"docNo":"IV-000001"},"examples":[],"payloadEnums":{},"requiredPayloadFields":[],"conditionalPayloadRules":{},"notes":"Use before reorder-sales-invoice-lines. The returned lineKey identifies the AutoCount detail row by DtlKey/DetailKey and remains stable after reordering.","nativePayload":{"commandType":"read-sales-invoice-line-order","title":"Read Sales Invoice Line Order","description":"Read all existing Sales Invoice detail rows in sequence order and return a stable lineKey for each row.","required":["docNo"],"fields":{"docNo":{"type":"string","required":true,"description":"Existing Sales Invoice document number."}},"example":{"docNo":"IV-000001"},"notes":["Use this before reorder-sales-invoice-lines.","Each returned lineKey identifies the saved AutoCount detail row by DtlKey/DetailKey, not by screen position.","The response includes suggested lineKind values for grouping normal items, discount lines, and FOC/free gift lines."]}}