{"ok":true,"commandType":"update-ar-debit-note","module":"AR","mode":"write","summary":"Update AR debit note header/simple fields.","payloadSchema":{"docNo":"required existing document number unless docKey is supplied","docKey":"optional existing document key","reason":"optional business reason for audit","docDate":"optional YYYY-MM-DD document date","description":"optional document description/narration","ref":"optional reference where the AutoCount document exposes it","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","debtorCode":"optional customer/debtor code where AutoCount allows changing it","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"optional line/detail edit array; each row supports lineNo/dtlKey, accNo/accountNo/glAccount/postingAccountNo, description, amount, taxCode, deptNo, projNo, classification","knockOffs":"optional knock-off allocation edit array for credit-note style documents; each row supports docType, docKey, docNo, amount","knockOffMode":"optional knock-off edit mode: replace | append | update"},"examplePayload":{"docNo":"AR-000001","reason":"correct header fields","description":"Updated by API","ref":"API-REF-UPDATED","debtorCode":"300-A001","detailMode":"replace","lines":[{"accNo":"400-0000","description":"Corrected line","amount":100,"taxCode":"S-0"}]},"notes":"Uses AutoCount SDK load/edit + Save. Header/simple fields are enabled. Line/detail, payment-detail, and knock-off reallocation edits remain guarded until proven. Uses AutoCount SDK load/edit + Save for header/simple fields and line/detail edit. detailMode: replace | append | update | delete. Credit notes also support knock-off allocation edit when the SDK exposes safe knock-off methods.","nativePayload":{"supported":false,"sections":[{"name":"Master","fields":[]},{"name":"Details","fields":[]},{"name":"KnockOffDetails","fields":[]},{"name":"TransferDetails","fields":[]},{"name":"PaymentDetails","fields":[]},{"name":"Options","fields":[]}]}}