{"ok":true,"commandType":"reorder-sales-invoice-lines","module":"Linked Documents","mode":"write","summary":"Apply the full desired Sales Invoice line order in one request.","payloadSchema":{"docNo":"required existing invoice number","desiredLineKeys":"array of every current lineKey exactly once, in final order"},"examplePayload":{"docNo":"IV-000001","desiredLineKeys":["dtl:3002162","dtl:3002163","dtl:3002164"]},"examples":[],"payloadEnums":{},"requiredPayloadFields":[],"conditionalPayloadRules":{},"notes":"For daily invoices, call read-sales-invoice-line-order, group normal item lines first, discount lines second, and FOC/free gift lines last, then submit every lineKey. The connector changes only the sequence column and verifies item, quantity, price, tax, discount, stock, and transfer fields after save.","nativePayload":{"commandType":"reorder-sales-invoice-lines","title":"Reorder Sales Invoice Detail Lines","description":"Apply the full desired Sales Invoice line order in one safe request using stable lineKey values.","required":["docNo","desiredLineKeys"],"fields":{"docNo":{"type":"string","required":true,"description":"Existing Sales Invoice document number."},"desiredLineKeys":{"type":"array<string>","required":true,"description":"Every current invoice lineKey exactly once, in the desired final order."}},"example":{"docNo":"IV-000001","desiredLineKeys":["dtl:3002162","dtl:3002163","dtl:3002164"]},"notes":["Call read-sales-invoice-line-order first to get the current stable lineKey values.","The connector rejects missing, duplicated, or unknown lineKey values.","The connector changes only the AutoCount detail sequence column.","It does not change item, quantity, UOM, location, unit price, tax, discount, amount, stock, or transfer linkage.","After save, it reloads the invoice and verifies protected fields plus the final line order."]}}