{"ok":true,"commandType":"update-ap-credit-note","module":"AP","mode":"write","summary":"Update AP credit 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","creditorCode":"optional supplier/creditor 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":"AP-000001","reason":"correct header fields","description":"Updated by API","ref":"API-REF-UPDATED","creditorCode":"400-S001","detailMode":"replace","lines":[{"accNo":"500-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. If lines do not include lineNo/dtlKey, the connector treats the request as replace. Use detailMode replace when splitting one AP invoice line into multiple lines, including RM0.00 detail lines. 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":[]}]}}