{"ok":true,"commandType":"update-ap-refund","module":"AP","mode":"write","summary":"Update AP refund 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","paymentLines":"optional AR/AP payment/detail edit array; each row supports lineNo/dtlKey, paymentMethod, paymentAmount/paymentAmt/amount, paymentBy, chequeNo, bankCharge","knockOffs":"optional knock-off allocation edit array; each row supports docType, docKey, docNo, amount","knockOffMode":"optional knock-off edit mode: replace | append | update"},"examplePayload":{"docNo":"PV-000001","reason":"correct header fields","description":"Updated by API","ref":"API-REF-UPDATED","creditorCode":"400-S001","detailMode":"replace","paymentLines":[{"paymentMethod":"CASH","paymentAmount":100,"chequeNo":"API-EDIT-001"}],"knockOffs":[{"docType":"PB","docKey":"424496","docNo":"PI-000001","amount":100}]},"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, payment/detail edit, and knock-off allocation edit when safe SDK methods are available. detailMode: replace | append | update | delete.","nativePayload":{"supported":false,"sections":[{"name":"Master","fields":[]},{"name":"Details","fields":[]},{"name":"KnockOffDetails","fields":[]},{"name":"TransferDetails","fields":[]},{"name":"PaymentDetails","fields":[]},{"name":"Options","fields":[]}]}}