{"ok":true,"title":"AutoCount API Developer Recipes","sourceOfTruth":"Generated from autocountCommandCatalog(); human docs, AI manifest, OpenAPI, and recipe JSON share this command catalog. All command catalog entries are exposed as developer recipes.","recipeCount":639,"baseUrl":"https://api.autocount.cloud","endpoints":{"queueCommand":"POST /v1/commands","getCommandResult":"GET /v1/commands/{commandId}","getCommandArtifact":"GET /v1/commands/{commandId}/artifact","schemaModules":"GET /v1/schema/modules","schemaModule":"GET /v1/schema/modules/{moduleId}","schemaCommand":"GET /v1/schema/commands/{commandType}","openApi":"/openapi.json","aiManifest":"/ai/manifest.json","autocountOntology":"/ai/autocount-ontology.json","recipesJson":"/developers/recipes.json"},"commonRules":["Use cloud API only.","Never call the Local Connector API directly from external automation.","Use Bearer tenant/app API key.","Use connectorId and companyId from the customer portal.","Use a unique commandId for every command.","Poll the result endpoint until done or failed.","For PDF commands, download result.artifactUrl or GET /v1/commands/{commandId}/artifact with the same API key before sending the file through WhatsApp/email tools.","AR means customer/debtor and uses debtorCode. AP means supplier/creditor and uses creditorCode.","For a new account book, seed debtor, creditor, item/UOM, and required locations before write commands; stock transfer needs two active locations.","AP invoice requires a valid GL posting account on each line or a valid single-line accountNo.","BOM and manufacturing commands must use finished-good and component item codes that exist in the same account book.","Cash Sale payment buttons map to payments rows; omit payments only for Credit Sale."],"modules":[{"name":"Start Here","description":"Connector basics, common request shape, first safe reads, and setup references.","commands":[]},{"name":"Sales","description":"Advance quotation, quotation, sales order, delivery order, sales invoice, cash sale, credit note, debit note, transfers, and sales PDFs.","commands":["list-advanced-quotations","read-advanced-quotation-lines","get-advanced-quotation","validate-advanced-quotation","create-advanced-quotation","update-advanced-quotation","cancel-advanced-quotation","void-advanced-quotation","delete-advanced-quotation","list-quotations","read-quotation-lines","get-quotation","validate-quotation","create-quotation","update-quotation","cancel-quotation","void-quotation","delete-quotation","list-sales-orders","read-sales-order-lines","get-sales-order","validate-sales-order","create-sales-order","update-sales-order","cancel-sales-order","void-sales-order","delete-sales-order","list-delivery-orders","read-delivery-order-lines","get-delivery-order","validate-delivery-order","create-delivery-order","update-delivery-order","cancel-delivery-order","void-delivery-order","delete-delivery-order","list-sales-invoices","read-sales-invoice-lines","get-sales-invoice","validate-sales-invoice","create-sales-invoice","update-sales-invoice","cancel-sales-invoice","void-sales-invoice","delete-sales-invoice","list-cash-sales","read-cash-sale-lines","get-cash-sale","validate-cash-sale","create-cash-sale","update-cash-sale","cancel-cash-sale","void-cash-sale","delete-cash-sale","list-sales-credit-notes","read-sales-credit-note-lines","get-sales-credit-note","validate-sales-credit-note","create-sales-credit-note","update-sales-credit-note","cancel-sales-credit-note","void-sales-credit-note","delete-sales-credit-note","list-sales-debit-notes","read-sales-debit-note-lines","get-sales-debit-note","validate-sales-debit-note","create-sales-debit-note","update-sales-debit-note","cancel-sales-debit-note","void-sales-debit-note","delete-sales-debit-note","transfer-delivery-order-to-sales-invoice","transfer-quotation-to-delivery-order","transfer-quotation-to-sales-invoice","transfer-quotation-to-sales-order","transfer-sales-invoice-to-sales-credit-note","transfer-sales-order-to-delivery-order","transfer-sales-order-to-purchase-order","transfer-sales-order-to-sales-invoice","read-item-sales-by-customer","read-sales-detail-lines"]},{"name":"Purchase","description":"Purchase order, GRN, purchase invoice, cash purchase, purchase return, transfer, and purchase PDFs.","commands":["list-purchase-orders","read-purchase-order-lines","get-purchase-order","validate-purchase-order","create-purchase-order","update-purchase-order","cancel-purchase-order","void-purchase-order","delete-purchase-order","list-goods-received-notes","read-goods-received-note-lines","get-goods-received-note","validate-goods-received-note","create-goods-received-note","update-goods-received-note","cancel-goods-received-note","void-goods-received-note","delete-goods-received-note","list-purchase-invoices","read-purchase-invoice-lines","get-purchase-invoice","validate-purchase-invoice","create-purchase-invoice","update-purchase-invoice","cancel-purchase-invoice","void-purchase-invoice","delete-purchase-invoice","list-cash-purchases","read-cash-purchase-lines","get-cash-purchase","validate-cash-purchase","create-cash-purchase","update-cash-purchase","cancel-cash-purchase","void-cash-purchase","delete-cash-purchase","list-purchase-returns","read-purchase-return-lines","get-purchase-return","validate-purchase-return","create-purchase-return","update-purchase-return","cancel-purchase-return","void-purchase-return","delete-purchase-return","transfer-goods-received-note-to-purchase-invoice","transfer-purchase-invoice-to-purchase-return","transfer-purchase-order-to-goods-received-note","transfer-purchase-order-to-purchase-invoice","read-purchase-detail-lines"]},{"name":"AR","description":"Customer/debtor invoice, payment, refund, credit note, debit note, outstanding documents, statement, and knock-off.","commands":["list-ar-invoices","read-ar-invoice-lines","read-ar-outstanding-documents","get-ar-invoice","validate-ar-invoice","create-ar-invoice","update-ar-invoice","void-ar-invoice","delete-ar-invoice","list-ar-payments","read-ar-detail-lines","read-ar-payment-lines","read-ar-refund-lines","get-ar-payment","validate-ar-payment","create-ar-deposit","create-ar-payment","update-ar-payment","void-ar-payment","delete-ar-payment","list-ar-refunds","get-ar-refund","validate-ar-refund","create-ar-refund","update-ar-refund","void-ar-refund","delete-ar-refund","list-ar-credit-notes","read-ar-credit-note-lines","get-ar-credit-note","validate-ar-credit-note","create-ar-credit-note","update-ar-credit-note","void-ar-credit-note","delete-ar-credit-note","list-ar-debit-notes","read-ar-debit-note-lines","get-ar-debit-note","validate-ar-debit-note","create-ar-debit-note","update-ar-debit-note","void-ar-debit-note","delete-ar-debit-note","list-ar-deposits","read-ar-outstanding","read-debtors","get-ar-deposit","get-debtor-credit-control","get-debtor-detail","validate-ar-deposit"]},{"name":"AP","description":"Supplier/creditor invoice, payment, refund, credit note, debit note, outstanding documents, statement, and knock-off.","commands":["list-ap-invoices","read-ap-invoice-lines","read-ap-outstanding-documents","get-ap-invoice","validate-ap-invoice","create-ap-invoice","update-ap-invoice","void-ap-invoice","delete-ap-invoice","list-ap-payments","read-ap-detail-lines","read-ap-payment-lines","read-ap-refund-lines","get-ap-payment","validate-ap-payment","create-ap-deposit","create-ap-payment","update-ap-payment","void-ap-payment","delete-ap-payment","list-ap-refunds","get-ap-refund","validate-ap-refund","create-ap-refund","update-ap-refund","void-ap-refund","delete-ap-refund","list-ap-credit-notes","read-ap-credit-note-lines","get-ap-credit-note","validate-ap-credit-note","create-ap-credit-note","update-ap-credit-note","void-ap-credit-note","delete-ap-credit-note","list-ap-debit-notes","read-ap-debit-note-lines","get-ap-debit-note","validate-ap-debit-note","create-ap-debit-note","update-ap-debit-note","void-ap-debit-note","delete-ap-debit-note","list-ap-deposits","read-ap-outstanding","read-creditors","get-ap-deposit","get-creditor-detail","validate-ap-deposit"]},{"name":"Stock","description":"Items, balance, stock adjustment, receive, issue, transfer, UOM conversion, stock take, write-off, BOM, package, and assembly.","commands":["list-stock-item-brands","list-stock-item-categories","list-stock-item-groups","list-stock-item-types","list-stock-update-costs","read-items","read-items-all","read-locations","read-stock-detail-lines","read-stock-movement","read-stock-update-cost-lines","get-stock-item-brand","get-stock-item-category","get-stock-item-detail","get-stock-item-group","get-stock-item-type","get-stock-update-cost","validate-stock-update-cost","create-stock-item-brand","create-stock-item-category","create-stock-item-group","create-stock-item-type","create-stock-update-cost","update-stock-item-brand","update-stock-item-category","update-stock-item-group","update-stock-item-type","update-stock-update-cost","void-stock-update-cost","delete-stock-update-cost","export-items","stock-balance","list-stock-adjustments","read-stock-adjustment-lines","get-stock-adjustment","validate-stock-adjustment","create-stock-adjustment","update-stock-adjustment","void-stock-adjustment","delete-stock-adjustment","list-stock-receives","read-stock-receive-lines","get-stock-receive","validate-stock-receive","create-stock-receive","update-stock-receive","void-stock-receive","delete-stock-receive","list-stock-issues","read-stock-issue-lines","get-stock-issue","validate-stock-issue","create-stock-issue","update-stock-issue","void-stock-issue","delete-stock-issue","list-stock-transfers","read-stock-transfer-lines","get-stock-transfer","validate-stock-transfer","create-stock-transfer","update-stock-transfer","void-stock-transfer","delete-stock-transfer","list-stock-takes","read-stock-take-lines","get-stock-take","validate-stock-take","create-stock-take","update-stock-take","void-stock-take","delete-stock-take","list-stock-write-offs","read-stock-write-off-lines","get-stock-write-off","validate-stock-write-off","create-stock-write-off","update-stock-write-off","void-stock-write-off","delete-stock-write-off","list-stock-uom-conversions","read-stock-uom-conversion-lines","get-stock-uom-conversion","validate-stock-uom-conversion","create-stock-uom-conversion","update-stock-uom-conversion","void-stock-uom-conversion","delete-stock-uom-conversion","list-item-packages","get-item-package","validate-item-package","create-item-package","update-item-package","void-item-package","delete-item-package","list-bom-items","get-item-bom","validate-item-bom","create-item-bom","update-item-bom","void-item-bom","delete-item-bom","list-stock-assemblies","list-stock-assembly-orders","list-stock-disassemblies","get-stock-assembly","get-stock-assembly-order","get-stock-disassembly","validate-stock-assembly","validate-stock-assembly-order","validate-stock-disassembly","create-stock-assembly","create-stock-assembly-order","create-stock-disassembly","update-stock-assembly","update-stock-assembly-order","update-stock-disassembly","void-stock-assembly","void-stock-assembly-order","void-stock-disassembly","delete-stock-assembly","delete-stock-assembly-order","delete-stock-disassembly"]},{"name":"GL","description":"Chart of accounts, GL account maintenance, journal entries, journal PDF, and account balances.","commands":["read-chart-accounts","read-gl-account-balance","get-gl-account","create-fixed-asset-gl-accounts","create-gl-account","update-gl-account","void-gl-account","delete-gl-account","list-journal-entries","get-journal-entry","validate-journal-entry","create-journal-entry","update-journal-entry","void-journal-entry","delete-journal-entry"]},{"name":"GL Cash Book","description":"Cash book document grid, payment voucher, official receipt, bank/cash accounts, and voucher PDF.","commands":["list-gl-bank-cash-accounts","list-gl-cash-book-documents","list-gl-cash-book-entries","get-gl-cash-book-entry","validate-gl-cash-book-payment","validate-gl-cash-book-receipt","create-gl-cash-book-payment","create-gl-cash-book-receipt","update-gl-cash-book-entry","void-gl-cash-book-entry","delete-gl-cash-book-entry","read-gl-cash-flow-accounts","list-gl-cheques","read-payment-methods"]},{"name":"Bank Reconciliation","description":"Bank reconciliation list, detail, uncleared rows, create, edit, and delete.","commands":["list-gl-bank-reconciliation-uncleared","list-gl-bank-reconciliations","get-gl-bank-reconciliation","validate-gl-bank-reconciliation","create-gl-bank-reconciliation","update-gl-bank-reconciliation","void-gl-bank-reconciliation","delete-gl-bank-reconciliation"]},{"name":"Reports","description":"AutoCount report templates, statement data, statement HTML, sales/purchase/stock/AR/AP/GL PDFs.","commands":["list-autocount-report-templates","sales-document-autocount-pdf","sales-invoice-autocount-pdf","sales-report-html","purchase-document-autocount-pdf","stock-document-autocount-pdf","arap-statement-autocount-pdf","creditor-statement-report","debtor-statement-report","statement-report-html","arap-document-autocount-pdf","gl-document-autocount-pdf"]},{"name":"Master Data","description":"Debtor, creditor, item, item package, item BOM, and safe General Maintenance setup tables.","commands":["create-debtor","update-debtor","void-debtor","delete-debtor","create-creditor","update-creditor","void-creditor","delete-creditor","create-item","update-item","void-item","delete-item","read-default-accounts"]},{"name":"e-Invoice","description":"e-Invoice settings, status, consolidated/self-billed flow, supplier item mapping, import, and sync.","commands":["einvoice.setting.get","einvoice.status.list","einvoice.status.refresh","einvoice.consolidated.create-draft","einvoice.consolidated.list","einvoice.self-billed.create-draft","einvoice.self-billed.list","einvoice.supplier-item-mapping.create","einvoice.supplier-item-mapping.list","einvoice.supplier-item-mapping.update","einvoice.cancel","einvoice.reject-request.sync","einvoice.submit","einvoice.supplier-import.apply","einvoice.supplier-import.preview"]},{"name":"Bulk / Tools","description":"Bulk creation and tooling recipes for larger imports or automation batches.","commands":["bulk-create","bulk-create-advanced-quotations","bulk-create-ap-credit-notes","bulk-create-ap-debit-notes","bulk-create-ap-invoices","bulk-create-ap-payments","bulk-create-ap-refunds","bulk-create-ar-credit-notes","bulk-create-ar-debit-notes","bulk-create-ar-invoices","bulk-create-ar-payments","bulk-create-ar-refunds","bulk-create-arap-contras","bulk-create-cash-purchases","bulk-create-cash-sales","bulk-create-creditors","bulk-create-debtors","bulk-create-delivery-orders","bulk-create-fixed-asset-gl-accounts","bulk-create-general-addresses","bulk-create-general-areas","bulk-create-general-cn-types","bulk-create-general-creditor-types","bulk-create-general-currencies","bulk-create-general-debtor-types","bulk-create-general-dn-types","bulk-create-general-payment-methods","bulk-create-general-price-categories","bulk-create-general-projects","bulk-create-general-purchase-agents","bulk-create-general-sales-agents","bulk-create-general-shipping-methods","bulk-create-gl-accounts","bulk-create-gl-cash-book-payments","bulk-create-gl-cash-book-receipts","bulk-create-goods-received-notes","bulk-create-item-boms","bulk-create-item-packages","bulk-create-items","bulk-create-journal-entries","bulk-create-purchase-invoices","bulk-create-purchase-orders","bulk-create-purchase-returns","bulk-create-quotations","bulk-create-sales-credit-notes","bulk-create-sales-debit-notes","bulk-create-sales-invoices","bulk-create-sales-orders","bulk-create-stock-adjustments","bulk-create-stock-assemblies","bulk-create-stock-assembly-orders","bulk-create-stock-disassemblies","bulk-create-stock-issues","bulk-create-stock-receives","bulk-create-stock-takes","bulk-create-stock-transfers","bulk-create-stock-uom-conversions","bulk-create-stock-update-costs","bulk-create-stock-write-offs"]},{"name":"Tax","description":"Tax code, tax entity, tariff, withholding tax, GST/SST reads, and taxEntityID usage for e-Invoice fields.","commands":["list-gst-processors","list-sst-processors","list-tariff-codes","list-tax-codes","list-tax-entities","list-tax-types","list-withholding-tax-codes","read-gst-settings","read-sst-settings","get-gst-processor","get-sst-processor","get-tariff-code","get-tax-code","get-tax-entity","get-tax-type","get-withholding-tax-code","create-gst-payment","create-gst-processor","create-sst-payment","create-sst-processor","create-tariff-code","create-tax-code","create-tax-entity","create-tax-type","create-withholding-tax-code","update-gst-processor","update-gst-settings","update-sst-processor","update-sst-settings","update-tariff-code","update-tax-code","update-tax-entity","update-tax-type","update-withholding-tax-code"]}],"recipes":[{"module":"Sales","displayGroup":"Sales","title":"List advanced quotations.","commandType":"list-advanced-quotations","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/advanced-quotation/list","summary":"List advanced quotations.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-advanced-quotations-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-advanced-quotations","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-advanced-quotations.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.000.000.000.list-advanced-quotations"},{"module":"Sales","displayGroup":"Sales","title":"Read advanced quotation detail lines only.","commandType":"read-advanced-quotation-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/advanced-quotation/list","summary":"Read advanced quotation detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-advanced-quotation-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-advanced-quotation-lines","payload":{"itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-advanced-quotation-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.000.001.000.read-advanced-quotation-lines"},{"module":"Sales","displayGroup":"Sales","title":"Get one advanced quotation by document number.","commandType":"get-advanced-quotation","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/advanced-quotation/get","summary":"Get one advanced quotation by document number.","notes":"","payloadSchema":{"docNo":"required advanced quotation document number"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-advanced-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-advanced-quotation","payload":{"docNo":"AQ-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-advanced-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.000.002.000.get-advanced-quotation"},{"module":"Sales","displayGroup":"Sales","title":"Validate a advanced quotation without saving.","commandType":"validate-advanced-quotation","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/advanced-quotation/validate","summary":"Validate a advanced quotation without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-advanced-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-advanced-quotation","payload":{"debtorCode":"300-A001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-advanced-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.000.004.001.validate-advanced-quotation"},{"module":"Sales","displayGroup":"Sales","title":"Create an advanced quotation.","commandType":"create-advanced-quotation","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/advanced-quotation/create","summary":"Create an advanced quotation.","notes":"Creates advanced quotation through AutoCount SDK. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-advanced-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-advanced-quotation","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-advanced-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.000.005.002.create-advanced-quotation"},{"module":"Sales","displayGroup":"Sales","title":"Update advanced quotation header/contact fields and supported detail rows.","commandType":"update-advanced-quotation","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/advanced-quotation/edit","summary":"Update advanced quotation header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for sales detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","debtorCode":"required AutoCount debtor/customer code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional Sales Agent Maintenance code","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-advanced-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-advanced-quotation","payload":{"docNo":"AD-000001","reason":"correct document detail","debtorCode":"300-A001","contact":"Purchasing Department","attention":"Purchasing Department","phone":"03-11111111","ref":"WEB-ORDER-1001","yourPONo":"PO-UPDATED-001","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-advanced-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.000.006.003.update-advanced-quotation"},{"module":"Sales","displayGroup":"Sales","title":"Cancel a advanced quotation when AutoCount allows it.","commandType":"cancel-advanced-quotation","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/advanced-quotation/cancel","summary":"Cancel a advanced quotation when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-advanced-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-advanced-quotation","payload":{"docNo":"AQ-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-advanced-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.000.007.004.cancel-advanced-quotation"},{"module":"Sales","displayGroup":"Sales","title":"Void a advanced quotation while keeping audit trail.","commandType":"void-advanced-quotation","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/advanced-quotation/void","summary":"Void a advanced quotation while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-advanced-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-advanced-quotation","payload":{"docNo":"AQ-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-advanced-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.000.007.004.void-advanced-quotation"},{"module":"Sales","displayGroup":"Sales","title":"Delete/void request for a advanced quotation.","commandType":"delete-advanced-quotation","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/advanced-quotation/delete","summary":"Delete/void request for a advanced quotation.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-advanced-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-advanced-quotation","payload":{"docNo":"AQ-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-advanced-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.000.008.005.delete-advanced-quotation"},{"module":"Sales","displayGroup":"Sales","title":"List quotations.","commandType":"list-quotations","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/quotation/list","summary":"List quotations.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-quotations-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-quotations","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-quotations.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.001.000.000.list-quotations"},{"module":"Sales","displayGroup":"Sales","title":"Read quotation detail lines only.","commandType":"read-quotation-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/quotation/list","summary":"Read quotation detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-quotation-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-quotation-lines","payload":{"itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-quotation-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.001.001.000.read-quotation-lines"},{"module":"Sales","displayGroup":"Sales","title":"Get one quotation by document number.","commandType":"get-quotation","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/quotation/get","summary":"Get one quotation by document number.","notes":"","payloadSchema":{"docNo":"required quotation document number"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-quotation","payload":{"docNo":"QT-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.001.002.000.get-quotation"},{"module":"Sales","displayGroup":"Sales","title":"Validate a quotation without saving.","commandType":"validate-quotation","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/quotation/validate","summary":"Validate a quotation without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-quotation","payload":{"debtorCode":"300-A001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.001.004.001.validate-quotation"},{"module":"Sales","displayGroup":"Sales","title":"Create a quotation.","commandType":"create-quotation","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/quotation/create","summary":"Create a quotation.","notes":"Creates quotation through AutoCount SDK. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-quotation","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.001.005.002.create-quotation"},{"module":"Sales","displayGroup":"Sales","title":"Update quotation header/contact fields and supported detail rows.","commandType":"update-quotation","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/quotation/edit","summary":"Update quotation header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for sales detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","debtorCode":"required AutoCount debtor/customer code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional Sales Agent Maintenance code","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-quotation","payload":{"docNo":"QU-000001","reason":"correct document detail","debtorCode":"300-A001","contact":"Purchasing Department","attention":"Purchasing Department","phone":"03-11111111","ref":"WEB-ORDER-1001","yourPONo":"PO-UPDATED-001","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.001.006.003.update-quotation"},{"module":"Sales","displayGroup":"Sales","title":"Cancel a quotation when AutoCount allows it.","commandType":"cancel-quotation","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/quotation/cancel","summary":"Cancel a quotation when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-quotation","payload":{"docNo":"QT-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.001.007.004.cancel-quotation"},{"module":"Sales","displayGroup":"Sales","title":"Void a quotation while keeping audit trail.","commandType":"void-quotation","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/quotation/void","summary":"Void a quotation while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-quotation","payload":{"docNo":"QT-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.001.007.004.void-quotation"},{"module":"Sales","displayGroup":"Sales","title":"Delete/void request for a quotation.","commandType":"delete-quotation","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/quotation/delete","summary":"Delete/void request for a quotation.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-quotation","payload":{"docNo":"QT-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-quotation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.001.008.005.delete-quotation"},{"module":"Sales","displayGroup":"Sales","title":"List sales orders.","commandType":"list-sales-orders","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/list","summary":"List sales orders.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-sales-orders-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-sales-orders","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-sales-orders.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.002.000.000.list-sales-orders"},{"module":"Sales","displayGroup":"Sales","title":"Read sales order detail lines only.","commandType":"read-sales-order-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/list","summary":"Read sales order detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-sales-order-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-sales-order-lines","payload":{"debtorCode":"300-A001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-sales-order-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.002.001.000.read-sales-order-lines"},{"module":"Sales","displayGroup":"Sales","title":"Get one sales order by document number.","commandType":"get-sales-order","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/get","summary":"Get one sales order by document number.","notes":"","payloadSchema":{"docNo":"required sales order document number"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-sales-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-sales-order","payload":{"docNo":"SO-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-sales-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.002.002.000.get-sales-order"},{"module":"Sales","displayGroup":"Sales","title":"Validate a sales order without saving.","commandType":"validate-sales-order","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/validate","summary":"Validate a sales order without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-sales-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-sales-order","payload":{"debtorCode":"300-A001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-sales-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.002.004.001.validate-sales-order"},{"module":"Sales","displayGroup":"Sales","title":"Create a sales order.","commandType":"create-sales-order","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/create","summary":"Create a sales order.","notes":"Creates sales order through AutoCount SDK. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-sales-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-sales-order","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-sales-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.002.005.002.create-sales-order"},{"module":"Sales","displayGroup":"Sales","title":"Update sales order header/contact fields and supported detail rows.","commandType":"update-sales-order","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/edit","summary":"Update sales order header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for sales detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","debtorCode":"required AutoCount debtor/customer code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional Sales Agent Maintenance code","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-sales-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-sales-order","payload":{"docNo":"SA-000001","reason":"correct document detail","debtorCode":"300-A001","contact":"Purchasing Department","attention":"Purchasing Department","phone":"03-11111111","ref":"WEB-ORDER-1001","yourPONo":"PO-UPDATED-001","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-sales-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.002.006.003.update-sales-order"},{"module":"Sales","displayGroup":"Sales","title":"Cancel a sales order when AutoCount allows it.","commandType":"cancel-sales-order","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/cancel","summary":"Cancel a sales order when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-sales-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-sales-order","payload":{"docNo":"SO-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-sales-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.002.007.004.cancel-sales-order"},{"module":"Sales","displayGroup":"Sales","title":"Void a sales order while keeping audit trail.","commandType":"void-sales-order","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/void","summary":"Void a sales order while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-sales-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-sales-order","payload":{"docNo":"SO-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-sales-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.002.007.004.void-sales-order"},{"module":"Sales","displayGroup":"Sales","title":"Delete/void request for a sales order.","commandType":"delete-sales-order","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/delete","summary":"Delete/void request for a sales order.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-sales-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-sales-order","payload":{"docNo":"SO-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-sales-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.002.008.005.delete-sales-order"},{"module":"Sales","displayGroup":"Sales","title":"List delivery orders.","commandType":"list-delivery-orders","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/delivery-order/list","summary":"List delivery orders.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-delivery-orders-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-delivery-orders","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-delivery-orders.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.003.000.000.list-delivery-orders"},{"module":"Sales","displayGroup":"Sales","title":"Read delivery order detail lines only.","commandType":"read-delivery-order-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/delivery-order/list","summary":"Read delivery order detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-delivery-order-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-delivery-order-lines","payload":{"docNo":"DO-000001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-delivery-order-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.003.001.000.read-delivery-order-lines"},{"module":"Sales","displayGroup":"Sales","title":"Get one delivery order by document number.","commandType":"get-delivery-order","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/delivery-order/get","summary":"Get one delivery order by document number.","notes":"","payloadSchema":{"docNo":"required delivery order document number"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-delivery-order","payload":{"docNo":"DO-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-delivery-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.003.002.000.get-delivery-order"},{"module":"Sales","displayGroup":"Sales","title":"Validate a delivery order without saving.","commandType":"validate-delivery-order","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/delivery-order/validate","summary":"Validate a delivery order without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-delivery-order","payload":{"debtorCode":"300-A001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-delivery-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.003.004.001.validate-delivery-order"},{"module":"Sales","displayGroup":"Sales","title":"Create a delivery order.","commandType":"create-delivery-order","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/delivery-order/create","summary":"Create a delivery order.","notes":"Creates delivery order through AutoCount SDK. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-delivery-order","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-delivery-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.003.005.002.create-delivery-order"},{"module":"Sales","displayGroup":"Sales","title":"Update delivery order header/contact fields and supported detail rows.","commandType":"update-delivery-order","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/delivery-order/edit","summary":"Update delivery order header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for sales detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","debtorCode":"required AutoCount debtor/customer code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional Sales Agent Maintenance code","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-delivery-order","payload":{"docNo":"DE-000001","reason":"correct document detail","debtorCode":"300-A001","contact":"Purchasing Department","attention":"Purchasing Department","phone":"03-11111111","ref":"WEB-ORDER-1001","yourPONo":"PO-UPDATED-001","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-delivery-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.003.006.003.update-delivery-order"},{"module":"Sales","displayGroup":"Sales","title":"Cancel a delivery order when AutoCount allows it.","commandType":"cancel-delivery-order","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/delivery-order/cancel","summary":"Cancel a delivery order when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-delivery-order","payload":{"docNo":"DO-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-delivery-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.003.007.004.cancel-delivery-order"},{"module":"Sales","displayGroup":"Sales","title":"Void a delivery order while keeping audit trail.","commandType":"void-delivery-order","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/delivery-order/void","summary":"Void a delivery order while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-delivery-order","payload":{"docNo":"DO-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-delivery-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.003.007.004.void-delivery-order"},{"module":"Sales","displayGroup":"Sales","title":"Delete/void request for a delivery order.","commandType":"delete-delivery-order","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/delivery-order/delete","summary":"Delete/void request for a delivery order.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-delivery-order","payload":{"docNo":"DO-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-delivery-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.003.008.005.delete-delivery-order"},{"module":"Sales","displayGroup":"Sales","title":"List sales invoices. For latest rows, send limit/top/take; connector returns newest DocDate then DocNo first.","commandType":"list-sales-invoices","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/list","summary":"List sales invoices. For latest rows, send limit/top/take; connector returns newest DocDate then DocNo first.","notes":"Uses a bounded read-only header query for known AutoCount sales invoice tables so large account books do not hang while loading all invoices.","payloadSchema":{"limit":"optional maximum rows, default 100, max 500","top":"optional alias for limit","take":"optional alias for limit","orderBy":"optional; latest-first ordering is DocDate desc, DocNo desc"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-sales-invoices-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-sales-invoices","payload":{"limit":10,"top":10,"take":10,"orderBy":"docDate desc"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-sales-invoices.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.004.000.000.list-sales-invoices"},{"module":"Sales","displayGroup":"Sales","title":"Read sales invoice detail lines only.","commandType":"read-sales-invoice-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/list","summary":"Read sales invoice detail lines only.","notes":"Returns header keys plus raw AutoCount invoice detail columns such as ItemCode, AccNo, Qty, UOM, UnitPrice, TaxCode, ProjNo, DeptNo, and Detail_* fields.","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-sales-invoice-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-sales-invoice-lines","payload":{"itemCode":"ITEM001","dateFrom":"2026-01-01","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-sales-invoice-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.004.001.000.read-sales-invoice-lines"},{"module":"Sales","displayGroup":"Sales","title":"Get one sales invoice by document number.","commandType":"get-sales-invoice","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/get","summary":"Get one sales invoice by document number.","notes":"","payloadSchema":{"docNo":"required sales invoice document number"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-sales-invoice","payload":{"docNo":"IV-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-sales-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.004.002.000.get-sales-invoice"},{"module":"Sales","displayGroup":"Sales","title":"Validate a sales invoice without saving.","commandType":"validate-sales-invoice","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/validate","summary":"Validate a sales invoice without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-sales-invoice","payload":{"debtorCode":"300-A001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-sales-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.004.004.001.validate-sales-invoice"},{"module":"Sales","displayGroup":"Sales","title":"Create a sales invoice.","commandType":"create-sales-invoice","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/create","summary":"Create a sales invoice.","notes":"Requires write access permission. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-sales-invoice","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-sales-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.004.005.002.create-sales-invoice"},{"module":"Sales","displayGroup":"Sales","title":"Update sales invoice header/contact fields and supported detail rows.","commandType":"update-sales-invoice","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/edit","summary":"Update sales invoice header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for sales detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","debtorCode":"required AutoCount debtor/customer code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional Sales Agent Maintenance code","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-sales-invoice","payload":{"docNo":"SA-000001","reason":"correct document detail","debtorCode":"300-A001","contact":"Purchasing Department","attention":"Purchasing Department","phone":"03-11111111","ref":"WEB-ORDER-1001","yourPONo":"PO-UPDATED-001","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-sales-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.004.006.003.update-sales-invoice"},{"module":"Sales","displayGroup":"Sales","title":"Cancel a sales invoice when AutoCount allows it.","commandType":"cancel-sales-invoice","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/cancel","summary":"Cancel a sales invoice when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-sales-invoice","payload":{"docNo":"IV-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-sales-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.004.007.004.cancel-sales-invoice"},{"module":"Sales","displayGroup":"Sales","title":"Void a sales invoice while keeping audit trail.","commandType":"void-sales-invoice","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/void","summary":"Void a sales invoice while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-sales-invoice","payload":{"docNo":"IV-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-sales-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.004.007.004.void-sales-invoice"},{"module":"Sales","displayGroup":"Sales","title":"Delete/void request for a sales invoice.","commandType":"delete-sales-invoice","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/delete","summary":"Delete/void request for a sales invoice.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-sales-invoice","payload":{"docNo":"IV-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-sales-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.004.008.005.delete-sales-invoice"},{"module":"Sales","displayGroup":"Sales","title":"List cash sales.","commandType":"list-cash-sales","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/cash-sale/list","summary":"List cash sales.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-cash-sales-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-cash-sales","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-cash-sales.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.005.000.000.list-cash-sales"},{"module":"Sales","displayGroup":"Sales","title":"Read cash sale detail lines only.","commandType":"read-cash-sale-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/cash-sale/list","summary":"Read cash sale detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-cash-sale-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-cash-sale-lines","payload":{"itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-cash-sale-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.005.001.000.read-cash-sale-lines"},{"module":"Sales","displayGroup":"Sales","title":"Get one cash sale by document number.","commandType":"get-cash-sale","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/cash-sale/get","summary":"Get one cash sale by document number.","notes":"","payloadSchema":{"docNo":"required cash sale document number"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-cash-sale-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-cash-sale","payload":{"docNo":"CS-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-cash-sale.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.005.002.000.get-cash-sale"},{"module":"Sales","displayGroup":"Sales","title":"Validate a cash sale without saving.","commandType":"validate-cash-sale","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/cash-sale/validate","summary":"Validate a cash sale without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-cash-sale-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-cash-sale","payload":{"debtorCode":"300-A001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-cash-sale.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.005.004.001.validate-cash-sale"},{"module":"Sales","displayGroup":"Sales","title":"Create a cash sale.","commandType":"create-cash-sale","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/cash-sale/create","summary":"Create a cash sale.","notes":"Create Cash Sale with payment. Creates cash sale through AutoCount SDK and returns paymentLines where AutoCount exposes the payment table. Use read-payment-methods first; payments[].paymentMethod must match an active AutoCount Payment Method code, and paymentAmount totals should equal the document total. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-cash-sale-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-cash-sale","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-cash-sale.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.005.005.002.create-cash-sale"},{"module":"Sales","displayGroup":"Sales","title":"Update cash sale header/contact fields and supported detail rows.","commandType":"update-cash-sale","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/cash-sale/edit","summary":"Update cash sale header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for sales detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","debtorCode":"required AutoCount debtor/customer code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional Sales Agent Maintenance code","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-cash-sale-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-cash-sale","payload":{"docNo":"CA-000001","reason":"correct document detail","debtorCode":"300-A001","contact":"Purchasing Department","attention":"Purchasing Department","phone":"03-11111111","ref":"WEB-ORDER-1001","yourPONo":"PO-UPDATED-001","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-cash-sale.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.005.006.003.update-cash-sale"},{"module":"Sales","displayGroup":"Sales","title":"Cancel a cash sale when AutoCount allows it.","commandType":"cancel-cash-sale","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/cash-sale/cancel","summary":"Cancel a cash sale when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-cash-sale-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-cash-sale","payload":{"docNo":"CS-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-cash-sale.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.005.007.004.cancel-cash-sale"},{"module":"Sales","displayGroup":"Sales","title":"Void a cash sale while keeping audit trail.","commandType":"void-cash-sale","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/cash-sale/void","summary":"Void a cash sale while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-cash-sale-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-cash-sale","payload":{"docNo":"CS-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-cash-sale.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.005.007.004.void-cash-sale"},{"module":"Sales","displayGroup":"Sales","title":"Delete/void request for a cash sale.","commandType":"delete-cash-sale","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/cash-sale/delete","summary":"Delete/void request for a cash sale.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-cash-sale-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-cash-sale","payload":{"docNo":"CS-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-cash-sale.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.005.008.005.delete-cash-sale"},{"module":"Sales","displayGroup":"Sales","title":"List sales credit notes.","commandType":"list-sales-credit-notes","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-credit-note/list","summary":"List sales credit notes.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-sales-credit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-sales-credit-notes","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-sales-credit-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.006.000.000.list-sales-credit-notes"},{"module":"Sales","displayGroup":"Sales","title":"Read sales credit note detail lines only.","commandType":"read-sales-credit-note-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-credit-note/list","summary":"Read sales credit note detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-sales-credit-note-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-sales-credit-note-lines","payload":{"docNo":"CN-000001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-sales-credit-note-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.006.001.000.read-sales-credit-note-lines"},{"module":"Sales","displayGroup":"Sales","title":"Get one sales credit note by document number.","commandType":"get-sales-credit-note","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-credit-note/get","summary":"Get one sales credit note by document number.","notes":"","payloadSchema":{"docNo":"required sales credit note document number"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-sales-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-sales-credit-note","payload":{"docNo":"CN-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-sales-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.006.002.000.get-sales-credit-note"},{"module":"Sales","displayGroup":"Sales","title":"Validate a sales credit note without saving.","commandType":"validate-sales-credit-note","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-credit-note/validate","summary":"Validate a sales credit note without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-sales-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-sales-credit-note","payload":{"debtorCode":"300-A001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-sales-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.006.004.001.validate-sales-credit-note"},{"module":"Sales","displayGroup":"Sales","title":"Create a sales credit note.","commandType":"create-sales-credit-note","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-credit-note/create","summary":"Create a sales credit note.","notes":"Creates sales credit note through AutoCount Sales CreditNote SDK when available. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-sales-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-sales-credit-note","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-sales-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.006.005.002.create-sales-credit-note"},{"module":"Sales","displayGroup":"Sales","title":"Update sales credit note header/contact fields and supported detail rows.","commandType":"update-sales-credit-note","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-credit-note/edit","summary":"Update sales credit note header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for sales detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","debtorCode":"required AutoCount debtor/customer code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional Sales Agent Maintenance code","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-sales-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-sales-credit-note","payload":{"docNo":"SA-000001","reason":"correct document detail","debtorCode":"300-A001","contact":"Purchasing Department","attention":"Purchasing Department","phone":"03-11111111","ref":"WEB-ORDER-1001","yourPONo":"PO-UPDATED-001","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-sales-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.006.006.003.update-sales-credit-note"},{"module":"Sales","displayGroup":"Sales","title":"Cancel a sales credit note when AutoCount allows it.","commandType":"cancel-sales-credit-note","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-credit-note/cancel","summary":"Cancel a sales credit note when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-sales-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-sales-credit-note","payload":{"docNo":"CN-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-sales-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.006.007.004.cancel-sales-credit-note"},{"module":"Sales","displayGroup":"Sales","title":"Void a sales credit note while keeping audit trail.","commandType":"void-sales-credit-note","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-credit-note/void","summary":"Void a sales credit note while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-sales-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-sales-credit-note","payload":{"docNo":"CN-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-sales-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.006.007.004.void-sales-credit-note"},{"module":"Sales","displayGroup":"Sales","title":"Delete/void request for a sales credit note.","commandType":"delete-sales-credit-note","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-credit-note/delete","summary":"Delete/void request for a sales credit note.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-sales-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-sales-credit-note","payload":{"docNo":"CN-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-sales-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.006.008.005.delete-sales-credit-note"},{"module":"Sales","displayGroup":"Sales","title":"List sales debit notes.","commandType":"list-sales-debit-notes","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-debit-note/list","summary":"List sales debit notes.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-sales-debit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-sales-debit-notes","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-sales-debit-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.007.000.000.list-sales-debit-notes"},{"module":"Sales","displayGroup":"Sales","title":"Read sales debit note detail lines only.","commandType":"read-sales-debit-note-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-debit-note/list","summary":"Read sales debit note detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-sales-debit-note-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-sales-debit-note-lines","payload":{"docNo":"DN-000001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-sales-debit-note-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.007.001.000.read-sales-debit-note-lines"},{"module":"Sales","displayGroup":"Sales","title":"Get one sales debit note by document number.","commandType":"get-sales-debit-note","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-debit-note/get","summary":"Get one sales debit note by document number.","notes":"","payloadSchema":{"docNo":"required sales debit note document number"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-sales-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-sales-debit-note","payload":{"docNo":"DN-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-sales-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.007.002.000.get-sales-debit-note"},{"module":"Sales","displayGroup":"Sales","title":"Validate a sales debit note without saving.","commandType":"validate-sales-debit-note","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-debit-note/validate","summary":"Validate a sales debit note without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-sales-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-sales-debit-note","payload":{"debtorCode":"300-A001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-sales-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.007.004.001.validate-sales-debit-note"},{"module":"Sales","displayGroup":"Sales","title":"Create a sales debit note.","commandType":"create-sales-debit-note","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-debit-note/create","summary":"Create a sales debit note.","notes":"Creates sales debit note through AutoCount Sales DebitNote SDK when available. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","salesAgent":"optional Sales Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","description":"optional document description/narration","ref":"optional reference","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-sales-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-sales-debit-note","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-sales-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.007.005.002.create-sales-debit-note"},{"module":"Sales","displayGroup":"Sales","title":"Update sales debit note header/contact fields and supported detail rows.","commandType":"update-sales-debit-note","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-debit-note/edit","summary":"Update sales debit note header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for sales detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","debtorCode":"required AutoCount debtor/customer code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","deliverContact":"optional delivery contact person","deliverPhone1":"optional delivery phone number","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional Sales Agent Maintenance code","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","debtorName":"optional customer display name; AutoCount debtor name is used when omitted","branchCode":"optional debtor branch code/name where the customer uses branches","salesLocation":"optional sales location such as HQ","multiPricing":"optional price category/multi-pricing value such as Price 1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","ourRef":"optional our reference","yourRef":"optional customer reference","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","payments":"optional array for cash sale style documents; send multiple payment rows for AutoCount Multi Payment","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-sales-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-sales-debit-note","payload":{"docNo":"SA-000001","reason":"correct document detail","debtorCode":"300-A001","contact":"Purchasing Department","attention":"Purchasing Department","phone":"03-11111111","ref":"WEB-ORDER-1001","yourPONo":"PO-UPDATED-001","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-sales-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.007.006.003.update-sales-debit-note"},{"module":"Sales","displayGroup":"Sales","title":"Cancel a sales debit note when AutoCount allows it.","commandType":"cancel-sales-debit-note","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-debit-note/cancel","summary":"Cancel a sales debit note when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-sales-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-sales-debit-note","payload":{"docNo":"DN-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-sales-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.007.007.004.cancel-sales-debit-note"},{"module":"Sales","displayGroup":"Sales","title":"Void a sales debit note while keeping audit trail.","commandType":"void-sales-debit-note","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-debit-note/void","summary":"Void a sales debit note while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-sales-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-sales-debit-note","payload":{"docNo":"DN-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-sales-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.007.007.004.void-sales-debit-note"},{"module":"Sales","displayGroup":"Sales","title":"Delete/void request for a sales debit note.","commandType":"delete-sales-debit-note","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-debit-note/delete","summary":"Delete/void request for a sales debit note.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-sales-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-sales-debit-note","payload":{"docNo":"DN-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-sales-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.007.008.005.delete-sales-debit-note"},{"module":"Sales","displayGroup":"Sales","title":"Transfer delivery order to sales invoice.","commandType":"transfer-delivery-order-to-sales-invoice","mode":"write","operation":"Transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/transfer","summary":"Transfer delivery order to sales invoice.","notes":"Uses AutoCount transfer logic. AutoCount transfer rules decide which source lines and quantities are allowed. Omit lines to transfer the normal outstanding balance where supported.","payloadSchema":{"sourceDocNo":"required source delivery order document number","targetDocNo":"optional target sales invoice document number; omit to let AutoCount numbering generate it","docDate":"optional YYYY-MM-DD target document date","creditorCode":"optional supplier code where transfer creates a purchase document","debtorCode":"optional customer code where transfer creates a sales document","transferQtyMode":"optional transfer quantity mode such as all or outstanding","lines":"optional selected source line rows with itemCode, sourceLineNo, qty, uom","description":"optional target document narration","ref":"optional target reference"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"transfer-delivery-order-to-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"transfer-delivery-order-to-sales-invoice","payload":{"sourceDocNo":"DO-000001","targetDocNo":"","docDate":"2026-06-24","creditorCode":"400-S001","transferQtyMode":"outstanding","description":"Transfer delivery order to sales invoice","ref":"API-TRANSFER-1001","lines":[{"sourceLineNo":1,"itemCode":"ITEM001","qty":1,"uom":"UNIT"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to transfer-delivery-order-to-sales-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.008.009.006.transfer-delivery-order-to-sales-invoice"},{"module":"Sales","displayGroup":"Sales","title":"Transfer quotation directly to delivery order.","commandType":"transfer-quotation-to-delivery-order","mode":"write","operation":"Transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/delivery-order/transfer","summary":"Transfer quotation directly to delivery order.","notes":"Uses AutoCount transfer logic where the account book allows direct quotation-to-delivery-order transfer. AutoCount transfer rules decide which source lines and quantities are allowed. Omit lines to transfer the normal outstanding balance where supported.","payloadSchema":{"sourceDocNo":"required source quotation document number","targetDocNo":"optional target delivery order document number; omit to let AutoCount numbering generate it","docDate":"optional YYYY-MM-DD target document date","creditorCode":"optional supplier code where transfer creates a purchase document","debtorCode":"optional customer code where transfer creates a sales document","transferQtyMode":"optional transfer quantity mode such as all or outstanding","lines":"optional selected source line rows with itemCode, sourceLineNo, qty, uom","description":"optional target document narration","ref":"optional target reference"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"transfer-quotation-to-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"transfer-quotation-to-delivery-order","payload":{"sourceDocNo":"QT-000001","targetDocNo":"","docDate":"2026-06-24","creditorCode":"400-S001","transferQtyMode":"outstanding","description":"Transfer quotation to delivery order","ref":"API-TRANSFER-1001","lines":[{"sourceLineNo":1,"itemCode":"ITEM001","qty":1,"uom":"UNIT"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to transfer-quotation-to-delivery-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.008.009.006.transfer-quotation-to-delivery-order"},{"module":"Sales","displayGroup":"Sales","title":"Transfer quotation directly to sales invoice.","commandType":"transfer-quotation-to-sales-invoice","mode":"write","operation":"Transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/transfer","summary":"Transfer quotation directly to sales invoice.","notes":"Uses AutoCount transfer logic where the account book allows direct quotation-to-sales-invoice transfer. AutoCount transfer rules decide which source lines and quantities are allowed. Omit lines to transfer the normal outstanding balance where supported.","payloadSchema":{"sourceDocNo":"required source quotation document number","targetDocNo":"optional target sales invoice document number; omit to let AutoCount numbering generate it","docDate":"optional YYYY-MM-DD target document date","creditorCode":"optional supplier code where transfer creates a purchase document","debtorCode":"optional customer code where transfer creates a sales document","transferQtyMode":"optional transfer quantity mode such as all or outstanding","lines":"optional selected source line rows with itemCode, sourceLineNo, qty, uom","description":"optional target document narration","ref":"optional target reference"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"transfer-quotation-to-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"transfer-quotation-to-sales-invoice","payload":{"sourceDocNo":"QT-000001","targetDocNo":"","docDate":"2026-06-24","creditorCode":"400-S001","transferQtyMode":"outstanding","description":"Transfer quotation to sales invoice","ref":"API-TRANSFER-1001","lines":[{"sourceLineNo":1,"itemCode":"ITEM001","qty":1,"uom":"UNIT"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to transfer-quotation-to-sales-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.008.009.006.transfer-quotation-to-sales-invoice"},{"module":"Sales","displayGroup":"Sales","title":"Transfer quotation to sales order.","commandType":"transfer-quotation-to-sales-order","mode":"write","operation":"Transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/transfer","summary":"Transfer quotation to sales order.","notes":"Uses AutoCount transfer logic. AutoCount transfer rules decide which source lines and quantities are allowed. Omit lines to transfer the normal outstanding balance where supported.","payloadSchema":{"sourceDocNo":"required source quotation document number","targetDocNo":"optional target sales order document number; omit to let AutoCount numbering generate it","docDate":"optional YYYY-MM-DD target document date","creditorCode":"optional supplier code where transfer creates a purchase document","debtorCode":"optional customer code where transfer creates a sales document","transferQtyMode":"optional transfer quantity mode such as all or outstanding","lines":"optional selected source line rows with itemCode, sourceLineNo, qty, uom","description":"optional target document narration","ref":"optional target reference"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"transfer-quotation-to-sales-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"transfer-quotation-to-sales-order","payload":{"sourceDocNo":"QT-000001","targetDocNo":"","docDate":"2026-06-24","creditorCode":"400-S001","transferQtyMode":"outstanding","description":"Transfer quotation to sales order","ref":"API-TRANSFER-1001","lines":[{"sourceLineNo":1,"itemCode":"ITEM001","qty":1,"uom":"UNIT"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to transfer-quotation-to-sales-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.008.009.006.transfer-quotation-to-sales-order"},{"module":"Sales","displayGroup":"Sales","title":"Transfer sales invoice to sales credit note.","commandType":"transfer-sales-invoice-to-sales-credit-note","mode":"write","operation":"Transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-credit-note/transfer","summary":"Transfer sales invoice to sales credit note.","notes":"Uses AutoCount transfer logic. AutoCount transfer rules decide which source lines and quantities are allowed. Omit lines to transfer the normal outstanding balance where supported.","payloadSchema":{"sourceDocNo":"required source sales invoice document number","targetDocNo":"optional target sales credit note document number; omit to let AutoCount numbering generate it","docDate":"optional YYYY-MM-DD target document date","creditorCode":"optional supplier code where transfer creates a purchase document","debtorCode":"optional customer code where transfer creates a sales document","transferQtyMode":"optional transfer quantity mode such as all or outstanding","lines":"optional selected source line rows with itemCode, sourceLineNo, qty, uom","description":"optional target document narration","ref":"optional target reference"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"transfer-sales-invoice-to-sales-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"transfer-sales-invoice-to-sales-credit-note","payload":{"sourceDocNo":"IV-000001","targetDocNo":"","docDate":"2026-06-24","creditorCode":"400-S001","transferQtyMode":"outstanding","description":"Transfer sales invoice to sales credit note","ref":"API-TRANSFER-1001","lines":[{"sourceLineNo":1,"itemCode":"ITEM001","qty":1,"uom":"UNIT"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to transfer-sales-invoice-to-sales-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.008.009.006.transfer-sales-invoice-to-sales-credit-note"},{"module":"Sales","displayGroup":"Sales","title":"Transfer sales order to delivery order.","commandType":"transfer-sales-order-to-delivery-order","mode":"write","operation":"Transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/transfer","summary":"Transfer sales order to delivery order.","notes":"Uses AutoCount transfer logic. AutoCount transfer rules decide which source lines and quantities are allowed. Omit lines to transfer the normal outstanding balance where supported.","payloadSchema":{"sourceDocNo":"required source sales order document number","targetDocNo":"optional target delivery order document number; omit to let AutoCount numbering generate it","docDate":"optional YYYY-MM-DD target document date","creditorCode":"optional supplier code where transfer creates a purchase document","debtorCode":"optional customer code where transfer creates a sales document","transferQtyMode":"optional transfer quantity mode such as all or outstanding","lines":"optional selected source line rows with itemCode, sourceLineNo, qty, uom","description":"optional target document narration","ref":"optional target reference"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"transfer-sales-order-to-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"transfer-sales-order-to-delivery-order","payload":{"sourceDocNo":"SO-000001","targetDocNo":"","docDate":"2026-06-24","creditorCode":"400-S001","transferQtyMode":"outstanding","description":"Transfer sales order to delivery order","ref":"API-TRANSFER-1001","lines":[{"sourceLineNo":1,"itemCode":"ITEM001","qty":1,"uom":"UNIT"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to transfer-sales-order-to-delivery-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.008.009.006.transfer-sales-order-to-delivery-order"},{"module":"Sales","displayGroup":"Sales","title":"Transfer sales order to purchase order.","commandType":"transfer-sales-order-to-purchase-order","mode":"write","operation":"Transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/transfer","summary":"Transfer sales order to purchase order.","notes":"Uses AutoCount transfer logic where supported by the account book. AutoCount transfer rules decide which source lines and quantities are allowed. Omit lines to transfer the normal outstanding balance where supported.","payloadSchema":{"sourceDocNo":"required source sales order document number","creditorCode":"optional supplier code where transfer creates a purchase document","targetDocNo":"optional target purchase order document number; omit to let AutoCount numbering generate it","docDate":"optional YYYY-MM-DD target document date","debtorCode":"optional customer code where transfer creates a sales document","transferQtyMode":"optional transfer quantity mode such as all or outstanding","lines":"optional selected source line rows with itemCode, sourceLineNo, qty, uom","description":"optional target document narration","ref":"optional target reference"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"transfer-sales-order-to-purchase-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"transfer-sales-order-to-purchase-order","payload":{"sourceDocNo":"SO-000001","targetDocNo":"","docDate":"2026-06-24","creditorCode":"400-S001","transferQtyMode":"outstanding","description":"Transfer sales order to purchase order","ref":"API-TRANSFER-1001","lines":[{"sourceLineNo":1,"itemCode":"ITEM001","qty":1,"uom":"UNIT"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to transfer-sales-order-to-purchase-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.008.009.006.transfer-sales-order-to-purchase-order"},{"module":"Sales","displayGroup":"Sales","title":"Transfer sales order directly to sales invoice.","commandType":"transfer-sales-order-to-sales-invoice","mode":"write","operation":"Transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/transfer","summary":"Transfer sales order directly to sales invoice.","notes":"Uses AutoCount transfer logic where the account book allows direct sales-order-to-invoice transfer. AutoCount transfer rules decide which source lines and quantities are allowed. Omit lines to transfer the normal outstanding balance where supported.","payloadSchema":{"sourceDocNo":"required source sales order document number","targetDocNo":"optional target sales invoice document number; omit to let AutoCount numbering generate it","docDate":"optional YYYY-MM-DD target document date","creditorCode":"optional supplier code where transfer creates a purchase document","debtorCode":"optional customer code where transfer creates a sales document","transferQtyMode":"optional transfer quantity mode such as all or outstanding","lines":"optional selected source line rows with itemCode, sourceLineNo, qty, uom","description":"optional target document narration","ref":"optional target reference"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"transfer-sales-order-to-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"transfer-sales-order-to-sales-invoice","payload":{"sourceDocNo":"SO-000001","targetDocNo":"","docDate":"2026-06-24","creditorCode":"400-S001","transferQtyMode":"outstanding","description":"Transfer sales order to sales invoice","ref":"API-TRANSFER-1001","lines":[{"sourceLineNo":1,"itemCode":"ITEM001","qty":1,"uom":"UNIT"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to transfer-sales-order-to-sales-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.008.009.006.transfer-sales-order-to-sales-invoice"},{"module":"Sales","displayGroup":"Sales","title":"Rank customers who bought an item by quantity and amount.","commandType":"read-item-sales-by-customer","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales/list","summary":"Rank customers who bought an item by quantity and amount.","notes":"Use this when asking who bought the most of one item. It reads sales invoice and cash sale detail lines, groups by debtor/customer, and returns TotalQty, TotalAmount, DocumentCount, FirstDocDate, and LastDocDate.","payloadSchema":{"itemCode":"required stock item code","fromDate":"YYYY-MM-DD optional; dateFrom also accepted","toDate":"YYYY-MM-DD optional; dateTo also accepted","limit":"optional maximum customer rows, default 100, max 500","includeInvoices":"optional boolean, default true","includeCashSales":"optional boolean, default true"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-item-sales-by-customer-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-item-sales-by-customer","payload":{"itemCode":"00002","fromDate":"2020-01-01","toDate":"2026-07-19","limit":10}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-item-sales-by-customer.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.999.001.000.read-item-sales-by-customer"},{"module":"Sales","displayGroup":"Sales","title":"Read all sales document lines together, or filter with document.","commandType":"read-sales-detail-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales/list","summary":"Read all sales document lines together, or filter with document.","notes":"Prefer the document-specific read-*-lines commands when the document family is known.","payloadSchema":{"document":"optional: sales-invoice | cash-sale | delivery-order | sales-order | quotation | advanced-quotation | sales-credit-note | sales-debit-note","itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional, default 100, max 500"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-sales-detail-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-sales-detail-lines","payload":{"document":"sales-invoice","itemCode":"ITEM001","dateFrom":"2026-01-01","dateTo":"2026-07-19","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-sales-detail-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"001.999.001.000.read-sales-detail-lines"},{"module":"Purchase","displayGroup":"Purchase","title":"List purchase orders.","commandType":"list-purchase-orders","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-order/list","summary":"List purchase orders.","notes":"","payloadSchema":{},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-purchase-orders-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-purchase-orders","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-purchase-orders.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.000.000.000.list-purchase-orders"},{"module":"Purchase","displayGroup":"Purchase","title":"Read purchase order detail lines only.","commandType":"read-purchase-order-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-order/list","summary":"Read purchase order detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","creditorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-purchase-order-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-purchase-order-lines","payload":{"creditorCode":"400-S001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-purchase-order-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.000.001.000.read-purchase-order-lines"},{"module":"Purchase","displayGroup":"Purchase","title":"Get one purchase order by document number.","commandType":"get-purchase-order","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-order/get","summary":"Get one purchase order by document number.","notes":"","payloadSchema":{"docNo":"required purchase order document number"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-purchase-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-purchase-order","payload":{"docNo":"PO-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-purchase-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.000.002.000.get-purchase-order"},{"module":"Purchase","displayGroup":"Purchase","title":"Validate a purchase order without saving.","commandType":"validate-purchase-order","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-order/validate","summary":"Validate a purchase order without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","items":"optional alias for lines","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","description":"optional document description/narration","ref":"optional reference","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-purchase-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-purchase-order","payload":{"creditorCode":"400-S001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-purchase-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.000.004.001.validate-purchase-order"},{"module":"Purchase","displayGroup":"Purchase","title":"Create a purchase order.","commandType":"create-purchase-order","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-order/create","summary":"Create a purchase order.","notes":"Creates purchase order through AutoCount SDK. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","items":"optional alias for lines","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","description":"optional document description/narration","ref":"optional reference","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-purchase-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-purchase-order","payload":{"creditorCode":"400-S001","docDate":"2026-06-24","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-purchase-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.000.005.002.create-purchase-order"},{"module":"Purchase","displayGroup":"Purchase","title":"Update purchase order header/contact fields and supported detail rows.","commandType":"update-purchase-order","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-order/edit","summary":"Update purchase order header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for purchase detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","creditorCode":"required AutoCount creditor/supplier code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","deliverContact":"optional delivery contact","deliverPhone1":"optional delivery phone","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional sales agent where AutoCount exposes it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-purchase-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-purchase-order","payload":{"docNo":"PU-000001","reason":"correct document detail","creditorCode":"400-S001","contact":"Supplier Sales Department","attention":"Supplier Sales Department","phone":"03-33333333","ref":"API-REF-UPDATED","yourPONo":"PO-UPDATED-001","deliverContact":"Warehouse","deliverPhone1":"03-22222222","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"supplierInvoiceNo":"SUP-INV-1001","supplierDONo":"SUP-DO-UPDATED-001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-purchase-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.000.006.003.update-purchase-order"},{"module":"Purchase","displayGroup":"Purchase","title":"Cancel a purchase order when AutoCount allows it.","commandType":"cancel-purchase-order","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-order/cancel","summary":"Cancel a purchase order when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-purchase-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-purchase-order","payload":{"docNo":"PO-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-purchase-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.000.007.004.cancel-purchase-order"},{"module":"Purchase","displayGroup":"Purchase","title":"Void a purchase order while keeping audit trail.","commandType":"void-purchase-order","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-order/void","summary":"Void a purchase order while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-purchase-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-purchase-order","payload":{"docNo":"PO-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-purchase-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.000.007.004.void-purchase-order"},{"module":"Purchase","displayGroup":"Purchase","title":"Delete/void request for a purchase order.","commandType":"delete-purchase-order","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-order/delete","summary":"Delete/void request for a purchase order.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-purchase-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-purchase-order","payload":{"docNo":"PO-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-purchase-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.000.008.005.delete-purchase-order"},{"module":"Purchase","displayGroup":"Purchase","title":"List goods received notes.","commandType":"list-goods-received-notes","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/goods-received-note/list","summary":"List goods received notes.","notes":"","payloadSchema":{},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-goods-received-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-goods-received-notes","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-goods-received-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.001.000.000.list-goods-received-notes"},{"module":"Purchase","displayGroup":"Purchase","title":"Read goods received note detail lines only.","commandType":"read-goods-received-note-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/goods-received-note/list","summary":"Read goods received note detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","creditorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-goods-received-note-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-goods-received-note-lines","payload":{"itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-goods-received-note-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.001.001.000.read-goods-received-note-lines"},{"module":"Purchase","displayGroup":"Purchase","title":"Get one goods received note by document number.","commandType":"get-goods-received-note","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/goods-received-note/get","summary":"Get one goods received note by document number.","notes":"","payloadSchema":{"docNo":"required goods received note document number"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-goods-received-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-goods-received-note","payload":{"docNo":"GRN-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-goods-received-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.001.002.000.get-goods-received-note"},{"module":"Purchase","displayGroup":"Purchase","title":"Validate a goods received note without saving.","commandType":"validate-goods-received-note","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/goods-received-note/validate","summary":"Validate a goods received note without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","items":"optional alias for lines","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","description":"optional document description/narration","ref":"optional reference","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-goods-received-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-goods-received-note","payload":{"creditorCode":"400-S001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-goods-received-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.001.004.001.validate-goods-received-note"},{"module":"Purchase","displayGroup":"Purchase","title":"Create a goods received note.","commandType":"create-goods-received-note","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/goods-received-note/create","summary":"Create a goods received note.","notes":"Creates goods received note through AutoCount SDK. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","items":"optional alias for lines","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","description":"optional document description/narration","ref":"optional reference","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-goods-received-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-goods-received-note","payload":{"creditorCode":"400-S001","docDate":"2026-06-24","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-goods-received-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.001.005.002.create-goods-received-note"},{"module":"Purchase","displayGroup":"Purchase","title":"Update goods received note header/contact fields and supported detail rows.","commandType":"update-goods-received-note","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/goods-received-note/edit","summary":"Update goods received note header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for purchase detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","creditorCode":"required AutoCount creditor/supplier code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","deliverContact":"optional delivery contact","deliverPhone1":"optional delivery phone","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional sales agent where AutoCount exposes it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-goods-received-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-goods-received-note","payload":{"docNo":"GO-000001","reason":"correct document detail","creditorCode":"400-S001","contact":"Supplier Sales Department","attention":"Supplier Sales Department","phone":"03-33333333","ref":"API-REF-UPDATED","yourPONo":"PO-UPDATED-001","deliverContact":"Warehouse","deliverPhone1":"03-22222222","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"supplierInvoiceNo":"SUP-INV-1001","supplierDONo":"SUP-DO-UPDATED-001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-goods-received-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.001.006.003.update-goods-received-note"},{"module":"Purchase","displayGroup":"Purchase","title":"Cancel a goods received note when AutoCount allows it.","commandType":"cancel-goods-received-note","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/goods-received-note/cancel","summary":"Cancel a goods received note when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-goods-received-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-goods-received-note","payload":{"docNo":"GRN-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-goods-received-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.001.007.004.cancel-goods-received-note"},{"module":"Purchase","displayGroup":"Purchase","title":"Void a goods received note while keeping audit trail.","commandType":"void-goods-received-note","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/goods-received-note/void","summary":"Void a goods received note while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-goods-received-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-goods-received-note","payload":{"docNo":"GRN-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-goods-received-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.001.007.004.void-goods-received-note"},{"module":"Purchase","displayGroup":"Purchase","title":"Delete/void request for a goods received note.","commandType":"delete-goods-received-note","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/goods-received-note/delete","summary":"Delete/void request for a goods received note.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-goods-received-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-goods-received-note","payload":{"docNo":"GRN-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-goods-received-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.001.008.005.delete-goods-received-note"},{"module":"Purchase","displayGroup":"Purchase","title":"List purchase invoices.","commandType":"list-purchase-invoices","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/list","summary":"List purchase invoices.","notes":"","payloadSchema":{},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-purchase-invoices-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-purchase-invoices","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-purchase-invoices.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.002.000.000.list-purchase-invoices"},{"module":"Purchase","displayGroup":"Purchase","title":"Read purchase invoice detail lines only.","commandType":"read-purchase-invoice-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/list","summary":"Read purchase invoice detail lines only.","notes":"Returns account/project/tax/detail columns where AutoCount stores them.","payloadSchema":{"itemCode":"optional","creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-purchase-invoice-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-purchase-invoice-lines","payload":{"creditorCode":"400-S001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-purchase-invoice-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.002.001.000.read-purchase-invoice-lines"},{"module":"Purchase","displayGroup":"Purchase","title":"Get one purchase invoice by document number.","commandType":"get-purchase-invoice","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/get","summary":"Get one purchase invoice by document number.","notes":"","payloadSchema":{"docNo":"required purchase invoice document number"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-purchase-invoice","payload":{"docNo":"PI-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-purchase-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.002.002.000.get-purchase-invoice"},{"module":"Purchase","displayGroup":"Purchase","title":"Validate a purchase invoice without saving.","commandType":"validate-purchase-invoice","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/validate","summary":"Validate a purchase invoice without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","items":"optional alias for lines","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","description":"optional document description/narration","ref":"optional reference","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-purchase-invoice","payload":{"creditorCode":"400-S001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-purchase-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.002.004.001.validate-purchase-invoice"},{"module":"Purchase","displayGroup":"Purchase","title":"Create a purchase invoice.","commandType":"create-purchase-invoice","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/create","summary":"Create a purchase invoice.","notes":"Creates purchase invoice through AutoCount SDK. If default account is missing, call read-default-accounts and use purchaseAccNo, or choose a valid purchase/expense GL account from read-chart-accounts. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","items":"optional alias for lines","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","description":"optional document description/narration","ref":"optional reference","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-purchase-invoice","payload":{"creditorCode":"400-S001","docDate":"2026-06-24","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100,"accountNo":"610-0000"}],"displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-purchase-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.002.005.002.create-purchase-invoice"},{"module":"Purchase","displayGroup":"Purchase","title":"Update purchase invoice header/contact fields and supported detail rows.","commandType":"update-purchase-invoice","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/edit","summary":"Update purchase invoice header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for purchase detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","creditorCode":"required AutoCount creditor/supplier code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","deliverContact":"optional delivery contact","deliverPhone1":"optional delivery phone","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional sales agent where AutoCount exposes it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-purchase-invoice","payload":{"docNo":"PU-000001","reason":"correct document detail","creditorCode":"400-S001","contact":"Supplier Sales Department","attention":"Supplier Sales Department","phone":"03-33333333","ref":"API-REF-UPDATED","yourPONo":"PO-UPDATED-001","deliverContact":"Warehouse","deliverPhone1":"03-22222222","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"supplierInvoiceNo":"SUP-INV-1001","supplierDONo":"SUP-DO-UPDATED-001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-purchase-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.002.006.003.update-purchase-invoice"},{"module":"Purchase","displayGroup":"Purchase","title":"Cancel a purchase invoice when AutoCount allows it.","commandType":"cancel-purchase-invoice","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/cancel","summary":"Cancel a purchase invoice when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-purchase-invoice","payload":{"docNo":"PI-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-purchase-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.002.007.004.cancel-purchase-invoice"},{"module":"Purchase","displayGroup":"Purchase","title":"Void a purchase invoice while keeping audit trail.","commandType":"void-purchase-invoice","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/void","summary":"Void a purchase invoice while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-purchase-invoice","payload":{"docNo":"PI-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-purchase-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.002.007.004.void-purchase-invoice"},{"module":"Purchase","displayGroup":"Purchase","title":"Delete/void request for a purchase invoice.","commandType":"delete-purchase-invoice","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/delete","summary":"Delete/void request for a purchase invoice.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-purchase-invoice","payload":{"docNo":"PI-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-purchase-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.002.008.005.delete-purchase-invoice"},{"module":"Purchase","displayGroup":"Purchase","title":"List cash purchases.","commandType":"list-cash-purchases","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/cash-purchase/list","summary":"List cash purchases.","notes":"","payloadSchema":{},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-cash-purchases-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-cash-purchases","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-cash-purchases.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.003.000.000.list-cash-purchases"},{"module":"Purchase","displayGroup":"Purchase","title":"Read cash purchase detail lines only.","commandType":"read-cash-purchase-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/cash-purchase/list","summary":"Read cash purchase detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-cash-purchase-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-cash-purchase-lines","payload":{"accountNo":"610-0000","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-cash-purchase-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.003.001.000.read-cash-purchase-lines"},{"module":"Purchase","displayGroup":"Purchase","title":"Get one cash purchase by document number.","commandType":"get-cash-purchase","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/cash-purchase/get","summary":"Get one cash purchase by document number.","notes":"","payloadSchema":{"docNo":"required cash purchase document number"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-cash-purchase-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-cash-purchase","payload":{"docNo":"CP-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-cash-purchase.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.003.002.000.get-cash-purchase"},{"module":"Purchase","displayGroup":"Purchase","title":"Validate a cash purchase without saving.","commandType":"validate-cash-purchase","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/cash-purchase/validate","summary":"Validate a cash purchase without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","items":"optional alias for lines","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","description":"optional document description/narration","ref":"optional reference","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-cash-purchase-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-cash-purchase","payload":{"creditorCode":"400-S001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-cash-purchase.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.003.004.001.validate-cash-purchase"},{"module":"Purchase","displayGroup":"Purchase","title":"Create a cash purchase.","commandType":"create-cash-purchase","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/cash-purchase/create","summary":"Create a cash purchase.","notes":"Creates cash purchase when the installed AutoCount SDK exposes the command. If default account is missing, call read-default-accounts and use purchaseAccNo, or choose a valid purchase/expense GL account from read-chart-accounts. Use read-payment-methods first; payments[].paymentMethod must match an active AutoCount Payment Method code, and paymentAmount totals should equal the document total. Line-level project overrides top-level project. Direct void/delete stay guarded until linked payment/cash-book reversal is proven. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","supplierInvoiceNo":"optional supplier invoice number","project":"optional project code","projNo":"project code alias","projectNo":"project code alias","department":"optional department code","deptNo":"department code alias","items":"optional alias for lines","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","description":"optional document description/narration","ref":"optional reference","supplierDONo":"optional supplier delivery order number","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","lines":"required array of item rows; items is also accepted as a compatibility alias","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-cash-purchase-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-cash-purchase","payload":{"creditorCode":"400-S001","supplierInvoiceNo":"SUP-INV-1001","docDate":"2026-06-24","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100,"accountNo":"610-0000","project":"PRJAPI","projNo":"PRJAPI"}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-cash-purchase.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.003.005.002.create-cash-purchase"},{"module":"Purchase","displayGroup":"Purchase","title":"Update cash purchase header/contact fields and supported detail rows.","commandType":"update-cash-purchase","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/cash-purchase/edit","summary":"Update cash purchase header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for purchase detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","creditorCode":"required AutoCount creditor/supplier code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","deliverContact":"optional delivery contact","deliverPhone1":"optional delivery phone","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional sales agent where AutoCount exposes it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-cash-purchase-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-cash-purchase","payload":{"docNo":"CA-000001","reason":"correct document detail","creditorCode":"400-S001","contact":"Supplier Sales Department","attention":"Supplier Sales Department","phone":"03-33333333","ref":"API-REF-UPDATED","yourPONo":"PO-UPDATED-001","deliverContact":"Warehouse","deliverPhone1":"03-22222222","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"supplierInvoiceNo":"SUP-INV-1001","supplierDONo":"SUP-DO-UPDATED-001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-cash-purchase.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.003.006.003.update-cash-purchase"},{"module":"Purchase","displayGroup":"Purchase","title":"Cancel a cash purchase when AutoCount allows it.","commandType":"cancel-cash-purchase","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/cash-purchase/cancel","summary":"Cancel a cash purchase when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-cash-purchase-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-cash-purchase","payload":{"docNo":"CP-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-cash-purchase.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.003.007.004.cancel-cash-purchase"},{"module":"Purchase","displayGroup":"Purchase","title":"Void a cash purchase while keeping audit trail.","commandType":"void-cash-purchase","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/cash-purchase/void","summary":"Void a cash purchase while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-cash-purchase-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-cash-purchase","payload":{"docNo":"CP-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-cash-purchase.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.003.007.004.void-cash-purchase"},{"module":"Purchase","displayGroup":"Purchase","title":"Delete/void request for a cash purchase.","commandType":"delete-cash-purchase","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/cash-purchase/delete","summary":"Delete/void request for a cash purchase.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-cash-purchase-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-cash-purchase","payload":{"docNo":"CP-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-cash-purchase.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.003.008.005.delete-cash-purchase"},{"module":"Purchase","displayGroup":"Purchase","title":"List purchase returns.","commandType":"list-purchase-returns","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-return/list","summary":"List purchase returns.","notes":"","payloadSchema":{},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-purchase-returns-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-purchase-returns","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-purchase-returns.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.004.000.000.list-purchase-returns"},{"module":"Purchase","displayGroup":"Purchase","title":"Read purchase return detail lines only.","commandType":"read-purchase-return-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-return/list","summary":"Read purchase return detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","creditorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-purchase-return-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-purchase-return-lines","payload":{"docNo":"PR-000001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-purchase-return-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.004.001.000.read-purchase-return-lines"},{"module":"Purchase","displayGroup":"Purchase","title":"Get one purchase return by document number.","commandType":"get-purchase-return","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-return/get","summary":"Get one purchase return by document number.","notes":"","payloadSchema":{"docNo":"required purchase return document number"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-purchase-return-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-purchase-return","payload":{"docNo":"PR-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-purchase-return.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.004.002.000.get-purchase-return"},{"module":"Purchase","displayGroup":"Purchase","title":"Validate a purchase return without saving.","commandType":"validate-purchase-return","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-return/validate","summary":"Validate a purchase return without saving.","notes":"Validation only; does not save. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","items":"optional alias for lines","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","description":"optional document description/narration","ref":"optional reference","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-purchase-return-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-purchase-return","payload":{"creditorCode":"400-S001","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-purchase-return.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.004.004.001.validate-purchase-return"},{"module":"Purchase","displayGroup":"Purchase","title":"Create a purchase return.","commandType":"create-purchase-return","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-return/create","summary":"Create a purchase return.","notes":"Creates purchase return through AutoCount Purchase Return SDK when available. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","items":"optional alias for lines","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","attention":"optional attention/contact person","contact":"optional contact person alias for attention","phone1":"optional phone number printed on document","phone":"optional phone alias for phone1","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","description":"optional document description/narration","ref":"optional reference","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","lines":"required array of item rows; items is also accepted as a compatibility alias","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-purchase-return-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-purchase-return","payload":{"creditorCode":"400-S001","docDate":"2026-06-24","items":[{"itemCode":"ITEM001","qty":1,"unitPrice":100}],"displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-purchase-return.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.004.005.002.create-purchase-return"},{"module":"Purchase","displayGroup":"Purchase","title":"Update purchase return header/contact fields and supported detail rows.","commandType":"update-purchase-return","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-return/edit","summary":"Update purchase return header/contact fields and supported detail rows.","notes":"Uses AutoCount SDK Edit(string) + Save(). Supports header/contact changes plus detailMode replace | append | update | delete for purchase detail rows. AutoCount may reject edits for posted, transferred, linked, or permission-blocked documents. Full payload example is for human/Postman reference. For purchase invoice/cash purchase, line accountNo is a GL posting account. If AutoCount says no default account or AI does not know the account, first call read-default-accounts and use purchaseAccNo, or list read-chart-accounts and choose a valid purchase/expense account. For AP invoice, if accountNo is omitted the connector tries payload/default purchase account first, then recent AP invoice history for the same creditor. The connector sends supported fields into AutoCount SDK and ignores unsupported optional fields where the exact document SDK does not expose them. For cash purchase, create/list/get are supported where AutoCount exposes the command; direct void/delete stay guarded until the linked payment/cash-book reversal workflow is proven.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date depending on account-book numbering rules","description":"optional document description/narration","ref":"optional reference","yourPONo":"optional customer/supplier PO/reference number where AutoCount exposes it","creditorCode":"required AutoCount creditor/supplier code","contact":"optional contact person alias for attention","attention":"optional attention/contact person","phone":"optional phone alias for phone1","phone1":"optional phone number printed on document","fax":"optional fax alias for fax1","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","deliverContact":"optional delivery contact","deliverPhone1":"optional delivery phone","deliverAddress1":"optional delivery address line 1","deliverAddress2":"optional delivery address line 2","deliverAddress3":"optional delivery address line 3","deliverAddress4":"optional delivery address line 4","salesAgent":"optional sales agent where AutoCount exposes it","displayTerm":"optional credit term such as C.O.D. or 30 DAYS","dueDate":"optional YYYY-MM-DD due date","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"required array of item rows; items is also accepted as a compatibility alias","items":"optional alias for lines","supplierInvoiceNo":"optional supplier invoice number","supplierDONo":"optional supplier delivery order number","creditorName":"optional supplier display name; AutoCount creditor name is used when omitted","branchCode":"optional creditor branch code/name where the customer uses branches","purchaseLocation":"optional purchase/stock location such as HQ","purchaseAgent":"optional Purchase Agent Maintenance code","phone2":"optional secondary phone/mobile number","fax1":"optional fax number printed on document","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean; true when line prices include tax","taxDate":"optional YYYY-MM-DD tax date","taxEntityID":"optional numeric Tax Entity Maintenance ID for the document header/e-Invoice party","project":"optional project code","department":"optional department code","accountNo":"optional document-level fallback GL posting account for purchase invoice/cash purchase lines when item/account mapping is not enough","postingAccountRule":"For create-purchase-invoice and create-cash-purchase, pass lines[].accountNo / accNo / glAccount / postingAccountNo when AutoCount has no default purchase account. Use read-default-accounts.purchaseAccNo or choose a valid purchase/expense account from read-chart-accounts. For create-ap-invoice, if accountNo is omitted the connector also tries the same creditor's recent AP invoice detail account.","payments":"optional array for cash purchase style documents; send multiple payment rows for AutoCount Multi Payment. cash purchase void/delete remains guarded because linked payment/cash-book reversal needs module-specific proof","userDefinedFields":"optional object of AutoCount user-defined fields; use the AutoCount UDF field name without the UDF_ column prefix, for example { APITEST: value }"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-purchase-return-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-purchase-return","payload":{"docNo":"PU-000001","reason":"correct document detail","creditorCode":"400-S001","contact":"Supplier Sales Department","attention":"Supplier Sales Department","phone":"03-33333333","ref":"API-REF-UPDATED","yourPONo":"PO-UPDATED-001","deliverContact":"Warehouse","deliverPhone1":"03-22222222","deliverAddress1":"Warehouse 1","detailMode":"replace","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"supplierInvoiceNo":"SUP-INV-1001","supplierDONo":"SUP-DO-UPDATED-001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-purchase-return.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.004.006.003.update-purchase-return"},{"module":"Purchase","displayGroup":"Purchase","title":"Cancel a purchase return when AutoCount allows it.","commandType":"cancel-purchase-return","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-return/cancel","summary":"Cancel a purchase return when AutoCount allows it.","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"cancel-purchase-return-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-purchase-return","payload":{"docNo":"PR-000001","reason":"cancelled by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to cancel-purchase-return.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.004.007.004.cancel-purchase-return"},{"module":"Purchase","displayGroup":"Purchase","title":"Void a purchase return while keeping audit trail.","commandType":"void-purchase-return","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-return/void","summary":"Void a purchase return while keeping audit trail.","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-purchase-return-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-purchase-return","payload":{"docNo":"PR-000001","reason":"voided by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-purchase-return.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.004.007.004.void-purchase-return"},{"module":"Purchase","displayGroup":"Purchase","title":"Delete/void request for a purchase return.","commandType":"delete-purchase-return","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-return/delete","summary":"Delete/void request for a purchase return.","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-purchase-return-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-purchase-return","payload":{"docNo":"PR-000001","reason":"deleted by API request"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-purchase-return.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.004.008.005.delete-purchase-return"},{"module":"Purchase","displayGroup":"Purchase","title":"Transfer goods received note to purchase invoice.","commandType":"transfer-goods-received-note-to-purchase-invoice","mode":"write","operation":"Transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/goods-received-note/transfer","summary":"Transfer goods received note to purchase invoice.","notes":"Uses AutoCount transfer logic. AutoCount transfer rules decide which source lines and quantities are allowed. Omit lines to transfer the normal outstanding balance where supported.","payloadSchema":{"sourceDocNo":"required source goods received note document number","targetDocNo":"optional target purchase invoice document number; omit to let AutoCount numbering generate it","docDate":"optional YYYY-MM-DD target document date","creditorCode":"optional supplier code where transfer creates a purchase document","debtorCode":"optional customer code where transfer creates a sales document","transferQtyMode":"optional transfer quantity mode such as all or outstanding","lines":"optional selected source line rows with itemCode, sourceLineNo, qty, uom","description":"optional target document narration","ref":"optional target reference"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"transfer-goods-received-note-to-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"transfer-goods-received-note-to-purchase-invoice","payload":{"sourceDocNo":"GRN-000001","targetDocNo":"","docDate":"2026-06-24","creditorCode":"400-S001","transferQtyMode":"outstanding","description":"Transfer goods received note to purchase invoice","ref":"API-TRANSFER-1001","lines":[{"sourceLineNo":1,"itemCode":"ITEM001","qty":1,"uom":"UNIT"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to transfer-goods-received-note-to-purchase-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.005.009.006.transfer-goods-received-note-to-purchase-invoice"},{"module":"Purchase","displayGroup":"Purchase","title":"Transfer purchase invoice to purchase return.","commandType":"transfer-purchase-invoice-to-purchase-return","mode":"write","operation":"Transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/transfer","summary":"Transfer purchase invoice to purchase return.","notes":"Uses AutoCount transfer logic. AutoCount transfer rules decide which source lines and quantities are allowed. Omit lines to transfer the normal outstanding balance where supported.","payloadSchema":{"sourceDocNo":"required source purchase invoice document number","targetDocNo":"optional target purchase return document number; omit to let AutoCount numbering generate it","docDate":"optional YYYY-MM-DD target document date","creditorCode":"optional supplier code where transfer creates a purchase document","debtorCode":"optional customer code where transfer creates a sales document","transferQtyMode":"optional transfer quantity mode such as all or outstanding","lines":"optional selected source line rows with itemCode, sourceLineNo, qty, uom","description":"optional target document narration","ref":"optional target reference"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"transfer-purchase-invoice-to-purchase-return-001","connectorId":"customer-main","companyId":"macsofttest","type":"transfer-purchase-invoice-to-purchase-return","payload":{"sourceDocNo":"PI-000001","targetDocNo":"","docDate":"2026-06-24","creditorCode":"400-S001","transferQtyMode":"outstanding","description":"Transfer purchase invoice to purchase return","ref":"API-TRANSFER-1001","lines":[{"sourceLineNo":1,"itemCode":"ITEM001","qty":1,"uom":"UNIT"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to transfer-purchase-invoice-to-purchase-return.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.005.009.006.transfer-purchase-invoice-to-purchase-return"},{"module":"Purchase","displayGroup":"Purchase","title":"Transfer purchase order to goods received note.","commandType":"transfer-purchase-order-to-goods-received-note","mode":"write","operation":"Transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/goods-received-note/transfer","summary":"Transfer purchase order to goods received note.","notes":"Uses AutoCount transfer logic. AutoCount transfer rules decide which source lines and quantities are allowed. Omit lines to transfer the normal outstanding balance where supported.","payloadSchema":{"sourceDocNo":"required source purchase order document number","targetDocNo":"optional target goods received note document number; omit to let AutoCount numbering generate it","docDate":"optional YYYY-MM-DD target document date","creditorCode":"optional supplier code where transfer creates a purchase document","debtorCode":"optional customer code where transfer creates a sales document","transferQtyMode":"optional transfer quantity mode such as all or outstanding","lines":"optional selected source line rows with itemCode, sourceLineNo, qty, uom","description":"optional target document narration","ref":"optional target reference"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"transfer-purchase-order-to-goods-received-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"transfer-purchase-order-to-goods-received-note","payload":{"sourceDocNo":"PO-000001","targetDocNo":"","docDate":"2026-06-24","creditorCode":"400-S001","transferQtyMode":"outstanding","description":"Transfer purchase order to goods received note","ref":"API-TRANSFER-1001","lines":[{"sourceLineNo":1,"itemCode":"ITEM001","qty":1,"uom":"UNIT"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to transfer-purchase-order-to-goods-received-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.005.009.006.transfer-purchase-order-to-goods-received-note"},{"module":"Purchase","displayGroup":"Purchase","title":"Transfer purchase order directly to purchase invoice.","commandType":"transfer-purchase-order-to-purchase-invoice","mode":"write","operation":"Transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/transfer","summary":"Transfer purchase order directly to purchase invoice.","notes":"Uses AutoCount transfer logic where the account book allows direct purchase-order-to-invoice transfer. AutoCount transfer rules decide which source lines and quantities are allowed. Omit lines to transfer the normal outstanding balance where supported.","payloadSchema":{"sourceDocNo":"required source purchase order document number","targetDocNo":"optional target purchase invoice document number; omit to let AutoCount numbering generate it","docDate":"optional YYYY-MM-DD target document date","creditorCode":"optional supplier code where transfer creates a purchase document","debtorCode":"optional customer code where transfer creates a sales document","transferQtyMode":"optional transfer quantity mode such as all or outstanding","lines":"optional selected source line rows with itemCode, sourceLineNo, qty, uom","description":"optional target document narration","ref":"optional target reference"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"transfer-purchase-order-to-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"transfer-purchase-order-to-purchase-invoice","payload":{"sourceDocNo":"PO-000001","targetDocNo":"","docDate":"2026-06-24","creditorCode":"400-S001","transferQtyMode":"outstanding","description":"Transfer purchase order to purchase invoice","ref":"API-TRANSFER-1001","lines":[{"sourceLineNo":1,"itemCode":"ITEM001","qty":1,"uom":"UNIT"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to transfer-purchase-order-to-purchase-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.005.009.006.transfer-purchase-order-to-purchase-invoice"},{"module":"Purchase","displayGroup":"Purchase","title":"Read all purchase document lines together, or filter with document.","commandType":"read-purchase-detail-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase/list","summary":"Read all purchase document lines together, or filter with document.","notes":"Prefer the document-specific read-*-lines commands when the document family is known.","payloadSchema":{"document":"optional: purchase-invoice | cash-purchase | goods-received-note | purchase-order | purchase-return","itemCode":"optional","creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-purchase-detail-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-purchase-detail-lines","payload":{"document":"purchase-invoice","creditorCode":"400-S001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-purchase-detail-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"002.999.001.000.read-purchase-detail-lines"},{"module":"AR","displayGroup":"AR","title":"List AR invoices.","commandType":"list-ar-invoices","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-invoice/list","summary":"List AR invoices.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"list-ar-invoices-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ar-invoices","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-ar-invoices.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.000.000.000.list-ar-invoices"},{"module":"AR","displayGroup":"AR","title":"Read AR invoice detail/account lines only.","commandType":"read-ar-invoice-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-invoice/list","summary":"Read AR invoice detail/account lines only.","notes":"","payloadSchema":{"debtorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ar-invoice-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-invoice-lines","payload":{"accountNo":"500-0000","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ar-invoice-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.000.001.000.read-ar-invoice-lines"},{"module":"AR","displayGroup":"AR","title":"List outstanding AR invoice documents with docKey for allocation and knock-off.","commandType":"read-ar-outstanding-documents","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-outstanding/list","summary":"List outstanding AR invoice documents with docKey for allocation and knock-off.","notes":"Returns SDK-safe docType RI plus displayDocType IV. Use the returned docType for AR payment and AR credit-note invoice knock-off.","payloadSchema":{"debtorCode":"optional debtor/customer code","maxRows":"optional row limit; maxRows: 0 means return all rows"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ar-outstanding-documents-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-outstanding-documents","payload":{"debtorCode":"300-A001","maxRows":0}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ar-outstanding-documents.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.000.001.000.read-ar-outstanding-documents"},{"module":"AR","displayGroup":"AR","title":"Get one AR invoice by document number.","commandType":"get-ar-invoice","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-invoice/get","summary":"Get one AR invoice by document number.","notes":"","payloadSchema":{"docNo":"required AR invoice document number"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-ar-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ar-invoice","payload":{"docNo":"ARI-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-ar-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.000.002.000.get-ar-invoice"},{"module":"AR","displayGroup":"AR","title":"Validate an AR invoice without saving.","commandType":"validate-ar-invoice","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-invoice/validate","summary":"Validate an AR invoice without saving.","notes":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR. Use read-ar-outstanding-documents first when a knock-off needs docKey. For simple invoices, amount/accountNo still works. For multiple posting accounts, send lines and put accountNo on each line. AR/AP invoice/note posting account order is: lines[].accountNo/top-level accountNo, AutoCount default account only when needed, then safe recent same-party history where the connector has a proven read path.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","amount":"optional single-line amount; lines is preferred for multiple lines","_arApRule":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","dueDate":"optional YYYY-MM-DD due date","description":"optional document description/narration","ref":"optional reference","branchCode":"optional debtor/customer branch code/name where the customer uses branches","attention":"optional attention/contact person","contact":"optional contact person alias for attention","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean","taxDate":"optional YYYY-MM-DD tax date","accountNo":"optional user-selected GL posting account for simple one-line payload; overrides the connector/default account","taxType":"optional tax type/code","lines":"optional array of GL/account rows for multi-line AR invoice, credit note, or debit note; each line can choose posting account with accountNo / accNo / glAccount","knockOffs":"optional array for credit/debit note knock-off where AutoCount supports it","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"validate-ar-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-ar-invoice","payload":{"debtorCode":"300-A001","amount":100,"docDate":"2026-06-24","dueDate":"2026-07-24","description":"AR document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"500-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"501-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-ar-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.000.004.001.validate-ar-invoice"},{"module":"AR","displayGroup":"AR","title":"Create an AR invoice.","commandType":"create-ar-invoice","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-invoice/create","summary":"Create an AR invoice.","notes":"Requires write access permission. AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR. Use read-ar-outstanding-documents first when a knock-off needs docKey. For simple invoices, amount/accountNo still works. For multiple posting accounts, send lines and put accountNo on each line. AR/AP invoice/note posting account order is: lines[].accountNo/top-level accountNo, AutoCount default account only when needed, then safe recent same-party history where the connector has a proven read path.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date","amount":"optional single-line amount; lines is preferred for multiple lines","_arApRule":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","dueDate":"optional YYYY-MM-DD due date","description":"optional document description/narration","ref":"optional reference","branchCode":"optional debtor/customer branch code/name where the customer uses branches","attention":"optional attention/contact person","contact":"optional contact person alias for attention","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean","taxDate":"optional YYYY-MM-DD tax date","accountNo":"optional user-selected GL posting account for simple one-line payload; overrides the connector/default account","taxType":"optional tax type/code","lines":"optional array of GL/account rows for multi-line AR invoice, credit note, or debit note; each line can choose posting account with accountNo / accNo / glAccount","knockOffs":"optional array for credit/debit note knock-off where AutoCount supports it","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"create-ar-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-ar-invoice","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","amount":100,"dueDate":"2026-07-24","description":"AR document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"500-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"501-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-ar-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.000.005.002.create-ar-invoice"},{"module":"AR","displayGroup":"AR","title":"Update AR invoice header/simple fields.","commandType":"update-ar-invoice","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-invoice/edit","summary":"Update AR invoice header/simple fields.","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.","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"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"update-ar-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-ar-invoice","payload":{"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"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-ar-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.000.006.003.update-ar-invoice"},{"module":"AR","displayGroup":"AR","title":"Guarded AR invoice void request.","commandType":"void-ar-invoice","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-invoice/void","summary":"Guarded AR invoice void request.","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"void-ar-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ar-invoice","payload":{"docNo":"ARI-000001","reason":"void/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-ar-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.000.007.004.void-ar-invoice"},{"module":"AR","displayGroup":"AR","title":"Guarded AR invoice delete request.","commandType":"delete-ar-invoice","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-invoice/delete","summary":"Guarded AR invoice delete request.","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"delete-ar-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ar-invoice","payload":{"docNo":"ARI-000001","reason":"remove/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-ar-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.000.008.005.delete-ar-invoice"},{"module":"AR","displayGroup":"AR","title":"List AR payments.","commandType":"list-ar-payments","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-payment/list","summary":"List AR payments.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"list-ar-payments-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ar-payments","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-ar-payments.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.001.000.000.list-ar-payments"},{"module":"AR","displayGroup":"AR","title":"Read AR account/detail lines across AR invoices, payments, refunds, credit notes, and debit notes.","commandType":"read-ar-detail-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar/list","summary":"Read AR account/detail lines across AR invoices, payments, refunds, credit notes, and debit notes.","notes":"","payloadSchema":{"debtorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ar-detail-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-detail-lines","payload":{"debtorCode":"300-A001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ar-detail-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.001.001.000.read-ar-detail-lines"},{"module":"AR","displayGroup":"AR","title":"Read AR payment detail/payment method lines only.","commandType":"read-ar-payment-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-payment/list","summary":"Read AR payment detail/payment method lines only.","notes":"","payloadSchema":{"debtorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ar-payment-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-payment-lines","payload":{"debtorCode":"300-A001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ar-payment-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.001.001.000.read-ar-payment-lines"},{"module":"AR","displayGroup":"AR","title":"Read AR refund detail/payment method lines only.","commandType":"read-ar-refund-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-refund/list","summary":"Read AR refund detail/payment method lines only.","notes":"","payloadSchema":{"debtorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ar-refund-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-refund-lines","payload":{"debtorCode":"300-A001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ar-refund-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.001.001.000.read-ar-refund-lines"},{"module":"AR","displayGroup":"AR","title":"Get one AR payment by document number.","commandType":"get-ar-payment","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-payment/get","summary":"Get one AR payment by document number.","notes":"","payloadSchema":{"docNo":"required AR payment document number"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-ar-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ar-payment","payload":{"docNo":"OR-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-ar-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.001.002.000.get-ar-payment"},{"module":"AR","displayGroup":"AR","title":"Validate an AR payment/receipt without saving. Supports one or many real invoice knock-offs.","commandType":"validate-ar-payment","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-payment/validate","summary":"Validate an AR payment/receipt without saving. Supports one or many real invoice knock-offs.","notes":"Real positive knock-off validation is proven for outstanding AR documents. The connector also accepts old IV aliases and normalizes them to RI. AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR. For payment against invoices use RI for AR and PB for AP. For refund against credit notes use RC/ARCN for AR and PC/APCN for AP. Friendly aliases are normalized by the connector where supported.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","amount":"required total payment/refund amount","knockOffs":"optional array of documents to allocate this payment/refund against; docKey is recommended","_arApRule":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","paymentMethod":"required or optional AutoCount Payment Method code such as CASH or MAYBANK","paymentBy":"optional payment type such as Cash, Cheque, Bank Transfer, Credit Card","chequeNo":"optional cheque/reference number","bankCharge":"optional bank charge amount","paymentAccountNo":"optional GL bank/cash account number","bankChargeAccountNo":"optional GL bank charge account number","creditCardApprovalCode":"optional credit-card approval code/reference","description":"optional payment/refund narration","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"validate-ar-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-ar-payment","payload":{"debtorCode":"300-A001","amount":100,"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0,"gainLossAmount":0,"withholdingTaxAmount":0}],"docDate":"2026-06-24","paymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-PAY-1001","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"","description":"AR payment/refund created through API","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-ar-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.001.004.001.validate-ar-payment"},{"module":"AR","displayGroup":"AR","title":"Create an AR deposit with a real payment detail and GL transaction.","commandType":"create-ar-deposit","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar/create","summary":"Create an AR deposit with a real payment detail and GL transaction.","notes":"Requires write access permission. Real save is tested against AutoCount ARDepositCommand and verifies GLTrxID. AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR. Creates a real AutoCount deposit with one payment detail row and posts a GL transaction when saved.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date","amount":"required deposit amount","paymentMethod":"optional AutoCount Payment Method code such as CASH or MAYBANK","_arApRule":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","depositPaymentMethod":"optional AutoCount deposit header payment method; defaults from paymentMethod","paymentBy":"optional payment type such as Cash, Cheque, Bank Transfer, Credit Card","chequeNo":"optional cheque/reference number","bankCharge":"optional bank charge amount","description":"optional deposit narration","note":"optional note","isSecurityDeposit":"optional boolean; true for security deposit where AutoCount account book supports it","project":"optional project code","department":"optional department code"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"create-ar-deposit-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-ar-deposit","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","amount":100,"paymentMethod":"CASH","depositPaymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-DEP-1001","bankCharge":0,"description":"AR deposit created through API","note":"Deposit received before invoice","isSecurityDeposit":false,"project":"PRJAPI","department":"HQ"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-ar-deposit.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.001.005.002.create-ar-deposit"},{"module":"AR","displayGroup":"AR","title":"Create an AR payment/receipt. Supports one or many real invoice knock-offs.","commandType":"create-ar-payment","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-payment/create","summary":"Create an AR payment/receipt. Supports one or many real invoice knock-offs.","notes":"Requires write access permission. Real multi-invoice knock-off save is proven; IV aliases are normalized to RI. AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR. For payment against invoices use RI for AR and PB for AP. For refund against credit notes use RC/ARCN for AR and PC/APCN for AP. Friendly aliases are normalized by the connector where supported.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date","amount":"required total payment/refund amount","knockOffs":"optional array of documents to allocate this payment/refund against; docKey is recommended","_arApRule":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","paymentMethod":"required or optional AutoCount Payment Method code such as CASH or MAYBANK","paymentBy":"optional payment type such as Cash, Cheque, Bank Transfer, Credit Card","chequeNo":"optional cheque/reference number","bankCharge":"optional bank charge amount","paymentAccountNo":"optional GL bank/cash account number","bankChargeAccountNo":"optional GL bank charge account number","creditCardApprovalCode":"optional credit-card approval code/reference","description":"optional payment/refund narration","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"create-ar-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-ar-payment","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","amount":100,"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0,"gainLossAmount":0,"withholdingTaxAmount":0}],"paymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-PAY-1001","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"","description":"AR payment/refund created through API","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-ar-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.001.005.002.create-ar-payment"},{"module":"AR","displayGroup":"AR","title":"Update AR payment header/simple fields.","commandType":"update-ar-payment","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-payment/edit","summary":"Update AR payment header/simple fields.","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.","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","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"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"update-ar-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-ar-payment","payload":{"docNo":"OR-000001","reason":"correct header fields","description":"Updated by API","ref":"API-REF-UPDATED","debtorCode":"300-A001","detailMode":"replace","paymentLines":[{"paymentMethod":"CASH","paymentAmount":100,"chequeNo":"API-EDIT-001"}],"knockOffs":[{"docType":"RI","docKey":"424496","docNo":"IV-000001","amount":100}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-ar-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.001.006.003.update-ar-payment"},{"module":"AR","displayGroup":"AR","title":"Guarded AR payment void request.","commandType":"void-ar-payment","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-payment/void","summary":"Guarded AR payment void request.","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"void-ar-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ar-payment","payload":{"docNo":"OR-000001","reason":"void/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-ar-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.001.007.004.void-ar-payment"},{"module":"AR","displayGroup":"AR","title":"Guarded AR payment delete request.","commandType":"delete-ar-payment","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-payment/delete","summary":"Guarded AR payment delete request.","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"delete-ar-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ar-payment","payload":{"docNo":"OR-000001","reason":"remove/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-ar-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.001.008.005.delete-ar-payment"},{"module":"AR","displayGroup":"AR","title":"List AR refunds.","commandType":"list-ar-refunds","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-refund/list","summary":"List AR refunds.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"list-ar-refunds-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ar-refunds","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-ar-refunds.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.002.000.000.list-ar-refunds"},{"module":"AR","displayGroup":"AR","title":"Get one AR refund by document number.","commandType":"get-ar-refund","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-refund/get","summary":"Get one AR refund by document number.","notes":"","payloadSchema":{"docNo":"required AR refund document number"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-ar-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ar-refund","payload":{"docNo":"PV-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-ar-refund.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.002.002.000.get-ar-refund"},{"module":"AR","displayGroup":"AR","title":"Validate an AR refund without saving. Refund knocks off AR credit notes, not invoices. Use docType RC or friendly CN alias; docKey is recommended.","commandType":"validate-ar-refund","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-refund/validate","summary":"Validate an AR refund without saving. Refund knocks off AR credit notes, not invoices. Use docType RC or friendly CN alias; docKey is recommended.","notes":"Real AR refund knock-off save is proven against AR credit notes. CN/CreditNote aliases are normalized to RC. AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR. For payment against invoices use RI for AR and PB for AP. For refund against credit notes use RC/ARCN for AR and PC/APCN for AP. Friendly aliases are normalized by the connector where supported.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","amount":"required total payment/refund amount","knockOffs":"optional array of documents to allocate this payment/refund against; docKey is recommended","_arApRule":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","paymentMethod":"required or optional AutoCount Payment Method code such as CASH or MAYBANK","paymentBy":"optional payment type such as Cash, Cheque, Bank Transfer, Credit Card","chequeNo":"optional cheque/reference number","bankCharge":"optional bank charge amount","paymentAccountNo":"optional GL bank/cash account number","bankChargeAccountNo":"optional GL bank charge account number","creditCardApprovalCode":"optional credit-card approval code/reference","description":"optional payment/refund narration","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"validate-ar-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-ar-refund","payload":{"debtorCode":"300-A001","amount":100,"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0,"gainLossAmount":0,"withholdingTaxAmount":0}],"docDate":"2026-06-24","paymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-PAY-1001","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"","description":"AR payment/refund created through API","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-ar-refund.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.002.004.001.validate-ar-refund"},{"module":"AR","displayGroup":"AR","title":"Create an AR refund. Refund knocks off AR credit notes, not invoices. Use docType RC or friendly CN alias; docKey is recommended.","commandType":"create-ar-refund","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-refund/create","summary":"Create an AR refund. Refund knocks off AR credit notes, not invoices. Use docType RC or friendly CN alias; docKey is recommended.","notes":"Requires write access permission. Real AR refund knock-off save is proven against AR credit notes; CN aliases are normalized to RC. AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR. For payment against invoices use RI for AR and PB for AP. For refund against credit notes use RC/ARCN for AR and PC/APCN for AP. Friendly aliases are normalized by the connector where supported.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date","amount":"required total payment/refund amount","knockOffs":"optional array of documents to allocate this payment/refund against; docKey is recommended","_arApRule":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","paymentMethod":"required or optional AutoCount Payment Method code such as CASH or MAYBANK","paymentBy":"optional payment type such as Cash, Cheque, Bank Transfer, Credit Card","chequeNo":"optional cheque/reference number","bankCharge":"optional bank charge amount","paymentAccountNo":"optional GL bank/cash account number","bankChargeAccountNo":"optional GL bank charge account number","creditCardApprovalCode":"optional credit-card approval code/reference","description":"optional payment/refund narration","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"create-ar-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-ar-refund","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","amount":100,"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0,"gainLossAmount":0,"withholdingTaxAmount":0}],"paymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-PAY-1001","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"","description":"AR payment/refund created through API","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-ar-refund.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.002.005.002.create-ar-refund"},{"module":"AR","displayGroup":"AR","title":"Update AR refund header/simple fields.","commandType":"update-ar-refund","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-refund/edit","summary":"Update AR refund header/simple fields.","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.","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","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"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"update-ar-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-ar-refund","payload":{"docNo":"PV-000001","reason":"correct header fields","description":"Updated by API","ref":"API-REF-UPDATED","debtorCode":"300-A001","detailMode":"replace","paymentLines":[{"paymentMethod":"CASH","paymentAmount":100,"chequeNo":"API-EDIT-001"}],"knockOffs":[{"docType":"RI","docKey":"424496","docNo":"IV-000001","amount":100}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-ar-refund.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.002.006.003.update-ar-refund"},{"module":"AR","displayGroup":"AR","title":"Guarded AR refund void request.","commandType":"void-ar-refund","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-refund/void","summary":"Guarded AR refund void request.","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"void-ar-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ar-refund","payload":{"docNo":"PV-000001","reason":"void/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-ar-refund.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.002.007.004.void-ar-refund"},{"module":"AR","displayGroup":"AR","title":"Guarded AR refund delete request.","commandType":"delete-ar-refund","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-refund/delete","summary":"Guarded AR refund delete request.","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"delete-ar-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ar-refund","payload":{"docNo":"PV-000001","reason":"remove/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-ar-refund.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.002.008.005.delete-ar-refund"},{"module":"AR","displayGroup":"AR","title":"List AR credit notes.","commandType":"list-ar-credit-notes","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-credit-note/list","summary":"List AR credit notes.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"list-ar-credit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ar-credit-notes","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-ar-credit-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.003.000.000.list-ar-credit-notes"},{"module":"AR","displayGroup":"AR","title":"Read AR credit note detail/account lines only.","commandType":"read-ar-credit-note-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-credit-note/list","summary":"Read AR credit note detail/account lines only.","notes":"","payloadSchema":{"debtorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ar-credit-note-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-credit-note-lines","payload":{"debtorCode":"300-A001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ar-credit-note-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.003.001.000.read-ar-credit-note-lines"},{"module":"AR","displayGroup":"AR","title":"Get one AR credit note by document number.","commandType":"get-ar-credit-note","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-credit-note/get","summary":"Get one AR credit note by document number.","notes":"","payloadSchema":{"docNo":"required AR credit note document number"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-ar-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ar-credit-note","payload":{"docNo":"CN-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-ar-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.003.002.000.get-ar-credit-note"},{"module":"AR","displayGroup":"AR","title":"Validate an AR credit note without saving. Supports one or many real invoice knock-offs.","commandType":"validate-ar-credit-note","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-credit-note/validate","summary":"Validate an AR credit note without saving. Supports one or many real invoice knock-offs.","notes":"Real positive knock-off validation is proven for outstanding AR documents. AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR. Use read-ar-outstanding-documents first when a knock-off needs docKey. For simple invoices, amount/accountNo still works. For multiple posting accounts, send lines and put accountNo on each line. AR/AP invoice/note posting account order is: lines[].accountNo/top-level accountNo, AutoCount default account only when needed, then safe recent same-party history where the connector has a proven read path.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","amount":"optional single-line amount; lines is preferred for multiple lines","lineDescription":"optional","knockOffs":"optional array for credit/debit note knock-off where AutoCount supports it","_arApRule":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","dueDate":"optional YYYY-MM-DD due date","description":"optional document description/narration","ref":"optional reference","branchCode":"optional debtor/customer branch code/name where the customer uses branches","attention":"optional attention/contact person","contact":"optional contact person alias for attention","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean","taxDate":"optional YYYY-MM-DD tax date","accountNo":"optional user-selected GL posting account for simple one-line payload; overrides the connector/default account","taxType":"optional tax type/code","lines":"optional array of GL/account rows for multi-line AR invoice, credit note, or debit note; each line can choose posting account with accountNo / accNo / glAccount","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"validate-ar-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-ar-credit-note","payload":{"debtorCode":"300-A001","amount":100,"lineDescription":"Credit adjustment","knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"docDate":"2026-06-24","dueDate":"2026-07-24","description":"AR document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"500-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"501-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-ar-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.003.004.001.validate-ar-credit-note"},{"module":"AR","displayGroup":"AR","title":"Create an AR credit note. Supports one or many real invoice knock-offs.","commandType":"create-ar-credit-note","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-credit-note/create","summary":"Create an AR credit note. Supports one or many real invoice knock-offs.","notes":"Requires write access permission. Real knock-off validation is proven; saving should still be tested per account book. AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR. Use read-ar-outstanding-documents first when a knock-off needs docKey. For simple invoices, amount/accountNo still works. For multiple posting accounts, send lines and put accountNo on each line. AR/AP invoice/note posting account order is: lines[].accountNo/top-level accountNo, AutoCount default account only when needed, then safe recent same-party history where the connector has a proven read path.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date","amount":"optional single-line amount; lines is preferred for multiple lines","lineDescription":"optional","knockOffs":"optional array for credit/debit note knock-off where AutoCount supports it","_arApRule":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","dueDate":"optional YYYY-MM-DD due date","description":"optional document description/narration","ref":"optional reference","branchCode":"optional debtor/customer branch code/name where the customer uses branches","attention":"optional attention/contact person","contact":"optional contact person alias for attention","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean","taxDate":"optional YYYY-MM-DD tax date","accountNo":"optional user-selected GL posting account for simple one-line payload; overrides the connector/default account","taxType":"optional tax type/code","lines":"optional array of GL/account rows for multi-line AR invoice, credit note, or debit note; each line can choose posting account with accountNo / accNo / glAccount","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"create-ar-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-ar-credit-note","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","amount":100,"lineDescription":"Credit adjustment","knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"dueDate":"2026-07-24","description":"AR document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"500-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"501-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-ar-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.003.005.002.create-ar-credit-note"},{"module":"AR","displayGroup":"AR","title":"Update AR credit note header/simple fields.","commandType":"update-ar-credit-note","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-credit-note/edit","summary":"Update AR credit note header/simple fields.","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.","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"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"update-ar-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-ar-credit-note","payload":{"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"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-ar-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.003.006.003.update-ar-credit-note"},{"module":"AR","displayGroup":"AR","title":"Guarded AR credit note void request.","commandType":"void-ar-credit-note","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-credit-note/void","summary":"Guarded AR credit note void request.","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"void-ar-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ar-credit-note","payload":{"docNo":"CN-000001","reason":"void/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-ar-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.003.007.004.void-ar-credit-note"},{"module":"AR","displayGroup":"AR","title":"Guarded AR credit note delete request.","commandType":"delete-ar-credit-note","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-credit-note/delete","summary":"Guarded AR credit note delete request.","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"delete-ar-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ar-credit-note","payload":{"docNo":"CN-000001","reason":"remove/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-ar-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.003.008.005.delete-ar-credit-note"},{"module":"AR","displayGroup":"AR","title":"List AR debit notes.","commandType":"list-ar-debit-notes","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-debit-note/list","summary":"List AR debit notes.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"list-ar-debit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ar-debit-notes","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-ar-debit-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.004.000.000.list-ar-debit-notes"},{"module":"AR","displayGroup":"AR","title":"Read AR debit note detail/account lines only.","commandType":"read-ar-debit-note-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-debit-note/list","summary":"Read AR debit note detail/account lines only.","notes":"","payloadSchema":{"debtorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ar-debit-note-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-debit-note-lines","payload":{"debtorCode":"300-A001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ar-debit-note-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.004.001.000.read-ar-debit-note-lines"},{"module":"AR","displayGroup":"AR","title":"Get one AR debit note by document number.","commandType":"get-ar-debit-note","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-debit-note/get","summary":"Get one AR debit note by document number.","notes":"","payloadSchema":{"docNo":"required AR debit note document number"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-ar-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ar-debit-note","payload":{"docNo":"DN-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-ar-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.004.002.000.get-ar-debit-note"},{"module":"AR","displayGroup":"AR","title":"Validate an AR debit note without saving.","commandType":"validate-ar-debit-note","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-debit-note/validate","summary":"Validate an AR debit note without saving.","notes":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR. Use read-ar-outstanding-documents first when a knock-off needs docKey. For simple invoices, amount/accountNo still works. For multiple posting accounts, send lines and put accountNo on each line. AR/AP invoice/note posting account order is: lines[].accountNo/top-level accountNo, AutoCount default account only when needed, then safe recent same-party history where the connector has a proven read path.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","amount":"optional single-line amount; lines is preferred for multiple lines","lineDescription":"optional","_arApRule":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","dueDate":"optional YYYY-MM-DD due date","description":"optional document description/narration","ref":"optional reference","branchCode":"optional debtor/customer branch code/name where the customer uses branches","attention":"optional attention/contact person","contact":"optional contact person alias for attention","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean","taxDate":"optional YYYY-MM-DD tax date","accountNo":"optional user-selected GL posting account for simple one-line payload; overrides the connector/default account","taxType":"optional tax type/code","lines":"optional array of GL/account rows for multi-line AR invoice, credit note, or debit note; each line can choose posting account with accountNo / accNo / glAccount","knockOffs":"optional array for credit/debit note knock-off where AutoCount supports it","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"validate-ar-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-ar-debit-note","payload":{"debtorCode":"300-A001","amount":100,"lineDescription":"Debit adjustment","docDate":"2026-06-24","dueDate":"2026-07-24","description":"AR document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"500-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"501-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-ar-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.004.004.001.validate-ar-debit-note"},{"module":"AR","displayGroup":"AR","title":"Create an AR debit note.","commandType":"create-ar-debit-note","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-debit-note/create","summary":"Create an AR debit note.","notes":"Creates AR debit note through AutoCount SDK. AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR. Use read-ar-outstanding-documents first when a knock-off needs docKey. For simple invoices, amount/accountNo still works. For multiple posting accounts, send lines and put accountNo on each line. AR/AP invoice/note posting account order is: lines[].accountNo/top-level accountNo, AutoCount default account only when needed, then safe recent same-party history where the connector has a proven read path.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date","amount":"optional single-line amount; lines is preferred for multiple lines","lineDescription":"optional","_arApRule":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","dueDate":"optional YYYY-MM-DD due date","description":"optional document description/narration","ref":"optional reference","branchCode":"optional debtor/customer branch code/name where the customer uses branches","attention":"optional attention/contact person","contact":"optional contact person alias for attention","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean","taxDate":"optional YYYY-MM-DD tax date","accountNo":"optional user-selected GL posting account for simple one-line payload; overrides the connector/default account","taxType":"optional tax type/code","lines":"optional array of GL/account rows for multi-line AR invoice, credit note, or debit note; each line can choose posting account with accountNo / accNo / glAccount","knockOffs":"optional array for credit/debit note knock-off where AutoCount supports it","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"create-ar-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-ar-debit-note","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","amount":100,"lineDescription":"Debit adjustment","dueDate":"2026-07-24","description":"AR document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"500-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"501-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-ar-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.004.005.002.create-ar-debit-note"},{"module":"AR","displayGroup":"AR","title":"Update AR debit note header/simple fields.","commandType":"update-ar-debit-note","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-debit-note/edit","summary":"Update AR debit note header/simple fields.","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.","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"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"update-ar-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-ar-debit-note","payload":{"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"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-ar-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.004.006.003.update-ar-debit-note"},{"module":"AR","displayGroup":"AR","title":"Guarded AR debit note void request.","commandType":"void-ar-debit-note","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-debit-note/void","summary":"Guarded AR debit note void request.","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"void-ar-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ar-debit-note","payload":{"docNo":"DN-000001","reason":"void/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-ar-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.004.007.004.void-ar-debit-note"},{"module":"AR","displayGroup":"AR","title":"Guarded AR debit note delete request.","commandType":"delete-ar-debit-note","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-debit-note/delete","summary":"Guarded AR debit note delete request.","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"delete-ar-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ar-debit-note","payload":{"docNo":"DN-000001","reason":"remove/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-ar-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.004.008.005.delete-ar-debit-note"},{"module":"AR","displayGroup":"AR","title":"List AR deposits.","commandType":"list-ar-deposits","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar/list","summary":"List AR deposits.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"list-ar-deposits-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ar-deposits","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-ar-deposits.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.999.000.000.list-ar-deposits"},{"module":"AR","displayGroup":"AR","title":"Legacy AR outstanding lookup. Prefer read-ar-outstanding-documents for docKey-based knock-off.","commandType":"read-ar-outstanding","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-outstanding/list","summary":"Legacy AR outstanding lookup. Prefer read-ar-outstanding-documents for docKey-based knock-off.","notes":"","payloadSchema":{"debtorCode":"optional debtor/customer code","maxRows":"optional row limit; maxRows: 0 means return all rows"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ar-outstanding-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-outstanding","payload":{"debtorCode":"300-A001","maxRows":0}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ar-outstanding.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.999.001.000.read-ar-outstanding"},{"module":"AR","displayGroup":"AR","title":"List debtors/customers.","commandType":"read-debtors","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/debtor-customer/list","summary":"List debtors/customers.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-debtors-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-debtors","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-debtors.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.999.001.000.read-debtors"},{"module":"AR","displayGroup":"AR","title":"Get one AR deposit by document number.","commandType":"get-ar-deposit","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar/get","summary":"Get one AR deposit by document number.","notes":"","payloadSchema":{"docNo":"required AR deposit document number"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-ar-deposit-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ar-deposit","payload":{"docNo":"OR-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-ar-deposit.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.999.002.000.get-ar-deposit"},{"module":"AR","displayGroup":"AR","title":"Read one debtor/customer credit-control settings through AutoCount debtor SDK.","commandType":"get-debtor-credit-control","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/debtor-customer/get","summary":"Read one debtor/customer credit-control settings through AutoCount debtor SDK.","notes":"Returns stable fields such as companyName, controlAccount, currencyCode, creditTerm and a creditControl field map containing credit/term/limit/control fields exposed by that AutoCount DLL.","payloadSchema":{"accNo":"required debtor/customer code; debtorCode or customerCode also accepted"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-debtor-credit-control-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-debtor-credit-control","payload":{"accNo":"300-A001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-debtor-credit-control.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.999.002.000.get-debtor-credit-control"},{"module":"AR","displayGroup":"AR","title":"Read one debtor/customer with all public SDK fields and child tables.","commandType":"get-debtor-detail","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/debtor-customer/get","summary":"Read one debtor/customer with all public SDK fields and child tables.","notes":"Uses AutoCount.ARAP.Debtor.DebtorDataAccess.GetDebtor. Returns fields and child tables such as DebtorTable, BranchTable, ContactTable, TaxExemptionTable, and GLMastTable when available.","payloadSchema":{"accNo":"required debtor/customer code; debtorCode or customerCode also accepted","maxTableRows":"optional child-table row limit; maxTableRows: 0 means return all child-table rows","includeTableData":"optional boolean, default true"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-debtor-detail-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-debtor-detail","payload":{"accNo":"300-A001","maxTableRows":0}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-debtor-detail.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.999.002.000.get-debtor-detail"},{"module":"AR","displayGroup":"AR","title":"Validate an AR deposit without saving.","commandType":"validate-ar-deposit","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar/validate","summary":"Validate an AR deposit without saving.","notes":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR. Creates a real AutoCount deposit with one payment detail row and posts a GL transaction when saved.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","docDate":"required or optional YYYY-MM-DD document date","amount":"required deposit amount","paymentMethod":"optional AutoCount Payment Method code such as CASH or MAYBANK","_arApRule":"AR = customer/debtor. Use debtorCode only for AR commands; do not send creditorCode for AR.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","depositPaymentMethod":"optional AutoCount deposit header payment method; defaults from paymentMethod","paymentBy":"optional payment type such as Cash, Cheque, Bank Transfer, Credit Card","chequeNo":"optional cheque/reference number","bankCharge":"optional bank charge amount","description":"optional deposit narration","note":"optional note","isSecurityDeposit":"optional boolean; true for security deposit where AutoCount account book supports it","project":"optional project code","department":"optional department code"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"validate-ar-deposit-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-ar-deposit","payload":{"debtorCode":"300-A001","docDate":"2026-06-24","amount":100,"paymentMethod":"CASH","depositPaymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-DEP-1001","bankCharge":0,"description":"AR deposit created through API","note":"Deposit received before invoice","isSecurityDeposit":false,"project":"PRJAPI","department":"HQ"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-ar-deposit.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"003.999.004.001.validate-ar-deposit"},{"module":"AP","displayGroup":"AP","title":"List AP invoices.","commandType":"list-ap-invoices","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-invoice/list","summary":"List AP invoices.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"list-ap-invoices-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ap-invoices","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-ap-invoices.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.000.000.000.list-ap-invoices"},{"module":"AP","displayGroup":"AP","title":"Read AP invoice detail/account lines only.","commandType":"read-ap-invoice-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-invoice/list","summary":"Read AP invoice detail/account lines only.","notes":"","payloadSchema":{"creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ap-invoice-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-invoice-lines","payload":{"accountNo":"610-0000","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ap-invoice-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.000.001.000.read-ap-invoice-lines"},{"module":"AP","displayGroup":"AP","title":"List outstanding AP invoice documents with docKey for allocation and knock-off.","commandType":"read-ap-outstanding-documents","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-outstanding/list","summary":"List outstanding AP invoice documents with docKey for allocation and knock-off.","notes":"Returns SDK-safe docType PB plus displayDocType PI. Use the returned docType for AP payment and AP credit-note invoice knock-off.","payloadSchema":{"creditorCode":"optional creditor/supplier code","maxRows":"optional row limit; maxRows: 0 means return all rows"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ap-outstanding-documents-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-outstanding-documents","payload":{"creditorCode":"400-S001","maxRows":0}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ap-outstanding-documents.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.000.001.000.read-ap-outstanding-documents"},{"module":"AP","displayGroup":"AP","title":"Get one AP invoice by document number.","commandType":"get-ap-invoice","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-invoice/get","summary":"Get one AP invoice by document number.","notes":"","payloadSchema":{"docNo":"required AP invoice document number"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-ap-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ap-invoice","payload":{"docNo":"API-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-ap-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.000.002.000.get-ap-invoice"},{"module":"AP","displayGroup":"AP","title":"Validate an AP invoice without saving.","commandType":"validate-ap-invoice","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-invoice/validate","summary":"Validate an AP invoice without saving.","notes":"Use validate before create when AI imports many supplier bills. Posting account order is: lines[].accountNo/top-level accountNo, AutoCount default purchase account, then recent AP invoice detail account for the same creditor. If no account is found, connector returns a clear validation error before AutoCount save. Send top-level project/projNo to apply one project to every line, or send line-level project/projNo for different projects per line. AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP. Use read-ap-outstanding-documents first when a knock-off needs docKey. For simple invoices, amount/accountNo still works. For multiple posting accounts, send lines and put accountNo on each line. AR/AP invoice/note posting account order is: lines[].accountNo/top-level accountNo, AutoCount default account only when needed, then safe recent same-party history where the connector has a proven read path.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","supplierInvoiceNo":"required supplier invoice number","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","dueDate":"optional YYYY-MM-DD due date","ref":"optional reference","currencyCode":"optional currency code such as MYR","inclusiveTax":"optional boolean","project":"optional top-level project fallback for all AP invoice detail lines","projNo":"project code alias","projectNo":"project code alias","department":"optional top-level department fallback","deptNo":"department code alias","lines":"recommended array of AP GL/account rows; each AP line must choose a valid posting account with accountNo / accNo / glAccount / postingAccountNo","accountNo":"required for simple one-line AP payload unless every line has accountNo; use a valid purchase/expense GL account","amount":"optional single-line amount; lines is preferred for multiple lines","_arApRule":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP.","description":"optional document description/narration","branchCode":"optional creditor/supplier branch code/name where the customer uses branches","attention":"optional attention/contact person","contact":"optional contact person alias for attention","currencyRate":"optional exchange rate","taxDate":"optional YYYY-MM-DD tax date","taxType":"optional tax type/code","knockOffs":"optional array for credit/debit note knock-off where AutoCount supports it","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"validate-ap-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-ap-invoice","payload":{"creditorCode":"400-S001","supplierInvoiceNo":"SUP-INV-1001","docDate":"2026-06-24","dueDate":"2026-07-24","ref":"API-REF-1001","currencyCode":"MYR","inclusiveTax":false,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","lines":[{"accountNo":"610-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"620-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"description":"AP document created through API","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-ap-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.000.004.001.validate-ap-invoice"},{"module":"AP","displayGroup":"AP","title":"Create an AP invoice.","commandType":"create-ap-invoice","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-invoice/create","summary":"Create an AP invoice.","notes":"Creates AP invoice through AutoCount SDK. The connector pre-checks creditorCode, AP journalType, detail count, and every GL posting account before SaveAPInvoice. Posting account order is: lines[].accountNo/top-level accountNo, AutoCount default purchase account, then recent AP invoice detail account for the same creditor. Send top-level project/projNo to apply one project to every line, or send line-level project/projNo for different projects per line. AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP. Use read-ap-outstanding-documents first when a knock-off needs docKey. For simple invoices, amount/accountNo still works. For multiple posting accounts, send lines and put accountNo on each line. AR/AP invoice/note posting account order is: lines[].accountNo/top-level accountNo, AutoCount default account only when needed, then safe recent same-party history where the connector has a proven read path.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","supplierInvoiceNo":"required supplier invoice number","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","dueDate":"optional YYYY-MM-DD due date","ref":"optional reference","currencyCode":"optional currency code such as MYR","inclusiveTax":"optional boolean","project":"optional top-level project fallback for all AP invoice detail lines","projNo":"project code alias","projectNo":"project code alias","department":"optional top-level department fallback","deptNo":"department code alias","lines":"recommended array of AP GL/account rows; each AP line must choose a valid posting account with accountNo / accNo / glAccount / postingAccountNo","accountNo":"required for simple one-line AP payload unless every line has accountNo; use a valid purchase/expense GL account","amount":"optional single-line amount; lines is preferred for multiple lines","_arApRule":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP.","description":"optional document description/narration","branchCode":"optional creditor/supplier branch code/name where the customer uses branches","attention":"optional attention/contact person","contact":"optional contact person alias for attention","currencyRate":"optional exchange rate","taxDate":"optional YYYY-MM-DD tax date","taxType":"optional tax type/code","knockOffs":"optional array for credit/debit note knock-off where AutoCount supports it","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"create-ap-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-ap-invoice","payload":{"creditorCode":"400-S001","supplierInvoiceNo":"SUP-INV-1001","docDate":"2026-06-24","dueDate":"2026-07-24","ref":"API-REF-1001","currencyCode":"MYR","inclusiveTax":false,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","lines":[{"accountNo":"610-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"620-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"description":"AP document created through API","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-ap-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.000.005.002.create-ap-invoice"},{"module":"AP","displayGroup":"AP","title":"Update AP invoice header/simple fields.","commandType":"update-ap-invoice","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-invoice/edit","summary":"Update AP invoice header/simple fields.","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. For AP invoice number changes: use docNo to find the existing AP invoice, newDocNo to change AutoCount DocNo, and supplierInvoiceNo/invoiceNo to change the supplier invoice number.","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","newDocNo":"optional new AutoCount document number; docNo remains the lookup key","supplierInvoiceNo":"optional supplier invoice number for AP invoice","supplierInvNo":"alias for supplierInvoiceNo on AP invoice updates","invoiceNo":"alias for supplierInvoiceNo on AP invoice updates"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"update-ap-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-ap-invoice","payload":{"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"}],"newDocNo":"API-000001-UPDATED","supplierInvoiceNo":"SUP-INV-UPDATED-001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-ap-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.000.006.003.update-ap-invoice"},{"module":"AP","displayGroup":"AP","title":"Guarded AP invoice void request.","commandType":"void-ap-invoice","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-invoice/void","summary":"Guarded AP invoice void request.","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"void-ap-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ap-invoice","payload":{"docNo":"API-000001","reason":"void/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-ap-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.000.007.004.void-ap-invoice"},{"module":"AP","displayGroup":"AP","title":"Guarded AP invoice delete request.","commandType":"delete-ap-invoice","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-invoice/delete","summary":"Guarded AP invoice delete request.","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"delete-ap-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ap-invoice","payload":{"docNo":"API-000001","reason":"remove/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-ap-invoice.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.000.008.005.delete-ap-invoice"},{"module":"AP","displayGroup":"AP","title":"List AP payments.","commandType":"list-ap-payments","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-payment/list","summary":"List AP payments.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"list-ap-payments-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ap-payments","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-ap-payments.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.001.000.000.list-ap-payments"},{"module":"AP","displayGroup":"AP","title":"Read AP account/detail lines across AP invoices, payments, refunds, credit notes, and debit notes.","commandType":"read-ap-detail-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap/list","summary":"Read AP account/detail lines across AP invoices, payments, refunds, credit notes, and debit notes.","notes":"","payloadSchema":{"creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ap-detail-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-detail-lines","payload":{"creditorCode":"400-S001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ap-detail-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.001.001.000.read-ap-detail-lines"},{"module":"AP","displayGroup":"AP","title":"Read AP payment detail/payment method lines only.","commandType":"read-ap-payment-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-payment/list","summary":"Read AP payment detail/payment method lines only.","notes":"","payloadSchema":{"creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ap-payment-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-payment-lines","payload":{"creditorCode":"400-S001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ap-payment-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.001.001.000.read-ap-payment-lines"},{"module":"AP","displayGroup":"AP","title":"Read AP refund detail/payment method lines only.","commandType":"read-ap-refund-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-refund/list","summary":"Read AP refund detail/payment method lines only.","notes":"","payloadSchema":{"creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ap-refund-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-refund-lines","payload":{"creditorCode":"400-S001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ap-refund-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.001.001.000.read-ap-refund-lines"},{"module":"AP","displayGroup":"AP","title":"Get one AP payment by document number.","commandType":"get-ap-payment","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-payment/get","summary":"Get one AP payment by document number.","notes":"","payloadSchema":{"docNo":"required AP payment document number"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-ap-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ap-payment","payload":{"docNo":"PV-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-ap-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.001.002.000.get-ap-payment"},{"module":"AP","displayGroup":"AP","title":"Validate an AP payment without saving. Supports one or many real supplier invoice knock-offs.","commandType":"validate-ap-payment","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-payment/validate","summary":"Validate an AP payment without saving. Supports one or many real supplier invoice knock-offs.","notes":"Real positive knock-off validation is proven for outstanding AP documents. The connector also accepts old PI aliases and normalizes them to PB. AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP. For payment against invoices use RI for AR and PB for AP. For refund against credit notes use RC/ARCN for AR and PC/APCN for AP. Friendly aliases are normalized by the connector where supported.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","amount":"required total payment/refund amount","knockOffs":"optional array of documents to allocate this payment/refund against; docKey is recommended","_arApRule":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","paymentMethod":"required or optional AutoCount Payment Method code such as CASH or MAYBANK","paymentBy":"optional payment type such as Cash, Cheque, Bank Transfer, Credit Card","chequeNo":"optional cheque/reference number","bankCharge":"optional bank charge amount","paymentAccountNo":"optional GL bank/cash account number","bankChargeAccountNo":"optional GL bank charge account number","creditCardApprovalCode":"optional credit-card approval code/reference","description":"optional payment/refund narration","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"validate-ap-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-ap-payment","payload":{"creditorCode":"400-S001","amount":100,"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0,"gainLossAmount":0,"withholdingTaxAmount":0}],"docDate":"2026-06-24","paymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-PAY-1001","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"","description":"AP payment/refund created through API","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-ap-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.001.004.001.validate-ap-payment"},{"module":"AP","displayGroup":"AP","title":"Create an AP deposit with a real payment detail and GL transaction.","commandType":"create-ap-deposit","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap/create","summary":"Create an AP deposit with a real payment detail and GL transaction.","notes":"Requires write access permission. Real save is tested against AutoCount APDepositCommand and verifies GLTrxID. AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP. Creates a real AutoCount deposit with one payment detail row and posts a GL transaction when saved.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","docDate":"required or optional YYYY-MM-DD document date","amount":"required deposit amount","paymentMethod":"optional AutoCount Payment Method code such as CASH or MAYBANK","_arApRule":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","depositPaymentMethod":"optional AutoCount deposit header payment method; defaults from paymentMethod","paymentBy":"optional payment type such as Cash, Cheque, Bank Transfer, Credit Card","chequeNo":"optional cheque/reference number","bankCharge":"optional bank charge amount","description":"optional deposit narration","note":"optional note","isSecurityDeposit":"optional boolean; true for security deposit where AutoCount account book supports it","project":"optional project code","department":"optional department code"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"create-ap-deposit-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-ap-deposit","payload":{"creditorCode":"400-S001","docDate":"2026-06-24","amount":100,"paymentMethod":"CASH","depositPaymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-DEP-1001","bankCharge":0,"description":"AP deposit created through API","note":"Deposit received before invoice","isSecurityDeposit":false,"project":"PRJAPI","department":"HQ"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-ap-deposit.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.001.005.002.create-ap-deposit"},{"module":"AP","displayGroup":"AP","title":"Create an AP payment. Supports one or many real supplier invoice knock-offs.","commandType":"create-ap-payment","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-payment/create","summary":"Create an AP payment. Supports one or many real supplier invoice knock-offs.","notes":"Requires write access permission. Real multi-invoice knock-off save is proven; PI aliases are normalized to PB. AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP. For payment against invoices use RI for AR and PB for AP. For refund against credit notes use RC/ARCN for AR and PC/APCN for AP. Friendly aliases are normalized by the connector where supported.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","docDate":"required or optional YYYY-MM-DD document date","amount":"required total payment/refund amount","knockOffs":"optional array of documents to allocate this payment/refund against; docKey is recommended","_arApRule":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","paymentMethod":"required or optional AutoCount Payment Method code such as CASH or MAYBANK","paymentBy":"optional payment type such as Cash, Cheque, Bank Transfer, Credit Card","chequeNo":"optional cheque/reference number","bankCharge":"optional bank charge amount","paymentAccountNo":"optional GL bank/cash account number","bankChargeAccountNo":"optional GL bank charge account number","creditCardApprovalCode":"optional credit-card approval code/reference","description":"optional payment/refund narration","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"create-ap-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-ap-payment","payload":{"creditorCode":"400-S001","docDate":"2026-06-24","amount":100,"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0,"gainLossAmount":0,"withholdingTaxAmount":0}],"paymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-PAY-1001","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"","description":"AP payment/refund created through API","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-ap-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.001.005.002.create-ap-payment"},{"module":"AP","displayGroup":"AP","title":"Update AP payment header/simple fields.","commandType":"update-ap-payment","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-payment/edit","summary":"Update AP payment header/simple fields.","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.","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"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"update-ap-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-ap-payment","payload":{"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}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-ap-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.001.006.003.update-ap-payment"},{"module":"AP","displayGroup":"AP","title":"Guarded AP payment void request.","commandType":"void-ap-payment","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-payment/void","summary":"Guarded AP payment void request.","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"void-ap-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ap-payment","payload":{"docNo":"PV-000001","reason":"void/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-ap-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.001.007.004.void-ap-payment"},{"module":"AP","displayGroup":"AP","title":"Guarded AP payment delete request.","commandType":"delete-ap-payment","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-payment/delete","summary":"Guarded AP payment delete request.","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"delete-ap-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ap-payment","payload":{"docNo":"PV-000001","reason":"remove/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-ap-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.001.008.005.delete-ap-payment"},{"module":"AP","displayGroup":"AP","title":"List AP refunds.","commandType":"list-ap-refunds","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-refund/list","summary":"List AP refunds.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"list-ap-refunds-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ap-refunds","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-ap-refunds.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.002.000.000.list-ap-refunds"},{"module":"AP","displayGroup":"AP","title":"Get one AP refund by document number.","commandType":"get-ap-refund","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-refund/get","summary":"Get one AP refund by document number.","notes":"","payloadSchema":{"docNo":"required AP refund document number"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-ap-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ap-refund","payload":{"docNo":"PV-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-ap-refund.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.002.002.000.get-ap-refund"},{"module":"AP","displayGroup":"AP","title":"Validate an AP refund without saving. Refund knocks off AP credit notes, not supplier invoices. Use docType PC or friendly CN alias; docKey is recommended.","commandType":"validate-ap-refund","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-refund/validate","summary":"Validate an AP refund without saving. Refund knocks off AP credit notes, not supplier invoices. Use docType PC or friendly CN alias; docKey is recommended.","notes":"Real AP refund knock-off save is proven against AP credit notes. CN/CreditNote aliases are normalized to PC. AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP. For payment against invoices use RI for AR and PB for AP. For refund against credit notes use RC/ARCN for AR and PC/APCN for AP. Friendly aliases are normalized by the connector where supported.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","amount":"required total payment/refund amount","knockOffs":"optional array of documents to allocate this payment/refund against; docKey is recommended","_arApRule":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","paymentMethod":"required or optional AutoCount Payment Method code such as CASH or MAYBANK","paymentBy":"optional payment type such as Cash, Cheque, Bank Transfer, Credit Card","chequeNo":"optional cheque/reference number","bankCharge":"optional bank charge amount","paymentAccountNo":"optional GL bank/cash account number","bankChargeAccountNo":"optional GL bank charge account number","creditCardApprovalCode":"optional credit-card approval code/reference","description":"optional payment/refund narration","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"validate-ap-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-ap-refund","payload":{"creditorCode":"400-S001","amount":100,"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0,"gainLossAmount":0,"withholdingTaxAmount":0}],"docDate":"2026-06-24","paymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-PAY-1001","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"","description":"AP payment/refund created through API","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-ap-refund.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.002.004.001.validate-ap-refund"},{"module":"AP","displayGroup":"AP","title":"Create an AP refund. Refund knocks off AP credit notes, not supplier invoices. Use docType PC or friendly CN alias; docKey is recommended.","commandType":"create-ap-refund","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-refund/create","summary":"Create an AP refund. Refund knocks off AP credit notes, not supplier invoices. Use docType PC or friendly CN alias; docKey is recommended.","notes":"Requires write access permission. Real AP refund knock-off save is proven against AP credit notes; CN aliases are normalized to PC. AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP. For payment against invoices use RI for AR and PB for AP. For refund against credit notes use RC/ARCN for AR and PC/APCN for AP. Friendly aliases are normalized by the connector where supported.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","docDate":"required or optional YYYY-MM-DD document date","amount":"required total payment/refund amount","knockOffs":"optional array of documents to allocate this payment/refund against; docKey is recommended","_arApRule":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","paymentMethod":"required or optional AutoCount Payment Method code such as CASH or MAYBANK","paymentBy":"optional payment type such as Cash, Cheque, Bank Transfer, Credit Card","chequeNo":"optional cheque/reference number","bankCharge":"optional bank charge amount","paymentAccountNo":"optional GL bank/cash account number","bankChargeAccountNo":"optional GL bank charge account number","creditCardApprovalCode":"optional credit-card approval code/reference","description":"optional payment/refund narration","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"create-ap-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-ap-refund","payload":{"creditorCode":"400-S001","docDate":"2026-06-24","amount":100,"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0,"gainLossAmount":0,"withholdingTaxAmount":0}],"paymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-PAY-1001","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"","description":"AP payment/refund created through API","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-ap-refund.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.002.005.002.create-ap-refund"},{"module":"AP","displayGroup":"AP","title":"Update AP refund header/simple fields.","commandType":"update-ap-refund","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-refund/edit","summary":"Update AP refund header/simple fields.","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.","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"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"update-ap-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-ap-refund","payload":{"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}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-ap-refund.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.002.006.003.update-ap-refund"},{"module":"AP","displayGroup":"AP","title":"Guarded AP refund void request.","commandType":"void-ap-refund","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-refund/void","summary":"Guarded AP refund void request.","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"void-ap-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ap-refund","payload":{"docNo":"PV-000001","reason":"void/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-ap-refund.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.002.007.004.void-ap-refund"},{"module":"AP","displayGroup":"AP","title":"Guarded AP refund delete request.","commandType":"delete-ap-refund","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-refund/delete","summary":"Guarded AP refund delete request.","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"delete-ap-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ap-refund","payload":{"docNo":"PV-000001","reason":"remove/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-ap-refund.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.002.008.005.delete-ap-refund"},{"module":"AP","displayGroup":"AP","title":"List AP credit notes.","commandType":"list-ap-credit-notes","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-credit-note/list","summary":"List AP credit notes.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"list-ap-credit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ap-credit-notes","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-ap-credit-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.003.000.000.list-ap-credit-notes"},{"module":"AP","displayGroup":"AP","title":"Read AP credit note detail/account lines only.","commandType":"read-ap-credit-note-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-credit-note/list","summary":"Read AP credit note detail/account lines only.","notes":"","payloadSchema":{"creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ap-credit-note-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-credit-note-lines","payload":{"creditorCode":"400-S001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ap-credit-note-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.003.001.000.read-ap-credit-note-lines"},{"module":"AP","displayGroup":"AP","title":"Get one AP credit note by document number.","commandType":"get-ap-credit-note","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-credit-note/get","summary":"Get one AP credit note by document number.","notes":"","payloadSchema":{"docNo":"required AP credit note document number"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-ap-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ap-credit-note","payload":{"docNo":"PCN-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-ap-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.003.002.000.get-ap-credit-note"},{"module":"AP","displayGroup":"AP","title":"Validate an AP credit note without saving. Supports one or many real supplier invoice knock-offs.","commandType":"validate-ap-credit-note","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-credit-note/validate","summary":"Validate an AP credit note without saving. Supports one or many real supplier invoice knock-offs.","notes":"Real positive knock-off validation is proven for outstanding AP documents. AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP. Use read-ap-outstanding-documents first when a knock-off needs docKey. For simple invoices, amount/accountNo still works. For multiple posting accounts, send lines and put accountNo on each line. AR/AP invoice/note posting account order is: lines[].accountNo/top-level accountNo, AutoCount default account only when needed, then safe recent same-party history where the connector has a proven read path.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","supplierCreditNoteNo":"supplier credit note number","amount":"optional single-line amount; lines is preferred for multiple lines","knockOffs":"optional array for credit/debit note knock-off where AutoCount supports it","_arApRule":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","dueDate":"optional YYYY-MM-DD due date","description":"optional document description/narration","ref":"optional reference","branchCode":"optional creditor/supplier branch code/name where the customer uses branches","attention":"optional attention/contact person","contact":"optional contact person alias for attention","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean","taxDate":"optional YYYY-MM-DD tax date","accountNo":"required for simple one-line AP payload unless every line has accountNo; use a valid purchase/expense GL account","taxType":"optional tax type/code","lines":"recommended array of AP GL/account rows; each AP line must choose a valid posting account with accountNo / accNo / glAccount / postingAccountNo","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"validate-ap-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-ap-credit-note","payload":{"creditorCode":"400-S001","supplierCreditNoteNo":"SCN-001","amount":100,"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"docDate":"2026-06-24","dueDate":"2026-07-24","description":"AP document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"610-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"620-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-ap-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.003.004.001.validate-ap-credit-note"},{"module":"AP","displayGroup":"AP","title":"Create an AP credit note. Supports one or many real supplier invoice knock-offs.","commandType":"create-ap-credit-note","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-credit-note/create","summary":"Create an AP credit note. Supports one or many real supplier invoice knock-offs.","notes":"Requires write access permission. Real knock-off validation is proven; saving should still be tested per account book. AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP. Use read-ap-outstanding-documents first when a knock-off needs docKey. For simple invoices, amount/accountNo still works. For multiple posting accounts, send lines and put accountNo on each line. AR/AP invoice/note posting account order is: lines[].accountNo/top-level accountNo, AutoCount default account only when needed, then safe recent same-party history where the connector has a proven read path.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","supplierCreditNoteNo":"supplier credit note number","docDate":"required or optional YYYY-MM-DD document date","amount":"optional single-line amount; lines is preferred for multiple lines","knockOffs":"optional array for credit/debit note knock-off where AutoCount supports it","_arApRule":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","dueDate":"optional YYYY-MM-DD due date","description":"optional document description/narration","ref":"optional reference","branchCode":"optional creditor/supplier branch code/name where the customer uses branches","attention":"optional attention/contact person","contact":"optional contact person alias for attention","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean","taxDate":"optional YYYY-MM-DD tax date","accountNo":"required for simple one-line AP payload unless every line has accountNo; use a valid purchase/expense GL account","taxType":"optional tax type/code","lines":"recommended array of AP GL/account rows; each AP line must choose a valid posting account with accountNo / accNo / glAccount / postingAccountNo","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"create-ap-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-ap-credit-note","payload":{"creditorCode":"400-S001","supplierCreditNoteNo":"SCN-001","docDate":"2026-06-24","amount":100,"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"dueDate":"2026-07-24","description":"AP document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"610-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"620-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-ap-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.003.005.002.create-ap-credit-note"},{"module":"AP","displayGroup":"AP","title":"Update AP credit note header/simple fields.","commandType":"update-ap-credit-note","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-credit-note/edit","summary":"Update AP credit note header/simple fields.","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.","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"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"update-ap-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-ap-credit-note","payload":{"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"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-ap-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.003.006.003.update-ap-credit-note"},{"module":"AP","displayGroup":"AP","title":"Guarded AP credit note void request.","commandType":"void-ap-credit-note","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-credit-note/void","summary":"Guarded AP credit note void request.","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"void-ap-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ap-credit-note","payload":{"docNo":"PCN-000001","reason":"void/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-ap-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.003.007.004.void-ap-credit-note"},{"module":"AP","displayGroup":"AP","title":"Guarded AP credit note delete request.","commandType":"delete-ap-credit-note","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-credit-note/delete","summary":"Guarded AP credit note delete request.","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"delete-ap-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ap-credit-note","payload":{"docNo":"PCN-000001","reason":"remove/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-ap-credit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.003.008.005.delete-ap-credit-note"},{"module":"AP","displayGroup":"AP","title":"List AP debit notes.","commandType":"list-ap-debit-notes","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-debit-note/list","summary":"List AP debit notes.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"list-ap-debit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ap-debit-notes","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-ap-debit-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.004.000.000.list-ap-debit-notes"},{"module":"AP","displayGroup":"AP","title":"Read AP debit note detail/account lines only.","commandType":"read-ap-debit-note-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-debit-note/list","summary":"Read AP debit note detail/account lines only.","notes":"","payloadSchema":{"creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ap-debit-note-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-debit-note-lines","payload":{"creditorCode":"400-S001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ap-debit-note-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.004.001.000.read-ap-debit-note-lines"},{"module":"AP","displayGroup":"AP","title":"Get one AP debit note by document number.","commandType":"get-ap-debit-note","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-debit-note/get","summary":"Get one AP debit note by document number.","notes":"","payloadSchema":{"docNo":"required AP debit note document number"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-ap-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ap-debit-note","payload":{"docNo":"PDN-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-ap-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.004.002.000.get-ap-debit-note"},{"module":"AP","displayGroup":"AP","title":"Validate an AP debit note without saving.","commandType":"validate-ap-debit-note","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-debit-note/validate","summary":"Validate an AP debit note without saving.","notes":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP. Use read-ap-outstanding-documents first when a knock-off needs docKey. For simple invoices, amount/accountNo still works. For multiple posting accounts, send lines and put accountNo on each line. AR/AP invoice/note posting account order is: lines[].accountNo/top-level accountNo, AutoCount default account only when needed, then safe recent same-party history where the connector has a proven read path.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","supplierDebitNoteNo":"supplier debit note number optional","amount":"optional single-line amount; lines is preferred for multiple lines","_arApRule":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","dueDate":"optional YYYY-MM-DD due date","description":"optional document description/narration","ref":"optional reference","branchCode":"optional creditor/supplier branch code/name where the customer uses branches","attention":"optional attention/contact person","contact":"optional contact person alias for attention","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean","taxDate":"optional YYYY-MM-DD tax date","accountNo":"required for simple one-line AP payload unless every line has accountNo; use a valid purchase/expense GL account","taxType":"optional tax type/code","lines":"recommended array of AP GL/account rows; each AP line must choose a valid posting account with accountNo / accNo / glAccount / postingAccountNo","knockOffs":"optional array for credit/debit note knock-off where AutoCount supports it","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"validate-ap-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-ap-debit-note","payload":{"creditorCode":"400-S001","supplierDebitNoteNo":"SDN-001","amount":100,"docDate":"2026-06-24","dueDate":"2026-07-24","description":"AP document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"610-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"620-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-ap-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.004.004.001.validate-ap-debit-note"},{"module":"AP","displayGroup":"AP","title":"Create an AP debit note.","commandType":"create-ap-debit-note","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-debit-note/create","summary":"Create an AP debit note.","notes":"Creates AP debit note through AutoCount SDK. AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP. Use read-ap-outstanding-documents first when a knock-off needs docKey. For simple invoices, amount/accountNo still works. For multiple posting accounts, send lines and put accountNo on each line. AR/AP invoice/note posting account order is: lines[].accountNo/top-level accountNo, AutoCount default account only when needed, then safe recent same-party history where the connector has a proven read path.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","supplierDebitNoteNo":"supplier debit note number optional","docDate":"required or optional YYYY-MM-DD document date","amount":"optional single-line amount; lines is preferred for multiple lines","_arApRule":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","dueDate":"optional YYYY-MM-DD due date","description":"optional document description/narration","ref":"optional reference","branchCode":"optional creditor/supplier branch code/name where the customer uses branches","attention":"optional attention/contact person","contact":"optional contact person alias for attention","currencyCode":"optional currency code such as MYR","currencyRate":"optional exchange rate","inclusiveTax":"optional boolean","taxDate":"optional YYYY-MM-DD tax date","accountNo":"required for simple one-line AP payload unless every line has accountNo; use a valid purchase/expense GL account","taxType":"optional tax type/code","lines":"recommended array of AP GL/account rows; each AP line must choose a valid posting account with accountNo / accNo / glAccount / postingAccountNo","knockOffs":"optional array for credit/debit note knock-off where AutoCount supports it","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"create-ap-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-ap-debit-note","payload":{"creditorCode":"400-S001","supplierDebitNoteNo":"SDN-001","docDate":"2026-06-24","amount":100,"dueDate":"2026-07-24","description":"AP document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"610-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"620-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-ap-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.004.005.002.create-ap-debit-note"},{"module":"AP","displayGroup":"AP","title":"Update AP debit note header/simple fields.","commandType":"update-ap-debit-note","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-debit-note/edit","summary":"Update AP debit note header/simple fields.","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.","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"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"update-ap-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-ap-debit-note","payload":{"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"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-ap-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.004.006.003.update-ap-debit-note"},{"module":"AP","displayGroup":"AP","title":"Guarded AP debit note void request.","commandType":"void-ap-debit-note","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-debit-note/void","summary":"Guarded AP debit note void request.","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"void-ap-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ap-debit-note","payload":{"docNo":"PDN-000001","reason":"void/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-ap-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.004.007.004.void-ap-debit-note"},{"module":"AP","displayGroup":"AP","title":"Guarded AP debit note delete request.","commandType":"delete-ap-debit-note","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-debit-note/delete","summary":"Guarded AP debit note delete request.","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"delete-ap-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ap-debit-note","payload":{"docNo":"PDN-000001","reason":"remove/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-ap-debit-note.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.004.008.005.delete-ap-debit-note"},{"module":"AP","displayGroup":"AP","title":"List AP deposits.","commandType":"list-ap-deposits","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap/list","summary":"List AP deposits.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"list-ap-deposits-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ap-deposits","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-ap-deposits.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.999.000.000.list-ap-deposits"},{"module":"AP","displayGroup":"AP","title":"Legacy AP outstanding lookup. Prefer read-ap-outstanding-documents for docKey-based knock-off.","commandType":"read-ap-outstanding","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-outstanding/list","summary":"Legacy AP outstanding lookup. Prefer read-ap-outstanding-documents for docKey-based knock-off.","notes":"","payloadSchema":{"creditorCode":"optional creditor/supplier code","maxRows":"optional row limit; maxRows: 0 means return all rows"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-ap-outstanding-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-outstanding","payload":{"creditorCode":"400-S001","maxRows":0}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-ap-outstanding.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.999.001.000.read-ap-outstanding"},{"module":"AP","displayGroup":"AP","title":"List creditors/suppliers.","commandType":"read-creditors","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/creditor-supplier/list","summary":"List creditors/suppliers.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"read-creditors-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-creditors","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-creditors.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.999.001.000.read-creditors"},{"module":"AP","displayGroup":"AP","title":"Get one AP deposit by document number.","commandType":"get-ap-deposit","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap/get","summary":"Get one AP deposit by document number.","notes":"","payloadSchema":{"docNo":"required AP deposit document number"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-ap-deposit-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ap-deposit","payload":{"docNo":"PV-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-ap-deposit.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.999.002.000.get-ap-deposit"},{"module":"AP","displayGroup":"AP","title":"Read one creditor/supplier with all public SDK fields and child tables.","commandType":"get-creditor-detail","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/creditor-supplier/get","summary":"Read one creditor/supplier with all public SDK fields and child tables.","notes":"Uses AutoCount.ARAP.Creditor.CreditorDataAccess.GetCreditor. Returns fields and child tables such as CreditorTable, BranchTable, ContactTable, TaxExemptionTable, and GLMastTable when available.","payloadSchema":{"accNo":"required creditor/supplier code; creditorCode or supplierCode also accepted","maxTableRows":"optional child-table row limit; maxTableRows: 0 means return all child-table rows","includeTableData":"optional boolean, default true"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"get-creditor-detail-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-creditor-detail","payload":{"accNo":"400-S001","maxTableRows":0}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-creditor-detail.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.999.002.000.get-creditor-detail"},{"module":"AP","displayGroup":"AP","title":"Validate an AP deposit without saving.","commandType":"validate-ap-deposit","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap/validate","summary":"Validate an AP deposit without saving.","notes":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP. Creates a real AutoCount deposit with one payment detail row and posts a GL transaction when saved.","payloadSchema":{"creditorCode":"required AutoCount creditor/supplier code","docDate":"required or optional YYYY-MM-DD document date","amount":"required deposit amount","paymentMethod":"optional AutoCount Payment Method code such as CASH or MAYBANK","_arApRule":"AP = supplier/creditor. Use creditorCode only for AP commands; do not send debtorCode for AP.","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","depositPaymentMethod":"optional AutoCount deposit header payment method; defaults from paymentMethod","paymentBy":"optional payment type such as Cash, Cheque, Bank Transfer, Credit Card","chequeNo":"optional cheque/reference number","bankCharge":"optional bank charge amount","description":"optional deposit narration","note":"optional note","isSecurityDeposit":"optional boolean; true for security deposit where AutoCount account book supports it","project":"optional project code","department":"optional department code"},"fieldReference":{"header":{"debtorCode":"AR customer/debtor code","creditorCode":"AP supplier/creditor code","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"},"knockOffs":{"docType":"AutoCount knock-off document type, for example RI, PB, RC, PC","displayDocType":"human document type, for example IV or PI","docKey":"AutoCount outstanding document key, recommended","docNo":"document number","amount":"allocation amount","discountAmount":"knock-off discount amount","taxAdjustment":"tax adjustment amount","gainLossAmount":"foreign exchange gain/loss amount where supported","withholdingTaxAmount":"withholding tax amount where supported"}},"exampleRequest":{"commandId":"validate-ap-deposit-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-ap-deposit","payload":{"creditorCode":"400-S001","docDate":"2026-06-24","amount":100,"paymentMethod":"CASH","depositPaymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-DEP-1001","bankCharge":0,"description":"AP deposit created through API","note":"Deposit received before invoice","isSecurityDeposit":false,"project":"PRJAPI","department":"HQ"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-ap-deposit.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"004.999.004.001.validate-ap-deposit"},{"module":"Stock","displayGroup":"Stock","title":"List Stock Item Brand Maintenance records.","commandType":"list-stock-item-brands","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/list","summary":"List Stock Item Brand Maintenance records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-item-brands-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-item-brands","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-item-brands.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.000.000.list-stock-item-brands"},{"module":"Stock","displayGroup":"Stock","title":"List Stock Item Category Maintenance records.","commandType":"list-stock-item-categories","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/list","summary":"List Stock Item Category Maintenance records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-item-categories-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-item-categories","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-item-categories.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.000.000.list-stock-item-categories"},{"module":"Stock","displayGroup":"Stock","title":"List Stock Item Group Maintenance records.","commandType":"list-stock-item-groups","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/list","summary":"List Stock Item Group Maintenance records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-item-groups-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-item-groups","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-item-groups.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.000.000.list-stock-item-groups"},{"module":"Stock","displayGroup":"Stock","title":"List Stock Item Type Maintenance records.","commandType":"list-stock-item-types","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/list","summary":"List Stock Item Type Maintenance records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-item-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-item-types","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-item-types.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.000.000.list-stock-item-types"},{"module":"Stock","displayGroup":"Stock","title":"List stock update cost records.","commandType":"list-stock-update-costs","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-update-cost/list","summary":"List stock update cost records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-update-costs-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-update-costs","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-update-costs.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.000.000.list-stock-update-costs"},{"module":"Stock","displayGroup":"Stock","title":"List stock items quickly with limit/search filters.","commandType":"read-items","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-item/list","summary":"List stock items quickly with limit/search filters.","notes":"Bounded by default so AI tools do not block the connector queue with full item exports. Use read-items-all/export-items only when a full item master export is required.","payloadSchema":{"limit":"optional row limit; default 100, max 500","search":"optional keyword matched against item code/description","itemCode":"optional item code contains search","itemGroup":"optional exact item group","itemType":"optional exact item type","activeOnly":"optional boolean"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-items-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-items","payload":{"limit":50,"search":"V274","activeOnly":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-items.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.001.000.read-items"},{"module":"Stock","displayGroup":"Stock","title":"Explicit full stock item export.","commandType":"read-items-all","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-item/list","summary":"Explicit full stock item export.","notes":"Can be slow on large account books. Prefer read-items with limit/search for normal AI lookup.","payloadSchema":{"search":"optional keyword filter","itemGroup":"optional exact item group","itemType":"optional exact item type","activeOnly":"optional boolean"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-items-all-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-items-all","payload":{"activeOnly":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-items-all.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.001.000.read-items-all"},{"module":"Stock","displayGroup":"Stock","title":"List stock locations.","commandType":"read-locations","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/list","summary":"List stock locations.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-locations-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-locations","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-locations.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.001.000.read-locations"},{"module":"Stock","displayGroup":"Stock","title":"Read stock transaction lines together, or filter with document.","commandType":"read-stock-detail-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/list","summary":"Read stock transaction lines together, or filter with document.","notes":"","payloadSchema":{"document":"optional: stock-adjustment | stock-receive | stock-issue | stock-transfer | stock-uom-conversion | stock-take | stock-write-off | stock-update-cost","itemCode":"optional","docNo":"optional","location":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-stock-detail-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-detail-lines","payload":{"document":"stock-adjustment","itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-stock-detail-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.001.000.read-stock-detail-lines"},{"module":"Stock","displayGroup":"Stock","title":"Read stock movement.","commandType":"read-stock-movement","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-movement/list","summary":"Read stock movement.","notes":"","payloadSchema":{"itemCode":"optional item code","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-stock-movement-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-movement","payload":{"itemCode":"ITEM001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-stock-movement.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.001.000.read-stock-movement"},{"module":"Stock","displayGroup":"Stock","title":"Read stock update cost detail lines only.","commandType":"read-stock-update-cost-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-update-cost/list","summary":"Read stock update cost detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-stock-update-cost-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-update-cost-lines","payload":{"itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-stock-update-cost-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.001.000.read-stock-update-cost-lines"},{"module":"Stock","displayGroup":"Stock","title":"Get one Stock Item Brand Maintenance record.","commandType":"get-stock-item-brand","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/get","summary":"Get one Stock Item Brand Maintenance record.","notes":"","payloadSchema":{"code":"required item brand code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-item-brand-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-item-brand","payload":{"code":"BRAND1"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-item-brand.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.002.000.get-stock-item-brand"},{"module":"Stock","displayGroup":"Stock","title":"Get one Stock Item Category Maintenance record.","commandType":"get-stock-item-category","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/get","summary":"Get one Stock Item Category Maintenance record.","notes":"","payloadSchema":{"code":"required item category code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-item-category-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-item-category","payload":{"code":"CAT1"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-item-category.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.002.000.get-stock-item-category"},{"module":"Stock","displayGroup":"Stock","title":"Read one stock item with all public SDK fields and child tables.","commandType":"get-stock-item-detail","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-item/get","summary":"Read one stock item with all public SDK fields and child tables.","notes":"Uses AutoCount.Stock.Item.ItemDataAccess.LoadItem(View). Returns fields and child tables such as ItemUomTable, ItemPriceBook, ItemCustomerPrice, ItemSupplierPrice, ItemOpeningBalance, ItemBOMTable, ItemBatchTable, and sub-code/replacement/ingredient tables when available. If maxTableRows: 0 is requested without confirmFullDetail: true, the connector returns a bounded result with fullDetailBlocked so AI/customer calls do not hang accidentally.","payloadSchema":{"itemCode":"required stock item code","maxTableRows":"optional child-table row limit; maxTableRows: 0 is guarded for stock item detail unless confirmFullDetail: true is sent","confirmFullDetail":"optional boolean; required with maxTableRows: 0 to return every child-table row","includeTableData":"optional boolean, default true"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-item-detail-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-item-detail","payload":{"itemCode":"ITEM001","maxTableRows":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-item-detail.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.002.000.get-stock-item-detail"},{"module":"Stock","displayGroup":"Stock","title":"Get one Stock Item Group Maintenance record.","commandType":"get-stock-item-group","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/get","summary":"Get one Stock Item Group Maintenance record.","notes":"","payloadSchema":{"code":"required item group code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-item-group-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-item-group","payload":{"code":"FG"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-item-group.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.002.000.get-stock-item-group"},{"module":"Stock","displayGroup":"Stock","title":"Get one Stock Item Type Maintenance record.","commandType":"get-stock-item-type","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/get","summary":"Get one Stock Item Type Maintenance record.","notes":"","payloadSchema":{"code":"required item type code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-item-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-item-type","payload":{"code":"RAW"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-item-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.002.000.get-stock-item-type"},{"module":"Stock","displayGroup":"Stock","title":"Get one stock update cost by document/code.","commandType":"get-stock-update-cost","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-update-cost/get","summary":"Get one stock update cost by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-update-cost-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-update-cost","payload":{"docNo":"SUC-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-update-cost.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.002.000.get-stock-update-cost"},{"module":"Stock","displayGroup":"Stock","title":"Validate stock update cost without saving.","commandType":"validate-stock-update-cost","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-update-cost/validate","summary":"Validate stock update cost without saving.","notes":"Validation only; does not save. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"items":"optional alias for lines","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","lines":"required array of stock item rows; items is also accepted as a compatibility alias","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-stock-update-cost-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-stock-update-cost","payload":{"items":[{"itemCode":"ITEM001","qty":1}],"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-stock-update-cost.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.004.001.validate-stock-update-cost"},{"module":"Stock","displayGroup":"Stock","title":"Create a Stock Item Brand Maintenance record.","commandType":"create-stock-item-brand","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/create","summary":"Create a Stock Item Brand Maintenance record.","notes":"Uses AutoCount stock item brand maintenance SDK where available.","payloadSchema":{"code":"required item brand code","description":"required description"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-item-brand-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-item-brand","payload":{"code":"BRAND1","description":"Brand 1"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-item-brand.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.005.002.create-stock-item-brand"},{"module":"Stock","displayGroup":"Stock","title":"Create a Stock Item Category Maintenance record.","commandType":"create-stock-item-category","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/create","summary":"Create a Stock Item Category Maintenance record.","notes":"Uses AutoCount stock item category maintenance SDK where available.","payloadSchema":{"code":"required item category code","description":"required description"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-item-category-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-item-category","payload":{"code":"CAT1","description":"Category 1"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-item-category.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.005.002.create-stock-item-category"},{"module":"Stock","displayGroup":"Stock","title":"Create a Stock Item Group Maintenance record.","commandType":"create-stock-item-group","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/create","summary":"Create a Stock Item Group Maintenance record.","notes":"Uses AutoCount stock item group maintenance SDK where available.","payloadSchema":{"code":"required item group code","description":"required description"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-item-group-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-item-group","payload":{"code":"FG","description":"Finished Goods"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-item-group.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.005.002.create-stock-item-group"},{"module":"Stock","displayGroup":"Stock","title":"Create a Stock Item Type Maintenance record.","commandType":"create-stock-item-type","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/create","summary":"Create a Stock Item Type Maintenance record.","notes":"Uses AutoCount stock item type maintenance SDK where available.","payloadSchema":{"code":"required item type code","description":"required description"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-item-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-item-type","payload":{"code":"RAW","description":"Raw Material"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-item-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.005.002.create-stock-item-type"},{"module":"Stock","displayGroup":"Stock","title":"Create stock update cost document.","commandType":"create-stock-update-cost","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-update-cost/create","summary":"Create stock update cost document.","notes":"Creates one or many stock update-cost detail lines through AutoCount stock document logic. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","lines":"required array of stock item rows; items is also accepted as a compatibility alias","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-update-cost-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-update-cost","payload":{"docDate":"2026-06-24","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-update-cost.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.005.002.create-stock-update-cost"},{"module":"Stock","displayGroup":"Stock","title":"Update a Stock Item Brand Maintenance record.","commandType":"update-stock-item-brand","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/edit","summary":"Update a Stock Item Brand Maintenance record.","notes":"Uses AutoCount stock item brand maintenance SDK where available.","payloadSchema":{"code":"required item brand code","description":"description to update"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-item-brand-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-item-brand","payload":{"code":"BRAND1","description":"Brand 1"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-item-brand.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.006.003.update-stock-item-brand"},{"module":"Stock","displayGroup":"Stock","title":"Update a Stock Item Category Maintenance record.","commandType":"update-stock-item-category","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/edit","summary":"Update a Stock Item Category Maintenance record.","notes":"Uses AutoCount stock item category maintenance SDK where available.","payloadSchema":{"code":"required item category code","description":"description to update"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-item-category-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-item-category","payload":{"code":"CAT1","description":"Category 1"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-item-category.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.006.003.update-stock-item-category"},{"module":"Stock","displayGroup":"Stock","title":"Update a Stock Item Group Maintenance record.","commandType":"update-stock-item-group","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/edit","summary":"Update a Stock Item Group Maintenance record.","notes":"Uses AutoCount stock item group maintenance SDK where available.","payloadSchema":{"code":"required item group code","description":"description to update"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-item-group-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-item-group","payload":{"code":"FG","description":"Finished Goods"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-item-group.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.006.003.update-stock-item-group"},{"module":"Stock","displayGroup":"Stock","title":"Update a Stock Item Type Maintenance record.","commandType":"update-stock-item-type","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/edit","summary":"Update a Stock Item Type Maintenance record.","notes":"Uses AutoCount stock item type maintenance SDK where available.","payloadSchema":{"code":"required item type code","description":"description to update"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-item-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-item-type","payload":{"code":"RAW","description":"Raw Material"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-item-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.006.003.update-stock-item-type"},{"module":"Stock","displayGroup":"Stock","title":"Edit stock update cost header fields and detail lines.","commandType":"update-stock-update-cost","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-update-cost/edit","summary":"Edit stock update cost header fields and detail lines.","notes":"Uses AutoCount SDK EditDetail/AddDetail/DeleteDetail/ClearDetails + Save. Supported line fields include itemCode, qty, uom, location, batchNo, unitCost, oldCost, newCost, fromQty, toQty, fromUom, toUom, itemCost, rate, description, projNo, and deptNo where the document type exposes them. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","detailMode":"optional: update | append | delete | replace","lines":"required array of stock item rows; items is also accepted as a compatibility alias","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-update-cost-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-update-cost","payload":{"docNo":"STK-000001","description":"Stock document created through API","detailMode":"update","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"reason":"API stock operation","docDate":"2026-06-24","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-update-cost.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.006.003.update-stock-update-cost"},{"module":"Stock","displayGroup":"Stock","title":"Void/cancel stock update cost.","commandType":"void-stock-update-cost","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-update-cost/void","summary":"Void/cancel stock update cost.","notes":"Uses AutoCount SDK CancelDocument.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-stock-update-cost-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-update-cost","payload":{"docNo":"SUC-000001","reason":"void/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-stock-update-cost.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.007.004.void-stock-update-cost"},{"module":"Stock","displayGroup":"Stock","title":"Delete stock update cost.","commandType":"delete-stock-update-cost","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-update-cost/delete","summary":"Delete stock update cost.","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-stock-update-cost-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-update-cost","payload":{"docNo":"SUC-000001","reason":"remove/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-stock-update-cost.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.008.005.delete-stock-update-cost"},{"module":"Stock","displayGroup":"Stock","title":"Alias for read-items-all explicit full stock item export.","commandType":"export-items","mode":"read","operation":"read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/export-items","summary":"Alias for read-items-all explicit full stock item export.","notes":"Use only for export/sync jobs, not repeated quick lookups.","payloadSchema":{"activeOnly":"optional boolean"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"export-items-001","connectorId":"customer-main","companyId":"macsofttest","type":"export-items","payload":{"activeOnly":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to export-items.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.000.999.999.export-items"},{"module":"Stock","displayGroup":"Stock","title":"Inquire stock balance by item/location using AutoCount stock balance by location logic.","commandType":"stock-balance","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-balance/stock-balance","summary":"Inquire stock balance by item/location using AutoCount stock balance by location logic.","notes":"Returns rows from the first non-empty AutoCount result table plus table summaries. Use this when a customer asks stock quantity by location.","payloadSchema":{"itemCode":"optional stock item code","location":"optional stock location code","includeZeroBalance":"optional true/false","includeInactiveItem":"optional true/false","maxRows":"optional row limit, default 500"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"stock-balance-001","connectorId":"customer-main","companyId":"macsofttest","type":"stock-balance","payload":{"itemCode":"ITEM001","location":"HQ","maxRows":100}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to stock-balance.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.001.003.000.stock-balance"},{"module":"Stock","displayGroup":"Stock","title":"List stock adjustment records.","commandType":"list-stock-adjustments","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-adjustment/list","summary":"List stock adjustment records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-adjustments-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-adjustments","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-adjustments.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.002.000.000.list-stock-adjustments"},{"module":"Stock","displayGroup":"Stock","title":"Read stock adjustment detail lines only.","commandType":"read-stock-adjustment-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-adjustment/list","summary":"Read stock adjustment detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","docNo":"optional","location":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-stock-adjustment-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-adjustment-lines","payload":{"itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-stock-adjustment-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.002.001.000.read-stock-adjustment-lines"},{"module":"Stock","displayGroup":"Stock","title":"Get one stock adjustment by document/code.","commandType":"get-stock-adjustment","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-adjustment/get","summary":"Get one stock adjustment by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-adjustment-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-adjustment","payload":{"docNo":"SA-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-adjustment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.002.002.000.get-stock-adjustment"},{"module":"Stock","displayGroup":"Stock","title":"Validate stock adjustment without saving.","commandType":"validate-stock-adjustment","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-adjustment/validate","summary":"Validate stock adjustment without saving.","notes":"Validation only; does not save. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"items":"optional alias for lines","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","lines":"required array of stock item rows; items is also accepted as a compatibility alias","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-stock-adjustment-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-stock-adjustment","payload":{"items":[{"itemCode":"ITEM001","qty":1}],"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-stock-adjustment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.002.004.001.validate-stock-adjustment"},{"module":"Stock","displayGroup":"Stock","title":"Create stock adjustment.","commandType":"create-stock-adjustment","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-adjustment/create","summary":"Create stock adjustment.","notes":"Creates one or many stock adjustment detail lines through AutoCount stock document logic. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","lines":"required array of stock item rows; items is also accepted as a compatibility alias","itemCode":"single-line fallback still accepted","qty":"single-line fallback","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-adjustment-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-adjustment","payload":{"docDate":"2026-06-24","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-adjustment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.002.005.002.create-stock-adjustment"},{"module":"Stock","displayGroup":"Stock","title":"Edit stock adjustment header fields and detail lines.","commandType":"update-stock-adjustment","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-adjustment/edit","summary":"Edit stock adjustment header fields and detail lines.","notes":"Uses AutoCount SDK EditDetail/AddDetail/DeleteDetail/ClearDetails + Save. Supported line fields include itemCode, qty, uom, location, batchNo, unitCost, oldCost, newCost, fromQty, toQty, fromUom, toUom, itemCost, rate, description, projNo, and deptNo where the document type exposes them. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","detailMode":"optional: update | append | delete | replace","lines":"required array of stock item rows; items is also accepted as a compatibility alias","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-adjustment-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-adjustment","payload":{"docNo":"STK-000001","description":"Stock document created through API","detailMode":"update","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"reason":"API stock operation","docDate":"2026-06-24","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-adjustment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.002.006.003.update-stock-adjustment"},{"module":"Stock","displayGroup":"Stock","title":"Void/cancel stock adjustment.","commandType":"void-stock-adjustment","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-adjustment/void","summary":"Void/cancel stock adjustment.","notes":"Uses AutoCount SDK CancelDocument.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-stock-adjustment-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-adjustment","payload":{"docNo":"SA-000001","reason":"void/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-stock-adjustment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.002.007.004.void-stock-adjustment"},{"module":"Stock","displayGroup":"Stock","title":"Delete stock adjustment.","commandType":"delete-stock-adjustment","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-adjustment/delete","summary":"Delete stock adjustment.","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-stock-adjustment-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-adjustment","payload":{"docNo":"SA-000001","reason":"remove/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-stock-adjustment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.002.008.005.delete-stock-adjustment"},{"module":"Stock","displayGroup":"Stock","title":"List stock receive records.","commandType":"list-stock-receives","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-receive/list","summary":"List stock receive records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-receives-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-receives","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-receives.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.003.000.000.list-stock-receives"},{"module":"Stock","displayGroup":"Stock","title":"Read stock receive detail lines only.","commandType":"read-stock-receive-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-receive/list","summary":"Read stock receive detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","docNo":"optional","location":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-stock-receive-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-receive-lines","payload":{"itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-stock-receive-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.003.001.000.read-stock-receive-lines"},{"module":"Stock","displayGroup":"Stock","title":"Get one stock receive by document/code.","commandType":"get-stock-receive","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-receive/get","summary":"Get one stock receive by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-receive-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-receive","payload":{"docNo":"SR-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-receive.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.003.002.000.get-stock-receive"},{"module":"Stock","displayGroup":"Stock","title":"Validate stock receive without saving.","commandType":"validate-stock-receive","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-receive/validate","summary":"Validate stock receive without saving.","notes":"Validation only; does not save. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"items":"optional alias for lines","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","lines":"required array of stock item rows; items is also accepted as a compatibility alias","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-stock-receive-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-stock-receive","payload":{"items":[{"itemCode":"ITEM001","qty":1}],"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-stock-receive.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.003.004.001.validate-stock-receive"},{"module":"Stock","displayGroup":"Stock","title":"Create stock receive.","commandType":"create-stock-receive","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-receive/create","summary":"Create stock receive.","notes":"Creates one or many stock receive detail lines through AutoCount stock document logic. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","lines":"required array of stock item rows; items is also accepted as a compatibility alias","itemCode":"single-line fallback still accepted","qty":"single-line fallback","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-receive-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-receive","payload":{"docDate":"2026-06-24","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-receive.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.003.005.002.create-stock-receive"},{"module":"Stock","displayGroup":"Stock","title":"Edit stock receive header fields and detail lines.","commandType":"update-stock-receive","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-receive/edit","summary":"Edit stock receive header fields and detail lines.","notes":"Uses AutoCount SDK EditDetail/AddDetail/DeleteDetail/ClearDetails + Save. Supported line fields include itemCode, qty, uom, location, batchNo, unitCost, oldCost, newCost, fromQty, toQty, fromUom, toUom, itemCost, rate, description, projNo, and deptNo where the document type exposes them. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","detailMode":"optional: update | append | delete | replace","lines":"required array of stock item rows; items is also accepted as a compatibility alias","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-receive-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-receive","payload":{"docNo":"STK-000001","description":"Stock document created through API","detailMode":"update","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"reason":"API stock operation","docDate":"2026-06-24","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-receive.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.003.006.003.update-stock-receive"},{"module":"Stock","displayGroup":"Stock","title":"Void/cancel stock receive.","commandType":"void-stock-receive","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-receive/void","summary":"Void/cancel stock receive.","notes":"Uses AutoCount SDK CancelDocument.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-stock-receive-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-receive","payload":{"docNo":"SR-000001","reason":"void/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-stock-receive.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.003.007.004.void-stock-receive"},{"module":"Stock","displayGroup":"Stock","title":"Delete stock receive.","commandType":"delete-stock-receive","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-receive/delete","summary":"Delete stock receive.","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-stock-receive-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-receive","payload":{"docNo":"SR-000001","reason":"remove/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-stock-receive.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.003.008.005.delete-stock-receive"},{"module":"Stock","displayGroup":"Stock","title":"List stock issue records.","commandType":"list-stock-issues","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-issue/list","summary":"List stock issue records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-issues-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-issues","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-issues.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.004.000.000.list-stock-issues"},{"module":"Stock","displayGroup":"Stock","title":"Read stock issue detail lines only.","commandType":"read-stock-issue-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-issue/list","summary":"Read stock issue detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","docNo":"optional","location":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-stock-issue-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-issue-lines","payload":{"itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-stock-issue-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.004.001.000.read-stock-issue-lines"},{"module":"Stock","displayGroup":"Stock","title":"Get one stock issue by document/code.","commandType":"get-stock-issue","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-issue/get","summary":"Get one stock issue by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-issue-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-issue","payload":{"docNo":"SI-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-issue.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.004.002.000.get-stock-issue"},{"module":"Stock","displayGroup":"Stock","title":"Validate stock issue without saving.","commandType":"validate-stock-issue","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-issue/validate","summary":"Validate stock issue without saving.","notes":"Validation only; does not save. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"items":"optional alias for lines","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","lines":"required array of stock item rows; items is also accepted as a compatibility alias","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-stock-issue-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-stock-issue","payload":{"items":[{"itemCode":"ITEM001","qty":1}],"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-stock-issue.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.004.004.001.validate-stock-issue"},{"module":"Stock","displayGroup":"Stock","title":"Create stock issue.","commandType":"create-stock-issue","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-issue/create","summary":"Create stock issue.","notes":"Creates one or many stock issue detail lines through AutoCount stock document logic. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","lines":"required array of stock item rows; items is also accepted as a compatibility alias","itemCode":"single-line fallback still accepted","qty":"single-line fallback","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-issue-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-issue","payload":{"docDate":"2026-06-24","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-issue.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.004.005.002.create-stock-issue"},{"module":"Stock","displayGroup":"Stock","title":"Edit stock issue header fields and detail lines.","commandType":"update-stock-issue","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-issue/edit","summary":"Edit stock issue header fields and detail lines.","notes":"Uses AutoCount SDK EditDetail/AddDetail/DeleteDetail/ClearDetails + Save. Supported line fields include itemCode, qty, uom, location, batchNo, unitCost, oldCost, newCost, fromQty, toQty, fromUom, toUom, itemCost, rate, description, projNo, and deptNo where the document type exposes them. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","detailMode":"optional: update | append | delete | replace","lines":"required array of stock item rows; items is also accepted as a compatibility alias","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-issue-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-issue","payload":{"docNo":"STK-000001","description":"Stock document created through API","detailMode":"update","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"reason":"API stock operation","docDate":"2026-06-24","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-issue.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.004.006.003.update-stock-issue"},{"module":"Stock","displayGroup":"Stock","title":"Void/cancel stock issue.","commandType":"void-stock-issue","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-issue/void","summary":"Void/cancel stock issue.","notes":"Uses AutoCount SDK CancelDocument.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-stock-issue-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-issue","payload":{"docNo":"SI-000001","reason":"void/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-stock-issue.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.004.007.004.void-stock-issue"},{"module":"Stock","displayGroup":"Stock","title":"Delete stock issue.","commandType":"delete-stock-issue","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-issue/delete","summary":"Delete stock issue.","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-stock-issue-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-issue","payload":{"docNo":"SI-000001","reason":"remove/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-stock-issue.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.004.008.005.delete-stock-issue"},{"module":"Stock","displayGroup":"Stock","title":"List stock transfer records.","commandType":"list-stock-transfers","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-transfer/list","summary":"List stock transfer records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-transfers-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-transfers","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-transfers.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.005.000.000.list-stock-transfers"},{"module":"Stock","displayGroup":"Stock","title":"Read stock transfer detail lines only.","commandType":"read-stock-transfer-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-transfer/list","summary":"Read stock transfer detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-stock-transfer-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-transfer-lines","payload":{"itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-stock-transfer-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.005.001.000.read-stock-transfer-lines"},{"module":"Stock","displayGroup":"Stock","title":"Get one stock transfer by document/code.","commandType":"get-stock-transfer","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-transfer/get","summary":"Get one stock transfer by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-transfer-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-transfer","payload":{"docNo":"ST-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-transfer.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.005.002.000.get-stock-transfer"},{"module":"Stock","displayGroup":"Stock","title":"Validate stock transfer without saving.","commandType":"validate-stock-transfer","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-transfer/validate","summary":"Validate stock transfer without saving.","notes":"Validation only; does not save. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"items":"optional alias for lines","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","lines":"required array of stock item rows; items is also accepted as a compatibility alias","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-stock-transfer-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-stock-transfer","payload":{"items":[{"itemCode":"ITEM001","qty":1}],"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-stock-transfer.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.005.004.001.validate-stock-transfer"},{"module":"Stock","displayGroup":"Stock","title":"Create stock transfer.","commandType":"create-stock-transfer","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-transfer/create","summary":"Create stock transfer.","notes":"Creates one or many stock transfer detail lines through AutoCount stock document logic. Fresh account books need at least two active stock locations before transfer. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","lines":"required array of stock item rows; items is also accepted as a compatibility alias","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-transfer-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-transfer","payload":{"docDate":"2026-06-24","fromLocation":"HQ","toLocation":"STORE","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"description":"Stock document created through API","reason":"API stock operation","location":"HQ","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-transfer.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.005.005.002.create-stock-transfer"},{"module":"Stock","displayGroup":"Stock","title":"Edit stock transfer header fields and detail lines.","commandType":"update-stock-transfer","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-transfer/edit","summary":"Edit stock transfer header fields and detail lines.","notes":"Uses AutoCount SDK EditDetail/AddDetail/DeleteDetail/ClearDetails + Save. Supported line fields include itemCode, qty, uom, location, batchNo, unitCost, oldCost, newCost, fromQty, toQty, fromUom, toUom, itemCost, rate, description, projNo, and deptNo where the document type exposes them. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","detailMode":"optional: update | append | delete | replace","lines":"required array of stock item rows; items is also accepted as a compatibility alias","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-transfer-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-transfer","payload":{"docNo":"STK-000001","description":"Stock document created through API","detailMode":"update","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"reason":"API stock operation","docDate":"2026-06-24","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-transfer.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.005.006.003.update-stock-transfer"},{"module":"Stock","displayGroup":"Stock","title":"Void/cancel stock transfer.","commandType":"void-stock-transfer","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-transfer/void","summary":"Void/cancel stock transfer.","notes":"Uses AutoCount SDK CancelDocument.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-stock-transfer-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-transfer","payload":{"docNo":"ST-000001","reason":"void/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-stock-transfer.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.005.007.004.void-stock-transfer"},{"module":"Stock","displayGroup":"Stock","title":"Delete stock transfer.","commandType":"delete-stock-transfer","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-transfer/delete","summary":"Delete stock transfer.","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-stock-transfer-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-transfer","payload":{"docNo":"ST-000001","reason":"remove/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-stock-transfer.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.005.008.005.delete-stock-transfer"},{"module":"Stock","displayGroup":"Stock","title":"List stock take records.","commandType":"list-stock-takes","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-take/list","summary":"List stock take records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-takes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-takes","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-takes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.006.000.000.list-stock-takes"},{"module":"Stock","displayGroup":"Stock","title":"Read stock take detail lines only.","commandType":"read-stock-take-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-take/list","summary":"Read stock take detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","docNo":"optional","location":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-stock-take-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-take-lines","payload":{"itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-stock-take-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.006.001.000.read-stock-take-lines"},{"module":"Stock","displayGroup":"Stock","title":"Get one stock take by document/code.","commandType":"get-stock-take","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-take/get","summary":"Get one stock take by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-take-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-take","payload":{"docNo":"STK-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-take.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.006.002.000.get-stock-take"},{"module":"Stock","displayGroup":"Stock","title":"Validate stock take without saving.","commandType":"validate-stock-take","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-take/validate","summary":"Validate stock take without saving.","notes":"Validation only; does not save. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"items":"optional alias for lines","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","lines":"required array of stock item rows; items is also accepted as a compatibility alias","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-stock-take-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-stock-take","payload":{"items":[{"itemCode":"ITEM001","qty":1}],"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-stock-take.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.006.004.001.validate-stock-take"},{"module":"Stock","displayGroup":"Stock","title":"Create stock take.","commandType":"create-stock-take","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-take/create","summary":"Create stock take.","notes":"Creates one or many stock take detail lines through AutoCount stock document logic. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","location":"optional default stock location","lines":"required array of stock item rows; items is also accepted as a compatibility alias","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","description":"optional stock document narration","reason":"optional reason/remark","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-take-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-take","payload":{"docDate":"2026-06-24","location":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"description":"Stock document created through API","reason":"API stock operation","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-take.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.006.005.002.create-stock-take"},{"module":"Stock","displayGroup":"Stock","title":"Edit stock take header fields and detail lines.","commandType":"update-stock-take","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-take/edit","summary":"Edit stock take header fields and detail lines.","notes":"Uses AutoCount SDK EditDetail/AddDetail/DeleteDetail/ClearDetails + Save. Supported line fields include itemCode, qty, uom, location, batchNo, unitCost, oldCost, newCost, fromQty, toQty, fromUom, toUom, itemCost, rate, description, projNo, and deptNo where the document type exposes them. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","detailMode":"optional: update | append | delete | replace","lines":"required array of stock item rows; items is also accepted as a compatibility alias","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-take-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-take","payload":{"docNo":"STK-000001","description":"Stock document created through API","detailMode":"update","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"reason":"API stock operation","docDate":"2026-06-24","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-take.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.006.006.003.update-stock-take"},{"module":"Stock","displayGroup":"Stock","title":"Void/cancel stock take.","commandType":"void-stock-take","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-take/void","summary":"Void/cancel stock take.","notes":"Uses AutoCount SDK CancelDocument.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-stock-take-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-take","payload":{"docNo":"STK-000001","reason":"void/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-stock-take.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.006.007.004.void-stock-take"},{"module":"Stock","displayGroup":"Stock","title":"Delete stock take.","commandType":"delete-stock-take","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-take/delete","summary":"Delete stock take.","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-stock-take-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-take","payload":{"docNo":"STK-000001","reason":"remove/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-stock-take.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.006.008.005.delete-stock-take"},{"module":"Stock","displayGroup":"Stock","title":"List stock write-off records.","commandType":"list-stock-write-offs","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-write-off/list","summary":"List stock write-off records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-write-offs-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-write-offs","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-write-offs.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.007.000.000.list-stock-write-offs"},{"module":"Stock","displayGroup":"Stock","title":"Read stock write-off detail lines only.","commandType":"read-stock-write-off-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-write-off/list","summary":"Read stock write-off detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","docNo":"optional","location":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-stock-write-off-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-write-off-lines","payload":{"itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-stock-write-off-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.007.001.000.read-stock-write-off-lines"},{"module":"Stock","displayGroup":"Stock","title":"Get one stock write-off by document/code.","commandType":"get-stock-write-off","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-write-off/get","summary":"Get one stock write-off by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-write-off-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-write-off","payload":{"docNo":"SWO-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-write-off.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.007.002.000.get-stock-write-off"},{"module":"Stock","displayGroup":"Stock","title":"Validate stock write-off without saving.","commandType":"validate-stock-write-off","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-write-off/validate","summary":"Validate stock write-off without saving.","notes":"Validation only; does not save. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"items":"optional alias for lines","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","lines":"required array of stock item rows; items is also accepted as a compatibility alias","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-stock-write-off-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-stock-write-off","payload":{"items":[{"itemCode":"ITEM001","qty":1}],"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-stock-write-off.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.007.004.001.validate-stock-write-off"},{"module":"Stock","displayGroup":"Stock","title":"Create stock write-off.","commandType":"create-stock-write-off","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-write-off/create","summary":"Create stock write-off.","notes":"Creates one or many stock write-off detail lines through AutoCount stock document logic. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","location":"optional default stock location","lines":"required array of stock item rows; items is also accepted as a compatibility alias","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","description":"optional stock document narration","reason":"optional reason/remark","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-write-off-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-write-off","payload":{"docDate":"2026-06-24","location":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"description":"Stock document created through API","reason":"API stock operation","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-write-off.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.007.005.002.create-stock-write-off"},{"module":"Stock","displayGroup":"Stock","title":"Edit stock write-off header fields and detail lines.","commandType":"update-stock-write-off","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-write-off/edit","summary":"Edit stock write-off header fields and detail lines.","notes":"Uses AutoCount SDK EditDetail/AddDetail/DeleteDetail/ClearDetails + Save. Supported line fields include itemCode, qty, uom, location, batchNo, unitCost, oldCost, newCost, fromQty, toQty, fromUom, toUom, itemCost, rate, description, projNo, and deptNo where the document type exposes them. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","detailMode":"optional: update | append | delete | replace","lines":"required array of stock item rows; items is also accepted as a compatibility alias","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-write-off-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-write-off","payload":{"docNo":"STK-000001","description":"Stock document created through API","detailMode":"update","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"reason":"API stock operation","docDate":"2026-06-24","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-write-off.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.007.006.003.update-stock-write-off"},{"module":"Stock","displayGroup":"Stock","title":"Void/cancel stock write-off.","commandType":"void-stock-write-off","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-write-off/void","summary":"Void/cancel stock write-off.","notes":"Uses AutoCount SDK CancelDocument.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-stock-write-off-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-write-off","payload":{"docNo":"SWO-000001","reason":"void/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-stock-write-off.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.007.007.004.void-stock-write-off"},{"module":"Stock","displayGroup":"Stock","title":"Delete stock write-off.","commandType":"delete-stock-write-off","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-write-off/delete","summary":"Delete stock write-off.","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-stock-write-off-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-write-off","payload":{"docNo":"SWO-000001","reason":"remove/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-stock-write-off.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.007.008.005.delete-stock-write-off"},{"module":"Stock","displayGroup":"Stock","title":"List stock UOM conversion records.","commandType":"list-stock-uom-conversions","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/uom-conversion/list","summary":"List stock UOM conversion records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-uom-conversions-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-uom-conversions","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-uom-conversions.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.008.000.000.list-stock-uom-conversions"},{"module":"Stock","displayGroup":"Stock","title":"Read stock UOM conversion detail lines only.","commandType":"read-stock-uom-conversion-lines","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/uom-conversion/list","summary":"Read stock UOM conversion detail lines only.","notes":"","payloadSchema":{"itemCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"read-stock-uom-conversion-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-uom-conversion-lines","payload":{"itemCode":"ITEM001","limit":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-stock-uom-conversion-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.008.001.000.read-stock-uom-conversion-lines"},{"module":"Stock","displayGroup":"Stock","title":"Get one stock UOM conversion by document/code.","commandType":"get-stock-uom-conversion","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/uom-conversion/get","summary":"Get one stock UOM conversion by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-uom-conversion-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-uom-conversion","payload":{"docNo":"UC-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-uom-conversion.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.008.002.000.get-stock-uom-conversion"},{"module":"Stock","displayGroup":"Stock","title":"Validate stock UOM conversion without saving.","commandType":"validate-stock-uom-conversion","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/uom-conversion/validate","summary":"Validate stock UOM conversion without saving.","notes":"Validation only; does not save. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"items":"optional alias for lines","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","lines":"required array of stock item rows; items is also accepted as a compatibility alias","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-stock-uom-conversion-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-stock-uom-conversion","payload":{"items":[{"itemCode":"ITEM001","qty":1}],"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-stock-uom-conversion.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.008.004.001.validate-stock-uom-conversion"},{"module":"Stock","displayGroup":"Stock","title":"Create stock UOM conversion.","commandType":"create-stock-uom-conversion","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/uom-conversion/create","summary":"Create stock UOM conversion.","notes":"Creates one or many stock UOM conversion detail lines through AutoCount stock document logic. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","lines":"required array of stock item rows; items is also accepted as a compatibility alias","itemCode":"single-line fallback still accepted","docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","description":"optional stock document narration","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-uom-conversion-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-uom-conversion","payload":{"docDate":"2026-06-24","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-uom-conversion.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.008.005.002.create-stock-uom-conversion"},{"module":"Stock","displayGroup":"Stock","title":"Edit stock UOM conversion header fields and detail lines.","commandType":"update-stock-uom-conversion","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/uom-conversion/edit","summary":"Edit stock UOM conversion header fields and detail lines.","notes":"Uses AutoCount SDK EditDetail/AddDetail/DeleteDetail/ClearDetails + Save. Supported line fields include itemCode, qty, uom, location, batchNo, unitCost, oldCost, newCost, fromQty, toQty, fromUom, toUom, itemCost, rate, description, projNo, and deptNo where the document type exposes them. Batch, serial, UOM, project, department, and location fields depend on AutoCount item/account-book settings. The connector validates through AutoCount SDK before saving.","payloadSchema":{"docNo":"optional AutoCount document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional stock document narration","detailMode":"optional: update | append | delete | replace","lines":"required array of stock item rows; items is also accepted as a compatibility alias","reason":"optional reason/remark","location":"optional default stock location","fromLocation":"optional source location for transfer/conversion documents","toLocation":"optional destination location for transfer/conversion documents","project":"optional project code","department":"optional department code","items":"optional alias for lines","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-uom-conversion-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-uom-conversion","payload":{"docNo":"STK-000001","description":"Stock document created through API","detailMode":"update","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"reason":"API stock operation","docDate":"2026-06-24","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-uom-conversion.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.008.006.003.update-stock-uom-conversion"},{"module":"Stock","displayGroup":"Stock","title":"Void/cancel stock UOM conversion.","commandType":"void-stock-uom-conversion","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/uom-conversion/void","summary":"Void/cancel stock UOM conversion.","notes":"Uses AutoCount SDK CancelDocument.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-stock-uom-conversion-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-uom-conversion","payload":{"docNo":"UC-000001","reason":"void/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-stock-uom-conversion.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.008.007.004.void-stock-uom-conversion"},{"module":"Stock","displayGroup":"Stock","title":"Delete stock UOM conversion.","commandType":"delete-stock-uom-conversion","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/uom-conversion/delete","summary":"Delete stock UOM conversion.","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-stock-uom-conversion-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-uom-conversion","payload":{"docNo":"UC-000001","reason":"remove/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-stock-uom-conversion.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.008.008.005.delete-stock-uom-conversion"},{"module":"Stock","displayGroup":"Stock","title":"List item package records.","commandType":"list-item-packages","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/item-package/list","summary":"List item package records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-item-packages-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-item-packages","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-item-packages.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.009.000.000.list-item-packages"},{"module":"Stock","displayGroup":"Stock","title":"Get one item package by document/code.","commandType":"get-item-package","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/item-package/get","summary":"Get one item package by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-item-package-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-item-package","payload":{"docNo":"PKG-API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-item-package.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.009.002.000.get-item-package"},{"module":"Stock","displayGroup":"Stock","title":"Validate item package without saving.","commandType":"validate-item-package","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/item-package/validate","summary":"Validate item package without saving.","notes":"Validation only; does not save. Full human payload reference for Item Package. Component item codes and UOM must exist in AutoCount.","payloadSchema":{"items":"required package component rows","packageCode":"required package item/code","description":"optional package description","desc2":"optional second description","uom":"optional package UOM","price":"optional package selling price","isActive":"optional boolean active flag","lines":"optional alias for items","remark1":"optional remark field 1","remark2":"optional remark field 2"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-item-package-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-item-package","payload":{"items":[{"itemCode":"ITEM001","description":"Component 1","qty":1,"uom":"UNIT","unitPrice":100},{"itemCode":"ITEM002","description":"Component 2","qty":2,"uom":"UNIT","unitPrice":10}],"packageCode":"PKG-API","description":"API Package","desc2":"Package second description","uom":"SET","price":120,"isActive":true,"lines":[{"itemCode":"ITEM001","description":"Component 1","qty":1,"uom":"UNIT","unitPrice":100}],"remark1":"Created by API","remark2":"Item package example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-item-package.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.009.004.001.validate-item-package"},{"module":"Stock","displayGroup":"Stock","title":"Create item package definition.","commandType":"create-item-package","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/item-package/create","summary":"Create item package definition.","notes":"Creates item package through AutoCount SDK. Full human payload reference for Item Package. Component item codes and UOM must exist in AutoCount.","payloadSchema":{"packageCode":"required package item/code","description":"optional package description","items":"required package component rows","desc2":"optional second description","uom":"optional package UOM","price":"optional package selling price","isActive":"optional boolean active flag","lines":"optional alias for items","remark1":"optional remark field 1","remark2":"optional remark field 2"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-item-package-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-item-package","payload":{"packageCode":"PKG-API","items":[{"itemCode":"ITEM001","description":"Component 1","qty":1,"uom":"UNIT","unitPrice":100},{"itemCode":"ITEM002","description":"Component 2","qty":2,"uom":"UNIT","unitPrice":10}],"description":"API Package","desc2":"Package second description","uom":"SET","price":120,"isActive":true,"lines":[{"itemCode":"ITEM001","description":"Component 1","qty":1,"uom":"UNIT","unitPrice":100}],"remark1":"Created by API","remark2":"Item package example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-item-package.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.009.005.002.create-item-package"},{"module":"Stock","displayGroup":"Stock","title":"Guarded item package edit request.","commandType":"update-item-package","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/item-package/edit","summary":"Guarded item package edit request.","notes":"Returns editBlocked until item package update safety is proven. Full human payload reference for Item Package. Component item codes and UOM must exist in AutoCount.","payloadSchema":{"packageCode":"required package item/code","reason":"required business reason","description":"optional package description","desc2":"optional second description","uom":"optional package UOM","price":"optional package selling price","isActive":"optional boolean active flag","items":"required package component rows","lines":"optional alias for items","remark1":"optional remark field 1","remark2":"optional remark field 2"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-item-package-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-item-package","payload":{"packageCode":"PKG-API","reason":"correct package","description":"API Package","desc2":"Package second description","uom":"SET","price":120,"isActive":true,"items":[{"itemCode":"ITEM001","description":"Component 1","qty":1,"uom":"UNIT","unitPrice":100},{"itemCode":"ITEM002","description":"Component 2","qty":2,"uom":"UNIT","unitPrice":10}],"lines":[{"itemCode":"ITEM001","description":"Component 1","qty":1,"uom":"UNIT","unitPrice":100}],"remark1":"Created by API","remark2":"Item package example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-item-package.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.009.006.003.update-item-package"},{"module":"Stock","displayGroup":"Stock","title":"Guarded item package void request.","commandType":"void-item-package","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/item-package/void","summary":"Guarded item package void request.","notes":"Master definitions do not have a proven safe void path; request is guarded.","payloadSchema":{"packageCode":"required","reason":"required"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-item-package-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-item-package","payload":{"packageCode":"PKG-API","reason":"void package"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-item-package.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.009.007.004.void-item-package"},{"module":"Stock","displayGroup":"Stock","title":"Guarded item package delete request.","commandType":"delete-item-package","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/item-package/delete","summary":"Guarded item package delete request.","notes":"Deletion remains guarded for master definitions.","payloadSchema":{"packageCode":"required","reason":"required"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-item-package-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-item-package","payload":{"packageCode":"PKG-API","reason":"remove package"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-item-package.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.009.008.005.delete-item-package"},{"module":"Stock","displayGroup":"Stock","title":"List item BOM records.","commandType":"list-bom-items","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/bom/list","summary":"List item BOM records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-bom-items-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-bom-items","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-bom-items.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.010.000.000.list-bom-items"},{"module":"Stock","displayGroup":"Stock","title":"Get one item BOM by document/code.","commandType":"get-item-bom","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/bom/get","summary":"Get one item BOM by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-item-bom-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-item-bom","payload":{"docNo":"BOM-API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-item-bom.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.010.002.000.get-item-bom"},{"module":"Stock","displayGroup":"Stock","title":"Validate item BOM without saving.","commandType":"validate-item-bom","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/bom/validate","summary":"Validate item BOM without saving.","notes":"Validation only; does not save. Full human payload reference for Item BOM. Finished and component item codes must exist in the same account book and be valid for BOM usage. New account books normally need these items created before BOM/manufacturing commands.","payloadSchema":{"items":"module-specific stock lines","itemCode":"required finished item code","description":"optional BOM description","uom":"optional finished item UOM","qty":"optional finished quantity, default 1","components":"required component item rows","lines":"optional alias for components","scrapPercent":"optional scrap percentage where supported","remark1":"optional remark field 1","remark2":"optional remark field 2"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-item-bom-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-item-bom","payload":{"items":[{"itemCode":"ITEM001","qty":1}],"itemCode":"FINISHED-API","description":"API BOM","uom":"UNIT","qty":1,"components":[{"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10},{"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5}],"lines":[{"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10}],"scrapPercent":0,"remark1":"Created by API","remark2":"BOM setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-item-bom.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.010.004.001.validate-item-bom"},{"module":"Stock","displayGroup":"Stock","title":"Create item BOM definition.","commandType":"create-item-bom","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/bom/create","summary":"Create item BOM definition.","notes":"Creates item BOM through AutoCount SDK. Manufacturing commands should use BOM parent/component item codes from the same account book. Full human payload reference for Item BOM. Finished and component item codes must exist in the same account book and be valid for BOM usage. New account books normally need these items created before BOM/manufacturing commands.","payloadSchema":{"itemCode":"required finished item code","components":"required component item rows","description":"optional BOM description","uom":"optional finished item UOM","qty":"optional finished quantity, default 1","lines":"optional alias for components","scrapPercent":"optional scrap percentage where supported","remark1":"optional remark field 1","remark2":"optional remark field 2"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-item-bom-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-item-bom","payload":{"itemCode":"FINISHED-API","components":[{"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10},{"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5}],"description":"API BOM","uom":"UNIT","qty":1,"lines":[{"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10}],"scrapPercent":0,"remark1":"Created by API","remark2":"BOM setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-item-bom.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.010.005.002.create-item-bom"},{"module":"Stock","displayGroup":"Stock","title":"Update item BOM definition.","commandType":"update-item-bom","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/bom/edit","summary":"Update item BOM definition.","notes":"Updates item BOM through AutoCount SDK. Full human payload reference for Item BOM. Finished and component item codes must exist in the same account book and be valid for BOM usage. New account books normally need these items created before BOM/manufacturing commands.","payloadSchema":{"itemCode":"required finished item code","components":"required component item rows","reason":"required business reason","description":"optional BOM description","uom":"optional finished item UOM","qty":"optional finished quantity, default 1","lines":"optional alias for components","scrapPercent":"optional scrap percentage where supported","remark1":"optional remark field 1","remark2":"optional remark field 2"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-item-bom-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-item-bom","payload":{"itemCode":"FINISHED-API","components":[{"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10},{"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5}],"reason":"correct BOM","description":"API BOM","uom":"UNIT","qty":1,"lines":[{"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10}],"scrapPercent":0,"remark1":"Created by API","remark2":"BOM setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-item-bom.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.010.006.003.update-item-bom"},{"module":"Stock","displayGroup":"Stock","title":"Guarded item BOM void request.","commandType":"void-item-bom","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/bom/void","summary":"Guarded item BOM void request.","notes":"Master definitions do not have a proven safe void path; request is guarded.","payloadSchema":{"itemCode":"required finished item","reason":"required"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-item-bom-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-item-bom","payload":{"itemCode":"FINISHED-API","reason":"void BOM"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-item-bom.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.010.007.004.void-item-bom"},{"module":"Stock","displayGroup":"Stock","title":"Guarded item BOM delete request.","commandType":"delete-item-bom","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/bom/delete","summary":"Guarded item BOM delete request.","notes":"Deletion remains guarded for master definitions.","payloadSchema":{"itemCode":"required finished item","reason":"required"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-item-bom-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-item-bom","payload":{"itemCode":"FINISHED-API","reason":"remove BOM"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-item-bom.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.010.008.005.delete-item-bom"},{"module":"Stock","displayGroup":"Stock","title":"List stock assembly records.","commandType":"list-stock-assemblies","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock/list","summary":"List stock assembly records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-assemblies-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-assemblies","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-assemblies.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.000.000.list-stock-assemblies"},{"module":"Stock","displayGroup":"Stock","title":"List stock assembly order records.","commandType":"list-stock-assembly-orders","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly-order/list","summary":"List stock assembly order records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-assembly-orders-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-assembly-orders","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-assembly-orders.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.000.000.list-stock-assembly-orders"},{"module":"Stock","displayGroup":"Stock","title":"List stock disassembly records.","commandType":"list-stock-disassemblies","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/disassembly/list","summary":"List stock disassembly records.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"list-stock-disassemblies-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-disassemblies","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-stock-disassemblies.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.000.000.list-stock-disassemblies"},{"module":"Stock","displayGroup":"Stock","title":"Get one stock assembly by document/code.","commandType":"get-stock-assembly","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly/get","summary":"Get one stock assembly by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-assembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-assembly","payload":{"docNo":"ASM-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-assembly.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.002.000.get-stock-assembly"},{"module":"Stock","displayGroup":"Stock","title":"Get one stock assembly order by document/code.","commandType":"get-stock-assembly-order","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly-order/get","summary":"Get one stock assembly order by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-assembly-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-assembly-order","payload":{"docNo":"ASO-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-assembly-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.002.000.get-stock-assembly-order"},{"module":"Stock","displayGroup":"Stock","title":"Get one stock disassembly by document/code.","commandType":"get-stock-disassembly","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/disassembly/get","summary":"Get one stock disassembly by document/code.","notes":"","payloadSchema":{"docNo":"required document number or code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"get-stock-disassembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-disassembly","payload":{"docNo":"DSA-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-stock-disassembly.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.002.000.get-stock-disassembly"},{"module":"Stock","displayGroup":"Stock","title":"Validate stock assembly without saving.","commandType":"validate-stock-assembly","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly/validate","summary":"Validate stock assembly without saving.","notes":"Validation only; does not save. Full human payload reference for stock assembly/order/disassembly. Batch, serial, and costing behavior depends on item and account-book settings.","payloadSchema":{"items":"module-specific stock lines","docNo":"optional stock assembly document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","itemCode":"required finished/main item code","description":"optional document description","location":"required or optional stock location","qty":"required finished/main quantity","uom":"optional finished/main UOM","unitCost":"optional finished/main unit cost","detailMode":"optional update mode such as replace or update","lines":"required component/detail rows","reason":"optional business reason for update requests"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-stock-assembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-stock-assembly","payload":{"items":[{"itemCode":"ITEM001","qty":1}],"docDate":"2026-06-24","itemCode":"FINISHED-API","description":"Stock assembly created through API","location":"HQ","qty":1,"uom":"UNIT","unitCost":100,"detailMode":"replace","lines":[{"lineNo":1,"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10,"batchNo":"BATCH-001","serialNo":""},{"lineNo":2,"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5,"batchNo":"","serialNo":""}],"reason":"correct assembly detail"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-stock-assembly.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.004.001.validate-stock-assembly"},{"module":"Stock","displayGroup":"Stock","title":"Validate stock assembly order without saving.","commandType":"validate-stock-assembly-order","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly-order/validate","summary":"Validate stock assembly order without saving.","notes":"Validation only; does not save. Full human payload reference for stock assembly/order/disassembly. Batch, serial, and costing behavior depends on item and account-book settings.","payloadSchema":{"items":"module-specific stock lines","docNo":"optional stock assembly document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","itemCode":"required finished/main item code","description":"optional document description","location":"required or optional stock location","qty":"required finished/main quantity","uom":"optional finished/main UOM","unitCost":"optional finished/main unit cost","detailMode":"optional update mode such as replace or update","lines":"required component/detail rows","reason":"optional business reason for update requests"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-stock-assembly-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-stock-assembly-order","payload":{"items":[{"itemCode":"ITEM001","qty":1}],"docDate":"2026-06-24","itemCode":"FINISHED-API","description":"Stock assembly order created through API","location":"HQ","qty":1,"uom":"UNIT","unitCost":100,"detailMode":"replace","lines":[{"lineNo":1,"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10,"batchNo":"BATCH-001","serialNo":""},{"lineNo":2,"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5,"batchNo":"","serialNo":""}],"reason":"correct assembly detail"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-stock-assembly-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.004.001.validate-stock-assembly-order"},{"module":"Stock","displayGroup":"Stock","title":"Validate stock disassembly without saving.","commandType":"validate-stock-disassembly","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/disassembly/validate","summary":"Validate stock disassembly without saving.","notes":"Validation only; does not save. Full human payload reference for stock assembly/order/disassembly. Batch, serial, and costing behavior depends on item and account-book settings.","payloadSchema":{"items":"module-specific stock lines","docNo":"optional stock assembly document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","itemCode":"required finished/main item code","description":"optional document description","location":"required or optional stock location","qty":"required finished/main quantity","uom":"optional finished/main UOM","unitCost":"optional finished/main unit cost","detailMode":"optional update mode such as replace or update","lines":"required component/detail rows","reason":"optional business reason for update requests"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"validate-stock-disassembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-stock-disassembly","payload":{"items":[{"itemCode":"ITEM001","qty":1}],"docDate":"2026-06-24","itemCode":"FINISHED-API","description":"Stock disassembly created through API","location":"HQ","qty":1,"uom":"UNIT","unitCost":100,"detailMode":"replace","lines":[{"lineNo":1,"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10,"batchNo":"BATCH-001","serialNo":""},{"lineNo":2,"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5,"batchNo":"","serialNo":""}],"reason":"correct assembly detail"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-stock-disassembly.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.004.001.validate-stock-disassembly"},{"module":"Stock","displayGroup":"Stock","title":"Create stock assembly.","commandType":"create-stock-assembly","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly/create","summary":"Create stock assembly.","notes":"Creates stock assembly with optional multiple component/detail lines through AutoCount manufacturing/stock logic. Full human payload reference for stock assembly/order/disassembly. Batch, serial, and costing behavior depends on item and account-book settings.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","itemCode":"required finished/main item code","qty":"required finished/main quantity","location":"required or optional stock location","lines":"required component/detail rows","docNo":"optional stock assembly document number; omit to let AutoCount numbering generate it","description":"optional document description","uom":"optional finished/main UOM","unitCost":"optional finished/main unit cost","detailMode":"optional update mode such as replace or update","reason":"optional business reason for update requests"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-assembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-assembly","payload":{"docDate":"2026-06-24","itemCode":"FINISHED-API","location":"HQ","qty":1,"lines":[{"lineNo":1,"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10,"batchNo":"BATCH-001","serialNo":""},{"lineNo":2,"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5,"batchNo":"","serialNo":""}],"description":"Stock assembly created through API","uom":"UNIT","unitCost":100,"detailMode":"replace","reason":"correct assembly detail"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-assembly.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.005.002.create-stock-assembly"},{"module":"Stock","displayGroup":"Stock","title":"Create stock assembly order.","commandType":"create-stock-assembly-order","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly-order/create","summary":"Create stock assembly order.","notes":"Creates stock assembly order with optional multiple component/detail lines through AutoCount manufacturing/stock logic. Full human payload reference for stock assembly/order/disassembly. Batch, serial, and costing behavior depends on item and account-book settings.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","itemCode":"required finished/main item code","qty":"required finished/main quantity","location":"required or optional stock location","lines":"required component/detail rows","docNo":"optional stock assembly document number; omit to let AutoCount numbering generate it","description":"optional document description","uom":"optional finished/main UOM","unitCost":"optional finished/main unit cost","detailMode":"optional update mode such as replace or update","reason":"optional business reason for update requests"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-assembly-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-assembly-order","payload":{"docDate":"2026-06-24","itemCode":"FINISHED-API","location":"HQ","qty":1,"lines":[{"lineNo":1,"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10,"batchNo":"BATCH-001","serialNo":""},{"lineNo":2,"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5,"batchNo":"","serialNo":""}],"description":"Stock assembly order created through API","uom":"UNIT","unitCost":100,"detailMode":"replace","reason":"correct assembly detail"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-assembly-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.005.002.create-stock-assembly-order"},{"module":"Stock","displayGroup":"Stock","title":"Create stock disassembly.","commandType":"create-stock-disassembly","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/disassembly/create","summary":"Create stock disassembly.","notes":"Creates stock disassembly with optional multiple detail lines through AutoCount manufacturing/stock logic. Full human payload reference for stock assembly/order/disassembly. Batch, serial, and costing behavior depends on item and account-book settings.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","itemCode":"required finished/main item code","qty":"required finished/main quantity","location":"required or optional stock location","lines":"required component/detail rows","docNo":"optional stock assembly document number; omit to let AutoCount numbering generate it","description":"optional document description","uom":"optional finished/main UOM","unitCost":"optional finished/main unit cost","detailMode":"optional update mode such as replace or update","reason":"optional business reason for update requests"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"create-stock-disassembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-disassembly","payload":{"docDate":"2026-06-24","itemCode":"FINISHED-API","location":"HQ","qty":1,"lines":[{"lineNo":1,"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10,"batchNo":"BATCH-001","serialNo":""},{"lineNo":2,"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5,"batchNo":"","serialNo":""}],"description":"Stock disassembly created through API","uom":"UNIT","unitCost":100,"detailMode":"replace","reason":"correct assembly detail"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-stock-disassembly.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.005.002.create-stock-disassembly"},{"module":"Stock","displayGroup":"Stock","title":"Edit stock assembly header fields and detail lines.","commandType":"update-stock-assembly","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly/edit","summary":"Edit stock assembly header fields and detail lines.","notes":"Uses AutoCount SDK EditDetail/AddDetail/DeleteDetail/ClearDetails + Save. Supported line fields include itemCode, qty, uom, location, batchNo, unitCost, oldCost, newCost, fromQty, toQty, fromUom, toUom, itemCost, rate, description, projNo, and deptNo where the document type exposes them. Full human payload reference for stock assembly/order/disassembly. Batch, serial, and costing behavior depends on item and account-book settings.","payloadSchema":{"docNo":"optional stock assembly document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional document description","detailMode":"optional update mode such as replace or update","lines":"required component/detail rows","reason":"optional business reason for update requests","itemCode":"required finished/main item code","location":"required or optional stock location","qty":"required finished/main quantity","uom":"optional finished/main UOM","unitCost":"optional finished/main unit cost"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-assembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-assembly","payload":{"docNo":"ASM-000001","description":"Stock assembly created through API","detailMode":"replace","lines":[{"lineNo":1,"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10,"batchNo":"BATCH-001","serialNo":""},{"lineNo":2,"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5,"batchNo":"","serialNo":""}],"reason":"correct assembly detail","docDate":"2026-06-24","itemCode":"FINISHED-API","location":"HQ","qty":1,"uom":"UNIT","unitCost":100}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-assembly.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.006.003.update-stock-assembly"},{"module":"Stock","displayGroup":"Stock","title":"Edit stock assembly order header fields and detail lines.","commandType":"update-stock-assembly-order","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly-order/edit","summary":"Edit stock assembly order header fields and detail lines.","notes":"Uses AutoCount SDK EditDetail/AddDetail/DeleteDetail/ClearDetails + Save. Supported line fields include itemCode, qty, uom, location, batchNo, unitCost, oldCost, newCost, fromQty, toQty, fromUom, toUom, itemCost, rate, description, projNo, and deptNo where the document type exposes them. Full human payload reference for stock assembly/order/disassembly. Batch, serial, and costing behavior depends on item and account-book settings.","payloadSchema":{"docNo":"optional stock assembly document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional document description","detailMode":"optional update mode such as replace or update","lines":"required component/detail rows","reason":"optional business reason for update requests","itemCode":"required finished/main item code","location":"required or optional stock location","qty":"required finished/main quantity","uom":"optional finished/main UOM","unitCost":"optional finished/main unit cost"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-assembly-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-assembly-order","payload":{"docNo":"ASM-000001","description":"Stock assembly order created through API","detailMode":"replace","lines":[{"lineNo":1,"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10,"batchNo":"BATCH-001","serialNo":""},{"lineNo":2,"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5,"batchNo":"","serialNo":""}],"reason":"correct assembly detail","docDate":"2026-06-24","itemCode":"FINISHED-API","location":"HQ","qty":1,"uom":"UNIT","unitCost":100}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-assembly-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.006.003.update-stock-assembly-order"},{"module":"Stock","displayGroup":"Stock","title":"Edit stock disassembly header fields and detail lines.","commandType":"update-stock-disassembly","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/disassembly/edit","summary":"Edit stock disassembly header fields and detail lines.","notes":"Uses AutoCount SDK EditDetail/AddDetail/DeleteDetail/ClearDetails + Save. Supported line fields include itemCode, qty, uom, location, batchNo, unitCost, oldCost, newCost, fromQty, toQty, fromUom, toUom, itemCost, rate, description, projNo, and deptNo where the document type exposes them. Full human payload reference for stock assembly/order/disassembly. Batch, serial, and costing behavior depends on item and account-book settings.","payloadSchema":{"docNo":"optional stock assembly document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional document description","detailMode":"optional update mode such as replace or update","lines":"required component/detail rows","reason":"optional business reason for update requests","itemCode":"required finished/main item code","location":"required or optional stock location","qty":"required finished/main quantity","uom":"optional finished/main UOM","unitCost":"optional finished/main unit cost"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"update-stock-disassembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-disassembly","payload":{"docNo":"ASM-000001","description":"Stock disassembly created through API","detailMode":"replace","lines":[{"lineNo":1,"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10,"batchNo":"BATCH-001","serialNo":""},{"lineNo":2,"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5,"batchNo":"","serialNo":""}],"reason":"correct assembly detail","docDate":"2026-06-24","itemCode":"FINISHED-API","location":"HQ","qty":1,"uom":"UNIT","unitCost":100}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-stock-disassembly.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.006.003.update-stock-disassembly"},{"module":"Stock","displayGroup":"Stock","title":"Void/cancel stock assembly.","commandType":"void-stock-assembly","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly/void","summary":"Void/cancel stock assembly.","notes":"Uses AutoCount SDK CancelDocument.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-stock-assembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-assembly","payload":{"docNo":"ASM-000001","reason":"void/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-stock-assembly.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.007.004.void-stock-assembly"},{"module":"Stock","displayGroup":"Stock","title":"Void/cancel stock assembly order.","commandType":"void-stock-assembly-order","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly-order/void","summary":"Void/cancel stock assembly order.","notes":"Uses AutoCount SDK CancelDocument.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-stock-assembly-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-assembly-order","payload":{"docNo":"ASO-000001","reason":"void/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-stock-assembly-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.007.004.void-stock-assembly-order"},{"module":"Stock","displayGroup":"Stock","title":"Void/cancel stock disassembly.","commandType":"void-stock-disassembly","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/disassembly/void","summary":"Void/cancel stock disassembly.","notes":"Uses AutoCount SDK CancelDocument.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"void-stock-disassembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-disassembly","payload":{"docNo":"DSA-000001","reason":"void/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-stock-disassembly.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.007.004.void-stock-disassembly"},{"module":"Stock","displayGroup":"Stock","title":"Delete stock assembly.","commandType":"delete-stock-assembly","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly/delete","summary":"Delete stock assembly.","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-stock-assembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-assembly","payload":{"docNo":"ASM-000001","reason":"remove/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-stock-assembly.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.008.005.delete-stock-assembly"},{"module":"Stock","displayGroup":"Stock","title":"Delete stock assembly order.","commandType":"delete-stock-assembly-order","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly-order/delete","summary":"Delete stock assembly order.","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-stock-assembly-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-assembly-order","payload":{"docNo":"ASO-000001","reason":"remove/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-stock-assembly-order.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.008.005.delete-stock-assembly-order"},{"module":"Stock","displayGroup":"Stock","title":"Delete stock disassembly.","commandType":"delete-stock-disassembly","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/disassembly/delete","summary":"Delete stock disassembly.","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","location":"default stock location","fromLocation":"source stock location","toLocation":"destination stock location"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"}},"exampleRequest":{"commandId":"delete-stock-disassembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-disassembly","payload":{"docNo":"DSA-000001","reason":"remove/correct stock document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-stock-disassembly.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"005.011.008.005.delete-stock-disassembly"},{"module":"GL","displayGroup":"GL","title":"List GL chart of accounts.","commandType":"read-chart-accounts","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/list","summary":"List GL chart of accounts.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-chart-accounts-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-chart-accounts","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-chart-accounts.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.000.001.000.read-chart-accounts"},{"module":"GL","displayGroup":"GL","title":"Read one GL account balance.","commandType":"read-gl-account-balance","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/list","summary":"Read one GL account balance.","notes":"","payloadSchema":{"accNo":"required","fromDate":"YYYY-MM-DD required","toDate":"YYYY-MM-DD required"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-gl-account-balance-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-gl-account-balance","payload":{"accNo":"500-0000","fromDate":"2026-01-01","toDate":"2026-06-15"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-gl-account-balance.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.000.001.000.read-gl-account-balance"},{"module":"GL","displayGroup":"GL","title":"Get one GL Account Maintenance account.","commandType":"get-gl-account","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/get","summary":"Get one GL Account Maintenance account.","notes":"Reads from AutoCount AccountInquiry chart data.","payloadSchema":{"accNo":"required account code"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-gl-account-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-gl-account","payload":{"accNo":"610-0000"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-gl-account.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.000.002.000.get-gl-account"},{"module":"GL","displayGroup":"GL","title":"Create the two GL accounts from AutoCount's Create New Fixed Asset Account screen.","commandType":"create-fixed-asset-gl-accounts","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/create","summary":"Create the two GL accounts from AutoCount's Create New Fixed Asset Account screen.","notes":"Creates both GL Account Maintenance records through AutoCount AccountCommand.NewAccount and SaveAccount. The connector checks both account numbers before saving either record. Use create-gl-account only when creating one account. Matches AutoCount Create New Fixed Asset Account screen. It saves two GL Account Maintenance records through AutoCount AccountCommand: the fixed asset account with specialAccType SFA and the accumulated depreciation account with specialAccType SAD. Use list-general-account-types first; accType must be a real account type code in that account book.","payloadSchema":{"fixedAsset":{"accNo":"required fixed asset GL account number","description":"required fixed asset GL account description","accType":"required valid Asset account type code from list-general-account-types","parentAccNo":"optional fixed asset parent account","currencyCode":"optional currency code, for example MYR","cashFlowCategory":"optional, defaults to InvestingActivities","specialAccType":"optional, defaults to SFA / FixedAsset"},"accumulatedDepreciation":{"accNo":"required accumulated depreciation GL account number","description":"required accumulated depreciation GL account description","accType":"required valid Asset account type code from list-general-account-types","parentAccNo":"optional accumulated depreciation parent account","currencyCode":"optional currency code, for example MYR","cashFlowCategory":"optional, defaults to OperatingActivities","specialAccType":"optional, defaults to SAD / AccumulatedDepreciation"}},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-fixed-asset-gl-accounts-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-fixed-asset-gl-accounts","payload":{"fixedAsset":{"accNo":"150-1000","description":"Motor Vehicle","accType":"use an Asset code from list-general-account-types","parentAccNo":"<<FIXED ASSETS>>","currencyCode":"MYR","cashFlowCategory":"InvestingActivities","specialAccType":"SFA"},"accumulatedDepreciation":{"accNo":"159-1000","description":"Accumulated Depreciation - Motor Vehicle","accType":"use an Asset code from list-general-account-types","parentAccNo":"<<FIXED ASSETS>>","currencyCode":"MYR","cashFlowCategory":"OperatingActivities","specialAccType":"SAD"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-fixed-asset-gl-accounts.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.000.005.002.create-fixed-asset-gl-accounts"},{"module":"GL","displayGroup":"GL","title":"Create a GL Account Maintenance account.","commandType":"create-gl-account","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/create","summary":"Create a GL Account Maintenance account.","notes":"Requires write access permission. Uses AutoCount.GL.AccountMaintenance.AccountCommand.NewAccount and AccountCommand.SaveAccount, with duplicate account check before save. Use list-general-account-types to discover valid account type codes for the account book. For fixed asset, use a valid Asset accType returned by list-general-account-types and set specialAccType: \"SFA\" or \"FixedAsset\". Do not put fixed asset into accType unless that exact AccType code exists. Full human payload reference for GL Account Maintenance. Account type, parent account, and special account type must match the account book's chart of accounts rules. Use list-general-account-types to discover valid account type codes. For a fixed asset GL account, use a valid Asset accType returned by list-general-account-types and set specialAccType: \"SFA\" or \"FixedAsset\". Do not put fixed asset into accType unless that exact AccType code exists in the account book.","payloadSchema":{"accNo":"required GL account number","description":"required account description/name","accType":"required AutoCount account type","parentAccNo":"optional parent account number","currencyCode":"optional currency code","cashFlowCategory":"optional cash flow category","specialAccType":"optional special account type such as Normal, Bank, Cash, FixedAsset/SFA, AccumulatedDepreciation/SAD, DebtorControl, or CreditorControl","desc2":"optional second description","isActive":"optional boolean active flag","remark1":"optional remark field 1","remark2":"optional remark field 2"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-gl-account-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-gl-account","payload":{"accNo":"690-9000","description":"API Expense Account","accType":"EP","parentAccNo":"610-0000","cashFlowCategory":"OperatingActivities","specialAccType":"Normal","desc2":"API expense second description","currencyCode":"MYR","isActive":true,"remark1":"Created by API","remark2":"GL account setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-gl-account.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.000.005.002.create-gl-account"},{"module":"GL","displayGroup":"GL","title":"Guarded GL account edit request.","commandType":"update-gl-account","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/edit","summary":"Guarded GL account edit request.","notes":"Returns editBlocked until AccountCommand edit/save safety is proven. Full human payload reference for GL Account Maintenance. Account type, parent account, and special account type must match the account book's chart of accounts rules. Use list-general-account-types to discover valid account type codes. For a fixed asset GL account, use a valid Asset accType returned by list-general-account-types and set specialAccType: \"SFA\" or \"FixedAsset\". Do not put fixed asset into accType unless that exact AccType code exists in the account book.","payloadSchema":{"accNo":"required GL account number","reason":"required","description":"required account description/name","desc2":"optional second description","accType":"required AutoCount account type","parentAccNo":"optional parent account number","currencyCode":"optional currency code","cashFlowCategory":"optional cash flow category","specialAccType":"optional special account type such as Normal, Bank, Cash, FixedAsset/SFA, AccumulatedDepreciation/SAD, DebtorControl, or CreditorControl","isActive":"optional boolean active flag","remark1":"optional remark field 1","remark2":"optional remark field 2"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-gl-account-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-gl-account","payload":{"accNo":"690-9000","reason":"correct account description","description":"API Expense Account","desc2":"API expense second description","accType":"EP","parentAccNo":"610-0000","currencyCode":"MYR","cashFlowCategory":"OperatingActivities","specialAccType":"Normal","isActive":true,"remark1":"Created by API","remark2":"GL account setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-gl-account.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.000.006.003.update-gl-account"},{"module":"GL","displayGroup":"GL","title":"Guarded GL account void request.","commandType":"void-gl-account","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/void","summary":"Guarded GL account void request.","notes":"Returns voidBlocked; chart accounts may be linked to posted transactions.","payloadSchema":{"accNo":"required account code","reason":"required"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-gl-account-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-gl-account","payload":{"accNo":"610-0000","reason":"deactivate account"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-gl-account.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.000.007.004.void-gl-account"},{"module":"GL","displayGroup":"GL","title":"Guarded GL account delete request.","commandType":"delete-gl-account","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/delete","summary":"Guarded GL account delete request.","notes":"Returns deleteBlocked; chart accounts may be linked to posted transactions.","payloadSchema":{"accNo":"required account code","reason":"required"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-gl-account-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-gl-account","payload":{"accNo":"610-0000","reason":"remove unused account"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-gl-account.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.000.008.005.delete-gl-account"},{"module":"GL","displayGroup":"GL","title":"List journal entries.","commandType":"list-journal-entries","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/journal-entry/list","summary":"List journal entries.","notes":"Uses AutoCount JournalEntryCommand.InquireAllMaster.","payloadSchema":{"status":"optional AutoCount document status","columns":"optional comma-separated master columns"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-journal-entries-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-journal-entries","payload":{"columns":"DocKey,DocNo,DocDate,JournalType,Description,TotalDR,TotalCR,Cancelled,LastModified"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-journal-entries.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.002.000.000.list-journal-entries"},{"module":"GL","displayGroup":"GL","title":"Get one journal entry with detail lines.","commandType":"get-journal-entry","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/journal-entry/get","summary":"Get one journal entry with detail lines.","notes":"Uses AutoCount JournalEntryCommand.View.","payloadSchema":{"docNo":"required unless docKey is supplied","docKey":"optional numeric document key"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-journal-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-journal-entry","payload":{"docNo":"JV-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-journal-entry.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.002.002.000.get-journal-entry"},{"module":"GL","displayGroup":"GL","title":"Validate a GL journal entry without saving. Supports the same multi-line payload as create-journal-entry.","commandType":"validate-journal-entry","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/journal-entry/validate","summary":"Validate a GL journal entry without saving. Supports the same multi-line payload as create-journal-entry.","notes":"Validation only. Total debit must equal total credit. Multiple lines are supported. Debit and credit totals must balance before AutoCount will save.","payloadSchema":{"docDate":"required YYYY-MM-DD journal date","description":"optional journal narration","lines":"required array of debit/credit rows; total debit must equal total credit","docNo":"optional journal voucher number; omit to let AutoCount numbering generate it","journalType":"optional AutoCount journal type","refNo":"optional reference number","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-journal-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-journal-entry","payload":{"docDate":"2026-06-24","description":"API journal entry","lines":[{"accNo":"610-0000","accountNo":"610-0000","description":"Debit expense","debit":100,"credit":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","taxType":"S-0","taxCode":"S-0","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accNo":"500-1000","accountNo":"500-1000","description":"Credit control","debit":0,"credit":100,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","taxType":"S-0","taxCode":"S-0","classification":"022"}],"journalType":"JV","refNo":"API-JV-1001","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-journal-entry.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.002.004.001.validate-journal-entry"},{"module":"GL","displayGroup":"GL","title":"Create GL journal entry. Supports one or many debit/credit lines.","commandType":"create-journal-entry","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/journal-entry/create","summary":"Create GL journal entry. Supports one or many debit/credit lines.","notes":"Requires write access permission. Total debit must equal total credit. Old debitAccNo/creditAccNo/amount payload still works. Multiple lines are supported. Debit and credit totals must balance before AutoCount will save.","payloadSchema":{"docDate":"required YYYY-MM-DD journal date","description":"optional journal narration","lines":"required array of debit/credit rows; total debit must equal total credit","docNo":"optional journal voucher number; omit to let AutoCount numbering generate it","journalType":"optional AutoCount journal type","refNo":"optional reference number","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-journal-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-journal-entry","payload":{"docDate":"2026-06-24","description":"API journal entry","lines":[{"accNo":"610-0000","accountNo":"610-0000","description":"Debit expense","debit":100,"credit":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","taxType":"S-0","taxCode":"S-0","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accNo":"500-1000","accountNo":"500-1000","description":"Credit control","debit":0,"credit":100,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","taxType":"S-0","taxCode":"S-0","classification":"022"}],"journalType":"JV","refNo":"API-JV-1001","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-journal-entry.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.002.005.002.create-journal-entry"},{"module":"GL","displayGroup":"GL","title":"Update a journal entry header/simple fields and supported detail rows.","commandType":"update-journal-entry","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/journal-entry/edit","summary":"Update a journal entry header/simple fields and supported detail rows.","notes":"Uses AutoCount SDK load/edit + Save. Header/simple fields are enabled. 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. Supports line/detail edit, payment/detail edit, and knock-off allocation edit where the AutoCount SDK exposes safe methods. Uses AutoCount JournalEntry edit/view + Save for header/simple fields and line/detail edit. detailMode: replace | append | update | delete. Journal debit and credit must balance before save.","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","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"optional journal line/detail edit array; each row supports lineNo/dtlKey, accNo/accountNo, debit/dr or credit/cr, description, projNo, deptNo, taxCode"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-journal-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-journal-entry","payload":{"docNo":"JV-000001","reason":"correct header fields","description":"Updated by API","ref":"API-REF-UPDATED","detailMode":"replace","lines":[{"accNo":"610-0000","debit":100,"description":"Corrected debit line","projNo":"HQ"},{"accNo":"500-0000","credit":100,"description":"Corrected credit line","projNo":"HQ"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-journal-entry.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.002.006.003.update-journal-entry"},{"module":"GL","displayGroup":"GL","title":"Cancel/void a journal entry.","commandType":"void-journal-entry","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/journal-entry/void","summary":"Cancel/void a journal entry.","notes":"Uses AutoCount JournalEntryCommand.CancelDocument.","payloadSchema":{"docNo":"required unless docKey is provided","docKey":"optional numeric document key","reason":"optional audit reason"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-journal-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-journal-entry","payload":{"docNo":"JV-000001","reason":"void/correct journal"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-journal-entry.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.002.007.004.void-journal-entry"},{"module":"GL","displayGroup":"GL","title":"Hard delete a journal entry.","commandType":"delete-journal-entry","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/journal-entry/delete","summary":"Hard delete a journal entry.","notes":"Uses AutoCount JournalEntryCommand.Delete. Use void-journal-entry when audit-trail cancellation is required.","payloadSchema":{"docNo":"required unless docKey is provided","docKey":"optional numeric document key","reason":"optional audit reason"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-journal-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-journal-entry","payload":{"docNo":"JV-000001","reason":"delete incorrect journal"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-journal-entry.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"006.002.008.005.delete-journal-entry"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"List GL bank and cash accounts used by cash book.","commandType":"list-gl-bank-cash-accounts","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/gl-cash-book/list","summary":"List GL bank and cash accounts used by cash book.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-gl-bank-cash-accounts-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-gl-bank-cash-accounts","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-gl-bank-cash-accounts.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.000.000.000.list-gl-bank-cash-accounts"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"List the G/L > Cash Book Entry document grid.","commandType":"list-gl-cash-book-documents","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/cash-book-entry/list","summary":"List the G/L > Cash Book Entry document grid.","notes":"","payloadSchema":{"status":"optional AutoCount document status","columns":"optional comma-separated master columns"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-gl-cash-book-documents-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-gl-cash-book-documents","payload":{"columns":"DocKey,DocNo,DocDate,Description,DealWith,Total,NetTotal,TotalPayment,Cancelled,LastModified"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-gl-cash-book-documents.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.000.000.000.list-gl-cash-book-documents"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"List cash book report/inquiry rows grouped by bank/cash account.","commandType":"list-gl-cash-book-entries","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/cash-book-report/list","summary":"List cash book report/inquiry rows grouped by bank/cash account.","notes":"","payloadSchema":{"fromDate":"YYYY-MM-DD optional","toDate":"YYYY-MM-DD optional","accountNo":"optional bank/cash account","accountNos":"optional comma-separated bank/cash accounts","showTotal":"boolean optional","showDebtorDetails":"boolean optional","showCreditorDetails":"boolean optional","showInLocalCurrency":"boolean optional","sortBy":"optional AutoCount account sort enum name"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-gl-cash-book-entries-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-gl-cash-book-entries","payload":{"fromDate":"2026-01-01","toDate":"2026-12-31","showTotal":true,"showDebtorDetails":false,"showCreditorDetails":false,"showInLocalCurrency":false}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-gl-cash-book-entries.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.000.000.000.list-gl-cash-book-entries"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"Get one G/L Cash Book entry with detail and payment rows.","commandType":"get-gl-cash-book-entry","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/cash-book-entry/get","summary":"Get one G/L Cash Book entry with detail and payment rows.","notes":"Uses AutoCount CashBookCommand.View.","payloadSchema":{"docNo":"required unless docKey is supplied","docKey":"optional numeric document key"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-gl-cash-book-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-gl-cash-book-entry","payload":{"docNo":"PV-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-gl-cash-book-entry.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.000.002.000.get-gl-cash-book-entry"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"Validate a G/L Cash Book payment voucher without saving.","commandType":"validate-gl-cash-book-payment","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/payment-voucher/validate","summary":"Validate a G/L Cash Book payment voucher without saving.","notes":"Validation only; uses CashBookCommand.AddNew + CashBook.Validate. Cash book supports one or many posting lines and one or many payment rows when AutoCount payment method setup allows it.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","payTo":"optional payee name","taxEntityID":"optional numeric Tax Entity Maintenance ID for the cash book header","lines":"required array of GL posting rows","payments":"required or optional array of payment method rows","docNo":"optional voucher number; omit to let AutoCount numbering generate it","receiveFrom":"optional receipt payer name","description":"optional cash book narration","chequeNo":"optional cheque/reference number","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-gl-cash-book-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-gl-cash-book-payment","payload":{"docDate":"2026-06-24","payTo":"API Supplier","taxEntityID":1,"description":"API payment voucher","lines":[{"accNo":"610-0000","accountNo":"610-0000","description":"Expense line","amount":100,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"PV-API-1001","bankCharge":0,"bankAccount":"110-0010","paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"chequeNo":"PV-API-1001","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-gl-cash-book-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.000.004.001.validate-gl-cash-book-payment"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"Validate a G/L Cash Book official receipt without saving.","commandType":"validate-gl-cash-book-receipt","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/official-receipt/validate","summary":"Validate a G/L Cash Book official receipt without saving.","notes":"Validation only; uses CashBookCommand.AddNew + CashBook.Validate. Cash book supports one or many posting lines and one or many payment rows when AutoCount payment method setup allows it.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","receiveFrom":"optional receipt payer name","taxEntityID":"optional numeric Tax Entity Maintenance ID for the cash book header","lines":"required array of GL posting rows","payments":"required or optional array of payment method rows","docNo":"optional voucher number; omit to let AutoCount numbering generate it","payTo":"optional payee name","description":"optional cash book narration","chequeNo":"optional cheque/reference number","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-gl-cash-book-receipt-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-gl-cash-book-receipt","payload":{"docDate":"2026-06-24","receiveFrom":"API Customer","taxEntityID":1,"description":"API official receipt","lines":[{"accNo":"610-0000","accountNo":"610-0000","description":"Expense line","amount":100,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"PV-API-1001","bankCharge":0,"bankAccount":"110-0010","paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"chequeNo":"PV-API-1001","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-gl-cash-book-receipt.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.000.004.001.validate-gl-cash-book-receipt"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"Create a G/L Cash Book payment voucher. Supports one or many account lines and payment rows.","commandType":"create-gl-cash-book-payment","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/payment-voucher/create","summary":"Create a G/L Cash Book payment voucher. Supports one or many account lines and payment rows.","notes":"Creates through AutoCount CashBookCommand.AddNew(CashPayment) + CashBook.Save. Cash book supports one or many posting lines and one or many payment rows when AutoCount payment method setup allows it.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","payTo":"optional payee name","taxEntityID":"optional numeric Tax Entity Maintenance ID for the cash book header","lines":"required array of GL posting rows","payments":"required or optional array of payment method rows","docNo":"optional voucher number; omit to let AutoCount numbering generate it","receiveFrom":"optional receipt payer name","description":"optional cash book narration","chequeNo":"optional cheque/reference number","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-gl-cash-book-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-gl-cash-book-payment","payload":{"docDate":"2026-06-24","payTo":"API Supplier","taxEntityID":1,"description":"API payment voucher","lines":[{"accNo":"610-0000","accountNo":"610-0000","description":"Expense line","amount":100,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"PV-API-1001","bankCharge":0,"bankAccount":"110-0010","paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"chequeNo":"PV-API-1001","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-gl-cash-book-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.000.005.002.create-gl-cash-book-payment"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"Create a G/L Cash Book official receipt. Supports one or many account lines and payment rows.","commandType":"create-gl-cash-book-receipt","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/official-receipt/create","summary":"Create a G/L Cash Book official receipt. Supports one or many account lines and payment rows.","notes":"Creates through AutoCount CashBookCommand.AddNew(CashReceipt) + CashBook.Save. Cash book supports one or many posting lines and one or many payment rows when AutoCount payment method setup allows it.","payloadSchema":{"docDate":"required or optional YYYY-MM-DD document date","receiveFrom":"optional receipt payer name","taxEntityID":"optional numeric Tax Entity Maintenance ID for the cash book header","lines":"required array of GL posting rows","payments":"required or optional array of payment method rows","docNo":"optional voucher number; omit to let AutoCount numbering generate it","payTo":"optional payee name","description":"optional cash book narration","chequeNo":"optional cheque/reference number","userDefinedFields":"optional object of AutoCount user-defined fields"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-gl-cash-book-receipt-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-gl-cash-book-receipt","payload":{"docDate":"2026-06-24","receiveFrom":"API Customer","taxEntityID":1,"description":"API official receipt","lines":[{"accNo":"610-0000","accountNo":"610-0000","description":"Expense line","amount":100,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"PV-API-1001","bankCharge":0,"bankAccount":"110-0010","paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"chequeNo":"PV-API-1001","userDefinedFields":{"APITEST":"API"}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-gl-cash-book-receipt.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.000.005.002.create-gl-cash-book-receipt"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"Update G/L Cash Book header/simple fields.","commandType":"update-gl-cash-book-entry","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/cash-book-entry/edit","summary":"Update G/L Cash Book header/simple fields.","notes":"Uses AutoCount CashBookCommand Edit/View + Save. Header/simple fields are enabled. Detail/payment line edits remain guarded until proven. Uses AutoCount CashBookCommand edit/view + Save for header/simple fields, line/detail edit, and payment/detail edit. detailMode: replace | append | update | delete; payment rows use replace/append.","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","detailMode":"optional detail edit mode: replace | append | update | delete","taxEntityID":"optional numeric Tax Entity Maintenance ID for the cash book header","lines":"optional cash book posting line/detail edit array; each row supports lineNo/dtlKey, accNo/accountNo, amount, description, projNo, deptNo, taxCode","paymentLines":"optional cash book payment/detail edit array; each row supports paymentMethod, paymentAmount, chequeNo, paymentBy, bankCharge"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-gl-cash-book-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-gl-cash-book-entry","payload":{"docNo":"PV-000001","reason":"correct header fields","description":"Updated by API","ref":"API-REF-UPDATED","detailMode":"replace","taxEntityID":1,"lines":[{"accNo":"610-0000","amount":100,"description":"Corrected cash book line"}],"paymentLines":[{"paymentMethod":"CASH","paymentAmount":100,"chequeNo":"API-EDIT-001"}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-gl-cash-book-entry.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.000.006.003.update-gl-cash-book-entry"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"Cancel/void a G/L Cash Book entry.","commandType":"void-gl-cash-book-entry","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/cash-book-entry/void","summary":"Cancel/void a G/L Cash Book entry.","notes":"Uses AutoCount CashBookCommand.CancelDocument.","payloadSchema":{"docNo":"required unless docKey is provided","docKey":"optional numeric document key","reason":"optional audit reason"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-gl-cash-book-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-gl-cash-book-entry","payload":{"docNo":"PV-000001","reason":"cancel incorrect voucher"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-gl-cash-book-entry.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.000.007.004.void-gl-cash-book-entry"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"Hard delete a G/L Cash Book entry.","commandType":"delete-gl-cash-book-entry","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/cash-book-entry/delete","summary":"Hard delete a G/L Cash Book entry.","notes":"Uses AutoCount CashBookCommand.Delete. Use void-gl-cash-book-entry when audit-trail cancellation is required.","payloadSchema":{"docNo":"required unless docKey is provided","docKey":"optional numeric document key","reason":"optional audit reason"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-gl-cash-book-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-gl-cash-book-entry","payload":{"docNo":"PV-000001","reason":"delete incorrect voucher"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-gl-cash-book-entry.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.000.008.005.delete-gl-cash-book-entry"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"List GL accounts with cash-flow category metadata.","commandType":"read-gl-cash-flow-accounts","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/cash-flow-account/list","summary":"List GL accounts with cash-flow category metadata.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-gl-cash-flow-accounts-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-gl-cash-flow-accounts","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-gl-cash-flow-accounts.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.003.001.000.read-gl-cash-flow-accounts"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"List issued or received cheque entries.","commandType":"list-gl-cheques","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/cheque/list","summary":"List issued or received cheque entries.","notes":"","payloadSchema":{"fromDate":"YYYY-MM-DD optional","toDate":"YYYY-MM-DD optional","chequeOption":"issued | received","cancelled":"all | cancelled | uncancelled","showCashAccount":"boolean optional"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-gl-cheques-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-gl-cheques","payload":{"fromDate":"2026-01-01","toDate":"2026-12-31","chequeOption":"issued","cancelled":"uncancelled","showCashAccount":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-gl-cheques.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.999.000.000.list-gl-cheques"},{"module":"GL Cash Book","displayGroup":"GL Cash Book","title":"List payment methods used by AR/AP cashbook-style documents.","commandType":"read-payment-methods","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/payment-method/list","summary":"List payment methods used by AR/AP cashbook-style documents.","notes":"","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"read-payment-methods-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-payment-methods","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-payment-methods.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"007.999.001.000.read-payment-methods"},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","title":"List uncleared transactions for a bank/cash account.","commandType":"list-gl-bank-reconciliation-uncleared","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/uncleared-transactions/list","summary":"List uncleared transactions for a bank/cash account.","notes":"Uses AutoCount.GL.BankRecon.BankReconCommand.InquireUnclearedData.","payloadSchema":{"accNo":"required bank/cash account number","startDate":"optional YYYY-MM-DD"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-gl-bank-reconciliation-uncleared-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-gl-bank-reconciliation-uncleared","payload":{"accNo":"110-0010","startDate":"2026-01-01"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-gl-bank-reconciliation-uncleared.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"008.999.000.000.list-gl-bank-reconciliation-uncleared"},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","title":"List bank reconciliation records.","commandType":"list-gl-bank-reconciliations","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/list","summary":"List bank reconciliation records.","notes":"Uses AutoCount.GL.BankRecon.BankReconCommand.InquireAllMaster.","payloadSchema":{},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-gl-bank-reconciliations-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-gl-bank-reconciliations","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-gl-bank-reconciliations.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"008.999.000.000.list-gl-bank-reconciliations"},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","title":"Get one bank reconciliation with master/detail/reconciliation rows.","commandType":"get-gl-bank-reconciliation","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/get","summary":"Get one bank reconciliation with master/detail/reconciliation rows.","notes":"Uses AutoCount.GL.BankRecon.BankReconCommand.View.","payloadSchema":{"accNo":"required bank/cash account number","reconDate":"required YYYY-MM-DD bank statement/reconciliation date"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-gl-bank-reconciliation-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-gl-bank-reconciliation","payload":{"accNo":"110-0010","reconDate":"2026-06-30"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-gl-bank-reconciliation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"008.999.002.000.get-gl-bank-reconciliation"},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","title":"Create a bank reconciliation draft without saving. If selectedBankTransKeys or clearedRows are supplied, the returned draft shows which rows would be ticked.","commandType":"validate-gl-bank-reconciliation","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/validate","summary":"Create a bank reconciliation draft without saving. If selectedBankTransKeys or clearedRows are supplied, the returned draft shows which rows would be ticked.","notes":"Validation only; uses BankReconCommand.AddNew and does not call Save. List uncleared rows first, then pass selectedBankTransKeys or clearedRows. The connector fails before saving if a selected row cannot be found.","payloadSchema":{"accNo":"required bank/cash GL account number","reconDate":"required YYYY-MM-DD bank statement/reconciliation date","actualBalance":"required bank statement actual balance for create/update; optional for validate","selectedBankTransKeys":"optional array of BankTransKey values from list-gl-bank-reconciliation-uncleared","clearedRows":"optional detailed rows with bankTransKey/sourceType/sourceKey/dtlKey/docNo/lineNo","bankStatementNo":"optional bank statement/reference number","description":"optional reconciliation narration","unselectedBankTransKeys":"optional rows to leave unticked when replacing selection","confirmDelete":"required true only for delete-gl-bank-reconciliation","reason":"optional audit/business reason for update/delete requests"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"validate-gl-bank-reconciliation-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-gl-bank-reconciliation","payload":{"accNo":"110-0010","reconDate":"2026-06-30","actualBalance":2900,"selectedBankTransKeys":[1,2],"bankStatementNo":"BS-2026-06","description":"June bank reconciliation by API","clearedRows":[{"bankTransKey":1,"sourceType":"PV","sourceKey":"1001","dtlKey":"1","docNo":"PV-000001","lineNo":1},{"bankTransKey":2,"sourceType":"OR","sourceKey":"1002","dtlKey":"1","docNo":"OR-000001","lineNo":1}],"unselectedBankTransKeys":[],"reason":"match bank statement"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-gl-bank-reconciliation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"008.999.004.001.validate-gl-bank-reconciliation"},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","title":"Create and save a bank reconciliation.","commandType":"create-gl-bank-reconciliation","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/create","summary":"Create and save a bank reconciliation.","notes":"Uses AutoCount BankReconCommand.AddNew + BankRecon.Save. The connector fails before saving if any selected row is not found. List uncleared rows first, then pass selectedBankTransKeys or clearedRows. The connector fails before saving if a selected row cannot be found.","payloadSchema":{"accNo":"required bank/cash GL account number","reconDate":"required YYYY-MM-DD bank statement/reconciliation date","actualBalance":"required bank statement actual balance for create/update; optional for validate","selectedBankTransKeys":"optional array of BankTransKey values from list-gl-bank-reconciliation-uncleared","clearedRows":"optional detailed rows with bankTransKey/sourceType/sourceKey/dtlKey/docNo/lineNo","bankStatementNo":"optional bank statement/reference number","description":"optional reconciliation narration","unselectedBankTransKeys":"optional rows to leave unticked when replacing selection","confirmDelete":"required true only for delete-gl-bank-reconciliation","reason":"optional audit/business reason for update/delete requests"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-gl-bank-reconciliation-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-gl-bank-reconciliation","payload":{"accNo":"110-0010","reconDate":"2026-06-30","actualBalance":2900,"selectedBankTransKeys":[1,2],"bankStatementNo":"BS-2026-06","description":"June bank reconciliation by API","clearedRows":[{"bankTransKey":1,"sourceType":"PV","sourceKey":"1001","dtlKey":"1","docNo":"PV-000001","lineNo":1},{"bankTransKey":2,"sourceType":"OR","sourceKey":"1002","dtlKey":"1","docNo":"OR-000001","lineNo":1}],"unselectedBankTransKeys":[],"reason":"match bank statement"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-gl-bank-reconciliation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"008.999.005.002.create-gl-bank-reconciliation"},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","title":"Edit and re-save an existing bank reconciliation.","commandType":"update-gl-bank-reconciliation","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/edit","summary":"Edit and re-save an existing bank reconciliation.","notes":"Uses AutoCount BankReconCommand.Edit + BankRecon.Save. The selected row list replaces the saved tick selection. List uncleared rows first, then pass selectedBankTransKeys or clearedRows. The connector fails before saving if a selected row cannot be found.","payloadSchema":{"accNo":"required bank/cash GL account number","reconDate":"required YYYY-MM-DD bank statement/reconciliation date","actualBalance":"required bank statement actual balance for create/update; optional for validate","selectedBankTransKeys":"optional array of BankTransKey values from list-gl-bank-reconciliation-uncleared","clearedRows":"optional detailed rows with bankTransKey/sourceType/sourceKey/dtlKey/docNo/lineNo","bankStatementNo":"optional bank statement/reference number","description":"optional reconciliation narration","unselectedBankTransKeys":"optional rows to leave unticked when replacing selection","confirmDelete":"required true only for delete-gl-bank-reconciliation","reason":"optional audit/business reason for update/delete requests"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-gl-bank-reconciliation-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-gl-bank-reconciliation","payload":{"accNo":"110-0010","reconDate":"2026-06-30","actualBalance":2900,"selectedBankTransKeys":[1,2],"bankStatementNo":"BS-2026-06","description":"June bank reconciliation by API","clearedRows":[{"bankTransKey":1,"sourceType":"PV","sourceKey":"1001","dtlKey":"1","docNo":"PV-000001","lineNo":1},{"bankTransKey":2,"sourceType":"OR","sourceKey":"1002","dtlKey":"1","docNo":"OR-000001","lineNo":1}],"unselectedBankTransKeys":[],"reason":"match bank statement"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-gl-bank-reconciliation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"008.999.006.003.update-gl-bank-reconciliation"},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","title":"Guarded bank reconciliation void request.","commandType":"void-gl-bank-reconciliation","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/void","summary":"Guarded bank reconciliation void request.","notes":"Returns voidBlocked; no safe Bank Recon void path has been proven.","payloadSchema":{"accNo":"required","reconDate":"required YYYY-MM-DD","reason":"required"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-gl-bank-reconciliation-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-gl-bank-reconciliation","payload":{"accNo":"110-0010","reconDate":"2026-06-30","reason":"reverse reconciliation"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-gl-bank-reconciliation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"008.999.007.004.void-gl-bank-reconciliation"},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","title":"Delete a bank reconciliation.","commandType":"delete-gl-bank-reconciliation","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/delete","summary":"Delete a bank reconciliation.","notes":"Uses AutoCount BankReconCommand.Delete. confirmDelete=true is required.","payloadSchema":{"accNo":"required","reconDate":"required YYYY-MM-DD","confirmDelete":"required true"},"fieldReference":{"header":{"docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path","journalType":"journal type","refNo":"reference number","payTo":"payment payee","receiveFrom":"receipt payer","chequeNo":"cheque/reference number","accNo":"bank/cash account for bank reconciliation","reconDate":"bank reconciliation date"},"lines":{"accountNo":"GL posting account","accNo":"GL posting account alias","glAccount":"GL posting account alias","description":"line narration","amount":"line amount","debit":"journal debit amount","credit":"journal credit amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxAmount":"tax amount","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-gl-bank-reconciliation-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-gl-bank-reconciliation","payload":{"accNo":"110-0010","reconDate":"2026-06-30","confirmDelete":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-gl-bank-reconciliation.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"008.999.008.005.delete-gl-bank-reconciliation"},{"module":"Reports","displayGroup":"Reports","title":"List AutoCount report templates available in this account book.","commandType":"list-autocount-report-templates","mode":"read","operation":"PDF/Report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/reports/reports/list","summary":"List AutoCount report templates available in this account book.","notes":"Use this first when a human wants to choose the same report layout they see in AutoCount. Then send the selected ReportName as reportName to the PDF/report command. Lists report templates from AutoCount DefaultReport and Report tables. Pick a ReportName from the result and pass it as reportName to AutoCount PDF/report commands.","payloadSchema":{"document":"optional friendly document/module filter such as statement, sales-invoice, purchase-invoice, stock-adjustment, ar-payment, payment-voucher, journal-entry","reportType":"optional exact AutoCount ReportType value when known","reportTypeLike":"optional partial AutoCount ReportType search text, for example Statement","maxRows":"optional maximum rows to return; default 500"},"exampleRequest":{"commandId":"list-autocount-report-templates-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-autocount-report-templates","payload":{"document":"statement","maxRows":200}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-autocount-report-templates.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"009.000.000.007.list-autocount-report-templates"},{"module":"Reports","displayGroup":"Reports","title":"Generate an AutoCount-looking sales document PDF/report.","commandType":"sales-document-autocount-pdf","mode":"report","operation":"PDF/Report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/reports/pdf","summary":"Generate an AutoCount-looking sales document PDF/report.","notes":"","payloadSchema":{"document":"invoice | sales-order | delivery-order | cash-sale | quotation | advanced-quotation | sales-credit-note | sales-debit-note","docNo":"required","reportName":"optional exact AutoCount report template; use list-autocount-report-templates to discover names","out":"optional local output path"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"sales-document-autocount-pdf-001","connectorId":"customer-main","companyId":"macsofttest","type":"sales-document-autocount-pdf","payload":{"document":"invoice","docNo":"IV-000001","reportName":"Invoice"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to sales-document-autocount-pdf.","Poll GET /v1/commands/{commandId} until status is done or failed.","For PDF commands, if result.artifactAvailable is true, download result.artifactUrl or GET /v1/commands/{commandId}/artifact with the same API key before sending the file as an attachment.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"009.001.010.007.sales-document-autocount-pdf"},{"module":"Reports","displayGroup":"Reports","title":"Legacy sales invoice PDF/export command. Prefer sales-document-autocount-pdf for new integrations.","commandType":"sales-invoice-autocount-pdf","mode":"report","operation":"PDF/Report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/pdf","summary":"Legacy sales invoice PDF/export command. Prefer sales-document-autocount-pdf for new integrations.","notes":"Compatibility command kept for older integrations.","payloadSchema":{"docNo":"required sales invoice document number","out":"optional local connector output path"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"sales-invoice-autocount-pdf-001","connectorId":"customer-main","companyId":"macsofttest","type":"sales-invoice-autocount-pdf","payload":{"docNo":"IV-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to sales-invoice-autocount-pdf.","Poll GET /v1/commands/{commandId} until status is done or failed.","For PDF commands, if result.artifactAvailable is true, download result.artifactUrl or GET /v1/commands/{commandId}/artifact with the same API key before sending the file as an attachment.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"009.001.010.007.sales-invoice-autocount-pdf"},{"module":"Reports","displayGroup":"Reports","title":"Generate readable sales report HTML.","commandType":"sales-report-html","mode":"report","operation":"PDF/Report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/reports/report","summary":"Generate readable sales report HTML.","notes":"","payloadSchema":{"document":"invoice | cash-sale | sales-order | quotation","out":"optional local output path"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"sales-report-html-001","connectorId":"customer-main","companyId":"macsofttest","type":"sales-report-html","payload":{"document":"invoice"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to sales-report-html.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"009.001.010.007.sales-report-html"},{"module":"Reports","displayGroup":"Reports","title":"Generate an AutoCount-looking purchase document PDF/report.","commandType":"purchase-document-autocount-pdf","mode":"report","operation":"PDF/Report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/reports/pdf","summary":"Generate an AutoCount-looking purchase document PDF/report.","notes":"Uses AutoCount purchase report templates for PO, GRN, purchase invoice, purchase return, and cash purchase.","payloadSchema":{"document":"purchase-order | goods-received-note | purchase-invoice | purchase-return | cash-purchase","docNo":"required","reportName":"optional AutoCount report template","out":"optional local connector output path"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"purchase-document-autocount-pdf-001","connectorId":"customer-main","companyId":"macsofttest","type":"purchase-document-autocount-pdf","payload":{"document":"purchase-invoice","docNo":"PI-000001","reportName":"Purchase Invoice"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to purchase-document-autocount-pdf.","Poll GET /v1/commands/{commandId} until status is done or failed.","For PDF commands, if result.artifactAvailable is true, download result.artifactUrl or GET /v1/commands/{commandId}/artifact with the same API key before sending the file as an attachment.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"009.002.010.007.purchase-document-autocount-pdf"},{"module":"Reports","displayGroup":"Reports","title":"Generate an AutoCount-looking stock document PDF/report.","commandType":"stock-document-autocount-pdf","mode":"report","operation":"PDF/Report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/reports/pdf","summary":"Generate an AutoCount-looking stock document PDF/report.","notes":"Uses AutoCount stock and manufacturing stock report templates.","payloadSchema":{"document":"stock-adjustment | stock-receive | stock-issue | stock-transfer | stock-uom-conversion | stock-take | stock-write-off | stock-update-cost | stock-assembly | stock-assembly-order | stock-disassembly","docNo":"required","reportName":"optional AutoCount report template","out":"optional local connector output path"},"exampleRequest":{"commandId":"stock-document-autocount-pdf-001","connectorId":"customer-main","companyId":"macsofttest","type":"stock-document-autocount-pdf","payload":{"document":"stock-adjustment","docNo":"SA-000001","reportName":"Stock Adjustment"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to stock-document-autocount-pdf.","Poll GET /v1/commands/{commandId} until status is done or failed.","For PDF commands, if result.artifactAvailable is true, download result.artifactUrl or GET /v1/commands/{commandId}/artifact with the same API key before sending the file as an attachment.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"009.004.010.007.stock-document-autocount-pdf"},{"module":"Reports","displayGroup":"Reports","title":"Generate official AutoCount debtor or creditor statement PDF.","commandType":"arap-statement-autocount-pdf","mode":"report","operation":"PDF/Report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/arap-module/reports/pdf","summary":"Generate official AutoCount debtor or creditor statement PDF.","notes":"Supported for debtor and creditor statements. Uses AutoCount statement report templates and returns a downloadable PDF artifact. Generate official AutoCount debtor or creditor statement PDF using SDK statement data and AutoCount statement report templates. Download the result from result.artifactUrl or GET /v1/commands/{commandId}/artifact.","payloadSchema":{"document":"debtor-statement | creditor-statement","debtorCode":"optional when document is debtor-statement","creditorCode":"optional when document is creditor-statement","fromDate":"optional YYYY-MM-DD start date","toDate":"optional YYYY-MM-DD end date","reportName":"optional exact AutoCount statement template, for example Debtor Statement - 12 Months or Creditor Statement - 6 Months","out":"optional local connector output path ending with .pdf"},"exampleRequest":{"commandId":"arap-statement-autocount-pdf-001","connectorId":"customer-main","companyId":"macsofttest","type":"arap-statement-autocount-pdf","payload":{"document":"debtor-statement","debtorCode":"300-A001","fromDate":"2026-01-01","toDate":"2026-12-31","reportName":"Debtor Statement - 12 Months"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to arap-statement-autocount-pdf.","Poll GET /v1/commands/{commandId} until status is done or failed.","For PDF commands, if result.artifactAvailable is true, download result.artifactUrl or GET /v1/commands/{commandId}/artifact with the same API key before sending the file as an attachment.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"009.006.010.007.arap-statement-autocount-pdf"},{"module":"Reports","displayGroup":"Reports","title":"Read AutoCount creditor statement data.","commandType":"creditor-statement-report","mode":"read","operation":"PDF/Report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/creditor-supplier/report","summary":"Read AutoCount creditor statement data.","notes":"Uses AutoCount CreditorStatement.Inquire and returns the real statement DataSet tables. This is data output, not a PDF. Runs AutoCount CreditorStatement.Inquire through the local SDK and returns the real statement DataSet tables, including master/detail/aging rows where AutoCount provides them. Use arap-statement-autocount-pdf when the official AutoCount PDF layout is needed.","payloadSchema":{"creditorCode":"optional supplier account code; omit to include all creditors","fromDate":"optional YYYY-MM-DD start date","toDate":"optional YYYY-MM-DD end date; default today","statementType":"optional CreditorDefault | OpenItemOnly | BalanceBF","zeroBalanceMethod":"optional Exclude | Include | IncludeWithActiveTransactionOnly","showPaidTransaction":"optional boolean; default true","showGroupCompany":"optional boolean; default true","showSubCompany":"optional boolean; default true","showInLocalCurrency":"optional boolean; default false"},"exampleRequest":{"commandId":"creditor-statement-report-001","connectorId":"customer-main","companyId":"macsofttest","type":"creditor-statement-report","payload":{"creditorCode":"400-S001","fromDate":"2026-01-01","toDate":"2026-12-31","statementType":"CreditorDefault","zeroBalanceMethod":"IncludeWithActiveTransactionOnly","showPaidTransaction":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to creditor-statement-report.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"009.006.010.007.creditor-statement-report"},{"module":"Reports","displayGroup":"Reports","title":"Read AutoCount debtor statement data.","commandType":"debtor-statement-report","mode":"read","operation":"PDF/Report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/debtor-customer/report","summary":"Read AutoCount debtor statement data.","notes":"Uses AutoCount DebtorStatement.Inquire and returns the real statement DataSet tables. This is data output, not a PDF. Runs AutoCount DebtorStatement.Inquire through the local SDK and returns the real statement DataSet tables, including master/detail/aging rows where AutoCount provides them. Use arap-statement-autocount-pdf when the official AutoCount PDF layout is needed.","payloadSchema":{"debtorCode":"optional debtor/customer account code; omit to include all debtors","fromDate":"optional YYYY-MM-DD start date","toDate":"optional YYYY-MM-DD end date; default today","statementType":"optional DebtorDefault | OpenItemOnly | BalanceBF","zeroBalanceMethod":"optional Exclude | Include | IncludeWithActiveTransactionOnly","showPaidTransaction":"optional boolean; default true","showGroupCompany":"optional boolean; default true","showSubCompany":"optional boolean; default true","showInLocalCurrency":"optional boolean; default false"},"exampleRequest":{"commandId":"debtor-statement-report-001","connectorId":"customer-main","companyId":"macsofttest","type":"debtor-statement-report","payload":{"debtorCode":"300-A001","fromDate":"2026-01-01","toDate":"2026-12-31","statementType":"DebtorDefault","zeroBalanceMethod":"IncludeWithActiveTransactionOnly","showPaidTransaction":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to debtor-statement-report.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"009.006.010.007.debtor-statement-report"},{"module":"Reports","displayGroup":"Reports","title":"Export a human-readable debtor or creditor statement HTML report.","commandType":"statement-report-html","mode":"report","operation":"PDF/Report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/reports/reports/report","summary":"Export a human-readable debtor or creditor statement HTML report.","notes":"Statement HTML report uses real AutoCount SDK statement data. For official AutoCount PDF layout, use arap-statement-autocount-pdf. Exports a human-readable statement HTML file using AutoCount SDK statement data. For official AutoCount PDF layout, use arap-statement-autocount-pdf.","payloadSchema":{"document":"debtor-statement | creditor-statement","debtorCode":"optional debtor/customer account code when document is debtor-statement; omit to include all","creditorCode":"optional supplier account code when document is creditor-statement; omit to include all","fromDate":"optional YYYY-MM-DD start date","toDate":"optional YYYY-MM-DD end date; default today","maxRows":"optional maximum transaction rows rendered into the HTML; default 2000","out":"optional local connector output path ending with .html","statementType":"optional DebtorDefault/CreditorDefault | OpenItemOnly | BalanceBF","zeroBalanceMethod":"optional Exclude | Include | IncludeWithActiveTransactionOnly"},"exampleRequest":{"commandId":"statement-report-html-001","connectorId":"customer-main","companyId":"macsofttest","type":"statement-report-html","payload":{"document":"debtor-statement","debtorCode":"300-A001","fromDate":"2026-01-01","toDate":"2026-12-31","maxRows":2000}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to statement-report-html.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"009.006.010.007.statement-report-html"},{"module":"Reports","displayGroup":"Reports","title":"Generate AutoCount PDFs for AR/AP invoice, payment, deposit, refund, credit note, debit note, and contra.","commandType":"arap-document-autocount-pdf","mode":"report","operation":"PDF/Report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/arap-module/reports/pdf","summary":"Generate AutoCount PDFs for AR/AP invoice, payment, deposit, refund, credit note, debit note, and contra.","notes":"Uses AutoCount report templates. Invoice/payment/deposit/refund use single-document listing data sources; credit/debit note and contra use document data sources.","payloadSchema":{"document":"ar-invoice | ap-invoice | ar-payment | ap-payment | ar-deposit | ap-deposit | ar-refund | ap-refund | ar-credit-note | ap-credit-note | ar-debit-note | ap-debit-note | arap-contra","docNo":"required unless docKey is supplied","docKey":"optional numeric document key","reportName":"optional AutoCount report template","out":"optional local connector output path"},"exampleRequest":{"commandId":"arap-document-autocount-pdf-001","connectorId":"customer-main","companyId":"macsofttest","type":"arap-document-autocount-pdf","payload":{"document":"ar-payment","docNo":"OR-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to arap-document-autocount-pdf.","Poll GET /v1/commands/{commandId} until status is done or failed.","For PDF commands, if result.artifactAvailable is true, download result.artifactUrl or GET /v1/commands/{commandId}/artifact with the same API key before sending the file as an attachment.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"009.007.010.007.arap-document-autocount-pdf"},{"module":"Reports","displayGroup":"Reports","title":"Generate AutoCount-looking GL cash book voucher and journal voucher PDFs.","commandType":"gl-document-autocount-pdf","mode":"report","operation":"PDF/Report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/reports/pdf","summary":"Generate AutoCount-looking GL cash book voucher and journal voucher PDFs.","notes":"payment-voucher, official-receipt, and journal-entry are supported with AutoCount report templates.","payloadSchema":{"document":"payment-voucher | official-receipt | cash-book | journal-entry","docNo":"required unless docKey is supplied","docKey":"optional numeric document key","reportName":"optional AutoCount report template","out":"optional local connector output path"},"exampleRequest":{"commandId":"gl-document-autocount-pdf-001","connectorId":"customer-main","companyId":"macsofttest","type":"gl-document-autocount-pdf","payload":{"document":"payment-voucher","docNo":"PV-000001","reportName":"PV - Half Page"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to gl-document-autocount-pdf.","Poll GET /v1/commands/{commandId} until status is done or failed.","For PDF commands, if result.artifactAvailable is true, download result.artifactUrl or GET /v1/commands/{commandId}/artifact with the same API key before sending the file as an attachment.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"009.007.010.007.gl-document-autocount-pdf"},{"module":"Master Data","displayGroup":"Master Data","title":"Create a debtor/customer.","commandType":"create-debtor","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/debtor-customer/create","summary":"Create a debtor/customer.","notes":"Creates customer master data through AutoCount SDK. Normal fields map to debtor properties; top-level delivery fields are normalized into BranchTable and top-level contact fields are normalized into ContactTable when explicit arrays are not supplied. This is the full human payload reference for Debtor Maintenance. The connector writes normal fields through AutoCount DLL properties and writes branches/contacts through AutoCount DLL child DataTables, then reloads the debtor and returns writeVerification.notMapped, writeVerification.notPersisted, and writeVerification.childRows when AutoCount does not expose or persist a requested value. If top-level deliveryAddress fields are supplied without branches, the connector creates/updates an AutoCount BranchTable row using branchCode or HQ. If top-level contactPerson/contactName/contact fields are supplied without contacts, the connector creates/updates an AutoCount ContactTable row.","payloadSchema":{"accNo":"required debtor/customer account code","companyName":"required customer company/name","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","postCode":"optional billing postcode; connector tries AutoCount postcode/postal code SDK aliases and verifies read-back","contactPerson":"optional contact person; also creates/updates an AutoCount ContactTable row when contacts array is not supplied","deliveryAddress1":"optional delivery address line 1","deliveryAddress2":"optional delivery address line 2","deliveryAddress3":"optional delivery address line 3","deliveryAddress4":"optional delivery address line 4","deliveryPostCode":"optional delivery postcode for the default delivery branch row","deliveryContact":"optional delivery contact for the default delivery branch row","contacts":"optional array of contact persons written through AutoCount DLL ContactTable; supports name/contactName, department, title/designation, mobilePhone/mobile/phone, directPhone, directFax, emailAddress/email, imAddress, note, openingBonusPoint, includeInContactInfo","branches":"optional array of debtor branch records written through AutoCount DLL BranchTable; supports branchCode/code, branchName/name, address1-4, postCode, contact/attention, phone1/2, fax1/2, areaCode, salesAgent, purchaseAgent, emailAddress/email, mobile, taxEntityID, isActive","phone1":"optional primary phone","phone2":"optional secondary phone","emailAddress":"optional email address","currencyCode":"optional currency code such as MYR","taxCode":"optional tax code/type","taxEntityID":"optional Tax Entity Maintenance numeric ID to link this debtor to e-Invoice/tax entity details","controlAccount":"optional debtor control account","isActive":"optional boolean active flag","desc2":"optional second name/description","debtorType":"optional Debtor Type Maintenance code","area":"optional Area Maintenance code","salesAgent":"optional Sales Agent Maintenance code","branchCode":"optional branch code for multi-branch/customer branch usage","displayTerm":"optional Credit Term Maintenance value such as C.O.D. or 30 DAYS","priceCategory":"optional Price Category Maintenance code","creditLimit":"optional credit limit amount","overdueLimit":"optional overdue limit amount or days depending on AutoCount setup","statementType":"optional statement type if the account book uses it","allowExceedCreditLimit":"optional boolean if AutoCount/account-book policy exposes it","attention":"optional contact attention person","fax1":"optional fax","website":"optional website","registrationNo":"optional company registration number","taxRegisterNo":"optional SST/tax registration number","businessNature":"optional business nature","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"create-debtor-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-debtor","payload":{"accNo":"300-API","companyName":"API Customer Sdn Bhd","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","postCode":"50000","contactPerson":"Lim Accounts","deliveryAddress1":"Warehouse 1","deliveryAddress2":"Industrial Park","deliveryPostCode":"40100","deliveryContact":"Store Receiver","phone1":"03-11111111","phone2":"012-3456789","emailAddress":"customer@example.com","currencyCode":"MYR","taxCode":"SST","taxEntityID":1,"controlAccount":"300-0000","isActive":true,"desc2":"API Customer Trading Name","debtorType":"CUS","area":"KL","salesAgent":"SA01","branchCode":"HQ","displayTerm":"30 DAYS","priceCategory":"API","creditLimit":50000,"overdueLimit":30,"statementType":"Open Item","allowExceedCreditLimit":false,"attention":"Accounts Department","fax1":"03-11111112","website":"https://customer.example.com","registrationNo":"202601000001","taxRegisterNo":"SST-300-API","businessNature":"Trading","remark1":"Created by API","remark2":"Credit control example","deliveryAddress3":"Shah Alam","deliveryAddress4":"Malaysia","contacts":[{"name":"Lim Accounts","department":"Finance","designation":"Accounts","mobilePhone":"012-1111111","directPhone":"03-11111113","emailAddress":"accounts@example.com","includeInContactInfo":true}],"branches":[{"branchCode":"HQ","branchName":"Head Office","address1":"No. 1 Jalan API","address2":"Taman Integration","postCode":"50000","contact":"Lim Accounts","phone1":"03-11111111","emailAddress":"hq@example.com","taxEntityID":1,"isActive":true}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-debtor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.000.005.002.create-debtor"},{"module":"Master Data","displayGroup":"Master Data","title":"Update a debtor/customer.","commandType":"update-debtor","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/debtor-customer/edit","summary":"Update a debtor/customer.","notes":"Updates debtor/customer master data through AutoCount SDK using the same supported fields as create-debtor. This is the full human payload reference for Debtor Maintenance. The connector writes normal fields through AutoCount DLL properties and writes branches/contacts through AutoCount DLL child DataTables, then reloads the debtor and returns writeVerification.notMapped, writeVerification.notPersisted, and writeVerification.childRows when AutoCount does not expose or persist a requested value. If top-level deliveryAddress fields are supplied without branches, the connector creates/updates an AutoCount BranchTable row using branchCode or HQ. If top-level contactPerson/contactName/contact fields are supplied without contacts, the connector creates/updates an AutoCount ContactTable row.","payloadSchema":{"accNo":"required debtor/customer account code","companyName":"required customer company/name","address1":"optional billing address line 1","address2":"optional billing address line 2","address3":"optional billing address line 3","address4":"optional billing address line 4","postCode":"optional billing postcode; connector tries AutoCount postcode/postal code SDK aliases and verifies read-back","contactPerson":"optional contact person; also creates/updates an AutoCount ContactTable row when contacts array is not supplied","deliveryAddress1":"optional delivery address line 1","deliveryAddress2":"optional delivery address line 2","deliveryAddress3":"optional delivery address line 3","deliveryAddress4":"optional delivery address line 4","deliveryPostCode":"optional delivery postcode for the default delivery branch row","deliveryContact":"optional delivery contact for the default delivery branch row","contacts":"optional array of contact persons written through AutoCount DLL ContactTable; supports name/contactName, department, title/designation, mobilePhone/mobile/phone, directPhone, directFax, emailAddress/email, imAddress, note, openingBonusPoint, includeInContactInfo","branches":"optional array of debtor branch records written through AutoCount DLL BranchTable; supports branchCode/code, branchName/name, address1-4, postCode, contact/attention, phone1/2, fax1/2, areaCode, salesAgent, purchaseAgent, emailAddress/email, mobile, taxEntityID, isActive","phone1":"optional primary phone","phone2":"optional secondary phone","emailAddress":"optional email address","currencyCode":"optional currency code such as MYR","taxCode":"optional tax code/type","taxEntityID":"optional Tax Entity Maintenance numeric ID to link this debtor to e-Invoice/tax entity details","controlAccount":"optional debtor control account","isActive":"optional boolean active flag","desc2":"optional second name/description","debtorType":"optional Debtor Type Maintenance code","area":"optional Area Maintenance code","salesAgent":"optional Sales Agent Maintenance code","branchCode":"optional branch code for multi-branch/customer branch usage","displayTerm":"optional Credit Term Maintenance value such as C.O.D. or 30 DAYS","priceCategory":"optional Price Category Maintenance code","creditLimit":"optional credit limit amount","overdueLimit":"optional overdue limit amount or days depending on AutoCount setup","statementType":"optional statement type if the account book uses it","allowExceedCreditLimit":"optional boolean if AutoCount/account-book policy exposes it","attention":"optional contact attention person","fax1":"optional fax","website":"optional website","registrationNo":"optional company registration number","taxRegisterNo":"optional SST/tax registration number","businessNature":"optional business nature","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"update-debtor-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-debtor","payload":{"accNo":"300-API","companyName":"API Customer Sdn Bhd Updated","contactPerson":"Lim Accounts","deliveryAddress1":"Warehouse 1","phone1":"03-11111111","emailAddress":"customer@example.com","taxEntityID":1,"isActive":true,"desc2":"API Customer Trading Name","debtorType":"CUS","area":"KL","salesAgent":"SA01","branchCode":"HQ","displayTerm":"30 DAYS","currencyCode":"MYR","taxCode":"SST","controlAccount":"300-0000","priceCategory":"API","creditLimit":50000,"overdueLimit":30,"statementType":"Open Item","allowExceedCreditLimit":false,"address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","postCode":"50000","attention":"Accounts Department","phone2":"012-3456789","fax1":"03-11111112","website":"https://customer.example.com","registrationNo":"202601000001","taxRegisterNo":"SST-300-API","businessNature":"Trading","remark1":"Created by API","remark2":"Credit control example","deliveryAddress2":"Industrial Park","deliveryAddress3":"Shah Alam","deliveryAddress4":"Malaysia","deliveryPostCode":"40100","deliveryContact":"Store Receiver","contacts":[{"name":"Lim Accounts","department":"Finance","designation":"Accounts","mobilePhone":"012-1111111","directPhone":"03-11111113","emailAddress":"accounts@example.com","includeInContactInfo":true}],"branches":[{"branchCode":"HQ","branchName":"Head Office","address1":"No. 1 Jalan API","address2":"Taman Integration","postCode":"50000","contact":"Lim Accounts","phone1":"03-11111111","emailAddress":"hq@example.com","taxEntityID":1,"isActive":true}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-debtor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.000.006.003.update-debtor"},{"module":"Master Data","displayGroup":"Master Data","title":"Guarded void request for a debtor/customer.","commandType":"void-debtor","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/debtor-customer/void","summary":"Guarded void request for a debtor/customer.","notes":"Returns voidBlocked. Prefer inactive/discontinued flags because master records may already be linked to transactions.","payloadSchema":{"accNo":"required","reason":"required business reason"},"exampleRequest":{"commandId":"void-debtor-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-debtor","payload":{"accNo":"300-A001","reason":"void inactive duplicate"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-debtor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.000.007.004.void-debtor"},{"module":"Master Data","displayGroup":"Master Data","title":"Guarded delete request for a debtor/customer.","commandType":"delete-debtor","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/debtor-customer/delete","summary":"Guarded delete request for a debtor/customer.","notes":"Returns deleteBlocked until AutoCount SDK delete safety and linked-transaction checks are proven. Prefer inactive/discontinued flags.","payloadSchema":{"accNo":"required","reason":"required business reason"},"exampleRequest":{"commandId":"delete-debtor-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-debtor","payload":{"accNo":"300-A001","reason":"remove inactive duplicate"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-debtor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.000.008.005.delete-debtor"},{"module":"Master Data","displayGroup":"Master Data","title":"Create a creditor/supplier.","commandType":"create-creditor","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/creditor-supplier/create","summary":"Create a creditor/supplier.","notes":"Creates supplier master data through AutoCount SDK. Normal fields map to creditor properties; top-level delivery fields are normalized into BranchTable and top-level contact fields are normalized into ContactTable when explicit arrays are not supplied. This is the full human payload reference for Creditor Maintenance. The connector writes normal fields through AutoCount DLL properties and writes branches/contacts through AutoCount DLL child DataTables, then reloads the creditor and returns writeVerification.notMapped, writeVerification.notPersisted, and writeVerification.childRows when AutoCount does not expose or persist a requested value. If top-level deliveryAddress fields are supplied without branches, the connector creates/updates an AutoCount BranchTable row using branchCode or HQ. If top-level contactPerson/contactName/contact fields are supplied without contacts, the connector creates/updates an AutoCount ContactTable row.","payloadSchema":{"accNo":"required creditor/supplier account code","companyName":"required supplier company/name","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","postCode":"optional billing/postal postcode; connector tries AutoCount postcode/postal code SDK aliases and verifies read-back","contactPerson":"optional contact person; also creates/updates an AutoCount ContactTable row when contacts array is not supplied","deliveryAddress1":"optional branch/delivery address line 1","deliveryAddress2":"optional branch/delivery address line 2","deliveryPostCode":"optional branch/delivery postcode for the default branch row","deliveryContact":"optional branch/delivery contact for the default branch row","contacts":"optional array of contact persons written through AutoCount DLL ContactTable; supports name/contactName, department, title/designation, mobilePhone/mobile/phone, directPhone, directFax, emailAddress/email, imAddress, note, openingBonusPoint, includeInContactInfo","branches":"optional array of creditor branch records written through AutoCount DLL BranchTable; supports branchCode/code, branchName/name, address1-4, postCode, contact/attention, phone1/2, fax1/2, areaCode, salesAgent, purchaseAgent, emailAddress/email, mobile, taxEntityID, isActive","phone1":"optional primary phone","phone2":"optional secondary phone","emailAddress":"optional email address","currencyCode":"optional currency code such as MYR","taxCode":"optional tax code/type","taxEntityID":"optional Tax Entity Maintenance numeric ID to link this creditor to e-Invoice/tax entity details","controlAccount":"optional creditor control account","isActive":"optional boolean active flag","desc2":"optional second name/description","creditorType":"optional Creditor Type Maintenance code","area":"optional Area Maintenance code","purchaseAgent":"optional Purchase Agent Maintenance code","branchCode":"optional branch code for multi-branch/supplier branch usage","displayTerm":"optional Credit Term Maintenance value such as C.O.D. or 30 DAYS","creditLimit":"optional supplier credit limit amount if used","overdueLimit":"optional overdue limit amount or days depending on AutoCount setup","attention":"optional contact attention person","fax1":"optional fax","website":"optional website","registrationNo":"optional company registration number","taxRegisterNo":"optional SST/tax registration number","businessNature":"optional business nature","remark1":"optional remark field 1","remark2":"optional remark field 2","deliveryAddress3":"optional branch/delivery address line 3","deliveryAddress4":"optional branch/delivery address line 4"},"exampleRequest":{"commandId":"create-creditor-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-creditor","payload":{"accNo":"400-API","companyName":"API Supplier Sdn Bhd","address1":"No. 2 Jalan API","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","postCode":"46000","contactPerson":"Tan Supplier","deliveryAddress1":"Supplier Warehouse","deliveryPostCode":"46000","phone1":"03-33333333","phone2":"019-8888888","emailAddress":"supplier@example.com","currencyCode":"MYR","taxCode":"SST","taxEntityID":1,"controlAccount":"400-0000","isActive":true,"desc2":"API Supplier Trading Name","creditorType":"SUP","area":"PJ","purchaseAgent":"PA01","branchCode":"HQ","displayTerm":"30 DAYS","creditLimit":30000,"overdueLimit":30,"attention":"Supplier Accounts","fax1":"03-33333334","website":"https://supplier.example.com","registrationNo":"202602000002","taxRegisterNo":"SST-400-API","businessNature":"Supplier","remark1":"Created by API","remark2":"Supplier credit control example","deliveryAddress2":"Logistics Park","deliveryContact":"Supplier Store","contacts":[{"name":"Tan Supplier","department":"Finance","designation":"Accounts","mobilePhone":"019-1111111","directPhone":"03-33333335","emailAddress":"supplier-accounts@example.com","includeInContactInfo":true}],"branches":[{"branchCode":"HQ","branchName":"Head Office","address1":"No. 2 Jalan API","address2":"Supplier Park","postCode":"46000","contact":"Tan Supplier","phone1":"03-33333333","emailAddress":"supplier-hq@example.com","taxEntityID":1,"isActive":true}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-creditor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.001.005.002.create-creditor"},{"module":"Master Data","displayGroup":"Master Data","title":"Update a creditor/supplier.","commandType":"update-creditor","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/creditor-supplier/edit","summary":"Update a creditor/supplier.","notes":"Updates supplier/creditor master data through AutoCount SDK using the same supported fields as create-creditor. This is the full human payload reference for Creditor Maintenance. The connector writes normal fields through AutoCount DLL properties and writes branches/contacts through AutoCount DLL child DataTables, then reloads the creditor and returns writeVerification.notMapped, writeVerification.notPersisted, and writeVerification.childRows when AutoCount does not expose or persist a requested value. If top-level deliveryAddress fields are supplied without branches, the connector creates/updates an AutoCount BranchTable row using branchCode or HQ. If top-level contactPerson/contactName/contact fields are supplied without contacts, the connector creates/updates an AutoCount ContactTable row.","payloadSchema":{"accNo":"required creditor/supplier account code","companyName":"required supplier company/name","address1":"optional supplier address line 1","address2":"optional supplier address line 2","address3":"optional supplier address line 3","address4":"optional supplier address line 4","postCode":"optional billing/postal postcode; connector tries AutoCount postcode/postal code SDK aliases and verifies read-back","contactPerson":"optional contact person; also creates/updates an AutoCount ContactTable row when contacts array is not supplied","deliveryAddress1":"optional branch/delivery address line 1","contacts":"optional array of contact persons written through AutoCount DLL ContactTable; supports name/contactName, department, title/designation, mobilePhone/mobile/phone, directPhone, directFax, emailAddress/email, imAddress, note, openingBonusPoint, includeInContactInfo","branches":"optional array of creditor branch records written through AutoCount DLL BranchTable; supports branchCode/code, branchName/name, address1-4, postCode, contact/attention, phone1/2, fax1/2, areaCode, salesAgent, purchaseAgent, emailAddress/email, mobile, taxEntityID, isActive","phone1":"optional primary phone","phone2":"optional secondary phone","emailAddress":"optional email address","currencyCode":"optional currency code such as MYR","taxCode":"optional tax code/type","taxEntityID":"optional Tax Entity Maintenance numeric ID to link this creditor to e-Invoice/tax entity details","controlAccount":"optional creditor control account","isActive":"optional boolean active flag","desc2":"optional second name/description","creditorType":"optional Creditor Type Maintenance code","area":"optional Area Maintenance code","purchaseAgent":"optional Purchase Agent Maintenance code","branchCode":"optional branch code for multi-branch/supplier branch usage","displayTerm":"optional Credit Term Maintenance value such as C.O.D. or 30 DAYS","creditLimit":"optional supplier credit limit amount if used","overdueLimit":"optional overdue limit amount or days depending on AutoCount setup","attention":"optional contact attention person","fax1":"optional fax","website":"optional website","registrationNo":"optional company registration number","taxRegisterNo":"optional SST/tax registration number","businessNature":"optional business nature","remark1":"optional remark field 1","remark2":"optional remark field 2","deliveryAddress2":"optional branch/delivery address line 2","deliveryAddress3":"optional branch/delivery address line 3","deliveryAddress4":"optional branch/delivery address line 4","deliveryPostCode":"optional branch/delivery postcode for the default branch row","deliveryContact":"optional branch/delivery contact for the default branch row"},"exampleRequest":{"commandId":"update-creditor-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-creditor","payload":{"accNo":"400-API","companyName":"API Supplier Sdn Bhd Updated","contactPerson":"Tan Supplier","deliveryAddress1":"Supplier Warehouse","phone1":"03-33333333","emailAddress":"supplier@example.com","taxEntityID":1,"isActive":true,"desc2":"API Supplier Trading Name","creditorType":"SUP","area":"PJ","purchaseAgent":"PA01","branchCode":"HQ","displayTerm":"30 DAYS","currencyCode":"MYR","taxCode":"SST","controlAccount":"400-0000","creditLimit":30000,"overdueLimit":30,"address1":"No. 2 Jalan API","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","postCode":"46000","attention":"Supplier Accounts","phone2":"019-8888888","fax1":"03-33333334","website":"https://supplier.example.com","registrationNo":"202602000002","taxRegisterNo":"SST-400-API","businessNature":"Supplier","remark1":"Created by API","remark2":"Supplier credit control example","deliveryAddress2":"Logistics Park","deliveryPostCode":"46000","deliveryContact":"Supplier Store","contacts":[{"name":"Tan Supplier","department":"Finance","designation":"Accounts","mobilePhone":"019-1111111","directPhone":"03-33333335","emailAddress":"supplier-accounts@example.com","includeInContactInfo":true}],"branches":[{"branchCode":"HQ","branchName":"Head Office","address1":"No. 2 Jalan API","address2":"Supplier Park","postCode":"46000","contact":"Tan Supplier","phone1":"03-33333333","emailAddress":"supplier-hq@example.com","taxEntityID":1,"isActive":true}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-creditor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.001.006.003.update-creditor"},{"module":"Master Data","displayGroup":"Master Data","title":"Guarded void request for a creditor/supplier.","commandType":"void-creditor","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/creditor-supplier/void","summary":"Guarded void request for a creditor/supplier.","notes":"Returns voidBlocked. Prefer inactive/discontinued flags because master records may already be linked to transactions.","payloadSchema":{"accNo":"required","reason":"required business reason"},"exampleRequest":{"commandId":"void-creditor-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-creditor","payload":{"accNo":"400-S001","reason":"void inactive duplicate"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-creditor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.001.007.004.void-creditor"},{"module":"Master Data","displayGroup":"Master Data","title":"Guarded delete request for a creditor/supplier.","commandType":"delete-creditor","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/creditor-supplier/delete","summary":"Guarded delete request for a creditor/supplier.","notes":"Returns deleteBlocked until AutoCount SDK delete safety and linked-transaction checks are proven. Prefer inactive/discontinued flags.","payloadSchema":{"accNo":"required","reason":"required business reason"},"exampleRequest":{"commandId":"delete-creditor-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-creditor","payload":{"accNo":"400-S001","reason":"remove inactive duplicate"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-creditor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.001.008.005.delete-creditor"},{"module":"Master Data","displayGroup":"Master Data","title":"Create a stock item. Supports proven UOM, sub-code, price, opening balance, BOM, and replacement child rows.","commandType":"create-item","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-item/create","summary":"Create a stock item. Supports proven UOM, sub-code, price, opening balance, BOM, and replacement child rows.","notes":"Creates item master data through AutoCount SDK. Proven child table rows are written through AutoCount DLL DataTables and verified after save in writeVerification.childRows. This is the full human payload reference for Stock Item Maintenance. The connector writes proven UOM rows, item sub-codes, price book rows, customer prices, supplier prices, opening balances, BOM rows, and replacement rows through AutoCount DLL child DataTables, then reloads the item and returns writeVerification.childRows. Batch rows use AutoCount NewItemBatch where enabled.","payloadSchema":{"itemCode":"required stock item code","description":"required item description","desc2":"optional second description","furtherDescription":"optional long/further description","templateItemCode":"optional template item to copy defaults from","baseUom":"optional base UOM","salesUom":"optional sales UOM","purchaseUom":"optional purchase UOM","reportUom":"optional report UOM","itemGroup":"optional Item Group code","itemType":"optional AutoCount item type such as Stock, Service, Non-Stock","taxCode":"optional sales tax code","purchaseTaxCode":"optional purchase tax code","isSalesItem":"optional boolean","isPurchaseItem":"optional boolean","stockControl":"optional boolean","hasBatchNo":"optional boolean","hasSerialNo":"optional boolean","snFormatName":"optional serial number format name","isActive":"optional boolean","uoms":"optional array of UOM rows written through AutoCount DLL ItemUomTable; supports uom, rate, shelf, price/sellingPrice, cost/purchasePrice, minSalePrice, maxSalePrice, minPurchasePrice, maxPurchasePrice, normalLevel, reorderLevel, reorderQty, barCode, price2-price6, weight, weightUom, measurement","subCodes":"optional array of item sub-code rows written through AutoCount DLL ItemSubCodeTable; supports subCode/code and uom","priceBooks":"optional array of item price book rows written through AutoCount DLL ItemPriceBook; supports ref, uom, priceCategory, fixedPrice/price, fixedDetailDiscount, qty1-price4/detailDiscount4, focLevel, focQty, bonusPointQty, bonusPoint","customerPrices":"optional array of customer-specific price rows written through AutoCount DLL ItemCustomerPrice; supports ref, uom, debtorCode/accNo, currencyCode, suppCustItemCode/customerItemCode, fixedPrice/price, fixedDetailDiscount, qty1-price4/detailDiscount4, focLevel, focQty, bonusPointQty, bonusPoint","supplierPrices":"optional array of supplier-specific price rows written through AutoCount DLL ItemSupplierPrice; supports ref, uom, creditorCode/accNo, currencyCode, suppCustItemCode/supplierItemCode, fixedPrice/price, fixedDetailDiscount, qty1-price4/detailDiscount4, focLevel, focQty, bonusPointQty, bonusPoint","openingBalances":"optional array of opening balance rows written through AutoCount DLL ItemOpeningBalance; supports location, uom, batchNo, qty, cost/unitCost, project/projNo, department/deptNo, docDate","bomRows":"optional array of BOM component rows written through AutoCount DLL ItemBOMTable; supports subItemCode/componentItemCode, qty, overheadCost, seq, costFraction, description","replacements":"optional array of replacement item rows written through AutoCount DLL ItemReplacementTable; supports replacementItemCode, replacementDegree/degree, note","batchNo":"optional first batch number to create","batchDescription":"optional first batch description","itemBrand":"optional brand","itemCategory":"optional category","itemClass":"optional class","tariffCode":"optional tariff/customs code","barCode":"optional barcode","defaultLocation":"optional default stock location","costingMethod":"optional costing method where AutoCount allows it","standardCost":"optional standard cost","minimumSellingPrice":"optional minimum selling price","sellingPrice":"optional default selling price","purchasePrice":"optional default purchase price","reorderLevel":"optional reorder quantity/level","normalLevel":"optional normal stock level","minimumLevel":"optional minimum stock level","maximumLevel":"optional maximum stock level","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"create-item-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-item","payload":{"itemCode":"API-ITEM","description":"API Test Item","desc2":"API Item Second Description","furtherDescription":"Long item note visible in AutoCount item detail.","templateItemCode":"00004","baseUom":"UNIT","salesUom":"UNIT","purchaseUom":"UNIT","reportUom":"UNIT","itemGroup":"FG","itemType":"Stock","taxCode":"S-0","purchaseTaxCode":"P-0","isSalesItem":true,"isPurchaseItem":true,"stockControl":true,"hasBatchNo":false,"hasSerialNo":false,"isActive":true,"uoms":[{"uom":"UNIT","rate":1,"price":100,"cost":80,"barCode":"9550000000011","minSalePrice":90,"maxSalePrice":9999},{"uom":"BOX","rate":12,"price":1200,"cost":960,"barCode":"9550000000012"}],"subCodes":[{"subCode":"ALT-API-ITEM","uom":"UNIT"}],"priceBooks":[{"ref":"PB-API-ITEM","priceCategory":"RETAIL","uom":"UNIT","fixedPrice":100,"qty1":1,"price1":100}],"customerPrices":[{"ref":"CP-API-ITEM","debtorCode":"300-A001","currencyCode":"MYR","uom":"UNIT","customerItemCode":"CUST-API-ITEM","fixedPrice":95,"qty1":1,"price1":95}],"supplierPrices":[{"ref":"SP-API-ITEM","creditorCode":"400-S001","currencyCode":"MYR","uom":"UNIT","supplierItemCode":"SUP-API-ITEM","fixedPrice":80,"qty1":1,"price1":80}],"openingBalances":[{"location":"HQ","qty":10,"uom":"UNIT","unitCost":80,"batchNo":"BATCH-001","docDate":"2026-07-26"}],"bomRows":[{"subItemCode":"API-COMPONENT","qty":2,"overheadCost":0,"seq":1,"costFraction":1}],"replacements":[{"replacementItemCode":"API-REPLACEMENT","replacementDegree":1,"note":"Alternative item"}],"itemBrand":"MACSOFT","itemCategory":"API","itemClass":"A","tariffCode":"8471.30","barCode":"9550000000011","defaultLocation":"HQ","costingMethod":"Weighted Average","standardCost":80,"minimumSellingPrice":90,"sellingPrice":100,"purchasePrice":80,"reorderLevel":10,"normalLevel":50,"minimumLevel":5,"maximumLevel":200,"snFormatName":"","batchNo":"BATCH-001","batchDescription":"Opening API batch","remark1":"Created by API","remark2":"Stock item full payload example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-item.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.002.005.002.create-item"},{"module":"Master Data","displayGroup":"Master Data","title":"Update a stock item.","commandType":"update-item","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-item/edit","summary":"Update a stock item.","notes":"Updates item master data through AutoCount SDK. Proven child table rows are written through AutoCount DLL DataTables and verified after save in writeVerification.childRows. This is the full human payload reference for Stock Item Maintenance. The connector writes proven UOM rows, item sub-codes, price book rows, customer prices, supplier prices, opening balances, BOM rows, and replacement rows through AutoCount DLL child DataTables, then reloads the item and returns writeVerification.childRows. Batch rows use AutoCount NewItemBatch where enabled.","payloadSchema":{"itemCode":"required stock item code","description":"required item description","desc2":"optional second description","furtherDescription":"optional long/further description","baseUom":"optional base UOM","salesUom":"optional sales UOM","purchaseUom":"optional purchase UOM","reportUom":"optional report UOM","itemGroup":"optional Item Group code","itemType":"optional AutoCount item type such as Stock, Service, Non-Stock","taxCode":"optional sales tax code","purchaseTaxCode":"optional purchase tax code","isSalesItem":"optional boolean","isPurchaseItem":"optional boolean","stockControl":"optional boolean","hasBatchNo":"optional boolean","hasSerialNo":"optional boolean","snFormatName":"optional serial number format name","isActive":"optional boolean","uoms":"optional array of UOM rows written through AutoCount DLL ItemUomTable; supports uom, rate, shelf, price/sellingPrice, cost/purchasePrice, minSalePrice, maxSalePrice, minPurchasePrice, maxPurchasePrice, normalLevel, reorderLevel, reorderQty, barCode, price2-price6, weight, weightUom, measurement","subCodes":"optional array of item sub-code rows written through AutoCount DLL ItemSubCodeTable; supports subCode/code and uom","priceBooks":"optional array of item price book rows written through AutoCount DLL ItemPriceBook; supports ref, uom, priceCategory, fixedPrice/price, fixedDetailDiscount, qty1-price4/detailDiscount4, focLevel, focQty, bonusPointQty, bonusPoint","customerPrices":"optional array of customer-specific price rows written through AutoCount DLL ItemCustomerPrice; supports ref, uom, debtorCode/accNo, currencyCode, suppCustItemCode/customerItemCode, fixedPrice/price, fixedDetailDiscount, qty1-price4/detailDiscount4, focLevel, focQty, bonusPointQty, bonusPoint","supplierPrices":"optional array of supplier-specific price rows written through AutoCount DLL ItemSupplierPrice; supports ref, uom, creditorCode/accNo, currencyCode, suppCustItemCode/supplierItemCode, fixedPrice/price, fixedDetailDiscount, qty1-price4/detailDiscount4, focLevel, focQty, bonusPointQty, bonusPoint","openingBalances":"optional array of opening balance rows written through AutoCount DLL ItemOpeningBalance; supports location, uom, batchNo, qty, cost/unitCost, project/projNo, department/deptNo, docDate","bomRows":"optional array of BOM component rows written through AutoCount DLL ItemBOMTable; supports subItemCode/componentItemCode, qty, overheadCost, seq, costFraction, description","replacements":"optional array of replacement item rows written through AutoCount DLL ItemReplacementTable; supports replacementItemCode, replacementDegree/degree, note","batchNo":"optional first batch number to create","batchDescription":"optional first batch description","templateItemCode":"optional template item to copy defaults from","itemBrand":"optional brand","itemCategory":"optional category","itemClass":"optional class","tariffCode":"optional tariff/customs code","barCode":"optional barcode","defaultLocation":"optional default stock location","costingMethod":"optional costing method where AutoCount allows it","standardCost":"optional standard cost","minimumSellingPrice":"optional minimum selling price","sellingPrice":"optional default selling price","purchasePrice":"optional default purchase price","reorderLevel":"optional reorder quantity/level","normalLevel":"optional normal stock level","minimumLevel":"optional minimum stock level","maximumLevel":"optional maximum stock level","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"update-item-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-item","payload":{"itemCode":"API-ITEM","description":"Updated API Test Item","desc2":"API Item Second Description","isSalesItem":true,"isPurchaseItem":true,"stockControl":true,"isActive":true,"uoms":[{"uom":"UNIT","rate":1,"price":100,"cost":80,"barCode":"9550000000011","minSalePrice":90,"maxSalePrice":9999},{"uom":"BOX","rate":12,"price":1200,"cost":960,"barCode":"9550000000012"}],"subCodes":[{"subCode":"ALT-API-ITEM","uom":"UNIT"}],"priceBooks":[{"ref":"PB-API-ITEM","priceCategory":"RETAIL","uom":"UNIT","fixedPrice":100,"qty1":1,"price1":100}],"furtherDescription":"Long item note visible in AutoCount item detail.","templateItemCode":"00004","itemGroup":"FG","itemType":"Stock","itemBrand":"MACSOFT","itemCategory":"API","itemClass":"A","tariffCode":"8471.30","barCode":"9550000000011","baseUom":"UNIT","salesUom":"UNIT","purchaseUom":"UNIT","reportUom":"UNIT","taxCode":"S-0","purchaseTaxCode":"P-0","defaultLocation":"HQ","costingMethod":"Weighted Average","standardCost":80,"minimumSellingPrice":90,"sellingPrice":100,"purchasePrice":80,"reorderLevel":10,"normalLevel":50,"minimumLevel":5,"maximumLevel":200,"hasBatchNo":false,"hasSerialNo":false,"snFormatName":"","customerPrices":[{"ref":"CP-API-ITEM","debtorCode":"300-A001","currencyCode":"MYR","uom":"UNIT","customerItemCode":"CUST-API-ITEM","fixedPrice":95,"qty1":1,"price1":95}],"supplierPrices":[{"ref":"SP-API-ITEM","creditorCode":"400-S001","currencyCode":"MYR","uom":"UNIT","supplierItemCode":"SUP-API-ITEM","fixedPrice":80,"qty1":1,"price1":80}],"openingBalances":[{"location":"HQ","qty":10,"uom":"UNIT","unitCost":80,"batchNo":"BATCH-001","docDate":"2026-07-26"}],"bomRows":[{"subItemCode":"API-COMPONENT","qty":2,"overheadCost":0,"seq":1,"costFraction":1}],"replacements":[{"replacementItemCode":"API-REPLACEMENT","replacementDegree":1,"note":"Alternative item"}],"batchNo":"BATCH-001","batchDescription":"Opening API batch","remark1":"Created by API","remark2":"Stock item full payload example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-item.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.002.006.003.update-item"},{"module":"Master Data","displayGroup":"Master Data","title":"Guarded void request for a stock item.","commandType":"void-item","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-item/void","summary":"Guarded void request for a stock item.","notes":"Returns voidBlocked. Prefer inactive/discontinued flags because master records may already be linked to transactions.","payloadSchema":{"itemCode":"required","reason":"required business reason"},"exampleRequest":{"commandId":"void-item-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-item","payload":{"itemCode":"ITEM001","reason":"void inactive duplicate"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-item.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.002.007.004.void-item"},{"module":"Master Data","displayGroup":"Master Data","title":"Guarded delete request for a stock item.","commandType":"delete-item","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-item/delete","summary":"Guarded delete request for a stock item.","notes":"Returns deleteBlocked until AutoCount SDK delete safety and linked-transaction checks are proven. Prefer inactive/discontinued flags.","payloadSchema":{"itemCode":"required","reason":"required business reason"},"exampleRequest":{"commandId":"delete-item-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-item","payload":{"itemCode":"ITEM001","reason":"remove inactive duplicate"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-item.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.002.008.005.delete-item"},{"module":"Master Data","displayGroup":"Master Data","title":"Read default posting accounts used by validate/create commands.","commandType":"read-default-accounts","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/master-data/default-accounts/list","summary":"Read default posting accounts used by validate/create commands.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"read-default-accounts-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-default-accounts","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-default-accounts.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"010.011.001.000.read-default-accounts"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"Read local AutoCount e-Invoice settings summary.","commandType":"einvoice.setting.get","mode":"read","operation":"e-Invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/e-invoice-module/e-invoice-setting/list","summary":"Read local AutoCount e-Invoice settings summary.","notes":"Full human payload reference for einvoice.setting.get. Unsupported filters are ignored safely by read-only connector handlers.","payloadSchema":{"fromDate":"optional YYYY-MM-DD start date for inquiry/listing","toDate":"optional YYYY-MM-DD end date for inquiry/listing","status":"optional e-Invoice status filter such as all, pending, submitted, valid, invalid, failed, cancelled","document":"optional document family such as invoice, cash-sale, credit-note, debit-note, refund-note, consolidated, self-billed","docType":"optional AutoCount document type filter","docNo":"optional AutoCount document number filter","creditorCode":"optional supplier code filter","debtorCode":"optional customer code filter","supplierItemCode":"optional supplier item code filter","itemCode":"optional AutoCount item code filter","handlerName":"optional AutoCount e-Invoice handler name","includeRaw":"optional boolean to include raw/source fields where the connector returns them","maxRows":"optional row limit; maxRows: 0 means return all rows"},"exampleRequest":{"commandId":"einvoice-setting-get-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.setting.get","payload":{"fromDate":"2026-01-01","toDate":"2026-12-31","status":"all","document":"all","docType":"IV","docNo":"IV-000001","creditorCode":"400-S001","debtorCode":"300-A001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","handlerName":"AutoCount","includeRaw":false,"maxRows":0}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.setting.get.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.000.012.009.einvoice.setting.get"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"List local AutoCount e-Invoice submission status.","commandType":"einvoice.status.list","mode":"read","operation":"e-Invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/e-invoice-module/submission-status/list","summary":"List local AutoCount e-Invoice submission status.","notes":"Full human payload reference for einvoice.status.list. Unsupported filters are ignored safely by read-only connector handlers.","payloadSchema":{"fromDate":"optional YYYY-MM-DD start date for inquiry/listing","toDate":"optional YYYY-MM-DD end date for inquiry/listing","status":"optional e-Invoice status filter such as all, pending, submitted, valid, invalid, failed, cancelled","document":"optional document family such as invoice, cash-sale, credit-note, debit-note, refund-note, consolidated, self-billed","docType":"optional AutoCount document type filter","docNo":"optional AutoCount document number filter","creditorCode":"optional supplier code filter","debtorCode":"optional customer code filter","supplierItemCode":"optional supplier item code filter","itemCode":"optional AutoCount item code filter","handlerName":"optional AutoCount e-Invoice handler name","includeRaw":"optional boolean to include raw/source fields where the connector returns them","maxRows":"optional row limit; maxRows: 0 means return all rows"},"exampleRequest":{"commandId":"einvoice-status-list-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.status.list","payload":{"fromDate":"2026-01-01","toDate":"2026-12-31","status":"all","document":"all","docType":"IV","docNo":"IV-000001","creditorCode":"400-S001","debtorCode":"300-A001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","handlerName":"AutoCount","includeRaw":false,"maxRows":0}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.status.list.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.001.012.009.einvoice.status.list"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"Guarded MyInvois/AIP status refresh request.","commandType":"einvoice.status.refresh","mode":"write","operation":"e-Invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/e-invoice-module/submission-status/refresh","summary":"Guarded MyInvois/AIP status refresh request.","notes":"Returns eInvoiceActionBlocked until compliance workflow proof is completed. e-Invoice write/compliance actions are deliberately guarded until the exact MyInvois workflow is proven. The payload shows the full human field reference for future/guarded actions.","payloadSchema":{"docType":"required AutoCount document type, for example IV, CS, CN, DN, RF, PI","docNo":"required AutoCount document number where action targets one document","docKey":"optional numeric AutoCount document key","documentId":"optional MyInvois/AIP document id for import/apply actions","uuid":"optional MyInvois UUID","fromDate":"optional YYYY-MM-DD start date for list/preview/batch actions","toDate":"optional YYYY-MM-DD end date for list/preview/batch actions","creditorCode":"optional supplier code for supplier item mapping","supplierItemCode":"optional supplier item code","itemCode":"optional AutoCount item code","mappingKey":"optional mapping row key","reason":"optional required reason for cancel/reject actions","payload":"optional raw integration payload where a future compliance command requires it"},"exampleRequest":{"commandId":"einvoice-status-refresh-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.status.refresh","payload":{"docType":"IV","docNo":"IV-000001","docKey":"424501","documentId":"AIP-document-id","uuid":"myinvois-uuid","fromDate":"2026-01-01","toDate":"2026-01-31","creditorCode":"400-S001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","mappingKey":"1","reason":"einvoice.status.refresh by API","payload":{"source":"api","dryRun":true}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.status.refresh.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.001.012.009.einvoice.status.refresh"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"Guarded consolidated e-Invoice draft generation.","commandType":"einvoice.consolidated.create-draft","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/e-invoice-module/consolidated-e-invoice/create","summary":"Guarded consolidated e-Invoice draft generation.","notes":"Draft generation is blocked until separately proven. e-Invoice write/compliance actions are deliberately guarded until the exact MyInvois workflow is proven. The payload shows the full human field reference for future/guarded actions.","payloadSchema":{"fromDate":"optional YYYY-MM-DD start date for list/preview/batch actions","toDate":"optional YYYY-MM-DD end date for list/preview/batch actions","docType":"required AutoCount document type, for example IV, CS, CN, DN, RF, PI","docNo":"required AutoCount document number where action targets one document","docKey":"optional numeric AutoCount document key","documentId":"optional MyInvois/AIP document id for import/apply actions","uuid":"optional MyInvois UUID","creditorCode":"optional supplier code for supplier item mapping","supplierItemCode":"optional supplier item code","itemCode":"optional AutoCount item code","mappingKey":"optional mapping row key","reason":"optional required reason for cancel/reject actions","payload":"optional raw integration payload where a future compliance command requires it"},"exampleRequest":{"commandId":"einvoice-consolidated-create-draft-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.consolidated.create-draft","payload":{"fromDate":"2026-01-01","toDate":"2026-01-31","docType":"IV","docNo":"IV-000001","docKey":"424501","documentId":"AIP-document-id","uuid":"myinvois-uuid","creditorCode":"400-S001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","mappingKey":"1","reason":"einvoice.consolidated.create-draft by API","payload":{"source":"api","dryRun":true}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.consolidated.create-draft.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.002.005.002.einvoice.consolidated.create-draft"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"List consolidated e-Invoice inquiry rows from AutoCount handlers.","commandType":"einvoice.consolidated.list","mode":"read","operation":"e-Invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/e-invoice-module/consolidated-e-invoice/list","summary":"List consolidated e-Invoice inquiry rows from AutoCount handlers.","notes":"Full human payload reference for einvoice.consolidated.list. Unsupported filters are ignored safely by read-only connector handlers.","payloadSchema":{"fromDate":"optional YYYY-MM-DD start date for inquiry/listing","toDate":"optional YYYY-MM-DD end date for inquiry/listing","docType":"optional AutoCount document type filter","handlerName":"optional AutoCount e-Invoice handler name","status":"optional e-Invoice status filter such as all, pending, submitted, valid, invalid, failed, cancelled","document":"optional document family such as invoice, cash-sale, credit-note, debit-note, refund-note, consolidated, self-billed","docNo":"optional AutoCount document number filter","creditorCode":"optional supplier code filter","debtorCode":"optional customer code filter","supplierItemCode":"optional supplier item code filter","itemCode":"optional AutoCount item code filter","includeRaw":"optional boolean to include raw/source fields where the connector returns them","maxRows":"optional row limit; maxRows: 0 means return all rows"},"exampleRequest":{"commandId":"einvoice-consolidated-list-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.consolidated.list","payload":{"fromDate":"2026-01-01","toDate":"2026-12-31","status":"all","document":"all","docType":"IV","docNo":"IV-000001","creditorCode":"400-S001","debtorCode":"300-A001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","handlerName":"AutoCount","includeRaw":false,"maxRows":0}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.consolidated.list.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.002.012.009.einvoice.consolidated.list"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"Guarded self-billed e-Invoice draft generation.","commandType":"einvoice.self-billed.create-draft","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/e-invoice-module/self-billed/create","summary":"Guarded self-billed e-Invoice draft generation.","notes":"Draft generation is blocked until separately proven. e-Invoice write/compliance actions are deliberately guarded until the exact MyInvois workflow is proven. The payload shows the full human field reference for future/guarded actions.","payloadSchema":{"sourceDocType":"required later","sourceDocNo":"required later","docType":"required AutoCount document type, for example IV, CS, CN, DN, RF, PI","docNo":"required AutoCount document number where action targets one document","docKey":"optional numeric AutoCount document key","documentId":"optional MyInvois/AIP document id for import/apply actions","uuid":"optional MyInvois UUID","fromDate":"optional YYYY-MM-DD start date for list/preview/batch actions","toDate":"optional YYYY-MM-DD end date for list/preview/batch actions","creditorCode":"optional supplier code for supplier item mapping","supplierItemCode":"optional supplier item code","itemCode":"optional AutoCount item code","mappingKey":"optional mapping row key","reason":"optional required reason for cancel/reject actions","payload":"optional raw integration payload where a future compliance command requires it"},"exampleRequest":{"commandId":"einvoice-self-billed-create-draft-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.self-billed.create-draft","payload":{"sourceDocType":"PI","sourceDocNo":"PI-000001","docType":"IV","docNo":"IV-000001","docKey":"424501","documentId":"AIP-document-id","uuid":"myinvois-uuid","fromDate":"2026-01-01","toDate":"2026-01-31","creditorCode":"400-S001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","mappingKey":"1","reason":"einvoice.self-billed.create-draft by API","payload":{"source":"api","dryRun":true}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.self-billed.create-draft.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.003.005.002.einvoice.self-billed.create-draft"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"List local self-billed e-Invoice records when the account book has the table.","commandType":"einvoice.self-billed.list","mode":"read","operation":"e-Invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/e-invoice-module/self-billed/list","summary":"List local self-billed e-Invoice records when the account book has the table.","notes":"Full human payload reference for einvoice.self-billed.list. Unsupported filters are ignored safely by read-only connector handlers.","payloadSchema":{"fromDate":"optional YYYY-MM-DD start date for inquiry/listing","toDate":"optional YYYY-MM-DD end date for inquiry/listing","maxRows":"optional row limit; maxRows: 0 means return all rows","status":"optional e-Invoice status filter such as all, pending, submitted, valid, invalid, failed, cancelled","document":"optional document family such as invoice, cash-sale, credit-note, debit-note, refund-note, consolidated, self-billed","docType":"optional AutoCount document type filter","docNo":"optional AutoCount document number filter","creditorCode":"optional supplier code filter","debtorCode":"optional customer code filter","supplierItemCode":"optional supplier item code filter","itemCode":"optional AutoCount item code filter","handlerName":"optional AutoCount e-Invoice handler name","includeRaw":"optional boolean to include raw/source fields where the connector returns them"},"exampleRequest":{"commandId":"einvoice-self-billed-list-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.self-billed.list","payload":{"maxRows":0,"fromDate":"2026-01-01","toDate":"2026-12-31","status":"all","document":"all","docType":"IV","docNo":"IV-000001","creditorCode":"400-S001","debtorCode":"300-A001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","handlerName":"AutoCount","includeRaw":false}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.self-billed.list.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.003.012.009.einvoice.self-billed.list"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"Guarded supplier item mapping create request.","commandType":"einvoice.supplier-item-mapping.create","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/supplier-item-mapping/create","summary":"Guarded supplier item mapping create request.","notes":"Write is blocked until the exact AutoCount mapping SDK/table write path is proven. e-Invoice write/compliance actions are deliberately guarded until the exact MyInvois workflow is proven. The payload shows the full human field reference for future/guarded actions.","payloadSchema":{"creditorCode":"optional supplier code for supplier item mapping","supplierItemCode":"optional supplier item code","itemCode":"optional AutoCount item code","docType":"required AutoCount document type, for example IV, CS, CN, DN, RF, PI","docNo":"required AutoCount document number where action targets one document","docKey":"optional numeric AutoCount document key","documentId":"optional MyInvois/AIP document id for import/apply actions","uuid":"optional MyInvois UUID","fromDate":"optional YYYY-MM-DD start date for list/preview/batch actions","toDate":"optional YYYY-MM-DD end date for list/preview/batch actions","mappingKey":"optional mapping row key","reason":"optional required reason for cancel/reject actions","payload":"optional raw integration payload where a future compliance command requires it"},"exampleRequest":{"commandId":"einvoice-supplier-item-mapping-create-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.supplier-item-mapping.create","payload":{"creditorCode":"400-S001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","docType":"IV","docNo":"IV-000001","docKey":"424501","documentId":"AIP-document-id","uuid":"myinvois-uuid","fromDate":"2026-01-01","toDate":"2026-01-31","mappingKey":"1","reason":"einvoice.supplier-item-mapping.create by API","payload":{"source":"api","dryRun":true}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.supplier-item-mapping.create.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.004.005.002.einvoice.supplier-item-mapping.create"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"List local supplier item mapping records when the account book has the table.","commandType":"einvoice.supplier-item-mapping.list","mode":"read","operation":"e-Invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/supplier-item-mapping/list","summary":"List local supplier item mapping records when the account book has the table.","notes":"Full human payload reference for einvoice.supplier-item-mapping.list. Unsupported filters are ignored safely by read-only connector handlers.","payloadSchema":{"maxRows":"optional row limit; maxRows: 0 means return all rows","fromDate":"optional YYYY-MM-DD start date for inquiry/listing","toDate":"optional YYYY-MM-DD end date for inquiry/listing","status":"optional e-Invoice status filter such as all, pending, submitted, valid, invalid, failed, cancelled","document":"optional document family such as invoice, cash-sale, credit-note, debit-note, refund-note, consolidated, self-billed","docType":"optional AutoCount document type filter","docNo":"optional AutoCount document number filter","creditorCode":"optional supplier code filter","debtorCode":"optional customer code filter","supplierItemCode":"optional supplier item code filter","itemCode":"optional AutoCount item code filter","handlerName":"optional AutoCount e-Invoice handler name","includeRaw":"optional boolean to include raw/source fields where the connector returns them"},"exampleRequest":{"commandId":"einvoice-supplier-item-mapping-list-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.supplier-item-mapping.list","payload":{"maxRows":0,"fromDate":"2026-01-01","toDate":"2026-12-31","status":"all","document":"all","docType":"IV","docNo":"IV-000001","creditorCode":"400-S001","debtorCode":"300-A001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","handlerName":"AutoCount","includeRaw":false}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.supplier-item-mapping.list.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.004.012.009.einvoice.supplier-item-mapping.list"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"Guarded supplier item mapping update request.","commandType":"einvoice.supplier-item-mapping.update","mode":"write","operation":"e-Invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/supplier-item-mapping/edit","summary":"Guarded supplier item mapping update request.","notes":"Write is blocked until the exact AutoCount mapping SDK/table write path is proven. e-Invoice write/compliance actions are deliberately guarded until the exact MyInvois workflow is proven. The payload shows the full human field reference for future/guarded actions.","payloadSchema":{"mappingKey":"optional mapping row key","itemCode":"optional AutoCount item code","docType":"required AutoCount document type, for example IV, CS, CN, DN, RF, PI","docNo":"required AutoCount document number where action targets one document","docKey":"optional numeric AutoCount document key","documentId":"optional MyInvois/AIP document id for import/apply actions","uuid":"optional MyInvois UUID","fromDate":"optional YYYY-MM-DD start date for list/preview/batch actions","toDate":"optional YYYY-MM-DD end date for list/preview/batch actions","creditorCode":"optional supplier code for supplier item mapping","supplierItemCode":"optional supplier item code","reason":"optional required reason for cancel/reject actions","payload":"optional raw integration payload where a future compliance command requires it"},"exampleRequest":{"commandId":"einvoice-supplier-item-mapping-update-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.supplier-item-mapping.update","payload":{"mappingKey":"1","itemCode":"ITEM001","docType":"IV","docNo":"IV-000001","docKey":"424501","documentId":"AIP-document-id","uuid":"myinvois-uuid","fromDate":"2026-01-01","toDate":"2026-01-31","creditorCode":"400-S001","supplierItemCode":"SUP-ITEM","reason":"einvoice.supplier-item-mapping.update by API","payload":{"source":"api","dryRun":true}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.supplier-item-mapping.update.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.004.012.009.einvoice.supplier-item-mapping.update"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"Guarded e-Invoice cancel request.","commandType":"einvoice.cancel","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/e-invoice-module/e-invoice/cancel","summary":"Guarded e-Invoice cancel request.","notes":"Cancellation affects tax/MyInvois compliance and is blocked until separately proven. e-Invoice write/compliance actions are deliberately guarded until the exact MyInvois workflow is proven. The payload shows the full human field reference for future/guarded actions.","payloadSchema":{"docType":"required AutoCount document type, for example IV, CS, CN, DN, RF, PI","docNo":"required AutoCount document number where action targets one document","reason":"optional required reason for cancel/reject actions","docKey":"optional numeric AutoCount document key","documentId":"optional MyInvois/AIP document id for import/apply actions","uuid":"optional MyInvois UUID","fromDate":"optional YYYY-MM-DD start date for list/preview/batch actions","toDate":"optional YYYY-MM-DD end date for list/preview/batch actions","creditorCode":"optional supplier code for supplier item mapping","supplierItemCode":"optional supplier item code","itemCode":"optional AutoCount item code","mappingKey":"optional mapping row key","payload":"optional raw integration payload where a future compliance command requires it"},"exampleRequest":{"commandId":"einvoice-cancel-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.cancel","payload":{"docType":"IV","docNo":"IV-000001","reason":"einvoice.cancel by API","docKey":"424501","documentId":"AIP-document-id","uuid":"myinvois-uuid","fromDate":"2026-01-01","toDate":"2026-01-31","creditorCode":"400-S001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","mappingKey":"1","payload":{"source":"api","dryRun":true}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.cancel.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.005.007.004.einvoice.cancel"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"Guarded sync for MyInvois reject requests.","commandType":"einvoice.reject-request.sync","mode":"write","operation":"e-Invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/e-invoice-module/e-invoice/einvoice-reject-request-sync","summary":"Guarded sync for MyInvois reject requests.","notes":"External sync is blocked until separately proven. e-Invoice write/compliance actions are deliberately guarded until the exact MyInvois workflow is proven. The payload shows the full human field reference for future/guarded actions.","payloadSchema":{"fromDate":"optional YYYY-MM-DD start date for list/preview/batch actions","toDate":"optional YYYY-MM-DD end date for list/preview/batch actions","docType":"required AutoCount document type, for example IV, CS, CN, DN, RF, PI","docNo":"required AutoCount document number where action targets one document","docKey":"optional numeric AutoCount document key","documentId":"optional MyInvois/AIP document id for import/apply actions","uuid":"optional MyInvois UUID","creditorCode":"optional supplier code for supplier item mapping","supplierItemCode":"optional supplier item code","itemCode":"optional AutoCount item code","mappingKey":"optional mapping row key","reason":"optional required reason for cancel/reject actions","payload":"optional raw integration payload where a future compliance command requires it"},"exampleRequest":{"commandId":"einvoice-reject-request-sync-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.reject-request.sync","payload":{"fromDate":"2026-01-01","toDate":"2026-01-31","docType":"IV","docNo":"IV-000001","docKey":"424501","documentId":"AIP-document-id","uuid":"myinvois-uuid","creditorCode":"400-S001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","mappingKey":"1","reason":"einvoice.reject-request.sync by API","payload":{"source":"api","dryRun":true}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.reject-request.sync.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.005.012.009.einvoice.reject-request.sync"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"Guarded e-Invoice submit request.","commandType":"einvoice.submit","mode":"write","operation":"e-Invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/e-invoice-module/e-invoice/submit","summary":"Guarded e-Invoice submit request.","notes":"Submission affects tax/MyInvois compliance and is blocked until separately proven. e-Invoice write/compliance actions are deliberately guarded until the exact MyInvois workflow is proven. The payload shows the full human field reference for future/guarded actions.","payloadSchema":{"docType":"required AutoCount document type, for example IV, CS, CN, DN, RF, PI","docNo":"required AutoCount document number where action targets one document","docKey":"optional numeric AutoCount document key","documentId":"optional MyInvois/AIP document id for import/apply actions","uuid":"optional MyInvois UUID","fromDate":"optional YYYY-MM-DD start date for list/preview/batch actions","toDate":"optional YYYY-MM-DD end date for list/preview/batch actions","creditorCode":"optional supplier code for supplier item mapping","supplierItemCode":"optional supplier item code","itemCode":"optional AutoCount item code","mappingKey":"optional mapping row key","reason":"optional required reason for cancel/reject actions","payload":"optional raw integration payload where a future compliance command requires it"},"exampleRequest":{"commandId":"einvoice-submit-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.submit","payload":{"docType":"IV","docNo":"IV-000001","docKey":"424501","documentId":"AIP-document-id","uuid":"myinvois-uuid","fromDate":"2026-01-01","toDate":"2026-01-31","creditorCode":"400-S001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","mappingKey":"1","reason":"einvoice.submit by API","payload":{"source":"api","dryRun":true}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.submit.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.005.012.009.einvoice.submit"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"Guarded supplier e-Invoice import into AutoCount.","commandType":"einvoice.supplier-import.apply","mode":"write","operation":"e-Invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/e-invoice-module/supplier-import/apply","summary":"Guarded supplier e-Invoice import into AutoCount.","notes":"Import can create accounting records and is blocked until separately proven. e-Invoice write/compliance actions are deliberately guarded until the exact MyInvois workflow is proven. The payload shows the full human field reference for future/guarded actions.","payloadSchema":{"documentId":"optional MyInvois/AIP document id for import/apply actions","docType":"required AutoCount document type, for example IV, CS, CN, DN, RF, PI","docNo":"required AutoCount document number where action targets one document","docKey":"optional numeric AutoCount document key","uuid":"optional MyInvois UUID","fromDate":"optional YYYY-MM-DD start date for list/preview/batch actions","toDate":"optional YYYY-MM-DD end date for list/preview/batch actions","creditorCode":"optional supplier code for supplier item mapping","supplierItemCode":"optional supplier item code","itemCode":"optional AutoCount item code","mappingKey":"optional mapping row key","reason":"optional required reason for cancel/reject actions","payload":"optional raw integration payload where a future compliance command requires it"},"exampleRequest":{"commandId":"einvoice-supplier-import-apply-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.supplier-import.apply","payload":{"documentId":"AIP-document-id","docType":"IV","docNo":"IV-000001","docKey":"424501","uuid":"myinvois-uuid","fromDate":"2026-01-01","toDate":"2026-01-31","creditorCode":"400-S001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","mappingKey":"1","reason":"einvoice.supplier-import.apply by API","payload":{"source":"api","dryRun":true}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.supplier-import.apply.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.005.012.009.einvoice.supplier-import.apply"},{"module":"e-Invoice","displayGroup":"e-Invoice","title":"Guarded supplier e-Invoice import preview.","commandType":"einvoice.supplier-import.preview","mode":"write","operation":"e-Invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/e-invoice-module/supplier-import/preview","summary":"Guarded supplier e-Invoice import preview.","notes":"Supplier portal import is blocked until separately proven. e-Invoice write/compliance actions are deliberately guarded until the exact MyInvois workflow is proven. The payload shows the full human field reference for future/guarded actions.","payloadSchema":{"fromDate":"optional YYYY-MM-DD start date for list/preview/batch actions","toDate":"optional YYYY-MM-DD end date for list/preview/batch actions","docType":"required AutoCount document type, for example IV, CS, CN, DN, RF, PI","docNo":"required AutoCount document number where action targets one document","docKey":"optional numeric AutoCount document key","documentId":"optional MyInvois/AIP document id for import/apply actions","uuid":"optional MyInvois UUID","creditorCode":"optional supplier code for supplier item mapping","supplierItemCode":"optional supplier item code","itemCode":"optional AutoCount item code","mappingKey":"optional mapping row key","reason":"optional required reason for cancel/reject actions","payload":"optional raw integration payload where a future compliance command requires it"},"exampleRequest":{"commandId":"einvoice-supplier-import-preview-001","connectorId":"customer-main","companyId":"macsofttest","type":"einvoice.supplier-import.preview","payload":{"fromDate":"2026-01-01","toDate":"2026-01-31","docType":"IV","docNo":"IV-000001","docKey":"424501","documentId":"AIP-document-id","uuid":"myinvois-uuid","creditorCode":"400-S001","supplierItemCode":"SUP-ITEM","itemCode":"ITEM001","mappingKey":"1","reason":"einvoice.supplier-import.preview by API","payload":{"source":"api","dryRun":true}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to einvoice.supplier-import.preview.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"011.005.012.009.einvoice.supplier-import.preview"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Generic bulk create wrapper. Use when one request needs to create many documents or master records.","commandType":"bulk-create","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/bulk-module/bulk/bulk-create","summary":"Generic bulk create wrapper. Use when one request needs to create many documents or master records.","notes":"The local connector processes records on the customer PC in one leased command. Each row gets its own idempotency/audit result.","payloadSchema":{"operation":"required create-* command type","records":"required array of command payload objects","stopOnError":"optional boolean, default false"},"exampleRequest":{"commandId":"bulk-create-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create","payload":{"operation":"create-journal-entry","records":[{"externalId":"row-001","docDate":"2026-06-20","description":"Payroll JE 1","lines":[{"accNo":"610-0000","debit":100},{"accNo":"500-1000","credit":100}]}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-advanced-quotation.","commandType":"bulk-create-advanced-quotations","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/bulk-module/advanced-quotation/bulk-create","summary":"Bulk wrapper for create-advanced-quotation.","notes":"Runs create-advanced-quotation for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-advanced-quotation. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-advanced-quotation","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-advanced-quotations-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-advanced-quotations","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-advanced-quotation-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-advanced-quotations.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-advanced-quotations"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-ap-credit-note.","commandType":"bulk-create-ap-credit-notes","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-credit-note/bulk-create","summary":"Bulk wrapper for create-ap-credit-note.","notes":"Runs create-ap-credit-note for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-ap-credit-note. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-ap-credit-note","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-ap-credit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-ap-credit-notes","payload":{"records":[{"creditorCode":"400-S001","docDate":"2026-06-24","dueDate":"2026-07-24","description":"AP document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"610-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"620-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-ap-credit-note-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-ap-credit-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-ap-credit-notes"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-ap-debit-note.","commandType":"bulk-create-ap-debit-notes","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-debit-note/bulk-create","summary":"Bulk wrapper for create-ap-debit-note.","notes":"Runs create-ap-debit-note for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-ap-debit-note. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-ap-debit-note","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-ap-debit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-ap-debit-notes","payload":{"records":[{"creditorCode":"400-S001","docDate":"2026-06-24","dueDate":"2026-07-24","description":"AP document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"610-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"620-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-ap-debit-note-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-ap-debit-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-ap-debit-notes"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-ap-invoice.","commandType":"bulk-create-ap-invoices","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-invoice/bulk-create","summary":"Bulk wrapper for create-ap-invoice.","notes":"Runs create-ap-invoice for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-ap-invoice. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-ap-invoice","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-ap-invoices-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-ap-invoices","payload":{"records":[{"creditorCode":"400-S001","docDate":"2026-06-24","dueDate":"2026-07-24","description":"AP document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"610-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"620-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-ap-invoice-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-ap-invoices.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-ap-invoices"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-ap-payment.","commandType":"bulk-create-ap-payments","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-payment/bulk-create","summary":"Bulk wrapper for create-ap-payment.","notes":"Runs create-ap-payment for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-ap-payment. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-ap-payment","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-ap-payments-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-ap-payments","payload":{"records":[{"creditorCode":"400-S001","docDate":"2026-06-24","paymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-PAY-1001","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"","description":"AP payment/refund created through API","amount":100,"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0,"gainLossAmount":0,"withholdingTaxAmount":0}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-ap-payment-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-ap-payments.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-ap-payments"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-ap-refund.","commandType":"bulk-create-ap-refunds","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/ap-refund/bulk-create","summary":"Bulk wrapper for create-ap-refund.","notes":"Runs create-ap-refund for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-ap-refund. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-ap-refund","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-ap-refunds-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-ap-refunds","payload":{"records":[{"creditorCode":"400-S001","docDate":"2026-06-24","paymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-PAY-1001","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"","description":"AP payment/refund created through API","amount":100,"knockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100,"discountAmount":0,"taxAdjustment":0,"gainLossAmount":0,"withholdingTaxAmount":0}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-ap-refund-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-ap-refunds.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-ap-refunds"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-ar-credit-note.","commandType":"bulk-create-ar-credit-notes","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-credit-note/bulk-create","summary":"Bulk wrapper for create-ar-credit-note.","notes":"Runs create-ar-credit-note for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-ar-credit-note. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-ar-credit-note","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-ar-credit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-ar-credit-notes","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","dueDate":"2026-07-24","description":"AR document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"500-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"501-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-ar-credit-note-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-ar-credit-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-ar-credit-notes"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-ar-debit-note.","commandType":"bulk-create-ar-debit-notes","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-debit-note/bulk-create","summary":"Bulk wrapper for create-ar-debit-note.","notes":"Runs create-ar-debit-note for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-ar-debit-note. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-ar-debit-note","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-ar-debit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-ar-debit-notes","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","dueDate":"2026-07-24","description":"AR document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"500-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"501-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-ar-debit-note-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-ar-debit-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-ar-debit-notes"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-ar-invoice.","commandType":"bulk-create-ar-invoices","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-invoice/bulk-create","summary":"Bulk wrapper for create-ar-invoice.","notes":"Runs create-ar-invoice for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-ar-invoice. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-ar-invoice","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-ar-invoices-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-ar-invoices","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","dueDate":"2026-07-24","description":"AR document created through API","ref":"API-REF-1001","branchCode":"MAIN","attention":"Accounts Department","contact":"Accounts Department","currencyCode":"MYR","inclusiveTax":false,"lines":[{"accountNo":"500-0000","description":"Service line 1","amount":100,"taxType":"S-0","taxCode":"S-0","taxAmount":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accountNo":"501-0000","description":"Different posting account line","amount":50,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022"}],"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-ar-invoice-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-ar-invoices.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-ar-invoices"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-ar-payment.","commandType":"bulk-create-ar-payments","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-payment/bulk-create","summary":"Bulk wrapper for create-ar-payment.","notes":"Runs create-ar-payment for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-ar-payment. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-ar-payment","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-ar-payments-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-ar-payments","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","paymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-PAY-1001","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"","description":"AR payment/refund created through API","amount":100,"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0,"gainLossAmount":0,"withholdingTaxAmount":0}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-ar-payment-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-ar-payments.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-ar-payments"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-ar-refund.","commandType":"bulk-create-ar-refunds","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/ar-refund/bulk-create","summary":"Bulk wrapper for create-ar-refund.","notes":"Runs create-ar-refund for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-ar-refund. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-ar-refund","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-ar-refunds-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-ar-refunds","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","paymentMethod":"CASH","paymentBy":"Cash","chequeNo":"API-PAY-1001","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"","description":"AR payment/refund created through API","amount":100,"knockOffs":[{"docType":"RI","docKey":"424508","docNo":"IV-000001","amount":100,"discountAmount":0,"taxAdjustment":0,"gainLossAmount":0,"withholdingTaxAmount":0}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-ar-refund-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-ar-refunds.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-ar-refunds"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-arap-contra.","commandType":"bulk-create-arap-contras","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/arap-module/arap-contra/bulk-create","summary":"Bulk wrapper for create-arap-contra.","notes":"Runs create-arap-contra for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-arap-contra. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-arap-contra","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-arap-contras-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-arap-contras","payload":{"records":[{"debtorCode":"300-A001","creditorCode":"400-S001","docDate":"2026-06-24","description":"API AR/AP contra","ref":"API-CONTRA-1001","amount":100,"arKnockOffs":[{"docType":"RI","docKey":"424501","docNo":"IV-000001","amount":100}],"apKnockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100}],"knockOffs":[{"side":"AR","docType":"RI","docKey":"424501","docNo":"IV-000001","amount":100},{"side":"AP","docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100}]}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-arap-contra-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-arap-contras.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-arap-contras"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-cash-purchase.","commandType":"bulk-create-cash-purchases","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/bulk-module/cash-purchase/bulk-create","summary":"Bulk wrapper for create-cash-purchase.","notes":"Runs create-cash-purchase for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-cash-purchase. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-cash-purchase","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-cash-purchases-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-cash-purchases","payload":{"records":[{"creditorCode":"400-S001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-cash-purchase-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-cash-purchases.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-cash-purchases"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-cash-sale.","commandType":"bulk-create-cash-sales","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/bulk-module/cash-sale/bulk-create","summary":"Bulk wrapper for create-cash-sale.","notes":"Runs create-cash-sale for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-cash-sale. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-cash-sale","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-cash-sales-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-cash-sales","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-cash-sale-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-cash-sales.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-cash-sales"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-creditor.","commandType":"bulk-create-creditors","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ap-module/creditor-supplier/bulk-create","summary":"Bulk wrapper for create-creditor.","notes":"Runs create-creditor for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-creditor. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-creditor","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-creditors-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-creditors","payload":{"records":[{"accNo":"400-API","companyName":"API Supplier Sdn Bhd","desc2":"API Supplier Trading Name","creditorType":"SUP","area":"PJ","purchaseAgent":"PA01","branchCode":"HQ","displayTerm":"30 DAYS","currencyCode":"MYR","taxCode":"SST","taxEntityID":1,"controlAccount":"400-0000","creditLimit":30000,"overdueLimit":30,"isActive":true,"address1":"No. 2 Jalan API","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","postCode":"46000","attention":"Supplier Accounts","contactPerson":"Tan Supplier","phone1":"03-33333333","phone2":"019-8888888","fax1":"03-33333334","emailAddress":"supplier@example.com","website":"https://supplier.example.com","registrationNo":"202602000002","taxRegisterNo":"SST-400-API","businessNature":"Supplier","remark1":"Created by API","remark2":"Supplier credit control example","deliveryAddress1":"Supplier Warehouse","deliveryAddress2":"Logistics Park","deliveryPostCode":"46000","deliveryContact":"Supplier Store","contacts":[{"name":"Tan Supplier","department":"Finance","designation":"Accounts","mobilePhone":"019-1111111","directPhone":"03-33333335","emailAddress":"supplier-accounts@example.com","includeInContactInfo":true}],"branches":[{"branchCode":"HQ","branchName":"Head Office","address1":"No. 2 Jalan API","address2":"Supplier Park","postCode":"46000","contact":"Tan Supplier","phone1":"03-33333333","emailAddress":"supplier-hq@example.com","taxEntityID":1,"isActive":true}]}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-creditor-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-creditors.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-creditors"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-debtor.","commandType":"bulk-create-debtors","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/ar-module/debtor-customer/bulk-create","summary":"Bulk wrapper for create-debtor.","notes":"Runs create-debtor for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-debtor. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-debtor","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-debtors-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-debtors","payload":{"records":[{"accNo":"300-API","companyName":"API Customer Sdn Bhd","desc2":"API Customer Trading Name","debtorType":"CUS","area":"KL","salesAgent":"SA01","branchCode":"HQ","displayTerm":"30 DAYS","currencyCode":"MYR","taxCode":"SST","taxEntityID":1,"controlAccount":"300-0000","priceCategory":"API","creditLimit":50000,"overdueLimit":30,"statementType":"Open Item","isActive":true,"allowExceedCreditLimit":false,"address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","postCode":"50000","attention":"Accounts Department","contactPerson":"Lim Accounts","phone1":"03-11111111","phone2":"012-3456789","fax1":"03-11111112","emailAddress":"customer@example.com","website":"https://customer.example.com","registrationNo":"202601000001","taxRegisterNo":"SST-300-API","businessNature":"Trading","remark1":"Created by API","remark2":"Credit control example","deliveryAddress1":"Warehouse 1","deliveryAddress2":"Industrial Park","deliveryAddress3":"Shah Alam","deliveryAddress4":"Malaysia","deliveryPostCode":"40100","deliveryContact":"Store Receiver","contacts":[{"name":"Lim Accounts","department":"Finance","designation":"Accounts","mobilePhone":"012-1111111","directPhone":"03-11111113","emailAddress":"accounts@example.com","includeInContactInfo":true}],"branches":[{"branchCode":"HQ","branchName":"Head Office","address1":"No. 1 Jalan API","address2":"Taman Integration","postCode":"50000","contact":"Lim Accounts","phone1":"03-11111111","emailAddress":"hq@example.com","taxEntityID":1,"isActive":true}]}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-debtor-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-debtors.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-debtors"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-delivery-order.","commandType":"bulk-create-delivery-orders","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/bulk-module/delivery-order/bulk-create","summary":"Bulk wrapper for create-delivery-order.","notes":"Runs create-delivery-order for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-delivery-order. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-delivery-order","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-delivery-orders-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-delivery-orders","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-delivery-order-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-delivery-orders.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-delivery-orders"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-fixed-asset-gl-accounts.","commandType":"bulk-create-fixed-asset-gl-accounts","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/bulk-create","summary":"Bulk wrapper for create-fixed-asset-gl-accounts.","notes":"Runs create-fixed-asset-gl-accounts for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-fixed-asset-gl-accounts. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-fixed-asset-gl-accounts","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-fixed-asset-gl-accounts-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-fixed-asset-gl-accounts","payload":{"records":[{"fixedAsset":{"accNo":"150-1000","description":"Motor Vehicle","accType":"use an Asset code from list-general-account-types","parentAccNo":"<<FIXED ASSETS>>","currencyCode":"MYR","cashFlowCategory":"InvestingActivities","specialAccType":"SFA"},"accumulatedDepreciation":{"accNo":"159-1000","description":"Accumulated Depreciation - Motor Vehicle","accType":"use an Asset code from list-general-account-types","parentAccNo":"<<FIXED ASSETS>>","currencyCode":"MYR","cashFlowCategory":"OperatingActivities","specialAccType":"SAD"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-fixed-asset-gl-accounts-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-fixed-asset-gl-accounts.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-fixed-asset-gl-accounts"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-address.","commandType":"bulk-create-general-addresses","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/address/bulk-create","summary":"Bulk wrapper for create-general-address.","notes":"Runs create-general-address for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-address. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-address","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-general-addresses-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-addresses","payload":{"records":[{"code":"HQ","addressName":"Head Office","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","postCode":"50000","city":"Kuala Lumpur","state":"Wilayah Persekutuan","country":"Malaysia","contact":"Admin","phone":"03-00000000","fax":"03-00000001","emailAddress":"admin@example.com","isActive":true,"remark1":"Created by API","remark2":"Address setup example"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-address-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-addresses.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-addresses"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-area.","commandType":"bulk-create-general-areas","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/area/bulk-create","summary":"Bulk wrapper for create-general-area.","notes":"Runs create-general-area for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-area. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-area","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-general-areas-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-areas","payload":{"records":[{"code":"KL","areaCode":"KL","description":"Kuala Lumpur","desc2":"Central region"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-area-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-areas.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-areas"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-cn-type.","commandType":"bulk-create-general-cn-types","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/cn-type/bulk-create","summary":"Bulk wrapper for create-general-cn-type.","notes":"Runs create-general-cn-type for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-cn-type. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-cn-type","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-general-cn-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-cn-types","payload":{"records":[{"code":"CNAPI","cnType":"CNAPI","description":"API C/N Type","desc2":"C/N Type second description","isActive":true,"remark1":"Created by API","remark2":"C/N Type setup example"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-cn-type-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-cn-types.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-cn-types"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-creditor-type.","commandType":"bulk-create-general-creditor-types","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/creditor-type/bulk-create","summary":"Bulk wrapper for create-general-creditor-type.","notes":"Runs create-general-creditor-type for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-creditor-type. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-creditor-type","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-general-creditor-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-creditor-types","payload":{"records":[{"code":"SUP","creditorType":"SUP","description":"API Creditor Type","desc2":"Creditor Type second description","isActive":true,"remark1":"Created by API","remark2":"Creditor Type setup example"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-creditor-type-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-creditor-types.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-creditor-types"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-currency.","commandType":"bulk-create-general-currencies","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/currency/bulk-create","summary":"Bulk wrapper for create-general-currency.","notes":"Runs create-general-currency for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-currency. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-currency","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-general-currencies-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-currencies","payload":{"records":[{"code":"USD","currencyCode":"USD","currencySymbol":"$","currencyWord":"US Dollar","currencyWord2":"US Dollars","bankBuyRate":4.7,"bankSellRate":4.75,"fcGainAccount":"720-0000","fcLossAccount":"820-0000","gainLossJournalType":"GL"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-currency-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-currencies.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-currencies"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-debtor-type.","commandType":"bulk-create-general-debtor-types","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/debtor-type/bulk-create","summary":"Bulk wrapper for create-general-debtor-type.","notes":"Runs create-general-debtor-type for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-debtor-type. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-debtor-type","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-general-debtor-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-debtor-types","payload":{"records":[{"code":"CUS","debtorType":"CUS","description":"API Debtor Type","desc2":"Debtor Type second description","isActive":true,"remark1":"Created by API","remark2":"Debtor Type setup example"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-debtor-type-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-debtor-types.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-debtor-types"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-dn-type.","commandType":"bulk-create-general-dn-types","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/dn-type/bulk-create","summary":"Bulk wrapper for create-general-dn-type.","notes":"Runs create-general-dn-type for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-dn-type. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-dn-type","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-general-dn-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-dn-types","payload":{"records":[{"code":"DNAPI","dnType":"DNAPI","description":"API D/N Type","desc2":"D/N Type second description","isActive":true,"remark1":"Created by API","remark2":"D/N Type setup example"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-dn-type-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-dn-types.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-dn-types"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-payment-method.","commandType":"bulk-create-general-payment-methods","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/payment-method/bulk-create","summary":"Bulk wrapper for create-general-payment-method.","notes":"Runs create-general-payment-method for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-payment-method. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-payment-method","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-general-payment-methods-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-payment-methods","payload":{"records":[{"code":"BANKAPI","paymentMethod":"BANKAPI","paymentType":"Bank","paymentBy":"Bank Transfer","journalType":"BANK","bankAccount":"110-0010","bankChargeAccount":"810-0000","bankChargePercent":2.5,"minBankCharge":0,"odLimit":0,"nextChequeNo":"CHQ-000101","acceptChequeNo":true,"mergeBankChargeTrans":false,"isActive":true}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-payment-method-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-payment-methods.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-payment-methods"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-price-category.","commandType":"bulk-create-general-price-categories","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/price-category/bulk-create","summary":"Bulk wrapper for create-general-price-category.","notes":"Runs create-general-price-category for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-price-category. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-price-category","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-general-price-categories-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-price-categories","payload":{"records":[{"code":"API","priceCategory":"API","description":"API Price Category","discountPercent":5,"detailDiscount":"5%","markupRatio":1.2,"roundingMethod":"Normal","isActive":true,"remark1":"Created by API","remark2":"Price category setup example"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-price-category-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-price-categories.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-price-categories"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-project.","commandType":"bulk-create-general-projects","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/project/bulk-create","summary":"Bulk wrapper for create-general-project.","notes":"Runs create-general-project for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-project. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-project","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-general-projects-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-projects","payload":{"records":[{"code":"PRJAPI","projectNo":"PRJAPI","projNo":"PRJAPI","parentProjNo":"","description":"API Project","desc2":"Project second description","isActive":true}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-project-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-projects.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-projects"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-purchase-agent.","commandType":"bulk-create-general-purchase-agents","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/bulk-create","summary":"Bulk wrapper for create-general-purchase-agent.","notes":"Runs create-general-purchase-agent for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-purchase-agent. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-purchase-agent","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-general-purchase-agents-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-purchase-agents","payload":{"records":[{"code":"PAAPI","purchaseAgent":"PAAPI","description":"API Purchase Agent","desc2":"Purchase Agent second description","isActive":true,"signature":"Approved by Purchasing"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-purchase-agent-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-purchase-agents.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-purchase-agents"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-sales-agent.","commandType":"bulk-create-general-sales-agents","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/sales-agent/bulk-create","summary":"Bulk wrapper for create-general-sales-agent.","notes":"Runs create-general-sales-agent for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-sales-agent. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-sales-agent","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-general-sales-agents-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-sales-agents","payload":{"records":[{"code":"SAAPI","salesAgent":"SAAPI","description":"API Sales Agent","desc2":"Sales Agent second description","emailAddress":"sales@example.com","approverEmailAddress":"approver@example.com"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-sales-agent-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-sales-agents.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-sales-agents"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-general-shipping-method.","commandType":"bulk-create-general-shipping-methods","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/shipping-method/bulk-create","summary":"Bulk wrapper for create-general-shipping-method.","notes":"Runs create-general-shipping-method for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-general-shipping-method. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-general-shipping-method","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-general-shipping-methods-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-general-shipping-methods","payload":{"records":[{"code":"LALAMOVE","shippingMethod":"LALAMOVE","description":"API Shipping Method","desc2":"Shipping Method second description","isActive":true,"remark1":"Created by API","remark2":"Shipping Method setup example"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-general-shipping-method-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-general-shipping-methods.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-general-shipping-methods"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-gl-account.","commandType":"bulk-create-gl-accounts","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/bulk-create","summary":"Bulk wrapper for create-gl-account.","notes":"Runs create-gl-account for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-gl-account. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-gl-account","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-gl-accounts-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-gl-accounts","payload":{"records":[{"accNo":"690-9000","description":"API Expense Account","desc2":"API expense second description","accType":"EP","parentAccNo":"610-0000","currencyCode":"MYR","cashFlowCategory":"OperatingActivities","specialAccType":"Normal","isActive":true,"remark1":"Created by API","remark2":"GL account setup example"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-gl-account-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-gl-accounts.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-gl-accounts"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-gl-cash-book-payment.","commandType":"bulk-create-gl-cash-book-payments","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/payment-voucher/bulk-create","summary":"Bulk wrapper for create-gl-cash-book-payment.","notes":"Runs create-gl-cash-book-payment for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-gl-cash-book-payment. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-gl-cash-book-payment","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-gl-cash-book-payments-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-gl-cash-book-payments","payload":{"records":[{"docDate":"2026-06-24","payTo":"API Supplier","taxEntityID":1,"description":"API payment voucher","chequeNo":"PV-API-1001","lines":[{"accNo":"610-0000","accountNo":"610-0000","description":"Expense line","amount":100,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"PV-API-1001","bankCharge":0,"bankAccount":"110-0010","paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-gl-cash-book-payment-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-gl-cash-book-payments.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-gl-cash-book-payments"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-gl-cash-book-receipt.","commandType":"bulk-create-gl-cash-book-receipts","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/official-receipt/bulk-create","summary":"Bulk wrapper for create-gl-cash-book-receipt.","notes":"Runs create-gl-cash-book-receipt for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-gl-cash-book-receipt. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-gl-cash-book-receipt","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-gl-cash-book-receipts-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-gl-cash-book-receipts","payload":{"records":[{"docDate":"2026-06-24","taxEntityID":1,"description":"API official receipt","chequeNo":"PV-API-1001","lines":[{"accNo":"610-0000","accountNo":"610-0000","description":"Expense line","amount":100,"taxType":"S-0","taxCode":"S-0","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"PV-API-1001","bankCharge":0,"bankAccount":"110-0010","paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"},"receiveFrom":"API Customer"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-gl-cash-book-receipt-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-gl-cash-book-receipts.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-gl-cash-book-receipts"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-goods-received-note.","commandType":"bulk-create-goods-received-notes","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/goods-received-note/bulk-create","summary":"Bulk wrapper for create-goods-received-note.","notes":"Runs create-goods-received-note for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-goods-received-note. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-goods-received-note","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-goods-received-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-goods-received-notes","payload":{"records":[{"creditorCode":"400-S001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-goods-received-note-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-goods-received-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-goods-received-notes"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-item-bom.","commandType":"bulk-create-item-boms","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/bom/bulk-create","summary":"Bulk wrapper for create-item-bom.","notes":"Runs create-item-bom for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-item-bom. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-item-bom","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-item-boms-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-item-boms","payload":{"records":[{"itemCode":"FINISHED-API","description":"API BOM","uom":"UNIT","qty":1,"components":[{"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10},{"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5}],"lines":[{"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10}],"scrapPercent":0,"remark1":"Created by API","remark2":"BOM setup example"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-item-bom-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-item-boms.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-item-boms"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-item-package.","commandType":"bulk-create-item-packages","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/item-package/bulk-create","summary":"Bulk wrapper for create-item-package.","notes":"Runs create-item-package for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-item-package. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-item-package","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-item-packages-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-item-packages","payload":{"records":[{"packageCode":"PKG-API","description":"API Package","desc2":"Package second description","uom":"SET","price":120,"isActive":true,"items":[{"itemCode":"ITEM001","description":"Component 1","qty":1,"uom":"UNIT","unitPrice":100},{"itemCode":"ITEM002","description":"Component 2","qty":2,"uom":"UNIT","unitPrice":10}],"lines":[{"itemCode":"ITEM001","description":"Component 1","qty":1,"uom":"UNIT","unitPrice":100}],"remark1":"Created by API","remark2":"Item package example"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-item-package-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-item-packages.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-item-packages"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-item.","commandType":"bulk-create-items","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-item/bulk-create","summary":"Bulk wrapper for create-item.","notes":"Runs create-item for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-item. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-item","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-items-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-items","payload":{"records":[{"itemCode":"API-ITEM","description":"API Test Item","desc2":"API Item Second Description","furtherDescription":"Long item note visible in AutoCount item detail.","templateItemCode":"00004","itemGroup":"FG","itemType":"Stock","itemBrand":"MACSOFT","itemCategory":"API","itemClass":"A","tariffCode":"8471.30","barCode":"9550000000011","baseUom":"UNIT","salesUom":"UNIT","purchaseUom":"UNIT","reportUom":"UNIT","taxCode":"S-0","purchaseTaxCode":"P-0","defaultLocation":"HQ","costingMethod":"Weighted Average","standardCost":80,"minimumSellingPrice":90,"sellingPrice":100,"purchasePrice":80,"reorderLevel":10,"normalLevel":50,"minimumLevel":5,"maximumLevel":200,"isSalesItem":true,"isPurchaseItem":true,"stockControl":true,"hasBatchNo":false,"hasSerialNo":false,"snFormatName":"","isActive":true,"uoms":[{"uom":"UNIT","rate":1,"price":100,"cost":80,"barCode":"9550000000011","minSalePrice":90,"maxSalePrice":9999},{"uom":"BOX","rate":12,"price":1200,"cost":960,"barCode":"9550000000012"}],"subCodes":[{"subCode":"ALT-API-ITEM","uom":"UNIT"}],"priceBooks":[{"ref":"PB-API-ITEM","priceCategory":"RETAIL","uom":"UNIT","fixedPrice":100,"qty1":1,"price1":100}],"customerPrices":[{"ref":"CP-API-ITEM","debtorCode":"300-A001","currencyCode":"MYR","uom":"UNIT","customerItemCode":"CUST-API-ITEM","fixedPrice":95,"qty1":1,"price1":95}],"supplierPrices":[{"ref":"SP-API-ITEM","creditorCode":"400-S001","currencyCode":"MYR","uom":"UNIT","supplierItemCode":"SUP-API-ITEM","fixedPrice":80,"qty1":1,"price1":80}],"openingBalances":[{"location":"HQ","qty":10,"uom":"UNIT","unitCost":80,"batchNo":"BATCH-001","docDate":"2026-07-26"}],"bomRows":[{"subItemCode":"API-COMPONENT","qty":2,"overheadCost":0,"seq":1,"costFraction":1}],"replacements":[{"replacementItemCode":"API-REPLACEMENT","replacementDegree":1,"note":"Alternative item"}],"batchNo":"BATCH-001","batchDescription":"Opening API batch","remark1":"Created by API","remark2":"Stock item full payload example"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-item-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-items.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-items"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-journal-entry.","commandType":"bulk-create-journal-entries","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/gl-module/journal-entry/bulk-create","summary":"Bulk wrapper for create-journal-entry.","notes":"Runs create-journal-entry for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-journal-entry. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-journal-entry","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-journal-entries-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-journal-entries","payload":{"records":[{"docDate":"2026-06-24","journalType":"JV","description":"API journal entry","refNo":"API-JV-1001","lines":[{"accNo":"610-0000","accountNo":"610-0000","description":"Debit expense","debit":100,"credit":0,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","taxType":"S-0","taxCode":"S-0","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}},{"accNo":"500-1000","accountNo":"500-1000","description":"Credit control","debit":0,"credit":100,"project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","taxType":"S-0","taxCode":"S-0","classification":"022"}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-journal-entry-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-journal-entries.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-journal-entries"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-purchase-invoice.","commandType":"bulk-create-purchase-invoices","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/bulk-create","summary":"Bulk wrapper for create-purchase-invoice.","notes":"Runs create-purchase-invoice for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-purchase-invoice. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-purchase-invoice","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-purchase-invoices-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-purchase-invoices","payload":{"records":[{"creditorCode":"400-S001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-purchase-invoice-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-purchase-invoices.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-purchase-invoices"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-purchase-order.","commandType":"bulk-create-purchase-orders","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-order/bulk-create","summary":"Bulk wrapper for create-purchase-order.","notes":"Runs create-purchase-order for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-purchase-order. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-purchase-order","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-purchase-orders-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-purchase-orders","payload":{"records":[{"creditorCode":"400-S001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-purchase-order-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-purchase-orders.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-purchase-orders"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-purchase-return.","commandType":"bulk-create-purchase-returns","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/purchase-module/purchase-return/bulk-create","summary":"Bulk wrapper for create-purchase-return.","notes":"Runs create-purchase-return for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-purchase-return. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-purchase-return","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-purchase-returns-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-purchase-returns","payload":{"records":[{"creditorCode":"400-S001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","purchaseLocation":"HQ","purchaseAgent":"PA01","attention":"Supplier Sales Department","contact":"Supplier Sales Department","phone":"03-33333333","address1":"No. 2 Jalan Supplier","address2":"Supplier Park","address3":"Petaling Jaya","address4":"Malaysia","description":"Purchase document created through API","supplierInvoiceNo":"SUP-INV-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API purchase item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":80,"discount":"0","taxType":"P-0","taxRate":0,"taxAmount":0,"amount":160,"accountNo":"610-0000","postingAccountNo":"610-0000","location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":100,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"BANK","paymentBy":"Bank Transfer","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-purchase-return-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-purchase-returns.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-purchase-returns"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-quotation.","commandType":"bulk-create-quotations","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/bulk-module/quotation/bulk-create","summary":"Bulk wrapper for create-quotation.","notes":"Runs create-quotation for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-quotation. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-quotation","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-quotations-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-quotations","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-quotation-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-quotations.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-quotations"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-sales-credit-note.","commandType":"bulk-create-sales-credit-notes","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-credit-note/bulk-create","summary":"Bulk wrapper for create-sales-credit-note.","notes":"Runs create-sales-credit-note for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-sales-credit-note. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-sales-credit-note","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-sales-credit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-sales-credit-notes","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-sales-credit-note-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-sales-credit-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-sales-credit-notes"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-sales-debit-note.","commandType":"bulk-create-sales-debit-notes","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-debit-note/bulk-create","summary":"Bulk wrapper for create-sales-debit-note.","notes":"Runs create-sales-debit-note for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-sales-debit-note. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-sales-debit-note","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-sales-debit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-sales-debit-notes","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-sales-debit-note-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-sales-debit-notes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-sales-debit-notes"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-sales-invoice.","commandType":"bulk-create-sales-invoices","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-invoice/bulk-create","summary":"Bulk wrapper for create-sales-invoice.","notes":"Runs create-sales-invoice for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-sales-invoice. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-sales-invoice","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-sales-invoices-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-sales-invoices","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-sales-invoice-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-sales-invoices.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-sales-invoices"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-sales-order.","commandType":"bulk-create-sales-orders","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/sales-module/sales-order/bulk-create","summary":"Bulk wrapper for create-sales-order.","notes":"Runs create-sales-order for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-sales-order. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-sales-order","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"bulk-create-sales-orders-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-sales-orders","payload":{"records":[{"debtorCode":"300-A001","docDate":"2026-06-24","displayTerm":"30 DAYS","branchCode":"MAIN","salesLocation":"HQ","multiPricing":"Price 1","salesAgent":"SA01","attention":"Purchasing Department","contact":"Purchasing Department","deliverContact":"Store Receiver","deliverPhone1":"012-3456789","phone":"03-11111111","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","description":"Sales document created through API","ref":"WEB-ORDER-1001","currencyCode":"MYR","inclusiveTax":false,"taxEntityID":1,"project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"API item line 1","description2":"Line second description","furtherDescription":"Optional longer line note","barCode":"9550000000011","qty":2,"uom":"UNIT","unitPrice":100,"discount":"5%","taxType":"S-0","taxRate":0,"taxAmount":0,"amount":190,"location":"HQ","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","deliveryDate":"2026-06-30","userDefinedFields":{"APITEST":"Blue"}}],"payments":[{"paymentMethod":"CASH","paymentBy":"Cash","paymentAmount":130,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":""},{"paymentMethod":"CARD","paymentBy":"Credit Card","paymentAmount":60,"chequeNo":"","bankCharge":0,"paymentAccountNo":"110-0010","bankChargeAccountNo":"810-0000","creditCardApprovalCode":"APPROVED-001"}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-sales-order-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-sales-orders.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-sales-orders"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-stock-adjustment.","commandType":"bulk-create-stock-adjustments","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-adjustment/bulk-create","summary":"Bulk wrapper for create-stock-adjustment.","notes":"Runs create-stock-adjustment for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-stock-adjustment. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-stock-adjustment","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-stock-adjustments-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-stock-adjustments","payload":{"records":[{"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-stock-adjustment-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-stock-adjustments.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-stock-adjustments"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-stock-assembly.","commandType":"bulk-create-stock-assemblies","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/bulk/bulk-create","summary":"Bulk wrapper for create-stock-assembly.","notes":"Runs create-stock-assembly for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-stock-assembly. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-stock-assembly","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-stock-assemblies-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-stock-assemblies","payload":{"records":[{"docDate":"2026-06-24","itemCode":"FINISHED-API","description":"Stock assembly created through API","location":"HQ","qty":1,"uom":"UNIT","unitCost":100,"detailMode":"replace","lines":[{"lineNo":1,"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10,"batchNo":"BATCH-001","serialNo":""},{"lineNo":2,"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5,"batchNo":"","serialNo":""}],"reason":"correct assembly detail"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-stock-assembly-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-stock-assemblies.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-stock-assemblies"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-stock-assembly-order.","commandType":"bulk-create-stock-assembly-orders","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/assembly-order/bulk-create","summary":"Bulk wrapper for create-stock-assembly-order.","notes":"Runs create-stock-assembly-order for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-stock-assembly-order. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-stock-assembly-order","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-stock-assembly-orders-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-stock-assembly-orders","payload":{"records":[{"docDate":"2026-06-24","itemCode":"FINISHED-API","description":"Stock assembly order created through API","location":"HQ","qty":1,"uom":"UNIT","unitCost":100,"detailMode":"replace","lines":[{"lineNo":1,"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10,"batchNo":"BATCH-001","serialNo":""},{"lineNo":2,"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5,"batchNo":"","serialNo":""}],"reason":"correct assembly detail"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-stock-assembly-order-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-stock-assembly-orders.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-stock-assembly-orders"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-stock-disassembly.","commandType":"bulk-create-stock-disassemblies","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/disassembly/bulk-create","summary":"Bulk wrapper for create-stock-disassembly.","notes":"Runs create-stock-disassembly for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-stock-disassembly. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-stock-disassembly","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-stock-disassemblies-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-stock-disassemblies","payload":{"records":[{"docDate":"2026-06-24","itemCode":"FINISHED-API","description":"Stock disassembly created through API","location":"HQ","qty":1,"uom":"UNIT","unitCost":100,"detailMode":"replace","lines":[{"lineNo":1,"itemCode":"RAW-API-1","description":"Raw material 1","qty":2,"uom":"UNIT","location":"HQ","unitCost":10,"batchNo":"BATCH-001","serialNo":""},{"lineNo":2,"itemCode":"RAW-API-2","description":"Raw material 2","qty":3,"uom":"UNIT","location":"HQ","unitCost":5,"batchNo":"","serialNo":""}],"reason":"correct assembly detail"}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-stock-disassembly-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-stock-disassemblies.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-stock-disassemblies"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-stock-issue.","commandType":"bulk-create-stock-issues","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-issue/bulk-create","summary":"Bulk wrapper for create-stock-issue.","notes":"Runs create-stock-issue for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-stock-issue. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-stock-issue","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-stock-issues-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-stock-issues","payload":{"records":[{"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-stock-issue-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-stock-issues.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-stock-issues"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-stock-receive.","commandType":"bulk-create-stock-receives","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-receive/bulk-create","summary":"Bulk wrapper for create-stock-receive.","notes":"Runs create-stock-receive for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-stock-receive. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-stock-receive","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-stock-receives-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-stock-receives","payload":{"records":[{"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-stock-receive-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-stock-receives.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-stock-receives"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-stock-take.","commandType":"bulk-create-stock-takes","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-take/bulk-create","summary":"Bulk wrapper for create-stock-take.","notes":"Runs create-stock-take for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-stock-take. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-stock-take","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-stock-takes-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-stock-takes","payload":{"records":[{"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-stock-take-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-stock-takes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-stock-takes"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-stock-transfer.","commandType":"bulk-create-stock-transfers","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-transfer/bulk-create","summary":"Bulk wrapper for create-stock-transfer.","notes":"Runs create-stock-transfer for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-stock-transfer. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-stock-transfer","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-stock-transfers-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-stock-transfers","payload":{"records":[{"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-stock-transfer-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-stock-transfers.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-stock-transfers"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-stock-uom-conversion.","commandType":"bulk-create-stock-uom-conversions","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/uom-conversion/bulk-create","summary":"Bulk wrapper for create-stock-uom-conversion.","notes":"Runs create-stock-uom-conversion for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-stock-uom-conversion. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-stock-uom-conversion","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-stock-uom-conversions-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-stock-uom-conversions","payload":{"records":[{"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-stock-uom-conversion-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-stock-uom-conversions.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-stock-uom-conversions"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-stock-update-cost.","commandType":"bulk-create-stock-update-costs","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-update-cost/bulk-create","summary":"Bulk wrapper for create-stock-update-cost.","notes":"Runs create-stock-update-cost for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-stock-update-cost. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-stock-update-cost","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-stock-update-costs-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-stock-update-costs","payload":{"records":[{"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-stock-update-cost-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-stock-update-costs.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-stock-update-costs"},{"module":"Bulk","displayGroup":"Bulk / Tools","title":"Bulk wrapper for create-stock-write-off.","commandType":"bulk-create-stock-write-offs","mode":"write","operation":"Bulk","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/stock-module/stock-write-off/bulk-create","summary":"Bulk wrapper for create-stock-write-off.","notes":"Runs create-stock-write-off for each record on the local connector without waiting one cloud heartbeat per row. Bulk records use the same fields as create-stock-write-off. Split very large imports into batches so AutoCount and the connector can report row-level results clearly.","payloadSchema":{"records":"required array; each row uses the same payload as create-stock-write-off","stopOnError":"optional boolean; stop the batch when a row fails","dryRun":"optional boolean; validate without saving where supported","idempotencyKey":"optional caller batch key"},"exampleRequest":{"commandId":"bulk-create-stock-write-offs-001","connectorId":"customer-main","companyId":"macsofttest","type":"bulk-create-stock-write-offs","payload":{"records":[{"docDate":"2026-06-24","description":"Stock document created through API","reason":"API stock operation","location":"HQ","fromLocation":"HQ","toLocation":"STORE","project":"PRJAPI","department":"HQ","lines":[{"itemCode":"ITEM001","description":"Stock line 1","description2":"Stock line second description","barCode":"9550000000011","qty":2,"uom":"UNIT","unitCost":80,"unitPrice":100,"location":"HQ","fromLocation":"HQ","toLocation":"STORE","batchNo":"BATCH-001","serialNo":"SN-0001","project":"PRJAPI","projNo":"PRJAPI","department":"HQ","deptNo":"HQ","classification":"022","userDefinedFields":{"APITEST":"API-LINE"}}],"userDefinedFields":{"APITEST":"API"}}],"stopOnError":true,"dryRun":false,"idempotencyKey":"create-stock-write-off-batch-20260624"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to bulk-create-stock-write-offs.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"012.000.011.008.bulk-create-stock-write-offs"},{"module":"Tax","displayGroup":"Tax","title":"List GST processors.","commandType":"list-gst-processors","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/list","summary":"List GST processors.","notes":"Uses AutoCount.Tax.MalaysiaGST.GSTProcessor.GSTProcessorCommand.LoadGSTProcessorTable.","payloadSchema":{},"exampleRequest":{"commandId":"list-gst-processors-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-gst-processors","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-gst-processors.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.000.000.list-gst-processors"},{"module":"Tax","displayGroup":"Tax","title":"List SST processors.","commandType":"list-sst-processors","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/list","summary":"List SST processors.","notes":"Uses AutoCount.Tax.MalaysiaGST.SSTProcessor.SSTProcessorCommand.LoadSSTProcessorTable.","payloadSchema":{},"exampleRequest":{"commandId":"list-sst-processors-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-sst-processors","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-sst-processors.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.000.000.list-sst-processors"},{"module":"Tax","displayGroup":"Tax","title":"List tariff codes.","commandType":"list-tariff-codes","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/list","summary":"List tariff codes.","notes":"Uses AutoCount.GeneralMaint.Tariff.TariffCommand.LoadBrowseTable.","payloadSchema":{},"exampleRequest":{"commandId":"list-tariff-codes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-tariff-codes","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-tariff-codes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.000.000.list-tariff-codes"},{"module":"Tax","displayGroup":"Tax","title":"Alias for list-tax-types; lists all AutoCount tax codes.","commandType":"list-tax-codes","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/list","summary":"Alias for list-tax-types; lists all AutoCount tax codes.","notes":"Cloud and local connector normalize this to list-tax-types before execution.","payloadSchema":{},"exampleRequest":{"commandId":"list-tax-codes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-tax-codes","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-tax-codes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.000.000.list-tax-codes"},{"module":"Tax","displayGroup":"Tax","title":"List tax entities from the account book.","commandType":"list-tax-entities","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/list","summary":"List tax entities from the account book.","notes":"Uses AutoCount.Tax.TaxEntityMaintenance.TaxEntityCommand.LoadDataTable.","payloadSchema":{},"exampleRequest":{"commandId":"list-tax-entities-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-tax-entities","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-tax-entities.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.000.000.list-tax-entities"},{"module":"Tax","displayGroup":"Tax","title":"List all tax codes from the account book.","commandType":"list-tax-types","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/list","summary":"List all tax codes from the account book.","notes":"Uses AutoCount.Tax.TaxCodeMaintenance.TaxCodeCommand.LoadBrowseTable. Alias accepted: list-tax-codes.","payloadSchema":{},"exampleRequest":{"commandId":"list-tax-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-tax-types","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-tax-types.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.000.000.list-tax-types"},{"module":"Tax","displayGroup":"Tax","title":"List withholding tax codes.","commandType":"list-withholding-tax-codes","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/list","summary":"List withholding tax codes.","notes":"Uses AutoCount.Tax.WithholdingTax.WithholdingTaxCommand.LoadBrowseTable.","payloadSchema":{},"exampleRequest":{"commandId":"list-withholding-tax-codes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-withholding-tax-codes","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-withholding-tax-codes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.000.000.list-withholding-tax-codes"},{"module":"Tax","displayGroup":"Tax","title":"Read GST settings.","commandType":"read-gst-settings","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/list","summary":"Read GST settings.","notes":"Reads settings from available account-book GST tables.","payloadSchema":{},"exampleRequest":{"commandId":"read-gst-settings-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-gst-settings","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-gst-settings.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.001.000.read-gst-settings"},{"module":"Tax","displayGroup":"Tax","title":"Read SST settings.","commandType":"read-sst-settings","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/list","summary":"Read SST settings.","notes":"Reads settings from available account-book SST tables.","payloadSchema":{},"exampleRequest":{"commandId":"read-sst-settings-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-sst-settings","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-sst-settings.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.001.000.read-sst-settings"},{"module":"Tax","displayGroup":"Tax","title":"Get one GST processor by key.","commandType":"get-gst-processor","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/get","summary":"Get one GST processor by key.","notes":"Uses AutoCount.Tax.MalaysiaGST.GSTProcessor.GSTProcessorCommand.ViewGSTProcessor.","payloadSchema":{"key":"required processor key"},"exampleRequest":{"commandId":"get-gst-processor-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-gst-processor","payload":{"key":1}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-gst-processor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.002.000.get-gst-processor"},{"module":"Tax","displayGroup":"Tax","title":"Get one SST processor by key.","commandType":"get-sst-processor","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/get","summary":"Get one SST processor by key.","notes":"Uses AutoCount.Tax.MalaysiaGST.SSTProcessor.SSTProcessorCommand.ViewSSTProcessor.","payloadSchema":{"key":"required processor key"},"exampleRequest":{"commandId":"get-sst-processor-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-sst-processor","payload":{"key":1}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-sst-processor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.002.000.get-sst-processor"},{"module":"Tax","displayGroup":"Tax","title":"Get one tariff code.","commandType":"get-tariff-code","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/get","summary":"Get one tariff code.","notes":"Uses AutoCount.GeneralMaint.Tariff.TariffCommand.GetTariff.","payloadSchema":{"code":"required tariff code"},"exampleRequest":{"commandId":"get-tariff-code-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-tariff-code","payload":{"code":"API-TAR"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-tariff-code.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.002.000.get-tariff-code"},{"module":"Tax","displayGroup":"Tax","title":"Alias for get-tax-type; gets one AutoCount tax code.","commandType":"get-tax-code","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/get","summary":"Alias for get-tax-type; gets one AutoCount tax code.","notes":"Cloud and local connector normalize this to get-tax-type before execution.","payloadSchema":{"code":"required tax code","taxCode":"optional alias for code"},"exampleRequest":{"commandId":"get-tax-code-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-tax-code","payload":{"taxCode":"S-0"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-tax-code.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.002.000.get-tax-code"},{"module":"Tax","displayGroup":"Tax","title":"Get one tax entity by id, code, or name.","commandType":"get-tax-entity","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/get","summary":"Get one tax entity by id, code, or name.","notes":"Reads account-book tax entity data without direct SQL writes.","payloadSchema":{"code":"required tax entity id/code/name"},"exampleRequest":{"commandId":"get-tax-entity-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-tax-entity","payload":{"code":"MY"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-tax-entity.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.002.000.get-tax-entity"},{"module":"Tax","displayGroup":"Tax","title":"Get one tax code by code.","commandType":"get-tax-type","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/get","summary":"Get one tax code by code.","notes":"Reads one account-book tax setup row without direct SQL writes. Alias accepted: get-tax-code.","payloadSchema":{"code":"required tax type or tax code","taxCode":"optional alias for code"},"exampleRequest":{"commandId":"get-tax-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-tax-type","payload":{"code":"S-0"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-tax-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.002.000.get-tax-type"},{"module":"Tax","displayGroup":"Tax","title":"Get one withholding tax code.","commandType":"get-withholding-tax-code","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/get","summary":"Get one withholding tax code.","notes":"Uses AutoCount.Tax.WithholdingTax.WithholdingTaxCommand.GetWithholdingTax.","payloadSchema":{"code":"required withholding tax code"},"exampleRequest":{"commandId":"get-withholding-tax-code-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-withholding-tax-code","payload":{"code":"WHT-API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-withholding-tax-code.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.002.000.get-withholding-tax-code"},{"module":"Tax","displayGroup":"Tax","title":"Guarded GST payment request.","commandType":"create-gst-payment","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/create","summary":"Guarded GST payment request.","notes":"Returns createBlocked until fresh-account-book proof confirms the AutoCount GSTPaymentCommand workflow.","payloadSchema":{"processorKey":"required GST processor key","paymentDate":"YYYY-MM-DD optional","reason":"required business reason"},"exampleRequest":{"commandId":"create-gst-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-gst-payment","payload":{"processorKey":1,"paymentDate":"2026-04-30","reason":"record GST payment"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-gst-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.005.002.create-gst-payment"},{"module":"Tax","displayGroup":"Tax","title":"Guarded GST processor create request.","commandType":"create-gst-processor","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/create","summary":"Guarded GST processor create request.","notes":"Returns createBlocked until fresh-account-book proof confirms generated journals, audit trail, and recovery behavior.","payloadSchema":{"fromDate":"YYYY-MM-DD optional","toDate":"YYYY-MM-DD optional","reason":"required business reason"},"exampleRequest":{"commandId":"create-gst-processor-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-gst-processor","payload":{"fromDate":"2026-01-01","toDate":"2026-03-31","reason":"prepare GST return"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-gst-processor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.005.002.create-gst-processor"},{"module":"Tax","displayGroup":"Tax","title":"Guarded SST payment request.","commandType":"create-sst-payment","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/create","summary":"Guarded SST payment request.","notes":"Returns createBlocked until fresh-account-book proof confirms the AutoCount SSTPaymentCommand workflow.","payloadSchema":{"processorKey":"required SST processor key","paymentDate":"YYYY-MM-DD optional","reason":"required business reason"},"exampleRequest":{"commandId":"create-sst-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-sst-payment","payload":{"processorKey":1,"paymentDate":"2026-03-31","reason":"record SST payment"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-sst-payment.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.005.002.create-sst-payment"},{"module":"Tax","displayGroup":"Tax","title":"Guarded SST processor create request.","commandType":"create-sst-processor","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/create","summary":"Guarded SST processor create request.","notes":"Returns createBlocked until fresh-account-book proof confirms generated journals, audit trail, and recovery behavior.","payloadSchema":{"fromDate":"YYYY-MM-DD optional","toDate":"YYYY-MM-DD optional","reason":"required business reason"},"exampleRequest":{"commandId":"create-sst-processor-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-sst-processor","payload":{"fromDate":"2026-01-01","toDate":"2026-02-28","reason":"prepare SST return"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-sst-processor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.005.002.create-sst-processor"},{"module":"Tax","displayGroup":"Tax","title":"Create a tariff code.","commandType":"create-tariff-code","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/create","summary":"Create a tariff code.","notes":"Uses AutoCount.GeneralMaint.Tariff.TariffCommand.NewTariff and SaveTariff.","payloadSchema":{"code":"required tariff code","description":"optional","taxType":"optional","bankChargeTaxType":"optional","withholdingTaxCode":"optional","withholdingTaxRate":"optional"},"exampleRequest":{"commandId":"create-tariff-code-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-tariff-code","payload":{"code":"API-TAR","description":"API tariff","taxType":"S-0"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-tariff-code.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.005.002.create-tariff-code"},{"module":"Tax","displayGroup":"Tax","title":"Alias for create-tax-type; creates an AutoCount tax code.","commandType":"create-tax-code","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/create","summary":"Alias for create-tax-type; creates an AutoCount tax code.","notes":"Cloud and local connector normalize this to create-tax-type before execution.","payloadSchema":{"code":"required tax code","description":"optional","taxRate":"optional rate/percentage","supplyPurchase":"optional S or P style AutoCount value"},"exampleRequest":{"commandId":"create-tax-code-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-tax-code","payload":{"code":"S-API","description":"API sales tax","taxRate":8,"supplyPurchase":"S"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-tax-code.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.005.002.create-tax-code"},{"module":"Tax","displayGroup":"Tax","title":"Create a tax entity.","commandType":"create-tax-entity","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/create","summary":"Create a tax entity.","notes":"Uses AutoCount.Tax.TaxEntityMaintenance.TaxEntityCommand.New and TaxEntity.Save.","payloadSchema":{"name":"required company/person name","tin":"optional TIN","identityNo":"optional identity or registration number","identityType":"optional AutoCount/e-Invoice identity type","address":"optional address","postCode":"optional post code","city":"optional city","stateCode":"optional state code","countryCode":"optional country code","phone":"optional phone","emailAddress":"optional email","msicCode":"optional MSIC code","businessActivityDesc":"optional business activity","taxCategory":"optional AutoCount tax category","taxClassification":"optional AutoCount tax classification","salesTaxRegisterNo":"optional","serviceTaxRegisterNo":"optional","gstRegisterNo":"optional","tourismTaxRegisterNo":"optional"},"exampleRequest":{"commandId":"create-tax-entity-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-tax-entity","payload":{"name":"API Tax Entity Sdn Bhd","tin":"C1234567890","identityNo":"202601010001","identityType":"BRN","countryCode":"MYS"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-tax-entity.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.005.002.create-tax-entity"},{"module":"Tax","displayGroup":"Tax","title":"Create a tax code.","commandType":"create-tax-type","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/create","summary":"Create a tax code.","notes":"Uses AutoCount.Tax.TaxCodeMaintenance.TaxCodeCommand.NewTaxCode and SaveTaxCode.","payloadSchema":{"code":"required tax code","description":"optional","taxRate":"optional rate/percentage","supplyPurchase":"optional S or P style AutoCount value","taxAccNo":"optional GL tax account","govtTaxCode":"optional government tax code","isActive":"optional boolean/AutoCount flag","isDefault":"optional boolean/AutoCount flag","isZeroRate":"optional boolean/AutoCount flag","useTrxTaxAccNo":"optional boolean/AutoCount flag","accountingBasis":"optional AutoCount accounting basis","addToCost":"optional boolean/AutoCount flag"},"exampleRequest":{"commandId":"create-tax-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-tax-type","payload":{"code":"S-API","description":"API sales tax","taxRate":8,"supplyPurchase":"S","isActive":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-tax-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.005.002.create-tax-type"},{"module":"Tax","displayGroup":"Tax","title":"Create a withholding tax code.","commandType":"create-withholding-tax-code","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/create","summary":"Create a withholding tax code.","notes":"Uses AutoCount.Tax.WithholdingTax.WithholdingTaxCommand.NewWithholdingTax and SaveWithholdingTax.","payloadSchema":{"code":"required withholding tax code","withholdingTaxRate":"optional rate","withholdingTaxAccNo":"optional GL account","description":"optional"},"exampleRequest":{"commandId":"create-withholding-tax-code-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-withholding-tax-code","payload":{"code":"WHT-API","withholdingTaxRate":2,"description":"API withholding tax"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-withholding-tax-code.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.005.002.create-withholding-tax-code"},{"module":"Tax","displayGroup":"Tax","title":"Guarded GST processor edit request.","commandType":"update-gst-processor","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/edit","summary":"Guarded GST processor edit request.","notes":"Returns editBlocked until fresh-account-book proof confirms generated journals, audit trail, and recovery behavior.","payloadSchema":{"key":"required processor key","reason":"required business reason"},"exampleRequest":{"commandId":"update-gst-processor-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-gst-processor","payload":{"key":1,"reason":"correct period"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-gst-processor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.006.003.update-gst-processor"},{"module":"Tax","displayGroup":"Tax","title":"Guarded GST settings update request.","commandType":"update-gst-settings","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/edit","summary":"Guarded GST settings update request.","notes":"Returns editBlocked until the exact AutoCount SDK save workflow is proven.","payloadSchema":{"reason":"required business reason","settings":"object with intended setting changes"},"exampleRequest":{"commandId":"update-gst-settings-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-gst-settings","payload":{"reason":"configure tax period","settings":{}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-gst-settings.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.006.003.update-gst-settings"},{"module":"Tax","displayGroup":"Tax","title":"Guarded SST processor edit request.","commandType":"update-sst-processor","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/edit","summary":"Guarded SST processor edit request.","notes":"Returns editBlocked until fresh-account-book proof confirms generated journals, audit trail, and recovery behavior.","payloadSchema":{"key":"required processor key","reason":"required business reason"},"exampleRequest":{"commandId":"update-sst-processor-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-sst-processor","payload":{"key":1,"reason":"correct period"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-sst-processor.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.006.003.update-sst-processor"},{"module":"Tax","displayGroup":"Tax","title":"Guarded SST settings update request.","commandType":"update-sst-settings","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/edit","summary":"Guarded SST settings update request.","notes":"Returns editBlocked until the exact AutoCount SDK save workflow is proven.","payloadSchema":{"reason":"required business reason","settings":"object with intended setting changes"},"exampleRequest":{"commandId":"update-sst-settings-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-sst-settings","payload":{"reason":"configure SST period","settings":{}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-sst-settings.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.006.003.update-sst-settings"},{"module":"Tax","displayGroup":"Tax","title":"Update a tariff code.","commandType":"update-tariff-code","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/edit","summary":"Update a tariff code.","notes":"Uses AutoCount.GeneralMaint.Tariff.TariffCommand.GetTariff and SaveTariff.","payloadSchema":{"code":"required tariff code","description":"optional","taxType":"optional","bankChargeTaxType":"optional","withholdingTaxCode":"optional","withholdingTaxRate":"optional"},"exampleRequest":{"commandId":"update-tariff-code-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-tariff-code","payload":{"code":"API-TAR","description":"Updated API tariff"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-tariff-code.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.006.003.update-tariff-code"},{"module":"Tax","displayGroup":"Tax","title":"Alias for update-tax-type; updates an AutoCount tax code.","commandType":"update-tax-code","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/edit","summary":"Alias for update-tax-type; updates an AutoCount tax code.","notes":"Cloud and local connector normalize this to update-tax-type before execution.","payloadSchema":{"code":"required tax code","description":"optional","taxRate":"optional rate/percentage","supplyPurchase":"optional S or P style AutoCount value"},"exampleRequest":{"commandId":"update-tax-code-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-tax-code","payload":{"code":"S-API","description":"Updated API sales tax","taxRate":8,"supplyPurchase":"S"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-tax-code.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.006.003.update-tax-code"},{"module":"Tax","displayGroup":"Tax","title":"Update a tax entity.","commandType":"update-tax-entity","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/edit","summary":"Update a tax entity.","notes":"Uses AutoCount.Tax.TaxEntityMaintenance.TaxEntityCommand.Edit and TaxEntity.Save.","payloadSchema":{"taxEntityID":"required numeric TaxEntityID","name":"optional company/person name","tin":"optional TIN","identityNo":"optional identity or registration number","identityType":"optional AutoCount/e-Invoice identity type","address":"optional address","postCode":"optional post code","city":"optional city","stateCode":"optional state code","countryCode":"optional country code","phone":"optional phone","emailAddress":"optional email","msicCode":"optional MSIC code","businessActivityDesc":"optional business activity","taxCategory":"optional AutoCount tax category","taxClassification":"optional AutoCount tax classification","salesTaxRegisterNo":"optional","serviceTaxRegisterNo":"optional","gstRegisterNo":"optional","tourismTaxRegisterNo":"optional"},"exampleRequest":{"commandId":"update-tax-entity-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-tax-entity","payload":{"taxEntityID":1,"name":"Updated API Tax Entity Sdn Bhd","countryCode":"MYS"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-tax-entity.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.006.003.update-tax-entity"},{"module":"Tax","displayGroup":"Tax","title":"Update a tax code.","commandType":"update-tax-type","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/edit","summary":"Update a tax code.","notes":"Uses AutoCount.Tax.TaxCodeMaintenance.TaxCodeCommand.GetTaxCode and SaveTaxCode.","payloadSchema":{"code":"required tax code","description":"optional","taxRate":"optional rate/percentage","supplyPurchase":"optional S or P style AutoCount value","taxAccNo":"optional GL tax account","govtTaxCode":"optional government tax code","isActive":"optional boolean/AutoCount flag","isDefault":"optional boolean/AutoCount flag","isZeroRate":"optional boolean/AutoCount flag","useTrxTaxAccNo":"optional boolean/AutoCount flag","accountingBasis":"optional AutoCount accounting basis","addToCost":"optional boolean/AutoCount flag"},"exampleRequest":{"commandId":"update-tax-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-tax-type","payload":{"code":"S-API","description":"Updated API sales tax","taxRate":8,"supplyPurchase":"S","isActive":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-tax-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.006.003.update-tax-type"},{"module":"Tax","displayGroup":"Tax","title":"Update a withholding tax code.","commandType":"update-withholding-tax-code","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/tax/tax/edit","summary":"Update a withholding tax code.","notes":"Uses AutoCount.Tax.WithholdingTax.WithholdingTaxCommand.GetWithholdingTax and SaveWithholdingTax.","payloadSchema":{"code":"required withholding tax code","withholdingTaxRate":"optional rate","withholdingTaxAccNo":"optional GL account","description":"optional"},"exampleRequest":{"commandId":"update-withholding-tax-code-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-withholding-tax-code","payload":{"code":"WHT-API","withholdingTaxRate":3}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-withholding-tax-code.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"013.999.006.003.update-withholding-tax-code"},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","title":"List AR/AP contra documents.","commandType":"list-arap-contras","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/arap-module/arap-contra/list","summary":"List AR/AP contra documents.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-arap-contras-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-arap-contras","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-arap-contras.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-arap-contras"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List account types. Read-only because AutoCount 2.2 does not expose a safe SDK write command for Account Type.","commandType":"list-general-account-types","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/account-type/list","summary":"List account types. Read-only because AutoCount 2.2 does not expose a safe SDK write command for Account Type.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-account-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-account-types","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-account-types.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-account-types"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List address maintenance records.","commandType":"list-general-addresses","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/address/list","summary":"List address maintenance records.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-addresses-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-addresses","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-addresses.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-addresses"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List area maintenance records.","commandType":"list-general-areas","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/area/list","summary":"List area maintenance records.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-areas-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-areas","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-areas.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-areas"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List C/N type maintenance records.","commandType":"list-general-cn-types","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/cn-type/list","summary":"List C/N type maintenance records.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-cn-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-cn-types","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-cn-types.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-cn-types"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List credit terms. Read-only because AutoCount 2.2 does not expose a safe SDK write command for Credit Term.","commandType":"list-general-credit-terms","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/credit-term/list","summary":"List credit terms. Read-only because AutoCount 2.2 does not expose a safe SDK write command for Credit Term.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-credit-terms-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-credit-terms","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-credit-terms.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-credit-terms"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List creditor type maintenance records.","commandType":"list-general-creditor-types","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/creditor-type/list","summary":"List creditor type maintenance records.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-creditor-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-creditor-types","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-creditor-types.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-creditor-types"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List currency maintenance records.","commandType":"list-general-currencies","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/currency/list","summary":"List currency maintenance records.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-currencies-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-currencies","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-currencies.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-currencies"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List debtor type maintenance records.","commandType":"list-general-debtor-types","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/debtor-type/list","summary":"List debtor type maintenance records.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-debtor-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-debtor-types","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-debtor-types.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-debtor-types"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List D/N type maintenance records.","commandType":"list-general-dn-types","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/dn-type/list","summary":"List D/N type maintenance records.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-dn-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-dn-types","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-dn-types.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-dn-types"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List General Maintenance payment methods.","commandType":"list-general-payment-methods","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/payment-method/list","summary":"List General Maintenance payment methods.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-payment-methods-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-payment-methods","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-payment-methods.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-payment-methods"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List price categories.","commandType":"list-general-price-categories","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/price-category/list","summary":"List price categories.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-price-categories-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-price-categories","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-price-categories.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-price-categories"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List projects.","commandType":"list-general-projects","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/project/list","summary":"List projects.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-projects-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-projects","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-projects.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-projects"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List purchase agents.","commandType":"list-general-purchase-agents","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/list","summary":"List purchase agents.","notes":"","payloadSchema":{},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-general-purchase-agents-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-purchase-agents","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-purchase-agents.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-purchase-agents"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List sales agents.","commandType":"list-general-sales-agents","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/sales-agent/list","summary":"List sales agents.","notes":"","payloadSchema":{},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"list-general-sales-agents-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-sales-agents","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-sales-agents.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-sales-agents"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"List shipping methods.","commandType":"list-general-shipping-methods","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/shipping-method/list","summary":"List shipping methods.","notes":"","payloadSchema":{},"exampleRequest":{"commandId":"list-general-shipping-methods-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-shipping-methods","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-general-shipping-methods.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-general-shipping-methods"},{"module":"POS","displayGroup":"POS","title":"List POS sales/receipt rows through AutoCount POS DLL only.","commandType":"list-pos-raw-transactions","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/pos/pos/list","summary":"List POS sales/receipt rows through AutoCount POS DLL only.","notes":"Connector auto-detects AutoCount POS 5.2 Backend and calls AutoCount.POS.Report.CashReceipt.CashReceiptReport.Inquire. Returns raw DLL DataTables: CashReceiptReportDataTable, PaymentDetailDataTable, and CashReceiptReportDistinctDataTable. For shops closing after midnight, use businessDate + businessDayEndTime so receipts after 12AM, such as 00:00-02:00, are included in the previous business day. No direct SQL read is used.","payloadSchema":{"fromDate":"optional YYYY-MM-DD, default connector PC today; normal calendar-day mode","toDate":"optional YYYY-MM-DD, inclusive end-of-day in normal calendar-day mode","fromDateTime":"optional exact start date/time, for example 2026-08-01T00:00:00","toDateTime":"optional exact end date/time, for example 2026-08-02T02:00:00","businessDate":"optional POS business date. Use this when a shop opens past midnight and 1AM sales should belong to the previous business day.","businessDayStartTime":"optional HH:mm start time for businessDate, default 00:00","businessDayEndTime":"optional HH:mm close time for businessDate. Early-morning close times up to 06:00 automatically mean next calendar day, e.g. 02:00 means businessDate+1 02:00.","businessDayEndHour":"optional shortcut integer 0-23, e.g. 2 means businessDayEndTime 02:00","businessDayEndNextDay":"optional boolean override. Default true for early-morning close times up to 06:00; set false only when 02:00 means same calendar day.","filterByDateType":"optional PaymentTime, CreatedTime, or TaxInvoiceDate. Do not use DocDate because AutoCount POS DLL reports it as ambiguous.","transactionStatus":"optional Valid, All, or Void; default Valid","maxRows":"optional output row limit, default 100, max 1000"},"exampleRequest":{"commandId":"list-pos-raw-transactions-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-pos-raw-transactions","payload":{"businessDate":"2026-08-01","businessDayEndTime":"02:00","filterByDateType":"PaymentTime","transactionStatus":"Valid","maxRows":100}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-pos-raw-transactions.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-pos-raw-transactions"},{"module":"UDF","displayGroup":"UDF","title":"List UDF field definitions for one table or all UDF-enabled tables.","commandType":"list-udf-definitions","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/udf/udf/list","summary":"List UDF field definitions for one table or all UDF-enabled tables.","notes":"Uses AutoCount.UDF.Data.UDFDA.GetUDF(tableName).","payloadSchema":{"tableName":"optional AutoCount table name, for example Debtor, IV, IVDTL, ItemUOM"},"exampleRequest":{"commandId":"list-udf-definitions-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-udf-definitions","payload":{"tableName":"Debtor"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-udf-definitions.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-udf-definitions"},{"module":"UDF","displayGroup":"UDF","title":"List AutoCount tables that expose UDF definitions in the selected account book.","commandType":"list-udf-tables","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/udf/udf/list","summary":"List AutoCount tables that expose UDF definitions in the selected account book.","notes":"Uses AutoCount.UDF.Data.UDFDA.GetTableNames. Only returned tables should be treated as UDF-enabled for that account book.","payloadSchema":{},"exampleRequest":{"commandId":"list-udf-tables-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-udf-tables","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to list-udf-tables.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.000.000.list-udf-tables"},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","title":"Read the AI Startup Flow context for an AutoCount account book.","commandType":"read-company-ai-context","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/list","summary":"Read the AI Startup Flow context for an AutoCount account book.","notes":"Intelligent Connector Flow step 1. Returns starterCommands, activeModules, workflowHints, safetyRules, companyProfile, companyName, and discovery counts. Schema: /v1/schema/commands/read-company-ai-context","payloadSchema":{"includeHints":"optional boolean"},"exampleRequest":{"commandId":"read-company-ai-context-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-company-ai-context","payload":{"includeHints":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-company-ai-context.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.001.000.read-company-ai-context"},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","title":"Read the real AutoCount Company Profile for the selected account book.","commandType":"read-company-profile","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/list","summary":"Read the real AutoCount Company Profile for the selected account book.","notes":"Use this first when database names are similar. Reads AutoCount Profile/CompanyProfile and returns companyId, database, companyName, registrationNo, address, phone/email/website, plus redacted/truncated source fields.","payloadSchema":{},"exampleRequest":{"commandId":"read-company-profile-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-company-profile","payload":{}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-company-profile.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.001.000.read-company-profile"},{"module":"Linked Documents","displayGroup":"Linked Documents","title":"Read linked/transferred document detail rows and linkage columns.","commandType":"read-document-linkage","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/linked-documents/linked-documents/list","summary":"Read linked/transferred document detail rows and linkage columns.","notes":"Use this before changing linked document lines. Correct process is reverse then partial transfer.","payloadSchema":{"document":"target document such as sales-order, delivery-order, sales-invoice, purchase-invoice","docNo":"required document number"},"exampleRequest":{"commandId":"read-document-linkage-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-document-linkage","payload":{"document":"sales-order","docNo":"SO-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-document-linkage.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.001.000.read-document-linkage"},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","title":"Read field catalog so humans and AI know read/write/native/guarded fields.","commandType":"read-field-catalog","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/list","summary":"Read field catalog so humans and AI know read/write/native/guarded fields.","notes":"Intelligent Connector Flow step 2. Returns catalogVersion, cache, modules, documents, fields, mode, and source. Schema: /v1/schema/commands/read-field-catalog","payloadSchema":{"module":"optional module filter","document":"optional document filter","refresh":"optional boolean to refresh cached catalog"},"exampleRequest":{"commandId":"read-field-catalog-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-field-catalog","payload":{"module":"Purchase","document":"purchase-invoice"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to read-field-catalog.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.001.000.read-field-catalog"},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","title":"Get one AR/AP contra document by document number.","commandType":"get-arap-contra","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/arap-module/arap-contra/get","summary":"Get one AR/AP contra document by document number.","notes":"","payloadSchema":{"docNo":"required contra document number"},"exampleRequest":{"commandId":"get-arap-contra-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-arap-contra","payload":{"docNo":"CON-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-arap-contra.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-arap-contra"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-account-type","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/account-type/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-account-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-account-type","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-account-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-account-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-address","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/address/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-address-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-address","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-address.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-address"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-area","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/area/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-area-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-area","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-area.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-area"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-cn-type","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/cn-type/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-cn-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-cn-type","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-cn-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-cn-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-credit-term","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/credit-term/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-credit-term-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-credit-term","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-credit-term.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-credit-term"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-creditor-type","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/creditor-type/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-creditor-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-creditor-type","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-creditor-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-creditor-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-currency","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/currency/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-currency-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-currency","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-currency.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-currency"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-debtor-type","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/debtor-type/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-debtor-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-debtor-type","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-debtor-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-debtor-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-dn-type","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/dn-type/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-dn-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-dn-type","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-dn-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-dn-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-payment-method","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/payment-method/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-payment-method-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-payment-method","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-payment-method.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-payment-method"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-price-category","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/price-category/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-price-category-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-price-category","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-price-category.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-price-category"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-project","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/project/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-project-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-project","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-project.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-project"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-purchase-agent","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-general-purchase-agent-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-purchase-agent","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-purchase-agent.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-purchase-agent"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-sales-agent","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/sales-agent/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"get-general-sales-agent-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-sales-agent","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-sales-agent.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-sales-agent"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Get one General Maintenance setup record by code.","commandType":"get-general-shipping-method","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/shipping-method/get","summary":"Get one General Maintenance setup record by code.","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-shipping-method-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-shipping-method","payload":{"code":"API"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-general-shipping-method.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-general-shipping-method"},{"module":"POS","displayGroup":"POS","title":"Get one POS receipt raw AutoCount bundle through AutoCount POS DLL only.","commandType":"get-pos-raw-transaction","mode":"read","operation":"Read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/pos/pos/get","summary":"Get one POS receipt raw AutoCount bundle through AutoCount POS DLL only.","notes":"Connector auto-detects AutoCount POS 5.2 Backend and calls AutoCount.POS.Data.PosCommand.GetPos(docKey/guid). Returns raw header, detail, payment, promotion, modifier, delivery, serial, and related child DataTables exposed by the DLL. No direct SQL read is used.","payloadSchema":{"docKey":"required AutoCount POS DocKey from list-pos-raw-transactions, unless guid is supplied","guid":"optional POS Guid alternative to docKey"},"exampleRequest":{"commandId":"get-pos-raw-transaction-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-pos-raw-transaction","payload":{"docKey":3000152}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to get-pos-raw-transaction.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.002.000.get-pos-raw-transaction"},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","title":"Validate an AR/AP contra document without saving. Invoice knock-off allocation is guarded until proven with AutoCount SDK.","commandType":"validate-arap-contra","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/arap-module/arap-contra/validate","summary":"Validate an AR/AP contra document without saving. Invoice knock-off allocation is guarded until proven with AutoCount SDK.","notes":"Plain contra validation is supported. Use payment/credit-note commands for invoice allocation and refund commands for credit-note allocation until contra allocation is proven. Use read-ar-outstanding-documents and read-ap-outstanding-documents first to get docKey values for contra knock-off rows.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","creditorCode":"required AutoCount creditor/supplier code","amount":"required total contra amount","knockOffs":"optional combined knock-off rows when connector command accepts one array","docNo":"optional contra document number; omit to let AutoCount numbering generate it","docDate":"required or optional YYYY-MM-DD document date","description":"optional contra narration","ref":"optional reference","arKnockOffs":"optional AR side documents to knock off; docKey recommended","apKnockOffs":"optional AP side documents to knock off; docKey recommended"},"exampleRequest":{"commandId":"validate-arap-contra-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-arap-contra","payload":{"debtorCode":"300-A001","creditorCode":"400-S001","amount":100,"docDate":"2026-06-24","description":"API AR/AP contra","ref":"API-CONTRA-1001","arKnockOffs":[{"docType":"RI","docKey":"424501","docNo":"IV-000001","amount":100}],"apKnockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100}],"knockOffs":[{"side":"AR","docType":"RI","docKey":"424501","docNo":"IV-000001","amount":100},{"side":"AP","docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-arap-contra.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.004.001.validate-arap-contra"},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","title":"Preflight a proposed command before saving.","commandType":"validate-command","mode":"read","operation":"Validate","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/validate","summary":"Preflight a proposed command before saving.","notes":"Intelligent Connector Flow step 3. Returns readyToSave, risk, checks, warnings, and suggestions. Use validateOnly on actual write commands to force preflight. Schema: /v1/schema/commands/validate-command","payloadSchema":{"targetType":"required command type to validate","payload":"required proposed command payload","safetyMode":"optional fast | safe | strict"},"exampleRequest":{"commandId":"validate-command-001","connectorId":"customer-main","companyId":"macsofttest","type":"validate-command","payload":{"targetType":"create-ap-invoice","payload":{"creditorCode":"400-A001","docDate":"2026-07-21","lines":[{"accountNo":"620000-2000","amount":100}]},"safetyMode":"safe"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to validate-command.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.004.001.validate-command"},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","title":"Create a new AutoCount account book from an existing connector company.","commandType":"create-account-book","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/create","summary":"Create a new AutoCount account book from an existing connector company.","notes":"Uses AutoCount.ManageAccountBook.AccountBookHelper.CreateBaseAccountBook, then AutoCount.Tools.AutoAccessRightUpdate.Create(DBSetting).Update(), then registers the account book in A2006.dmf. Requires current connector company to have SQL credentials.","payloadSchema":{"databaseName":"required SQL database name, letters/numbers/underscore only","companyName":"required AutoCount company name","fiscalYearStartDate":"YYYY-MM-DD optional","actualDataStartDate":"YYYY-MM-DD optional","newCompanyId":"optional connector companyId to add after create","autoCountUser":"optional, default ADMIN","autoCountPassword":"optional, default ADMIN","confirm":"required true"},"exampleRequest":{"commandId":"create-account-book-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-account-book","payload":{"databaseName":"AED_NEW_COMPANY","companyName":"New Company Sdn Bhd","fiscalYearStartDate":"2026-01-01","actualDataStartDate":"2026-01-01","newCompanyId":"newcompany","confirm":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-account-book.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-account-book"},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","title":"Create an AR/AP contra document. Invoice knock-off allocation is guarded until proven with AutoCount SDK.","commandType":"create-arap-contra","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/arap-module/arap-contra/create","summary":"Create an AR/AP contra document. Invoice knock-off allocation is guarded until proven with AutoCount SDK.","notes":"Requires write access permission. Use payment/credit-note commands for invoice allocation and refund commands for credit-note allocation until contra allocation is proven. Use read-ar-outstanding-documents and read-ap-outstanding-documents first to get docKey values for contra knock-off rows.","payloadSchema":{"debtorCode":"required AutoCount debtor/customer code","creditorCode":"required AutoCount creditor/supplier code","docDate":"required or optional YYYY-MM-DD document date","amount":"required total contra amount","knockOffs":"optional combined knock-off rows when connector command accepts one array","docNo":"optional contra document number; omit to let AutoCount numbering generate it","description":"optional contra narration","ref":"optional reference","arKnockOffs":"optional AR side documents to knock off; docKey recommended","apKnockOffs":"optional AP side documents to knock off; docKey recommended"},"exampleRequest":{"commandId":"create-arap-contra-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-arap-contra","payload":{"debtorCode":"300-A001","creditorCode":"400-S001","docDate":"2026-06-24","amount":100,"description":"API AR/AP contra","ref":"API-CONTRA-1001","arKnockOffs":[{"docType":"RI","docKey":"424501","docNo":"IV-000001","amount":100}],"apKnockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100}],"knockOffs":[{"side":"AR","docType":"RI","docKey":"424501","docNo":"IV-000001","amount":100},{"side":"AP","docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-arap-contra.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-arap-contra"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded create request for General Maintenance setup data.","commandType":"create-general-account-type","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/account-type/create","summary":"Guarded create request for General Maintenance setup data.","notes":"Returns createBlocked until AutoCount exposes a proven safe SDK write path for this setup table. Full human payload reference for Account Type. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required Account Type code; accType is accepted as an alias where shown","accType":"optional alias for code","description":"optional Account Type description","desc2":"optional second description","isActive":"optional boolean active flag","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"create-general-account-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-account-type","payload":{"code":"EP","accType":"EP","description":"API Account Type","desc2":"Account Type second description","isActive":true,"remark1":"Created by API","remark2":"Account Type setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-account-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-account-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create an address maintenance record.","commandType":"create-general-address","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/address/create","summary":"Create an address maintenance record.","notes":"Requires write access permission. Full human payload reference for Address Maintenance. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required address code or addressName","address1":"optional address line 1","address2":"optional address line 2","postCode":"optional postcode","contact":"optional contact person","phone":"optional phone","fax":"optional fax","addressName":"optional address name alias","address3":"optional address line 3","address4":"optional address line 4","city":"optional city","state":"optional state","country":"optional country","emailAddress":"optional email address","isActive":"optional boolean active flag","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"create-general-address-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-address","payload":{"code":"HQ","address1":"No. 1 Jalan API","phone":"03-00000000","addressName":"Head Office","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","postCode":"50000","city":"Kuala Lumpur","state":"Wilayah Persekutuan","country":"Malaysia","contact":"Admin","fax":"03-00000001","emailAddress":"admin@example.com","isActive":true,"remark1":"Created by API","remark2":"Address setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-address.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-address"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create an area.","commandType":"create-general-area","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/area/create","summary":"Create an area.","notes":"Requires write access permission. Full human payload reference for Area Maintenance.","payloadSchema":{"code":"required Area code","description":"optional Area description","desc2":"optional second description","areaCode":"optional alias for code"},"exampleRequest":{"commandId":"create-general-area-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-area","payload":{"code":"KL","description":"Kuala Lumpur","areaCode":"KL","desc2":"Central region"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-area.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-area"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create a C/N type.","commandType":"create-general-cn-type","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/cn-type/create","summary":"Create a C/N type.","notes":"Requires write access permission. Full human payload reference for C/N Type. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required C/N Type code; cnType is accepted as an alias where shown","description":"optional C/N Type description","desc2":"optional second description","isActive":"optional boolean active flag","cnType":"optional alias for code","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"create-general-cn-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-cn-type","payload":{"code":"CNAPI","description":"API C/N Type","cnType":"CNAPI","desc2":"C/N Type second description","isActive":true,"remark1":"Created by API","remark2":"C/N Type setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-cn-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-cn-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded create request for General Maintenance setup data.","commandType":"create-general-credit-term","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/credit-term/create","summary":"Guarded create request for General Maintenance setup data.","notes":"Returns createBlocked until AutoCount exposes a proven safe SDK write path for this setup table. Credit Term writes are guarded unless the exact AutoCount SDK write path is proven for the account book. These fields reflect the connector's current list/read surface, not an advertised writable native schema.","payloadSchema":{"code":"required credit term display code, for example 30 DAYS","displayTerm":"optional alias for code","terms":"read/list field exposed by the connector for the underlying terms value","termType":"read/list field exposed by the connector for term type","termDays":"read/list field exposed by the connector for number of term days","discountDays":"optional early payment discount days","discountPercent":"optional early payment discount percent"},"exampleRequest":{"commandId":"create-general-credit-term-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-credit-term","payload":{"code":"30 DAYS","displayTerm":"30 DAYS","terms":"30 DAYS","termType":"Day","termDays":30,"discountDays":7,"discountPercent":2}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-credit-term.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-credit-term"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create a creditor type.","commandType":"create-general-creditor-type","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/creditor-type/create","summary":"Create a creditor type.","notes":"Requires write access permission. Full human payload reference for Creditor Type. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required Creditor Type code; creditorType is accepted as an alias where shown","description":"optional Creditor Type description","desc2":"optional second description","isActive":"optional boolean active flag","creditorType":"optional alias for code","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"create-general-creditor-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-creditor-type","payload":{"code":"SUP","description":"API Creditor Type","creditorType":"SUP","desc2":"Creditor Type second description","isActive":true,"remark1":"Created by API","remark2":"Creditor Type setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-creditor-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-creditor-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create a currency.","commandType":"create-general-currency","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/currency/create","summary":"Create a currency.","notes":"Requires write access permission. Full human payload reference for Currency Maintenance. Exchange rate behavior follows AutoCount account-book currency settings.","payloadSchema":{"code":"required currency code","currencySymbol":"optional currency symbol","currencyWord":"optional currency word/name","currencyWord2":"optional secondary currency word/name","bankBuyRate":"optional bank buying rate","bankSellRate":"optional bank selling rate","fcGainAccount":"optional foreign exchange gain account","fcLossAccount":"optional foreign exchange loss account","gainLossJournalType":"optional gain/loss journal type","currencyCode":"optional alias for code"},"exampleRequest":{"commandId":"create-general-currency-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-currency","payload":{"code":"USD","currencySymbol":"$","currencyWord":"US Dollar","currencyWord2":"US Dollars","currencyCode":"USD","bankBuyRate":4.7,"bankSellRate":4.75,"fcGainAccount":"720-0000","fcLossAccount":"820-0000","gainLossJournalType":"GL"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-currency.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-currency"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create a debtor type.","commandType":"create-general-debtor-type","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/debtor-type/create","summary":"Create a debtor type.","notes":"Requires write access permission. Full human payload reference for Debtor Type. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required Debtor Type code; debtorType is accepted as an alias where shown","description":"optional Debtor Type description","desc2":"optional second description","isActive":"optional boolean active flag","debtorType":"optional alias for code","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"create-general-debtor-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-debtor-type","payload":{"code":"CUS","description":"API Debtor Type","debtorType":"CUS","desc2":"Debtor Type second description","isActive":true,"remark1":"Created by API","remark2":"Debtor Type setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-debtor-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-debtor-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create a D/N type.","commandType":"create-general-dn-type","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/dn-type/create","summary":"Create a D/N type.","notes":"Requires write access permission. Full human payload reference for D/N Type. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required D/N Type code; dnType is accepted as an alias where shown","description":"optional D/N Type description","desc2":"optional second description","isActive":"optional boolean active flag","dnType":"optional alias for code","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"create-general-dn-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-dn-type","payload":{"code":"DNAPI","description":"API D/N Type","dnType":"DNAPI","desc2":"D/N Type second description","isActive":true,"remark1":"Created by API","remark2":"D/N Type setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-dn-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-dn-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create a payment method.","commandType":"create-general-payment-method","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/payment-method/create","summary":"Create a payment method.","notes":"Requires write access permission and valid AutoCount GL settings. Full human payload reference for Payment Method Maintenance. GL accounts must exist and match the customer's AutoCount posting setup.","payloadSchema":{"code":"required payment method code","paymentType":"optional type such as Cash, Bank, Cheque, Credit Card, E-Wallet","paymentBy":"optional pay-by method such as Cash, Cheque, Bank Transfer","journalType":"optional GL journal type used by this method","bankAccount":"optional GL bank/cash account number","bankChargeAccount":"optional bank charge GL account","bankChargePercent":"optional bank charge percent","minBankCharge":"optional minimum bank charge","odLimit":"optional overdraft limit","nextChequeNo":"optional next cheque/reference number","acceptChequeNo":"optional boolean allowing cheque/reference number entry","mergeBankChargeTrans":"optional boolean to merge bank charge transaction","isActive":"optional boolean active flag","paymentMethod":"optional alias for code"},"exampleRequest":{"commandId":"create-general-payment-method-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-payment-method","payload":{"code":"BANKAPI","paymentType":"Bank","paymentBy":"Bank Transfer","bankChargeAccount":"810-0000","paymentMethod":"BANKAPI","journalType":"BANK","bankAccount":"110-0010","bankChargePercent":2.5,"minBankCharge":0,"odLimit":0,"nextChequeNo":"CHQ-000101","acceptChequeNo":true,"mergeBankChargeTrans":false,"isActive":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-payment-method.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-payment-method"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create a price category.","commandType":"create-general-price-category","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/price-category/create","summary":"Create a price category.","notes":"Requires write access permission. Full human payload reference for Price Category Maintenance. Item selling price rows can also refer to this price category.","payloadSchema":{"code":"required price category code","description":"optional price category description","discountPercent":"optional default discount percent","detailDiscount":"optional AutoCount detail discount string","markupRatio":"optional markup ratio","priceCategory":"optional alias for code","roundingMethod":"optional rounding method where supported","isActive":"optional boolean active flag","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"create-general-price-category-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-price-category","payload":{"code":"API","description":"API Price Category","priceCategory":"API","discountPercent":5,"detailDiscount":"5%","markupRatio":1.2,"roundingMethod":"Normal","isActive":true,"remark1":"Created by API","remark2":"Price category setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-price-category.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-price-category"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create a project.","commandType":"create-general-project","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/project/create","summary":"Create a project.","notes":"Requires write access permission. Full human payload reference for Project Maintenance. Parent project and active flags depend on AutoCount project settings.","payloadSchema":{"code":"required project code","parentProjNo":"optional parent project code","description":"optional project description","desc2":"optional second description","isActive":"optional boolean active flag","projectNo":"optional alias for code","projNo":"optional alias for code"},"exampleRequest":{"commandId":"create-general-project-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-project","payload":{"code":"PRJAPI","description":"API Project","projectNo":"PRJAPI","projNo":"PRJAPI","parentProjNo":"","desc2":"Project second description","isActive":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-project.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-project"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create a purchase agent.","commandType":"create-general-purchase-agent","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/create","summary":"Create a purchase agent.","notes":"Requires write access permission. Full human payload reference for Purchase Agent Maintenance.","payloadSchema":{"code":"required Purchase Agent code","description":"optional Purchase Agent name/description","desc2":"optional second description","isActive":"optional boolean active flag","signature":"optional signature text/blob exposed by the AutoCount entity","purchaseAgent":"optional alias for code"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-general-purchase-agent-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-purchase-agent","payload":{"code":"PAAPI","description":"API Purchase Agent","signature":"Approved by Purchasing","purchaseAgent":"PAAPI","desc2":"Purchase Agent second description","isActive":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-purchase-agent.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-purchase-agent"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create a sales agent.","commandType":"create-general-sales-agent","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/sales-agent/create","summary":"Create a sales agent.","notes":"Requires write access permission. Full human payload reference for Sales Agent Maintenance.","payloadSchema":{"code":"required Sales Agent code","description":"optional Sales Agent name/description","desc2":"optional second description","emailAddress":"optional email address","approverEmailAddress":"optional approver email address","salesAgent":"optional alias for code"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"create-general-sales-agent-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-sales-agent","payload":{"code":"SAAPI","description":"API Sales Agent","approverEmailAddress":"approver@example.com","salesAgent":"SAAPI","desc2":"Sales Agent second description","emailAddress":"sales@example.com"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-sales-agent.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-sales-agent"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Create a shipping method.","commandType":"create-general-shipping-method","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/shipping-method/create","summary":"Create a shipping method.","notes":"Requires write access permission. Full human payload reference for Shipping Method. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required Shipping Method code; shippingMethod is accepted as an alias where shown","description":"optional Shipping Method description","isActive":"optional boolean active flag","shippingMethod":"optional alias for code","desc2":"optional second description","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"create-general-shipping-method-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-general-shipping-method","payload":{"code":"LALAMOVE","description":"API Shipping Method","shippingMethod":"LALAMOVE","desc2":"Shipping Method second description","isActive":true,"remark1":"Created by API","remark2":"Shipping Method setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-general-shipping-method.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-general-shipping-method"},{"module":"UDF","displayGroup":"UDF","title":"Create an AutoCount UDF field definition.","commandType":"create-udf-field","mode":"write","operation":"Create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/udf/udf/create","summary":"Create an AutoCount UDF field definition.","notes":"Uses AutoCount.UDF.UDFTable(tableName, DBSetting).Add(fieldName, UDFType, caption).Save().","payloadSchema":{"tableName":"required AutoCount UDF table name","fieldName":"required UDF field name without UDF_ prefix; AutoCount rejects some characters such as underscore","caption":"optional display caption","fieldType":"optional AutoCount UDF type; default Text","size":"optional text size; default 50"},"exampleRequest":{"commandId":"create-udf-field-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-udf-field","payload":{"tableName":"Debtor","fieldName":"APITEST","caption":"API Test","fieldType":"Text","size":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to create-udf-field.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.005.002.create-udf-field"},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","title":"Update AR/AP contra header/simple fields.","commandType":"update-arap-contra","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/arap-module/arap-contra/edit","summary":"Update AR/AP contra header/simple fields.","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. Use read-ar-outstanding-documents and read-ap-outstanding-documents first to get docKey values for contra knock-off rows.","payloadSchema":{"docNo":"optional contra document number; omit to let AutoCount numbering generate it","docKey":"optional existing document key","reason":"required business reason","docDate":"required or optional YYYY-MM-DD document date","description":"optional contra narration","ref":"optional reference","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","debtorCode":"required AutoCount debtor/customer code","creditorCode":"required AutoCount creditor/supplier code","amount":"required total contra amount","arKnockOffs":"optional AR side documents to knock off; docKey recommended","apKnockOffs":"optional AP side documents to knock off; docKey recommended","knockOffs":"optional combined knock-off rows when connector command accepts one array"},"exampleRequest":{"commandId":"update-arap-contra-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-arap-contra","payload":{"docNo":"CON-000001","reason":"correct contra","description":"API AR/AP contra","ref":"API-CONTRA-1001","debtorCode":"300-A001","creditorCode":"400-S001","docDate":"2026-06-24","amount":100,"arKnockOffs":[{"docType":"RI","docKey":"424501","docNo":"IV-000001","amount":100}],"apKnockOffs":[{"docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100}],"knockOffs":[{"side":"AR","docType":"RI","docKey":"424501","docNo":"IV-000001","amount":100},{"side":"AP","docType":"PB","docKey":"424508","docNo":"PI-000001","amount":100}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-arap-contra.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-arap-contra"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded edit request for General Maintenance setup data.","commandType":"update-general-account-type","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/account-type/edit","summary":"Guarded edit request for General Maintenance setup data.","notes":"Returns editBlocked until AutoCount exposes a proven safe SDK write path for this setup table. Full human payload reference for Account Type. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required Account Type code; accType is accepted as an alias where shown","reason":"required business reason","accType":"optional alias for code","description":"optional Account Type description","desc2":"optional second description","isActive":"optional boolean active flag","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"update-general-account-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-account-type","payload":{"code":"EP","reason":"correct setup value","accType":"EP","description":"API Account Type","desc2":"Account Type second description","isActive":true,"remark1":"Created by API","remark2":"Account Type setup example"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-account-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-account-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update an address maintenance record.","commandType":"update-general-address","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/address/edit","summary":"Update an address maintenance record.","notes":"Requires write access permission. Full human payload reference for Address Maintenance. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required address code or addressName","address1":"optional address line 1","phone":"optional phone","addressName":"optional address name alias","address2":"optional address line 2","address3":"optional address line 3","address4":"optional address line 4","postCode":"optional postcode","city":"optional city","state":"optional state","country":"optional country","contact":"optional contact person","fax":"optional fax","emailAddress":"optional email address","isActive":"optional boolean active flag","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"update-general-address-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-address","payload":{"code":"HQ","phone":"03-00000000","addressName":"Head Office","address1":"No. 1 Jalan API","address2":"Taman Integration","address3":"Kuala Lumpur","address4":"Malaysia","postCode":"50000","city":"Kuala Lumpur","state":"Wilayah Persekutuan","country":"Malaysia","contact":"Admin","fax":"03-00000001","emailAddress":"admin@example.com","isActive":true,"remark1":"Created by API","remark2":"Address setup example","reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-address.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-address"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update an area.","commandType":"update-general-area","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/area/edit","summary":"Update an area.","notes":"Requires write access permission. Full human payload reference for Area Maintenance.","payloadSchema":{"code":"required Area code","description":"optional Area description","desc2":"optional second description","areaCode":"optional alias for code"},"exampleRequest":{"commandId":"update-general-area-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-area","payload":{"code":"KL","description":"Kuala Lumpur","areaCode":"KL","desc2":"Central region","reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-area.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-area"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update a C/N type.","commandType":"update-general-cn-type","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/cn-type/edit","summary":"Update a C/N type.","notes":"Requires write access permission. Full human payload reference for C/N Type. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required C/N Type code; cnType is accepted as an alias where shown","description":"optional C/N Type description","isActive":"optional boolean active flag","cnType":"optional alias for code","desc2":"optional second description","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"update-general-cn-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-cn-type","payload":{"code":"CNAPI","isActive":true,"cnType":"CNAPI","description":"API C/N Type","desc2":"C/N Type second description","remark1":"Created by API","remark2":"C/N Type setup example","reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-cn-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-cn-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded edit request for General Maintenance setup data.","commandType":"update-general-credit-term","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/credit-term/edit","summary":"Guarded edit request for General Maintenance setup data.","notes":"Returns editBlocked until AutoCount exposes a proven safe SDK write path for this setup table. Credit Term writes are guarded unless the exact AutoCount SDK write path is proven for the account book. These fields reflect the connector's current list/read surface, not an advertised writable native schema.","payloadSchema":{"code":"required credit term display code, for example 30 DAYS","reason":"required business reason","displayTerm":"optional alias for code","terms":"read/list field exposed by the connector for the underlying terms value","termType":"read/list field exposed by the connector for term type","termDays":"read/list field exposed by the connector for number of term days","discountDays":"optional early payment discount days","discountPercent":"optional early payment discount percent"},"exampleRequest":{"commandId":"update-general-credit-term-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-credit-term","payload":{"code":"30 DAYS","reason":"correct setup value","displayTerm":"30 DAYS","terms":"30 DAYS","termType":"Day","termDays":30,"discountDays":7,"discountPercent":2}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-credit-term.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-credit-term"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update a creditor type.","commandType":"update-general-creditor-type","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/creditor-type/edit","summary":"Update a creditor type.","notes":"Requires write access permission. Full human payload reference for Creditor Type. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required Creditor Type code; creditorType is accepted as an alias where shown","description":"optional Creditor Type description","isActive":"optional boolean active flag","creditorType":"optional alias for code","desc2":"optional second description","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"update-general-creditor-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-creditor-type","payload":{"code":"SUP","isActive":true,"creditorType":"SUP","description":"API Creditor Type","desc2":"Creditor Type second description","remark1":"Created by API","remark2":"Creditor Type setup example","reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-creditor-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-creditor-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update a currency.","commandType":"update-general-currency","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/currency/edit","summary":"Update a currency.","notes":"Requires write access permission. Full human payload reference for Currency Maintenance. Exchange rate behavior follows AutoCount account-book currency settings.","payloadSchema":{"code":"required currency code","currencySymbol":"optional currency symbol","currencyWord2":"optional secondary currency word/name","bankBuyRate":"optional bank buying rate","bankSellRate":"optional bank selling rate","fcGainAccount":"optional foreign exchange gain account","fcLossAccount":"optional foreign exchange loss account","gainLossJournalType":"optional gain/loss journal type","currencyCode":"optional alias for code","currencyWord":"optional currency word/name"},"exampleRequest":{"commandId":"update-general-currency-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-currency","payload":{"code":"USD","bankBuyRate":4.7,"bankSellRate":4.75,"currencyCode":"USD","currencySymbol":"$","currencyWord":"US Dollar","currencyWord2":"US Dollars","fcGainAccount":"720-0000","fcLossAccount":"820-0000","gainLossJournalType":"GL","reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-currency.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-currency"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update a debtor type.","commandType":"update-general-debtor-type","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/debtor-type/edit","summary":"Update a debtor type.","notes":"Requires write access permission. Full human payload reference for Debtor Type. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required Debtor Type code; debtorType is accepted as an alias where shown","description":"optional Debtor Type description","isActive":"optional boolean active flag","debtorType":"optional alias for code","desc2":"optional second description","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"update-general-debtor-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-debtor-type","payload":{"code":"CUS","isActive":true,"debtorType":"CUS","description":"API Debtor Type","desc2":"Debtor Type second description","remark1":"Created by API","remark2":"Debtor Type setup example","reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-debtor-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-debtor-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update a D/N type.","commandType":"update-general-dn-type","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/dn-type/edit","summary":"Update a D/N type.","notes":"Requires write access permission. Full human payload reference for D/N Type. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required D/N Type code; dnType is accepted as an alias where shown","description":"optional D/N Type description","isActive":"optional boolean active flag","dnType":"optional alias for code","desc2":"optional second description","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"update-general-dn-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-dn-type","payload":{"code":"DNAPI","isActive":true,"dnType":"DNAPI","description":"API D/N Type","desc2":"D/N Type second description","remark1":"Created by API","remark2":"D/N Type setup example","reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-dn-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-dn-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update a payment method.","commandType":"update-general-payment-method","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/payment-method/edit","summary":"Update a payment method.","notes":"Requires write access permission. Full human payload reference for Payment Method Maintenance. GL accounts must exist and match the customer's AutoCount posting setup.","payloadSchema":{"code":"required payment method code","journalType":"optional GL journal type used by this method","bankAccount":"optional GL bank/cash account number","bankChargeAccount":"optional bank charge GL account","bankChargePercent":"optional bank charge percent","minBankCharge":"optional minimum bank charge","odLimit":"optional overdraft limit","nextChequeNo":"optional next cheque/reference number","acceptChequeNo":"optional boolean allowing cheque/reference number entry","mergeBankChargeTrans":"optional boolean to merge bank charge transaction","isActive":"optional boolean active flag","paymentMethod":"optional alias for code","paymentType":"optional type such as Cash, Bank, Cheque, Credit Card, E-Wallet","paymentBy":"optional pay-by method such as Cash, Cheque, Bank Transfer"},"exampleRequest":{"commandId":"update-general-payment-method-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-payment-method","payload":{"code":"BANKAPI","isActive":true,"paymentMethod":"BANKAPI","paymentType":"Bank","paymentBy":"Bank Transfer","journalType":"BANK","bankAccount":"110-0010","bankChargeAccount":"810-0000","bankChargePercent":2.5,"minBankCharge":0,"odLimit":0,"nextChequeNo":"CHQ-000101","acceptChequeNo":true,"mergeBankChargeTrans":false,"reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-payment-method.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-payment-method"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update a price category.","commandType":"update-general-price-category","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/price-category/edit","summary":"Update a price category.","notes":"Requires write access permission. Full human payload reference for Price Category Maintenance. Item selling price rows can also refer to this price category.","payloadSchema":{"code":"required price category code","description":"optional price category description","discountPercent":"optional default discount percent","priceCategory":"optional alias for code","detailDiscount":"optional AutoCount detail discount string","markupRatio":"optional markup ratio","roundingMethod":"optional rounding method where supported","isActive":"optional boolean active flag","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"update-general-price-category-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-price-category","payload":{"code":"API","discountPercent":5,"priceCategory":"API","description":"API Price Category","detailDiscount":"5%","markupRatio":1.2,"roundingMethod":"Normal","isActive":true,"remark1":"Created by API","remark2":"Price category setup example","reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-price-category.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-price-category"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update a project.","commandType":"update-general-project","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/project/edit","summary":"Update a project.","notes":"Requires write access permission. Full human payload reference for Project Maintenance. Parent project and active flags depend on AutoCount project settings.","payloadSchema":{"code":"required project code","description":"optional project description","isActive":"optional boolean active flag","projectNo":"optional alias for code","projNo":"optional alias for code","parentProjNo":"optional parent project code","desc2":"optional second description"},"exampleRequest":{"commandId":"update-general-project-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-project","payload":{"code":"PRJAPI","isActive":true,"projectNo":"PRJAPI","projNo":"PRJAPI","parentProjNo":"","description":"API Project","desc2":"Project second description","reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-project.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-project"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update a purchase agent.","commandType":"update-general-purchase-agent","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/edit","summary":"Update a purchase agent.","notes":"Requires write access permission. Full human payload reference for Purchase Agent Maintenance.","payloadSchema":{"code":"required Purchase Agent code","description":"optional Purchase Agent name/description","isActive":"optional boolean active flag","signature":"optional signature text/blob exposed by the AutoCount entity","purchaseAgent":"optional alias for code","desc2":"optional second description"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-general-purchase-agent-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-purchase-agent","payload":{"code":"PAAPI","isActive":true,"purchaseAgent":"PAAPI","description":"API Purchase Agent","desc2":"Purchase Agent second description","signature":"Approved by Purchasing","reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-purchase-agent.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-purchase-agent"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update a sales agent.","commandType":"update-general-sales-agent","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/sales-agent/edit","summary":"Update a sales agent.","notes":"Requires write access permission. Full human payload reference for Sales Agent Maintenance.","payloadSchema":{"code":"required Sales Agent code","description":"optional Sales Agent name/description","emailAddress":"optional email address","approverEmailAddress":"optional approver email address","salesAgent":"optional alias for code","desc2":"optional second description"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"update-general-sales-agent-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-sales-agent","payload":{"code":"SAAPI","emailAddress":"sales@example.com","salesAgent":"SAAPI","description":"API Sales Agent","desc2":"Sales Agent second description","approverEmailAddress":"approver@example.com","reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-sales-agent.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-sales-agent"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Update a shipping method.","commandType":"update-general-shipping-method","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/shipping-method/edit","summary":"Update a shipping method.","notes":"Requires write access permission. Full human payload reference for Shipping Method. Exact fields saved depend on the AutoCount setup SDK exposed for this table.","payloadSchema":{"code":"required Shipping Method code; shippingMethod is accepted as an alias where shown","description":"optional Shipping Method description","isActive":"optional boolean active flag","shippingMethod":"optional alias for code","desc2":"optional second description","remark1":"optional remark field 1","remark2":"optional remark field 2"},"exampleRequest":{"commandId":"update-general-shipping-method-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-general-shipping-method","payload":{"code":"LALAMOVE","isActive":true,"shippingMethod":"LALAMOVE","description":"API Shipping Method","desc2":"Shipping Method second description","remark1":"Created by API","remark2":"Shipping Method setup example","reason":"correct setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-general-shipping-method.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-general-shipping-method"},{"module":"UDF","displayGroup":"UDF","title":"Update an existing AutoCount UDF field definition.","commandType":"update-udf-field","mode":"write","operation":"Edit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/udf/udf/edit","summary":"Update an existing AutoCount UDF field definition.","notes":"Uses AutoCount.UDF.UDFTable Save. This changes UDF setup, not transaction data.","payloadSchema":{"tableName":"required AutoCount UDF table name","fieldName":"required UDF field name without UDF_ prefix","caption":"optional display caption","size":"optional text size"},"exampleRequest":{"commandId":"update-udf-field-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-udf-field","payload":{"tableName":"Debtor","fieldName":"APITEST","caption":"API Test","size":50}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to update-udf-field.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.006.003.update-udf-field"},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","title":"Guarded AR/AP contra void request.","commandType":"void-arap-contra","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/arap-module/arap-contra/void","summary":"Guarded AR/AP contra void request.","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"void-arap-contra-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-arap-contra","payload":{"docNo":"CON-000001","reason":"void/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-arap-contra.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-arap-contra"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-account-type","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/account-type/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-account-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-account-type","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-account-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-account-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-address","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/address/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-address-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-address","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-address.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-address"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-area","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/area/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-area-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-area","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-area.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-area"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-cn-type","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/cn-type/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-cn-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-cn-type","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-cn-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-cn-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-credit-term","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/credit-term/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-credit-term-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-credit-term","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-credit-term.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-credit-term"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-creditor-type","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/creditor-type/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-creditor-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-creditor-type","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-creditor-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-creditor-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-currency","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/currency/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-currency-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-currency","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-currency.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-currency"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-debtor-type","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/debtor-type/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-debtor-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-debtor-type","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-debtor-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-debtor-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-dn-type","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/dn-type/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-dn-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-dn-type","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-dn-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-dn-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-payment-method","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/payment-method/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-payment-method-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-payment-method","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-payment-method.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-payment-method"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-price-category","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/price-category/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-price-category-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-price-category","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-price-category.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-price-category"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-project","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/project/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-project-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-project","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-project.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-project"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-purchase-agent","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-general-purchase-agent-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-purchase-agent","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-purchase-agent.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-purchase-agent"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-sales-agent","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/sales-agent/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"void-general-sales-agent-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-sales-agent","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-sales-agent.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-sales-agent"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded void request for General Maintenance setup data.","commandType":"void-general-shipping-method","mode":"write","operation":"Void","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/shipping-method/void","summary":"Guarded void request for General Maintenance setup data.","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"void-general-shipping-method-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-general-shipping-method","payload":{"code":"API","reason":"void unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to void-general-shipping-method.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.007.004.void-general-shipping-method"},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","title":"Guarded AR/AP contra delete request.","commandType":"delete-arap-contra","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/arap-module/arap-contra/delete","summary":"Guarded AR/AP contra delete request.","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"delete-arap-contra-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-arap-contra","payload":{"docNo":"CON-000001","reason":"remove/correct document"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-arap-contra.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-arap-contra"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-account-type","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/account-type/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-account-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-account-type","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-account-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-account-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-address","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/address/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-address-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-address","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-address.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-address"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-area","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/area/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-area-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-area","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-area.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-area"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-cn-type","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/cn-type/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-cn-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-cn-type","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-cn-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-cn-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-credit-term","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/credit-term/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-credit-term-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-credit-term","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-credit-term.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-credit-term"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-creditor-type","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/creditor-type/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-creditor-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-creditor-type","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-creditor-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-creditor-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-currency","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/currency/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-currency-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-currency","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-currency.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-currency"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-debtor-type","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/debtor-type/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-debtor-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-debtor-type","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-debtor-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-debtor-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-dn-type","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/dn-type/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-dn-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-dn-type","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-dn-type.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-dn-type"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-payment-method","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/payment-method/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-payment-method-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-payment-method","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-payment-method.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-payment-method"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-price-category","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/price-category/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-price-category-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-price-category","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-price-category.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-price-category"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-project","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/project/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-project-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-project","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-project.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-project"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-purchase-agent","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"fieldReference":{"header":{"creditorCode":"supplier/creditor code","creditorName":"supplier display name","purchaseAgent":"purchase agent code","purchaseLocation":"purchase/stock location","supplierInvoiceNo":"supplier invoice number","supplierDONo":"supplier delivery order number","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-general-purchase-agent-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-purchase-agent","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-purchase-agent.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-purchase-agent"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-sales-agent","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/sales-agent/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"fieldReference":{"header":{"debtorCode":"customer/debtor code","debtorName":"customer display name","salesAgent":"sales agent code","salesLocation":"sales location","multiPricing":"price category/multi-pricing value","displayTerm":"credit term","docNo":"optional document number; omit to let AutoCount numbering generate it where supported","docDate":"YYYY-MM-DD document date","dueDate":"YYYY-MM-DD due date where supported","description":"document narration/description","ref":"reference","ourRef":"our reference","yourRef":"customer/supplier reference","currencyCode":"currency code, for example MYR","currencyRate":"currency exchange rate","inclusiveTax":"true when prices include tax","taxDate":"YYYY-MM-DD tax date","branchCode":"debtor/creditor branch code/name where account book uses branches","userDefinedFields":"object of AutoCount user-defined fields","verifyAfterSave":"optional boolean; false keeps save fast, true reloads the saved record and returns readBack checks/differences where the connector has a safe get path"},"contactAndAddress":{"attention":"attention/contact person","contact":"alias for attention/contact person","phone1":"primary phone","phone":"alias for phone1","phone2":"secondary phone/mobile","fax1":"fax","fax":"alias for fax1","address1":"address line 1","address2":"address line 2","address3":"address line 3","address4":"address line 4","deliverAddress1":"delivery address line 1","deliverAddress2":"delivery address line 2","deliverAddress3":"delivery address line 3","deliverAddress4":"delivery address line 4","deliverContact":"delivery contact","deliverPhone1":"delivery phone"},"lines":{"itemCode":"AutoCount item code","barCode":"barcode shown/used by item line","description":"line description","description2":"line second description","furtherDescription":"long/further line description","qty":"quantity","uom":"UOM","unitPrice":"unit price","unitCost":"unit cost where supported","discount":"discount string/amount","taxType":"tax type/code alias","taxCode":"tax code alias","taxRate":"tax rate","taxAmount":"tax amount","amount":"line amount","location":"stock location","fromLocation":"source location","toLocation":"destination location","batchNo":"batch number","serialNo":"serial number","project":"project code","projNo":"project code alias","department":"department code","deptNo":"department code alias","classification":"classification code","deliveryDate":"YYYY-MM-DD delivery date","userDefinedFields":"object of line user-defined fields"},"payments":{"paymentMethod":"AutoCount Payment Method code","paymentBy":"payment type such as Cash, Cheque, Bank Transfer, Credit Card","paymentAmount":"payment amount","amount":"payment amount alias where supported","chequeNo":"cheque/reference number","bankCharge":"bank charge amount","bankAccount":"bank/cash GL account","paymentAccountNo":"bank/cash GL account alias","bankChargeAccountNo":"bank charge GL account","creditCardApprovalCode":"card approval/reference code","userDefinedFields":"object of payment user-defined fields"}},"exampleRequest":{"commandId":"delete-general-sales-agent-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-sales-agent","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-sales-agent.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-sales-agent"},{"module":"General Maintenance","displayGroup":"General Maintenance","title":"Guarded delete request for General Maintenance setup data.","commandType":"delete-general-shipping-method","mode":"write","operation":"Delete","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/general-maintenance/shipping-method/delete","summary":"Guarded delete request for General Maintenance setup data.","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"exampleRequest":{"commandId":"delete-general-shipping-method-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-general-shipping-method","payload":{"code":"API","reason":"remove unused setup value"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to delete-general-shipping-method.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.008.005.delete-general-shipping-method"},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","title":"Explain technical connector or AutoCount errors in human and AI-friendly field guidance.","commandType":"explain-command-error","mode":"read","operation":"read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/explain-command-error","summary":"Explain technical connector or AutoCount errors in human and AI-friendly field guidance.","notes":"Use after failed commands to decide whether the error is missing master data, unsupported field write, SDK method gap, or setup/config issue.","payloadSchema":{"targetType":"optional command type","message":"required error message or result"},"exampleRequest":{"commandId":"explain-command-error-001","connectorId":"customer-main","companyId":"macsofttest","type":"explain-command-error","payload":{"targetType":"create-ap-invoice","message":"MissingMethodException: EditDetail not found"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to explain-command-error.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.999.999.explain-command-error"},{"module":"Linked Documents","displayGroup":"Linked Documents","title":"Create a target document by partial transferring selected source rows.","commandType":"partial-transfer-document","mode":"write","operation":"write","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/linked-documents/linked-documents/partial-transfer-document","summary":"Create a target document by partial transferring selected source rows.","notes":"Supports the standard sales/purchase chains where AutoCount exposes PartialTransfer.","payloadSchema":{"fromDocument":"source document type","toDocument":"target document type","fromDocNo":"source document number","lines":"optional source rows selected by sourceDtlKey or sourceLineNo"},"exampleRequest":{"commandId":"partial-transfer-document-001","connectorId":"customer-main","companyId":"macsofttest","type":"partial-transfer-document","payload":{"fromDocument":"quotation","toDocument":"sales-order","fromDocNo":"QT-000001","lines":[{"sourceLineNo":1}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to partial-transfer-document.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.999.999.partial-transfer-document"},{"module":"Linked Documents","displayGroup":"Linked Documents","title":"Correct linked-document line workflow: reverse then partial transfer.","commandType":"rebuild-linked-document-lines","mode":"write","operation":"write","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/linked-documents/linked-documents/rebuild-linked-document-lines","summary":"Correct linked-document line workflow: reverse then partial transfer.","notes":"Existing linked document rebuild is guarded until reverse is proven. With createReplacement:true, connector can create a replacement target document by partial transfer.","payloadSchema":{"fromDocument":"source document type","toDocument":"target document type","targetDocNo":"existing linked target document","fromDocNo":"source document number","lines":"selected source rows","createReplacement":"optional true to create a replacement target document by partial transfer"},"exampleRequest":{"commandId":"rebuild-linked-document-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"rebuild-linked-document-lines","payload":{"fromDocument":"quotation","toDocument":"sales-order","targetDocNo":"SO-000001","fromDocNo":"QT-000001","lines":[{"sourceLineNo":1}]}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to rebuild-linked-document-lines.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.999.999.rebuild-linked-document-lines"},{"module":"Linked Documents","displayGroup":"Linked Documents","title":"Guarded reverse/untransfer request for an existing linked document.","commandType":"reverse-document-transfer","mode":"write","operation":"write","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/linked-documents/linked-documents/reverse-document-transfer","summary":"Guarded reverse/untransfer request for an existing linked document.","notes":"Returns reverseTransferNotProven unless a safe AutoCount reverse/untransfer SDK method is proven for the flow.","payloadSchema":{"fromDocument":"source document type","toDocument":"target document type","targetDocNo":"existing linked target document"},"exampleRequest":{"commandId":"reverse-document-transfer-001","connectorId":"customer-main","companyId":"macsofttest","type":"reverse-document-transfer","payload":{"fromDocument":"quotation","toDocument":"sales-order","targetDocNo":"SO-000001"}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to reverse-document-transfer.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.999.999.reverse-document-transfer"},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","title":"Build a read-only Mac Soft AI demo profile from the AutoCount account book.","commandType":"run-company-discovery","mode":"read","operation":"read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/run-company-discovery","summary":"Build a read-only Mac Soft AI demo profile from the AutoCount account book.","notes":"Returns activeModules, masterDataCounts, documentCounts, features, workflows, and aiHints. Use this first for CEO, executive, admin, and clerk demos before preparing writes.","payloadSchema":{},"exampleRequest":{"commandId":"run-company-discovery-001","connectorId":"customer-main","companyId":"macsofttest","type":"run-company-discovery","payload":{"includeHints":true}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to run-company-discovery.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.999.999.run-company-discovery"},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","title":"Suggest safe fixes when validation fails or a master value is missing.","commandType":"suggest-command-fixes","mode":"read","operation":"read","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/suggest-command-fixes","summary":"Suggest safe fixes when validation fails or a master value is missing.","notes":"Intelligent Connector Flow step 4. Suggestions point to read-payment-methods, read-chart-accounts, read-items, read-debtors, read-creditors, outstanding documents, and previous transaction patterns.","payloadSchema":{"targetType":"required command type","payload":"required proposed command payload"},"exampleRequest":{"commandId":"suggest-command-fixes-001","connectorId":"customer-main","companyId":"macsofttest","type":"suggest-command-fixes","payload":{"targetType":"create-ap-payment","payload":{"creditorCode":"400-A001","amount":100}}},"aiInstructions":["Use cloud API only: https://api.autocount.cloud.","Never call the Local Connector API directly from Mac Soft AI, AI tools, customer apps, or external integrations.","Use Authorization: Bearer YOUR_API_KEY.","Use a unique commandId for every real operation.","Set type to suggest-command-fixes.","Poll GET /v1/commands/{commandId} until status is done or failed.","For write commands, validate first when a validate-* command exists for the same document."],"displayOrder":"999.999.999.999.suggest-command-fixes"}]}