{"ok":true,"name":"AutoCount Cloud API AI Manifest","version":"local-mvp-2026.08.06.01","baseUrl":"https://api.autocount.cloud","useCloudApiOnly":true,"forbiddenLocalApis":["http://127.0.0.1:18000","http://localhost:18000","http://192.168.*:18080"],"ontology":{"endpoint":"/ai/autocount-ontology.json","rule":"Read the ontology first to understand AutoCount entities, links, workflows, and safe-write rules before choosing a command."},"auth":{"header":"Authorization","format":"Bearer YOUR_API_KEY"},"commandFlow":["Queue with POST /v1/commands.","Use commandId, connectorId, companyId, type, and payload.","Poll GET /v1/commands/{commandId}.","For PDF commands, download GET /v1/commands/{commandId}/artifact or result.artifactUrl with the same API key, then attach that file in wacli/email tools.","Do not reuse commandId for a different business transaction.","After restoring or moving a connector project, use fresh commandId values or clear generated local idempotency results before retesting changed account-book data."],"safetyRules":["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."],"aliases":{"customer.list":"read-debtors","customers.list":"read-debtors","customer.get":"get-debtor-detail","customers.get":"get-debtor-detail","debtor.list":"read-debtors","debtors.list":"read-debtors","debtor.get":"get-debtor-detail","debtors.get":"get-debtor-detail","debtor.credit_control.get":"get-debtor-credit-control","debtor.credit-control.get":"get-debtor-credit-control","debtor.credit_control.read":"get-debtor-credit-control","debtor.credit-control.read":"get-debtor-credit-control","customer.credit_control.get":"get-debtor-credit-control","customer.credit-control.get":"get-debtor-credit-control","customer.credit_control.read":"get-debtor-credit-control","customer.credit-control.read":"get-debtor-credit-control","ar.debtor.credit_control.get":"get-debtor-credit-control","ar.debtor.credit-control.get":"get-debtor-credit-control","ar.customer.credit_control.get":"get-debtor-credit-control","ar.customer.credit-control.get":"get-debtor-credit-control","ar.customer.count":"read-debtors","ar.customer.get":"get-debtor-detail","ar.customer.list":"read-debtors","ar.customers.count":"read-debtors","ar.customers.get":"get-debtor-detail","ar.customers.list":"read-debtors","ar.debtor.count":"read-debtors","ar.debtor.get":"get-debtor-detail","ar.debtor.list":"read-debtors","ar.debtors.count":"read-debtors","ar.debtors.get":"get-debtor-detail","ar.debtors.list":"read-debtors","supplier.list":"read-creditors","suppliers.list":"read-creditors","supplier.count":"read-creditors","suppliers.count":"read-creditors","supplier.get":"get-creditor-detail","suppliers.get":"get-creditor-detail","creditor.list":"read-creditors","creditors.list":"read-creditors","creditor.count":"read-creditors","creditors.count":"read-creditors","creditor.get":"get-creditor-detail","creditors.get":"get-creditor-detail","ap.supplier.count":"read-creditors","ap.supplier.list":"read-creditors","ap.supplier.get":"get-creditor-detail","ap.suppliers.count":"read-creditors","ap.suppliers.list":"read-creditors","ap.suppliers.get":"get-creditor-detail","ap.creditor.count":"read-creditors","ap.creditor.list":"read-creditors","ap.creditor.get":"get-creditor-detail","ap.creditors.count":"read-creditors","ap.creditors.list":"read-creditors","ap.creditors.get":"get-creditor-detail","item.list":"read-items","items.list":"read-items","item.get":"get-stock-item-detail","items.get":"get-stock-item-detail","sales.invoice.count":"list-sales-invoices","sales.invoice.list":"list-sales-invoices","sales.invoice.get":"get-sales-invoice","sales.invoice.lines":"read-sales-invoice-lines","sales.lines":"read-sales-detail-lines","sales.detail_lines":"read-sales-detail-lines","sales.invoice.pdf":"sales-document-autocount-pdf","sales.item_by_customer":"read-item-sales-by-customer","sales.item_by_customer.read":"read-item-sales-by-customer","sales.item_customer_ranking":"read-item-sales-by-customer","sales.item_customer_ranking.read":"read-item-sales-by-customer","item.sales_by_customer":"read-item-sales-by-customer","item.sales_by_customer.read":"read-item-sales-by-customer","sales.order.list":"list-sales-orders","sales.order.get":"get-sales-order","sales.order.lines":"read-sales-order-lines","sales.order.pdf":"sales-document-autocount-pdf","sales.delivery_order.list":"list-delivery-orders","sales.delivery_order.get":"get-delivery-order","sales.delivery_order.lines":"read-delivery-order-lines","sales.delivery_order.pdf":"sales-document-autocount-pdf","sales.delivery.list":"list-delivery-orders","sales.delivery.get":"get-delivery-order","sales.cash_sale.list":"list-cash-sales","sales.cash_sale.get":"get-cash-sale","sales.cash_sale.lines":"read-cash-sale-lines","sales.cash_sale.pdf":"sales-document-autocount-pdf","sales.quotation.list":"list-quotations","sales.quotation.get":"get-quotation","sales.quotation.lines":"read-quotation-lines","sales.quotation.pdf":"sales-document-autocount-pdf","sales.advanced_quotation.list":"list-advanced-quotations","sales.advanced_quotation.get":"get-advanced-quotation","sales.advanced_quotation.lines":"read-advanced-quotation-lines","sales.advanced_quotation.pdf":"sales-document-autocount-pdf","sales.credit_note.list":"list-sales-credit-notes","sales.credit_note.get":"get-sales-credit-note","sales.credit_note.lines":"read-sales-credit-note-lines","sales.credit_note.pdf":"sales-document-autocount-pdf","sales.debit_note.list":"list-sales-debit-notes","sales.debit_note.get":"get-sales-debit-note","sales.debit_note.lines":"read-sales-debit-note-lines","sales.debit_note.pdf":"sales-document-autocount-pdf","purchase.invoice.list":"list-purchase-invoices","purchase.invoice.get":"get-purchase-invoice","purchase.invoice.lines":"read-purchase-invoice-lines","purchase.lines":"read-purchase-detail-lines","purchase.detail_lines":"read-purchase-detail-lines","purchase.invoice.pdf":"purchase-document-autocount-pdf","purchase.order.list":"list-purchase-orders","purchase.order.get":"get-purchase-order","purchase.order.lines":"read-purchase-order-lines","purchase.order.pdf":"purchase-document-autocount-pdf","purchase.grn.list":"list-goods-received-notes","purchase.grn.get":"get-goods-received-note","purchase.grn.lines":"read-goods-received-note-lines","purchase.grn.pdf":"purchase-document-autocount-pdf","purchase.goods_received_note.list":"list-goods-received-notes","purchase.goods_received_note.get":"get-goods-received-note","purchase.goods_received_note.lines":"read-goods-received-note-lines","purchase.goods_received_note.pdf":"purchase-document-autocount-pdf","purchase.return.list":"list-purchase-returns","purchase.return.get":"get-purchase-return","purchase.return.lines":"read-purchase-return-lines","purchase.return.pdf":"purchase-document-autocount-pdf","purchase.purchase_return.list":"list-purchase-returns","purchase.purchase_return.get":"get-purchase-return","purchase.purchase_return.lines":"read-purchase-return-lines","purchase.purchase_return.pdf":"purchase-document-autocount-pdf","purchase.cash_purchase.list":"list-cash-purchases","purchase.cash_purchase.get":"get-cash-purchase","purchase.cash_purchase.lines":"read-cash-purchase-lines","purchase.cash_purchase.pdf":"purchase-document-autocount-pdf","stock.lines":"read-stock-detail-lines","stock.detail_lines":"read-stock-detail-lines","stock.adjustment.lines":"read-stock-adjustment-lines","stock.adjustment.pdf":"stock-document-autocount-pdf","stock.receive.lines":"read-stock-receive-lines","stock.receive.pdf":"stock-document-autocount-pdf","stock.issue.lines":"read-stock-issue-lines","stock.issue.pdf":"stock-document-autocount-pdf","stock.transfer.lines":"read-stock-transfer-lines","stock.transfer.pdf":"stock-document-autocount-pdf","stock.take.lines":"read-stock-take-lines","stock.take.pdf":"stock-document-autocount-pdf","stock.write_off.lines":"read-stock-write-off-lines","stock.write_off.pdf":"stock-document-autocount-pdf","stock.uom_conversion.lines":"read-stock-uom-conversion-lines","stock.uom_conversion.pdf":"stock-document-autocount-pdf","stock.update_cost.lines":"read-stock-update-cost-lines","stock.update_cost.pdf":"stock-document-autocount-pdf","stock.assembly.pdf":"stock-document-autocount-pdf","stock.assembly_order.pdf":"stock-document-autocount-pdf","stock.disassembly.pdf":"stock-document-autocount-pdf","ar.outstanding.get":"read-ar-outstanding","ar.outstanding.documents":"read-ar-outstanding-documents","ar.outstanding.documents.list":"read-ar-outstanding-documents","ar.outstanding_document.list":"read-ar-outstanding-documents","ar.invoice.list":"list-ar-invoices","ar.invoice.get":"get-ar-invoice","ar.lines":"read-ar-detail-lines","ar.detail_lines":"read-ar-detail-lines","ar.invoice.lines":"read-ar-invoice-lines","ar.payment.list":"list-ar-payments","ar.payment.get":"get-ar-payment","ar.payment.lines":"read-ar-payment-lines","ar.payment.pdf":"arap-document-autocount-pdf","ar.deposit.list":"list-ar-deposits","ar.deposit.get":"get-ar-deposit","ar.deposit.pdf":"arap-document-autocount-pdf","accounting.ar_deposit.pdf":"arap-document-autocount-pdf","ar.refund.list":"list-ar-refunds","ar.refund.get":"get-ar-refund","ar.refund.lines":"read-ar-refund-lines","ar.refund.pdf":"arap-document-autocount-pdf","ar.credit-note.list":"list-ar-credit-notes","ar.credit-note.get":"get-ar-credit-note","ar.credit-note.lines":"read-ar-credit-note-lines","ar.credit-note.pdf":"arap-document-autocount-pdf","ar.credit_note.list":"list-ar-credit-notes","ar.credit_note.get":"get-ar-credit-note","ar.credit_note.lines":"read-ar-credit-note-lines","ar.credit_note.pdf":"arap-document-autocount-pdf","ar.debit-note.list":"list-ar-debit-notes","ar.debit-note.get":"get-ar-debit-note","ar.debit-note.lines":"read-ar-debit-note-lines","ar.debit-note.pdf":"arap-document-autocount-pdf","ar.debit_note.list":"list-ar-debit-notes","ar.debit_note.get":"get-ar-debit-note","ar.debit_note.lines":"read-ar-debit-note-lines","ar.debit_note.pdf":"arap-document-autocount-pdf","ap.outstanding.get":"read-ap-outstanding","ap.outstanding.documents":"read-ap-outstanding-documents","ap.outstanding.documents.list":"read-ap-outstanding-documents","ap.outstanding_document.list":"read-ap-outstanding-documents","ap.invoice.list":"list-ap-invoices","ap.invoice.get":"get-ap-invoice","ap.lines":"read-ap-detail-lines","ap.detail_lines":"read-ap-detail-lines","ap.invoice.lines":"read-ap-invoice-lines","ap.invoice.pdf":"arap-document-autocount-pdf","ap.payment.list":"list-ap-payments","ap.payment.get":"get-ap-payment","ap.payment.lines":"read-ap-payment-lines","ap.payment.pdf":"arap-document-autocount-pdf","ap.deposit.list":"list-ap-deposits","ap.deposit.get":"get-ap-deposit","ap.deposit.pdf":"arap-document-autocount-pdf","accounting.ap_deposit.pdf":"arap-document-autocount-pdf","ap.refund.list":"list-ap-refunds","ap.refund.get":"get-ap-refund","ap.refund.lines":"read-ap-refund-lines","ap.refund.pdf":"arap-document-autocount-pdf","ap.credit-note.list":"list-ap-credit-notes","ap.credit-note.get":"get-ap-credit-note","ap.credit-note.lines":"read-ap-credit-note-lines","ap.credit-note.pdf":"arap-document-autocount-pdf","ap.credit_note.list":"list-ap-credit-notes","ap.credit_note.get":"get-ap-credit-note","ap.credit_note.lines":"read-ap-credit-note-lines","ap.credit_note.pdf":"arap-document-autocount-pdf","ap.debit-note.list":"list-ap-debit-notes","ap.debit-note.get":"get-ap-debit-note","ap.debit-note.lines":"read-ap-debit-note-lines","ap.debit-note.pdf":"arap-document-autocount-pdf","ap.debit_note.list":"list-ap-debit-notes","ap.debit_note.get":"get-ap-debit-note","ap.debit_note.lines":"read-ap-debit-note-lines","ap.debit_note.pdf":"arap-document-autocount-pdf","arap.contra.list":"list-arap-contras","arap.contra.get":"get-arap-contra","arap.contra.pdf":"arap-document-autocount-pdf","cashbook.payment_method.list":"read-payment-methods","cashbook.payment_methods.list":"read-payment-methods","payment_method.list":"read-payment-methods","general.account_type.list":"list-general-account-types","general.address.list":"list-general-addresses","general.address.create":"create-general-address","general.address.update":"update-general-address","general.area.list":"list-general-areas","general.area.create":"create-general-area","general.area.update":"update-general-area","general.cn_type.list":"list-general-cn-types","general.cn_type.create":"create-general-cn-type","general.cn_type.update":"update-general-cn-type","general.credit_term.list":"list-general-credit-terms","general.creditor_type.list":"list-general-creditor-types","general.creditor_type.create":"create-general-creditor-type","general.creditor_type.update":"update-general-creditor-type","general.currency.list":"list-general-currencies","general.currency.create":"create-general-currency","general.currency.update":"update-general-currency","general.dn_type.list":"list-general-dn-types","general.dn_type.create":"create-general-dn-type","general.dn_type.update":"update-general-dn-type","general.debtor_type.list":"list-general-debtor-types","general.debtor_type.create":"create-general-debtor-type","general.debtor_type.update":"update-general-debtor-type","general.payment_method.list":"list-general-payment-methods","general.payment_method.create":"create-general-payment-method","general.payment_method.update":"update-general-payment-method","general.price_category.list":"list-general-price-categories","general.price_category.create":"create-general-price-category","general.price_category.update":"update-general-price-category","general.project.list":"list-general-projects","general.project.create":"create-general-project","general.project.update":"update-general-project","general.purchase_agent.list":"list-general-purchase-agents","general.purchase_agent.create":"create-general-purchase-agent","general.purchase_agent.update":"update-general-purchase-agent","general.sales_agent.list":"list-general-sales-agents","general.sales_agent.create":"create-general-sales-agent","general.sales_agent.update":"update-general-sales-agent","general.shipping_method.list":"list-general-shipping-methods","general.shipping_method.create":"create-general-shipping-method","general.shipping_method.update":"update-general-shipping-method","e-invoice.setting.get":"einvoice.setting.get","einvoice.settings.get":"einvoice.setting.get","e-invoice.status.list":"einvoice.status.list","einvoice.submission_status.list":"einvoice.status.list","einvoice.status.refresh":"einvoice.status.refresh","e-invoice.consolidated.list":"einvoice.consolidated.list","einvoice.self_billed.list":"einvoice.self-billed.list","e-invoice.self-billed.list":"einvoice.self-billed.list","einvoice.supplier_item_mapping.list":"einvoice.supplier-item-mapping.list","e-invoice.supplier-item-mapping.list":"einvoice.supplier-item-mapping.list","stock.item.list":"read-items","stock.item.get":"get-stock-item-detail","stock.items.get":"get-stock-item-detail","stock.balance.get":"stock-balance","stock.movement.list":"read-stock-movement","stock.location.list":"read-locations","stock.adjustment.list":"list-stock-adjustments","stock.adjustment.get":"get-stock-adjustment","stock.receive.list":"list-stock-receives","stock.receive.get":"get-stock-receive","stock.issue.list":"list-stock-issues","stock.issue.get":"get-stock-issue","stock.transfer.list":"list-stock-transfers","stock.transfer.get":"get-stock-transfer","stock.uom_conversion.list":"list-stock-uom-conversions","stock.uom_conversion.get":"get-stock-uom-conversion","stock.take.list":"list-stock-takes","stock.take.get":"get-stock-take","stock.write_off.list":"list-stock-write-offs","stock.write_off.get":"get-stock-write-off","stock.update_cost.list":"list-stock-update-costs","stock.update_cost.get":"get-stock-update-cost","stock.item_package.list":"list-item-packages","stock.item_package.get":"get-item-package","stock.bom.list":"list-bom-items","stock.bom.get":"get-item-bom","gl.account.list":"read-chart-accounts","gl.account.balance":"read-gl-account-balance","gl.account_balance.get":"read-gl-account-balance","gl.bank_cash_account.list":"list-gl-bank-cash-accounts","gl.cash_flow_account.list":"read-gl-cash-flow-accounts","gl.cheque.list":"list-gl-cheques","cashbook.cheque.list":"list-gl-cheques","gl.payment_voucher.pdf":"gl-document-autocount-pdf","gl.official_receipt.pdf":"gl-document-autocount-pdf","cashbook.payment_voucher.pdf":"gl-document-autocount-pdf","cashbook.official_receipt.pdf":"gl-document-autocount-pdf","gl.cash_book_entry.list":"list-gl-cash-book-documents","gl.cash_book_entry.count":"list-gl-cash-book-documents","gl.cash_book_payment.validate":"validate-gl-cash-book-payment","gl.cash_book_receipt.validate":"validate-gl-cash-book-receipt","gl.cash_book_payment.create":"create-gl-cash-book-payment","gl.cash_book_receipt.create":"create-gl-cash-book-receipt","gl.cash_book_entry.void":"void-gl-cash-book-entry","gl.cash_book_entry.delete":"delete-gl-cash-book-entry","gl.bank_reconciliation.list":"list-gl-bank-reconciliations","gl.bank_reconciliation.get":"get-gl-bank-reconciliation","gl.bank_reconciliation.uncleared.list":"list-gl-bank-reconciliation-uncleared","bank.reconciliation.list":"list-gl-bank-reconciliations","bank.reconciliation.get":"get-gl-bank-reconciliation","bank.reconciliation.uncleared.list":"list-gl-bank-reconciliation-uncleared","bank.recon.list":"list-gl-bank-reconciliations","bank.recon.get":"get-gl-bank-reconciliation","bank.recon.uncleared.list":"list-gl-bank-reconciliation-uncleared","cashbook.payment.create":"create-gl-cash-book-payment","cashbook.receipt.create":"create-gl-cash-book-receipt","cashbook.transaction.void":"void-gl-cash-book-entry","cashbook.transaction.delete":"delete-gl-cash-book-entry","cashbook.transaction.list":"list-gl-cash-book-documents","cashbook.transaction.count":"list-gl-cash-book-documents","cashbook.transactions.list":"list-gl-cash-book-documents","list-cash-book-transactions":"list-gl-cash-book-documents","read-cash-book-transactions":"list-gl-cash-book-documents","list-cashbook-transactions":"list-gl-cash-book-documents","read-cashbook-transactions":"list-gl-cash-book-documents","list-gl-cash-book":"list-gl-cash-book-documents","read-gl-cash-book":"list-gl-cash-book-documents","list-cash-book":"list-gl-cash-book-documents","read-cash-book":"list-gl-cash-book-documents","gl.cash_book_report.list":"list-gl-cash-book-entries","cashbook.report.list":"list-gl-cash-book-entries","tax.code.list":"list-tax-types","tax.codes.list":"list-tax-types","tax_code.list":"list-tax-types","tax_codes.list":"list-tax-types","list-tax-codes":"list-tax-types","tax.code.get":"get-tax-type","tax_code.get":"get-tax-type","get-tax-code":"get-tax-type","tax.code.create":"create-tax-type","tax_code.create":"create-tax-type","create-tax-code":"create-tax-type","tax.code.update":"update-tax-type","tax_code.update":"update-tax-type","update-tax-code":"update-tax-type","report.sales.html":"sales-report-html","report.statement.html":"statement-report-html","statement.report.html":"statement-report-html","report.statement.pdf":"arap-statement-autocount-pdf","statement.report.pdf":"arap-statement-autocount-pdf","sales.detail-lines":"read-sales-detail-lines","sales.item-by-customer":"read-item-sales-by-customer","sales.item-by-customer.read":"read-item-sales-by-customer","sales.item-customer-ranking":"read-item-sales-by-customer","sales.item-customer-ranking.read":"read-item-sales-by-customer","item.sales-by-customer":"read-item-sales-by-customer","item.sales-by-customer.read":"read-item-sales-by-customer","sales.delivery-order.list":"list-delivery-orders","sales.delivery-order.get":"get-delivery-order","sales.delivery-order.lines":"read-delivery-order-lines","sales.delivery-order.pdf":"sales-document-autocount-pdf","sales.cash-sale.list":"list-cash-sales","sales.cash-sale.get":"get-cash-sale","sales.cash-sale.lines":"read-cash-sale-lines","sales.cash-sale.pdf":"sales-document-autocount-pdf","sales.advanced-quotation.list":"list-advanced-quotations","sales.advanced-quotation.get":"get-advanced-quotation","sales.advanced-quotation.lines":"read-advanced-quotation-lines","sales.advanced-quotation.pdf":"sales-document-autocount-pdf","sales.credit-note.list":"list-sales-credit-notes","sales.credit-note.get":"get-sales-credit-note","sales.credit-note.lines":"read-sales-credit-note-lines","sales.credit-note.pdf":"sales-document-autocount-pdf","sales.debit-note.list":"list-sales-debit-notes","sales.debit-note.get":"get-sales-debit-note","sales.debit-note.lines":"read-sales-debit-note-lines","sales.debit-note.pdf":"sales-document-autocount-pdf","purchase.detail-lines":"read-purchase-detail-lines","purchase.goods-received-note.list":"list-goods-received-notes","purchase.goods-received-note.get":"get-goods-received-note","purchase.goods-received-note.lines":"read-goods-received-note-lines","purchase.goods-received-note.pdf":"purchase-document-autocount-pdf","purchase.purchase-return.list":"list-purchase-returns","purchase.purchase-return.get":"get-purchase-return","purchase.purchase-return.lines":"read-purchase-return-lines","purchase.purchase-return.pdf":"purchase-document-autocount-pdf","purchase.cash-purchase.list":"list-cash-purchases","purchase.cash-purchase.get":"get-cash-purchase","purchase.cash-purchase.lines":"read-cash-purchase-lines","purchase.cash-purchase.pdf":"purchase-document-autocount-pdf","stock.detail-lines":"read-stock-detail-lines","stock.write-off.lines":"read-stock-write-off-lines","stock.write-off.pdf":"stock-document-autocount-pdf","stock.uom-conversion.lines":"read-stock-uom-conversion-lines","stock.uom-conversion.pdf":"stock-document-autocount-pdf","stock.update-cost.lines":"read-stock-update-cost-lines","stock.update-cost.pdf":"stock-document-autocount-pdf","stock.assembly-order.pdf":"stock-document-autocount-pdf","ar.outstanding-document.list":"read-ar-outstanding-documents","ar.detail-lines":"read-ar-detail-lines","accounting.ar-deposit.pdf":"arap-document-autocount-pdf","ap.outstanding-document.list":"read-ap-outstanding-documents","ap.detail-lines":"read-ap-detail-lines","accounting.ap-deposit.pdf":"arap-document-autocount-pdf","cashbook.payment-method.list":"read-payment-methods","cashbook.payment-methods.list":"read-payment-methods","payment-method.list":"read-payment-methods","general.account-type.list":"list-general-account-types","general.cn-type.list":"list-general-cn-types","general.cn-type.create":"create-general-cn-type","general.cn-type.update":"update-general-cn-type","general.credit-term.list":"list-general-credit-terms","general.creditor-type.list":"list-general-creditor-types","general.creditor-type.create":"create-general-creditor-type","general.creditor-type.update":"update-general-creditor-type","general.dn-type.list":"list-general-dn-types","general.dn-type.create":"create-general-dn-type","general.dn-type.update":"update-general-dn-type","general.debtor-type.list":"list-general-debtor-types","general.debtor-type.create":"create-general-debtor-type","general.debtor-type.update":"update-general-debtor-type","general.payment-method.list":"list-general-payment-methods","general.payment-method.create":"create-general-payment-method","general.payment-method.update":"update-general-payment-method","general.price-category.list":"list-general-price-categories","general.price-category.create":"create-general-price-category","general.price-category.update":"update-general-price-category","general.purchase-agent.list":"list-general-purchase-agents","general.purchase-agent.create":"create-general-purchase-agent","general.purchase-agent.update":"update-general-purchase-agent","general.sales-agent.list":"list-general-sales-agents","general.sales-agent.create":"create-general-sales-agent","general.sales-agent.update":"update-general-sales-agent","general.shipping-method.list":"list-general-shipping-methods","general.shipping-method.create":"create-general-shipping-method","general.shipping-method.update":"update-general-shipping-method","e_invoice.setting.get":"einvoice.setting.get","e_invoice.status.list":"einvoice.status.list","einvoice.submission-status.list":"einvoice.status.list","e_invoice.consolidated.list":"einvoice.consolidated.list","einvoice.self-billed.list":"einvoice.self-billed.list","e_invoice.self_billed.list":"einvoice.self-billed.list","einvoice.supplier-item-mapping.list":"einvoice.supplier-item-mapping.list","e_invoice.supplier_item_mapping.list":"einvoice.supplier-item-mapping.list","stock.uom-conversion.list":"list-stock-uom-conversions","stock.uom-conversion.get":"get-stock-uom-conversion","stock.write-off.list":"list-stock-write-offs","stock.write-off.get":"get-stock-write-off","stock.update-cost.list":"list-stock-update-costs","stock.update-cost.get":"get-stock-update-cost","stock.item-package.list":"list-item-packages","stock.item-package.get":"get-item-package","gl.account-balance.get":"read-gl-account-balance","gl.bank-cash-account.list":"list-gl-bank-cash-accounts","gl.cash-flow-account.list":"read-gl-cash-flow-accounts","gl.payment-voucher.pdf":"gl-document-autocount-pdf","gl.official-receipt.pdf":"gl-document-autocount-pdf","cashbook.payment-voucher.pdf":"gl-document-autocount-pdf","cashbook.official-receipt.pdf":"gl-document-autocount-pdf","gl.cash-book-entry.list":"list-gl-cash-book-documents","gl.cash-book-entry.count":"list-gl-cash-book-documents","gl.cash-book-payment.validate":"validate-gl-cash-book-payment","gl.cash-book-receipt.validate":"validate-gl-cash-book-receipt","gl.cash-book-payment.create":"create-gl-cash-book-payment","gl.cash-book-receipt.create":"create-gl-cash-book-receipt","gl.cash-book-entry.void":"void-gl-cash-book-entry","gl.cash-book-entry.delete":"delete-gl-cash-book-entry","gl.bank-reconciliation.list":"list-gl-bank-reconciliations","gl.bank-reconciliation.get":"get-gl-bank-reconciliation","gl.bank-reconciliation.uncleared.list":"list-gl-bank-reconciliation-uncleared","list_cash_book_transactions":"list-gl-cash-book-documents","read_cash_book_transactions":"list-gl-cash-book-documents","list_cashbook_transactions":"list-gl-cash-book-documents","read_cashbook_transactions":"list-gl-cash-book-documents","list_gl_cash_book":"list-gl-cash-book-documents","read_gl_cash_book":"list-gl-cash-book-documents","list_cash_book":"list-gl-cash-book-documents","read_cash_book":"list-gl-cash-book-documents","gl.cash-book-report.list":"list-gl-cash-book-entries","tax-code.list":"list-tax-types","tax-codes.list":"list-tax-types","list_tax_codes":"list-tax-types","tax-code.get":"get-tax-type","get_tax_code":"get-tax-type","tax-code.create":"create-tax-type","create_tax_code":"create-tax-type","tax-code.update":"update-tax-type","update_tax_code":"update-tax-type"},"operationCoverage":{"coverage":[{"module":"Master Data","view":"supported","read":"supported","create":"supported","edit":"supported","void":"not-needed","delete":"guarded","print":"not-yet","pdf":"not-needed","bulk":"supported","notes":"Debtor/customer, creditor/supplier, stock item, item detail, credit control, and item BOM are readable. Debtor, creditor, item, and item BOM create/update are supported. Delete is guarded because linked transactions must be protected."},{"module":"General Maintenance","view":"supported","read":"supported","create":"supported","edit":"supported","void":"not-needed","delete":"guarded","print":"not-yet","pdf":"not-needed","bulk":"supported","notes":"Safe setup tables are supported: address, area, C/N type, D/N type, debtor/creditor type, currency, payment method, price category, project, sales/purchase agent, shipping method. Account Type and Credit Term remain list-only."},{"module":"Sales","view":"supported","read":"supported","create":"supported","edit":"supported","void":"partial","delete":"supported","print":"supported","pdf":"supported","bulk":"supported","notes":"Invoices, orders, delivery orders, cash sales, quotations, advanced quotations, sales credit notes, and sales debit notes are covered. Header/contact edit uses AutoCount Edit + Save. Line/detail edit remains guarded until document detail safety is proven. Void uses AutoCount CancelDocument except Cash Sale, which remains guarded after fresh-book proof. Delete uses AutoCount SDK Delete where the document is not locked or linked."},{"module":"Purchase","view":"supported","read":"supported","create":"partial","edit":"supported","void":"partial","delete":"supported","print":"supported","pdf":"supported","bulk":"supported","notes":"Purchase order, GRN, purchase invoice, purchase return, and cash purchase are covered where AutoCount SDK exposes the document command. Header/contact edit uses AutoCount Edit + Save. Line/detail edit remains guarded until document detail safety is proven. Cash Purchase create can return probeBlocked on SDK installs where the detail API is unavailable. Void uses AutoCount CancelDocument except Cash Purchase, which remains guarded after fresh-book proof."},{"module":"AR","view":"supported","read":"supported","create":"supported","edit":"supported","void":"guarded","delete":"guarded","print":"supported","pdf":"supported","bulk":"supported","notes":"AR invoice, payment, refund, credit note, debit note, outstanding documents, knock-off validation/create, and AutoCount PDF export are covered. Header/simple edit uses AutoCount SDK load/save. Line/detail and knock-off reallocation edits, void, and delete remain guarded until each SDK path is proven on real books."},{"module":"AP","view":"supported","read":"supported","create":"supported","edit":"supported","void":"guarded","delete":"guarded","print":"supported","pdf":"supported","bulk":"supported","notes":"AP invoice, payment, refund, credit note, debit note, outstanding documents, knock-off validation/create, and AutoCount PDF export are covered. Header/simple edit uses AutoCount SDK load/save. Line/detail and knock-off reallocation edits, void, and delete remain guarded until each SDK path is proven on real books."},{"module":"Stock","view":"supported","read":"supported","create":"supported","edit":"supported","void":"supported","delete":"supported","print":"supported","pdf":"supported","bulk":"supported","notes":"Items, stock balance, adjustments, receive, issue, transfer, UOM conversion, stock take, write-off, update cost, packages, BOM, assembly, assembly order, disassembly, AutoCount stock document PDFs, stock document header/detail edit, void/cancel, and delete are covered. Item package/BOM deletion remains guarded as master-data deletion."},{"module":"GL","view":"supported","read":"supported","create":"supported","edit":"supported","void":"supported","delete":"supported","print":"supported","pdf":"supported","bulk":"supported","notes":"Chart of accounts, GL account balance, GL Account Maintenance create, multi-line journal create/validate, journal header/simple edit, journal void/delete through CancelDocument, and journal voucher PDF are covered. Journal line/detail changes remain guarded until proven safe."},{"module":"GL Cash Book","view":"supported","read":"supported","create":"supported","edit":"supported","void":"supported","delete":"supported","print":"supported","pdf":"supported","bulk":"supported","notes":"Bank/cash accounts, cash-flow metadata, cheque listing, Cash Book Entry document grid, inquiry rows, payment voucher, official receipt, header/simple edit, hard delete through CashBookCommand.Delete, void through CancelDocument, and voucher PDF export are covered. Detail/payment line edits remain guarded until proven safe."},{"module":"Bank Reconciliation","view":"supported","read":"supported","create":"supported","edit":"supported","void":"guarded","delete":"supported","print":"not-yet","pdf":"not-yet","bulk":"not-yet","notes":"BankReconCommand list/detail/uncleared/draft validation are covered. Create and edit save selected transaction rows through BankRecon.Save. Delete uses BankReconCommand.Delete. Void remains guarded because AutoCount exposes delete, not a separate void path."},{"module":"Bulk","view":"not-needed","read":"not-needed","create":"supported","edit":"not-needed","void":"not-needed","delete":"not-needed","print":"not-needed","pdf":"not-needed","bulk":"supported","notes":"Bulk create wraps existing create commands so many records can be processed by one cloud lease with per-row idempotency/audit results. This is the preferred path for hundreds of invoices or journals."},{"module":"e-Invoice","view":"supported","read":"supported","create":"guarded","edit":"guarded","void":"guarded","delete":"blocked","print":"not-yet","pdf":"not-yet","bulk":"not-yet","notes":"Local settings, submission status, consolidated inquiry, self-billed list, and supplier item mapping list are supported. Submit/cancel/import/sync remain guarded compliance actions."}]},"commands":[{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.000.000.list-advanced-quotations","commandType":"list-advanced-quotations","mode":"read","operation":"Read","summary":"List advanced quotations.","payloadSchema":{},"exampleRequest":{"commandId":"list-advanced-quotations-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-advanced-quotations","payload":{}},"groupedEndpoint":"POST /v1/sales-module/advanced-quotation/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.001.000.read-advanced-quotation-lines","commandType":"read-advanced-quotation-lines","mode":"read","operation":"Read","summary":"Read advanced quotation detail lines only.","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-advanced-quotation-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-advanced-quotation-lines","payload":{"itemCode":"ITEM001","limit":50}},"groupedEndpoint":"POST /v1/sales-module/advanced-quotation/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.002.000.get-advanced-quotation","commandType":"get-advanced-quotation","mode":"read","operation":"Read","summary":"Get one advanced quotation by document number.","payloadSchema":{"docNo":"required advanced quotation document number"},"exampleRequest":{"commandId":"get-advanced-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-advanced-quotation","payload":{"docNo":"AQ-000001"}},"groupedEndpoint":"POST /v1/sales-module/advanced-quotation/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.004.001.validate-advanced-quotation","commandType":"validate-advanced-quotation","mode":"read","operation":"Validate","summary":"Validate a advanced quotation without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/advanced-quotation/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.005.002.create-advanced-quotation","commandType":"create-advanced-quotation","mode":"write","operation":"Create","summary":"Create an advanced quotation.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/advanced-quotation/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.006.003.update-advanced-quotation","commandType":"update-advanced-quotation","mode":"write","operation":"Edit","summary":"Update advanced quotation header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/advanced-quotation/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.007.004.cancel-advanced-quotation","commandType":"cancel-advanced-quotation","mode":"write","operation":"Void","summary":"Cancel a advanced quotation when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"exampleRequest":{"commandId":"cancel-advanced-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-advanced-quotation","payload":{"docNo":"AQ-000001","reason":"cancelled by API request"}},"groupedEndpoint":"POST /v1/sales-module/advanced-quotation/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.007.004.void-advanced-quotation","commandType":"void-advanced-quotation","mode":"write","operation":"Void","summary":"Void a advanced quotation while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"exampleRequest":{"commandId":"void-advanced-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-advanced-quotation","payload":{"docNo":"AQ-000001","reason":"voided by API request"}},"groupedEndpoint":"POST /v1/sales-module/advanced-quotation/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.008.005.delete-advanced-quotation","commandType":"delete-advanced-quotation","mode":"write","operation":"Delete","summary":"Delete/void request for a advanced quotation.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"exampleRequest":{"commandId":"delete-advanced-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-advanced-quotation","payload":{"docNo":"AQ-000001","reason":"deleted by API request"}},"groupedEndpoint":"POST /v1/sales-module/advanced-quotation/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.000.000.list-quotations","commandType":"list-quotations","mode":"read","operation":"Read","summary":"List quotations.","payloadSchema":{},"exampleRequest":{"commandId":"list-quotations-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-quotations","payload":{}},"groupedEndpoint":"POST /v1/sales-module/quotation/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.001.000.read-quotation-lines","commandType":"read-quotation-lines","mode":"read","operation":"Read","summary":"Read quotation detail lines only.","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-quotation-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-quotation-lines","payload":{"itemCode":"ITEM001","limit":50}},"groupedEndpoint":"POST /v1/sales-module/quotation/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.002.000.get-quotation","commandType":"get-quotation","mode":"read","operation":"Read","summary":"Get one quotation by document number.","payloadSchema":{"docNo":"required quotation document number"},"exampleRequest":{"commandId":"get-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-quotation","payload":{"docNo":"QT-000001"}},"groupedEndpoint":"POST /v1/sales-module/quotation/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.004.001.validate-quotation","commandType":"validate-quotation","mode":"read","operation":"Validate","summary":"Validate a quotation without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/quotation/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.005.002.create-quotation","commandType":"create-quotation","mode":"write","operation":"Create","summary":"Create a quotation.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/quotation/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.006.003.update-quotation","commandType":"update-quotation","mode":"write","operation":"Edit","summary":"Update quotation header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/quotation/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.007.004.cancel-quotation","commandType":"cancel-quotation","mode":"write","operation":"Void","summary":"Cancel a quotation when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"exampleRequest":{"commandId":"cancel-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-quotation","payload":{"docNo":"QT-000001","reason":"cancelled by API request"}},"groupedEndpoint":"POST /v1/sales-module/quotation/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.007.004.void-quotation","commandType":"void-quotation","mode":"write","operation":"Void","summary":"Void a quotation while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"exampleRequest":{"commandId":"void-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-quotation","payload":{"docNo":"QT-000001","reason":"voided by API request"}},"groupedEndpoint":"POST /v1/sales-module/quotation/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.008.005.delete-quotation","commandType":"delete-quotation","mode":"write","operation":"Delete","summary":"Delete/void request for a quotation.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"exampleRequest":{"commandId":"delete-quotation-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-quotation","payload":{"docNo":"QT-000001","reason":"deleted by API request"}},"groupedEndpoint":"POST /v1/sales-module/quotation/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.000.000.list-sales-orders","commandType":"list-sales-orders","mode":"read","operation":"Read","summary":"List sales orders.","payloadSchema":{},"exampleRequest":{"commandId":"list-sales-orders-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-sales-orders","payload":{}},"groupedEndpoint":"POST /v1/sales-module/sales-order/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.001.000.read-sales-order-lines","commandType":"read-sales-order-lines","mode":"read","operation":"Read","summary":"Read sales order detail lines only.","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-sales-order-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-sales-order-lines","payload":{"debtorCode":"300-A001","limit":50}},"groupedEndpoint":"POST /v1/sales-module/sales-order/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.002.000.get-sales-order","commandType":"get-sales-order","mode":"read","operation":"Read","summary":"Get one sales order by document number.","payloadSchema":{"docNo":"required sales order document number"},"exampleRequest":{"commandId":"get-sales-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-sales-order","payload":{"docNo":"SO-000001"}},"groupedEndpoint":"POST /v1/sales-module/sales-order/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.004.001.validate-sales-order","commandType":"validate-sales-order","mode":"read","operation":"Validate","summary":"Validate a sales order without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/sales-order/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.005.002.create-sales-order","commandType":"create-sales-order","mode":"write","operation":"Create","summary":"Create a sales order.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/sales-order/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.006.003.update-sales-order","commandType":"update-sales-order","mode":"write","operation":"Edit","summary":"Update sales order header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/sales-order/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.007.004.cancel-sales-order","commandType":"cancel-sales-order","mode":"write","operation":"Void","summary":"Cancel a sales order when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"exampleRequest":{"commandId":"cancel-sales-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-sales-order","payload":{"docNo":"SO-000001","reason":"cancelled by API request"}},"groupedEndpoint":"POST /v1/sales-module/sales-order/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.007.004.void-sales-order","commandType":"void-sales-order","mode":"write","operation":"Void","summary":"Void a sales order while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"exampleRequest":{"commandId":"void-sales-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-sales-order","payload":{"docNo":"SO-000001","reason":"voided by API request"}},"groupedEndpoint":"POST /v1/sales-module/sales-order/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.008.005.delete-sales-order","commandType":"delete-sales-order","mode":"write","operation":"Delete","summary":"Delete/void request for a sales order.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"exampleRequest":{"commandId":"delete-sales-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-sales-order","payload":{"docNo":"SO-000001","reason":"deleted by API request"}},"groupedEndpoint":"POST /v1/sales-module/sales-order/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.000.000.list-delivery-orders","commandType":"list-delivery-orders","mode":"read","operation":"Read","summary":"List delivery orders.","payloadSchema":{},"exampleRequest":{"commandId":"list-delivery-orders-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-delivery-orders","payload":{}},"groupedEndpoint":"POST /v1/sales-module/delivery-order/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.001.000.read-delivery-order-lines","commandType":"read-delivery-order-lines","mode":"read","operation":"Read","summary":"Read delivery order detail lines only.","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-delivery-order-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-delivery-order-lines","payload":{"docNo":"DO-000001","limit":50}},"groupedEndpoint":"POST /v1/sales-module/delivery-order/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.002.000.get-delivery-order","commandType":"get-delivery-order","mode":"read","operation":"Read","summary":"Get one delivery order by document number.","payloadSchema":{"docNo":"required delivery order document number"},"exampleRequest":{"commandId":"get-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-delivery-order","payload":{"docNo":"DO-000001"}},"groupedEndpoint":"POST /v1/sales-module/delivery-order/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.004.001.validate-delivery-order","commandType":"validate-delivery-order","mode":"read","operation":"Validate","summary":"Validate a delivery order without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/delivery-order/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.005.002.create-delivery-order","commandType":"create-delivery-order","mode":"write","operation":"Create","summary":"Create a delivery order.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/delivery-order/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.006.003.update-delivery-order","commandType":"update-delivery-order","mode":"write","operation":"Edit","summary":"Update delivery order header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/delivery-order/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.007.004.cancel-delivery-order","commandType":"cancel-delivery-order","mode":"write","operation":"Void","summary":"Cancel a delivery order when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"exampleRequest":{"commandId":"cancel-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-delivery-order","payload":{"docNo":"DO-000001","reason":"cancelled by API request"}},"groupedEndpoint":"POST /v1/sales-module/delivery-order/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.007.004.void-delivery-order","commandType":"void-delivery-order","mode":"write","operation":"Void","summary":"Void a delivery order while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"exampleRequest":{"commandId":"void-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-delivery-order","payload":{"docNo":"DO-000001","reason":"voided by API request"}},"groupedEndpoint":"POST /v1/sales-module/delivery-order/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.008.005.delete-delivery-order","commandType":"delete-delivery-order","mode":"write","operation":"Delete","summary":"Delete/void request for a delivery order.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"exampleRequest":{"commandId":"delete-delivery-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-delivery-order","payload":{"docNo":"DO-000001","reason":"deleted by API request"}},"groupedEndpoint":"POST /v1/sales-module/delivery-order/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.000.000.list-sales-invoices","commandType":"list-sales-invoices","mode":"read","operation":"Read","summary":"List sales invoices. For latest rows, send limit/top/take; connector returns newest DocDate then DocNo first.","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"},"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"}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.001.000.read-sales-invoice-lines","commandType":"read-sales-invoice-lines","mode":"read","operation":"Read","summary":"Read sales invoice detail lines only.","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"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}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns header keys plus raw AutoCount invoice detail columns such as ItemCode, AccNo, Qty, UOM, UnitPrice, TaxCode, ProjNo, DeptNo, and Detail_* fields."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.002.000.get-sales-invoice","commandType":"get-sales-invoice","mode":"read","operation":"Read","summary":"Get one sales invoice by document number.","payloadSchema":{"docNo":"required sales invoice document number"},"exampleRequest":{"commandId":"get-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-sales-invoice","payload":{"docNo":"IV-000001"}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.004.001.validate-sales-invoice","commandType":"validate-sales-invoice","mode":"read","operation":"Validate","summary":"Validate a sales invoice without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.005.002.create-sales-invoice","commandType":"create-sales-invoice","mode":"write","operation":"Create","summary":"Create a sales invoice.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.006.003.update-sales-invoice","commandType":"update-sales-invoice","mode":"write","operation":"Edit","summary":"Update sales invoice header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.007.004.cancel-sales-invoice","commandType":"cancel-sales-invoice","mode":"write","operation":"Void","summary":"Cancel a sales invoice when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"exampleRequest":{"commandId":"cancel-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-sales-invoice","payload":{"docNo":"IV-000001","reason":"cancelled by API request"}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.007.004.void-sales-invoice","commandType":"void-sales-invoice","mode":"write","operation":"Void","summary":"Void a sales invoice while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"exampleRequest":{"commandId":"void-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-sales-invoice","payload":{"docNo":"IV-000001","reason":"voided by API request"}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.008.005.delete-sales-invoice","commandType":"delete-sales-invoice","mode":"write","operation":"Delete","summary":"Delete/void request for a sales invoice.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"exampleRequest":{"commandId":"delete-sales-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-sales-invoice","payload":{"docNo":"IV-000001","reason":"deleted by API request"}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.000.000.list-cash-sales","commandType":"list-cash-sales","mode":"read","operation":"Read","summary":"List cash sales.","payloadSchema":{},"exampleRequest":{"commandId":"list-cash-sales-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-cash-sales","payload":{}},"groupedEndpoint":"POST /v1/sales-module/cash-sale/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.001.000.read-cash-sale-lines","commandType":"read-cash-sale-lines","mode":"read","operation":"Read","summary":"Read cash sale detail lines only.","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-cash-sale-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-cash-sale-lines","payload":{"itemCode":"ITEM001","limit":50}},"groupedEndpoint":"POST /v1/sales-module/cash-sale/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.002.000.get-cash-sale","commandType":"get-cash-sale","mode":"read","operation":"Read","summary":"Get one cash sale by document number.","payloadSchema":{"docNo":"required cash sale document number"},"exampleRequest":{"commandId":"get-cash-sale-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-cash-sale","payload":{"docNo":"CS-000001"}},"groupedEndpoint":"POST /v1/sales-module/cash-sale/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.004.001.validate-cash-sale","commandType":"validate-cash-sale","mode":"read","operation":"Validate","summary":"Validate a cash sale without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/cash-sale/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.005.002.create-cash-sale","commandType":"create-cash-sale","mode":"write","operation":"Create","summary":"Create a cash sale.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/cash-sale/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.006.003.update-cash-sale","commandType":"update-cash-sale","mode":"write","operation":"Edit","summary":"Update cash sale header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/cash-sale/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.007.004.cancel-cash-sale","commandType":"cancel-cash-sale","mode":"write","operation":"Void","summary":"Cancel a cash sale when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"exampleRequest":{"commandId":"cancel-cash-sale-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-cash-sale","payload":{"docNo":"CS-000001","reason":"cancelled by API request"}},"groupedEndpoint":"POST /v1/sales-module/cash-sale/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.007.004.void-cash-sale","commandType":"void-cash-sale","mode":"write","operation":"Void","summary":"Void a cash sale while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"exampleRequest":{"commandId":"void-cash-sale-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-cash-sale","payload":{"docNo":"CS-000001","reason":"voided by API request"}},"groupedEndpoint":"POST /v1/sales-module/cash-sale/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.008.005.delete-cash-sale","commandType":"delete-cash-sale","mode":"write","operation":"Delete","summary":"Delete/void request for a cash sale.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"exampleRequest":{"commandId":"delete-cash-sale-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-cash-sale","payload":{"docNo":"CS-000001","reason":"deleted by API request"}},"groupedEndpoint":"POST /v1/sales-module/cash-sale/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.000.000.list-sales-credit-notes","commandType":"list-sales-credit-notes","mode":"read","operation":"Read","summary":"List sales credit notes.","payloadSchema":{},"exampleRequest":{"commandId":"list-sales-credit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-sales-credit-notes","payload":{}},"groupedEndpoint":"POST /v1/sales-module/sales-credit-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.001.000.read-sales-credit-note-lines","commandType":"read-sales-credit-note-lines","mode":"read","operation":"Read","summary":"Read sales credit note detail lines only.","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"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}},"groupedEndpoint":"POST /v1/sales-module/sales-credit-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.002.000.get-sales-credit-note","commandType":"get-sales-credit-note","mode":"read","operation":"Read","summary":"Get one sales credit note by document number.","payloadSchema":{"docNo":"required sales credit note document number"},"exampleRequest":{"commandId":"get-sales-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-sales-credit-note","payload":{"docNo":"CN-000001"}},"groupedEndpoint":"POST /v1/sales-module/sales-credit-note/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.004.001.validate-sales-credit-note","commandType":"validate-sales-credit-note","mode":"read","operation":"Validate","summary":"Validate a sales credit note without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/sales-credit-note/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.005.002.create-sales-credit-note","commandType":"create-sales-credit-note","mode":"write","operation":"Create","summary":"Create a sales credit note.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/sales-credit-note/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.006.003.update-sales-credit-note","commandType":"update-sales-credit-note","mode":"write","operation":"Edit","summary":"Update sales credit note header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/sales-credit-note/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.007.004.cancel-sales-credit-note","commandType":"cancel-sales-credit-note","mode":"write","operation":"Void","summary":"Cancel a sales credit note when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"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"}},"groupedEndpoint":"POST /v1/sales-module/sales-credit-note/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.007.004.void-sales-credit-note","commandType":"void-sales-credit-note","mode":"write","operation":"Void","summary":"Void a sales credit note while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"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"}},"groupedEndpoint":"POST /v1/sales-module/sales-credit-note/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.008.005.delete-sales-credit-note","commandType":"delete-sales-credit-note","mode":"write","operation":"Delete","summary":"Delete/void request for a sales credit note.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"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"}},"groupedEndpoint":"POST /v1/sales-module/sales-credit-note/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.000.000.list-sales-debit-notes","commandType":"list-sales-debit-notes","mode":"read","operation":"Read","summary":"List sales debit notes.","payloadSchema":{},"exampleRequest":{"commandId":"list-sales-debit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-sales-debit-notes","payload":{}},"groupedEndpoint":"POST /v1/sales-module/sales-debit-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.001.000.read-sales-debit-note-lines","commandType":"read-sales-debit-note-lines","mode":"read","operation":"Read","summary":"Read sales debit note detail lines only.","payloadSchema":{"itemCode":"optional","debtorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"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}},"groupedEndpoint":"POST /v1/sales-module/sales-debit-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.002.000.get-sales-debit-note","commandType":"get-sales-debit-note","mode":"read","operation":"Read","summary":"Get one sales debit note by document number.","payloadSchema":{"docNo":"required sales debit note document number"},"exampleRequest":{"commandId":"get-sales-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-sales-debit-note","payload":{"docNo":"DN-000001"}},"groupedEndpoint":"POST /v1/sales-module/sales-debit-note/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.004.001.validate-sales-debit-note","commandType":"validate-sales-debit-note","mode":"read","operation":"Validate","summary":"Validate a sales debit note without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/sales-debit-note/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.005.002.create-sales-debit-note","commandType":"create-sales-debit-note","mode":"write","operation":"Create","summary":"Create a sales debit note.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/sales-debit-note/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.006.003.update-sales-debit-note","commandType":"update-sales-debit-note","mode":"write","operation":"Edit","summary":"Update sales debit note header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/sales-module/sales-debit-note/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.007.004.cancel-sales-debit-note","commandType":"cancel-sales-debit-note","mode":"write","operation":"Void","summary":"Cancel a sales debit note when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"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"}},"groupedEndpoint":"POST /v1/sales-module/sales-debit-note/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.007.004.void-sales-debit-note","commandType":"void-sales-debit-note","mode":"write","operation":"Void","summary":"Void a sales debit note while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"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"}},"groupedEndpoint":"POST /v1/sales-module/sales-debit-note/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.008.005.delete-sales-debit-note","commandType":"delete-sales-debit-note","mode":"write","operation":"Delete","summary":"Delete/void request for a sales debit note.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"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"}},"groupedEndpoint":"POST /v1/sales-module/sales-debit-note/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-delivery-order-to-sales-invoice","commandType":"transfer-delivery-order-to-sales-invoice","mode":"write","operation":"Transfer","summary":"Transfer delivery order to sales invoice.","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"},"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"}]}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-quotation-to-delivery-order","commandType":"transfer-quotation-to-delivery-order","mode":"write","operation":"Transfer","summary":"Transfer quotation directly to delivery order.","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"},"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"}]}},"groupedEndpoint":"POST /v1/sales-module/delivery-order/transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-quotation-to-sales-invoice","commandType":"transfer-quotation-to-sales-invoice","mode":"write","operation":"Transfer","summary":"Transfer quotation directly to sales invoice.","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"},"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"}]}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-quotation-to-sales-order","commandType":"transfer-quotation-to-sales-order","mode":"write","operation":"Transfer","summary":"Transfer quotation to sales order.","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"},"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"}]}},"groupedEndpoint":"POST /v1/sales-module/sales-order/transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-sales-invoice-to-sales-credit-note","commandType":"transfer-sales-invoice-to-sales-credit-note","mode":"write","operation":"Transfer","summary":"Transfer sales invoice to sales credit note.","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"},"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"}]}},"groupedEndpoint":"POST /v1/sales-module/sales-credit-note/transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-sales-order-to-delivery-order","commandType":"transfer-sales-order-to-delivery-order","mode":"write","operation":"Transfer","summary":"Transfer sales order to delivery order.","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"},"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"}]}},"groupedEndpoint":"POST /v1/sales-module/sales-order/transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-sales-order-to-purchase-order","commandType":"transfer-sales-order-to-purchase-order","mode":"write","operation":"Transfer","summary":"Transfer sales order to purchase order.","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"},"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"}]}},"groupedEndpoint":"POST /v1/sales-module/sales-order/transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-sales-order-to-sales-invoice","commandType":"transfer-sales-order-to-sales-invoice","mode":"write","operation":"Transfer","summary":"Transfer sales order directly to sales invoice.","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"},"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"}]}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.999.001.000.read-item-sales-by-customer","commandType":"read-item-sales-by-customer","mode":"read","operation":"Read","summary":"Rank customers who bought an item by quantity and amount.","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"},"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}},"groupedEndpoint":"POST /v1/sales-module/sales/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.999.001.000.read-sales-detail-lines","commandType":"read-sales-detail-lines","mode":"read","operation":"Read","summary":"Read all sales document lines together, or filter with document.","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"},"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}},"groupedEndpoint":"POST /v1/sales-module/sales/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Prefer the document-specific read-*-lines commands when the document family is known."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.000.000.list-purchase-orders","commandType":"list-purchase-orders","mode":"read","operation":"Read","summary":"List purchase orders.","payloadSchema":{},"exampleRequest":{"commandId":"list-purchase-orders-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-purchase-orders","payload":{}},"groupedEndpoint":"POST /v1/purchase-module/purchase-order/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.001.000.read-purchase-order-lines","commandType":"read-purchase-order-lines","mode":"read","operation":"Read","summary":"Read purchase order detail lines only.","payloadSchema":{"itemCode":"optional","creditorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-purchase-order-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-purchase-order-lines","payload":{"creditorCode":"400-S001","limit":50}},"groupedEndpoint":"POST /v1/purchase-module/purchase-order/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.002.000.get-purchase-order","commandType":"get-purchase-order","mode":"read","operation":"Read","summary":"Get one purchase order by document number.","payloadSchema":{"docNo":"required purchase order document number"},"exampleRequest":{"commandId":"get-purchase-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-purchase-order","payload":{"docNo":"PO-000001"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-order/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.004.001.validate-purchase-order","commandType":"validate-purchase-order","mode":"read","operation":"Validate","summary":"Validate a purchase order without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/purchase-order/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.005.002.create-purchase-order","commandType":"create-purchase-order","mode":"write","operation":"Create","summary":"Create a purchase order.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/purchase-order/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.006.003.update-purchase-order","commandType":"update-purchase-order","mode":"write","operation":"Edit","summary":"Update purchase order header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/purchase-order/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.007.004.cancel-purchase-order","commandType":"cancel-purchase-order","mode":"write","operation":"Void","summary":"Cancel a purchase order when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"exampleRequest":{"commandId":"cancel-purchase-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-purchase-order","payload":{"docNo":"PO-000001","reason":"cancelled by API request"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-order/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.007.004.void-purchase-order","commandType":"void-purchase-order","mode":"write","operation":"Void","summary":"Void a purchase order while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"exampleRequest":{"commandId":"void-purchase-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-purchase-order","payload":{"docNo":"PO-000001","reason":"voided by API request"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-order/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.008.005.delete-purchase-order","commandType":"delete-purchase-order","mode":"write","operation":"Delete","summary":"Delete/void request for a purchase order.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"exampleRequest":{"commandId":"delete-purchase-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-purchase-order","payload":{"docNo":"PO-000001","reason":"deleted by API request"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-order/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.000.000.list-goods-received-notes","commandType":"list-goods-received-notes","mode":"read","operation":"Read","summary":"List goods received notes.","payloadSchema":{},"exampleRequest":{"commandId":"list-goods-received-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-goods-received-notes","payload":{}},"groupedEndpoint":"POST /v1/purchase-module/goods-received-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.001.000.read-goods-received-note-lines","commandType":"read-goods-received-note-lines","mode":"read","operation":"Read","summary":"Read goods received note detail lines only.","payloadSchema":{"itemCode":"optional","creditorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-goods-received-note-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-goods-received-note-lines","payload":{"itemCode":"ITEM001","limit":50}},"groupedEndpoint":"POST /v1/purchase-module/goods-received-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.002.000.get-goods-received-note","commandType":"get-goods-received-note","mode":"read","operation":"Read","summary":"Get one goods received note by document number.","payloadSchema":{"docNo":"required goods received note document number"},"exampleRequest":{"commandId":"get-goods-received-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-goods-received-note","payload":{"docNo":"GRN-000001"}},"groupedEndpoint":"POST /v1/purchase-module/goods-received-note/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.004.001.validate-goods-received-note","commandType":"validate-goods-received-note","mode":"read","operation":"Validate","summary":"Validate a goods received note without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/goods-received-note/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.005.002.create-goods-received-note","commandType":"create-goods-received-note","mode":"write","operation":"Create","summary":"Create a goods received note.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/goods-received-note/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.006.003.update-goods-received-note","commandType":"update-goods-received-note","mode":"write","operation":"Edit","summary":"Update goods received note header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/goods-received-note/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.007.004.cancel-goods-received-note","commandType":"cancel-goods-received-note","mode":"write","operation":"Void","summary":"Cancel a goods received note when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"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"}},"groupedEndpoint":"POST /v1/purchase-module/goods-received-note/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.007.004.void-goods-received-note","commandType":"void-goods-received-note","mode":"write","operation":"Void","summary":"Void a goods received note while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"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"}},"groupedEndpoint":"POST /v1/purchase-module/goods-received-note/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.008.005.delete-goods-received-note","commandType":"delete-goods-received-note","mode":"write","operation":"Delete","summary":"Delete/void request for a goods received note.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"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"}},"groupedEndpoint":"POST /v1/purchase-module/goods-received-note/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.000.000.list-purchase-invoices","commandType":"list-purchase-invoices","mode":"read","operation":"Read","summary":"List purchase invoices.","payloadSchema":{},"exampleRequest":{"commandId":"list-purchase-invoices-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-purchase-invoices","payload":{}},"groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.001.000.read-purchase-invoice-lines","commandType":"read-purchase-invoice-lines","mode":"read","operation":"Read","summary":"Read purchase invoice detail lines only.","payloadSchema":{"itemCode":"optional","creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-purchase-invoice-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-purchase-invoice-lines","payload":{"creditorCode":"400-S001","limit":50}},"groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns account/project/tax/detail columns where AutoCount stores them."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.002.000.get-purchase-invoice","commandType":"get-purchase-invoice","mode":"read","operation":"Read","summary":"Get one purchase invoice by document number.","payloadSchema":{"docNo":"required purchase invoice document number"},"exampleRequest":{"commandId":"get-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-purchase-invoice","payload":{"docNo":"PI-000001"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.004.001.validate-purchase-invoice","commandType":"validate-purchase-invoice","mode":"read","operation":"Validate","summary":"Validate a purchase invoice without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.005.002.create-purchase-invoice","commandType":"create-purchase-invoice","mode":"write","operation":"Create","summary":"Create a purchase invoice.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.006.003.update-purchase-invoice","commandType":"update-purchase-invoice","mode":"write","operation":"Edit","summary":"Update purchase invoice header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.007.004.cancel-purchase-invoice","commandType":"cancel-purchase-invoice","mode":"write","operation":"Void","summary":"Cancel a purchase invoice when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"exampleRequest":{"commandId":"cancel-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-purchase-invoice","payload":{"docNo":"PI-000001","reason":"cancelled by API request"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.007.004.void-purchase-invoice","commandType":"void-purchase-invoice","mode":"write","operation":"Void","summary":"Void a purchase invoice while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"exampleRequest":{"commandId":"void-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-purchase-invoice","payload":{"docNo":"PI-000001","reason":"voided by API request"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.008.005.delete-purchase-invoice","commandType":"delete-purchase-invoice","mode":"write","operation":"Delete","summary":"Delete/void request for a purchase invoice.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"exampleRequest":{"commandId":"delete-purchase-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-purchase-invoice","payload":{"docNo":"PI-000001","reason":"deleted by API request"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.000.000.list-cash-purchases","commandType":"list-cash-purchases","mode":"read","operation":"Read","summary":"List cash purchases.","payloadSchema":{},"exampleRequest":{"commandId":"list-cash-purchases-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-cash-purchases","payload":{}},"groupedEndpoint":"POST /v1/purchase-module/cash-purchase/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.001.000.read-cash-purchase-lines","commandType":"read-cash-purchase-lines","mode":"read","operation":"Read","summary":"Read cash purchase detail lines only.","payloadSchema":{"itemCode":"optional","creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-cash-purchase-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-cash-purchase-lines","payload":{"accountNo":"610-0000","limit":50}},"groupedEndpoint":"POST /v1/purchase-module/cash-purchase/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.002.000.get-cash-purchase","commandType":"get-cash-purchase","mode":"read","operation":"Read","summary":"Get one cash purchase by document number.","payloadSchema":{"docNo":"required cash purchase document number"},"exampleRequest":{"commandId":"get-cash-purchase-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-cash-purchase","payload":{"docNo":"CP-000001"}},"groupedEndpoint":"POST /v1/purchase-module/cash-purchase/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.004.001.validate-cash-purchase","commandType":"validate-cash-purchase","mode":"read","operation":"Validate","summary":"Validate a cash purchase without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/cash-purchase/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.005.002.create-cash-purchase","commandType":"create-cash-purchase","mode":"write","operation":"Create","summary":"Create a cash purchase.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/cash-purchase/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.006.003.update-cash-purchase","commandType":"update-cash-purchase","mode":"write","operation":"Edit","summary":"Update cash purchase header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/cash-purchase/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.007.004.cancel-cash-purchase","commandType":"cancel-cash-purchase","mode":"write","operation":"Void","summary":"Cancel a cash purchase when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"exampleRequest":{"commandId":"cancel-cash-purchase-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-cash-purchase","payload":{"docNo":"CP-000001","reason":"cancelled by API request"}},"groupedEndpoint":"POST /v1/purchase-module/cash-purchase/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.007.004.void-cash-purchase","commandType":"void-cash-purchase","mode":"write","operation":"Void","summary":"Void a cash purchase while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"exampleRequest":{"commandId":"void-cash-purchase-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-cash-purchase","payload":{"docNo":"CP-000001","reason":"voided by API request"}},"groupedEndpoint":"POST /v1/purchase-module/cash-purchase/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.008.005.delete-cash-purchase","commandType":"delete-cash-purchase","mode":"write","operation":"Delete","summary":"Delete/void request for a cash purchase.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"exampleRequest":{"commandId":"delete-cash-purchase-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-cash-purchase","payload":{"docNo":"CP-000001","reason":"deleted by API request"}},"groupedEndpoint":"POST /v1/purchase-module/cash-purchase/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.000.000.list-purchase-returns","commandType":"list-purchase-returns","mode":"read","operation":"Read","summary":"List purchase returns.","payloadSchema":{},"exampleRequest":{"commandId":"list-purchase-returns-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-purchase-returns","payload":{}},"groupedEndpoint":"POST /v1/purchase-module/purchase-return/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.001.000.read-purchase-return-lines","commandType":"read-purchase-return-lines","mode":"read","operation":"Read","summary":"Read purchase return detail lines only.","payloadSchema":{"itemCode":"optional","creditorCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-purchase-return-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-purchase-return-lines","payload":{"docNo":"PR-000001","limit":50}},"groupedEndpoint":"POST /v1/purchase-module/purchase-return/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.002.000.get-purchase-return","commandType":"get-purchase-return","mode":"read","operation":"Read","summary":"Get one purchase return by document number.","payloadSchema":{"docNo":"required purchase return document number"},"exampleRequest":{"commandId":"get-purchase-return-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-purchase-return","payload":{"docNo":"PR-000001"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-return/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.004.001.validate-purchase-return","commandType":"validate-purchase-return","mode":"read","operation":"Validate","summary":"Validate a purchase return without saving.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/purchase-return/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.005.002.create-purchase-return","commandType":"create-purchase-return","mode":"write","operation":"Create","summary":"Create a purchase return.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/purchase-return/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.006.003.update-purchase-return","commandType":"update-purchase-return","mode":"write","operation":"Edit","summary":"Update purchase return header/contact fields and supported detail rows.","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 }"},"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"}}},"groupedEndpoint":"POST /v1/purchase-module/purchase-return/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.007.004.cancel-purchase-return","commandType":"cancel-purchase-return","mode":"write","operation":"Void","summary":"Cancel a purchase return when AutoCount allows it.","payloadSchema":{"docNo":"required document number","reason":"optional cancellation reason"},"exampleRequest":{"commandId":"cancel-purchase-return-001","connectorId":"customer-main","companyId":"macsofttest","type":"cancel-purchase-return","payload":{"docNo":"PR-000001","reason":"cancelled by API request"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-return/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cancellation depends on AutoCount posting/link status and account-book permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.007.004.void-purchase-return","commandType":"void-purchase-return","mode":"write","operation":"Void","summary":"Void a purchase return while keeping audit trail.","payloadSchema":{"docNo":"required document number","reason":"optional void reason"},"exampleRequest":{"commandId":"void-purchase-return-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-purchase-return","payload":{"docNo":"PR-000001","reason":"voided by API request"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-return/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CancelDocument and returns operationUsed: CancelDocument. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.008.005.delete-purchase-return","commandType":"delete-purchase-return","mode":"write","operation":"Delete","summary":"Delete/void request for a purchase return.","payloadSchema":{"docNo":"required document number","reason":"optional delete reason"},"exampleRequest":{"commandId":"delete-purchase-return-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-purchase-return","payload":{"docNo":"PR-000001","reason":"deleted by API request"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-return/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Safely maps to AutoCount cancellation/void behavior. AutoCount may reject if the document is posted, linked, transferred, or blocked by permissions."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.005.009.006.transfer-goods-received-note-to-purchase-invoice","commandType":"transfer-goods-received-note-to-purchase-invoice","mode":"write","operation":"Transfer","summary":"Transfer goods received note to purchase invoice.","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"},"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"}]}},"groupedEndpoint":"POST /v1/purchase-module/goods-received-note/transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.005.009.006.transfer-purchase-invoice-to-purchase-return","commandType":"transfer-purchase-invoice-to-purchase-return","mode":"write","operation":"Transfer","summary":"Transfer purchase invoice to purchase return.","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"},"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"}]}},"groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.005.009.006.transfer-purchase-order-to-goods-received-note","commandType":"transfer-purchase-order-to-goods-received-note","mode":"write","operation":"Transfer","summary":"Transfer purchase order to goods received note.","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"},"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"}]}},"groupedEndpoint":"POST /v1/purchase-module/goods-received-note/transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.005.009.006.transfer-purchase-order-to-purchase-invoice","commandType":"transfer-purchase-order-to-purchase-invoice","mode":"write","operation":"Transfer","summary":"Transfer purchase order directly to purchase invoice.","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"},"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"}]}},"groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.999.001.000.read-purchase-detail-lines","commandType":"read-purchase-detail-lines","mode":"read","operation":"Read","summary":"Read all purchase document lines together, or filter with document.","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"},"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}},"groupedEndpoint":"POST /v1/purchase-module/purchase/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Prefer the document-specific read-*-lines commands when the document family is known."},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.000.000.list-ar-invoices","commandType":"list-ar-invoices","mode":"read","operation":"Read","summary":"List AR invoices.","payloadSchema":{},"exampleRequest":{"commandId":"list-ar-invoices-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ar-invoices","payload":{}},"groupedEndpoint":"POST /v1/ar-module/ar-invoice/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.001.000.read-ar-invoice-lines","commandType":"read-ar-invoice-lines","mode":"read","operation":"Read","summary":"Read AR invoice detail/account lines only.","payloadSchema":{"debtorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-ar-invoice-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-invoice-lines","payload":{"accountNo":"500-0000","limit":50}},"groupedEndpoint":"POST /v1/ar-module/ar-invoice/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.001.000.read-ar-outstanding-documents","commandType":"read-ar-outstanding-documents","mode":"read","operation":"Read","summary":"List outstanding AR invoice documents with docKey for allocation and knock-off.","payloadSchema":{"debtorCode":"optional debtor/customer code","maxRows":"optional row limit; maxRows: 0 means return all rows"},"exampleRequest":{"commandId":"read-ar-outstanding-documents-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-outstanding-documents","payload":{"debtorCode":"300-A001","maxRows":0}},"groupedEndpoint":"POST /v1/ar-module/ar-outstanding/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns SDK-safe docType RI plus displayDocType IV. Use the returned docType for AR payment and AR credit-note invoice knock-off."},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.002.000.get-ar-invoice","commandType":"get-ar-invoice","mode":"read","operation":"Read","summary":"Get one AR invoice by document number.","payloadSchema":{"docNo":"required AR invoice document number"},"exampleRequest":{"commandId":"get-ar-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ar-invoice","payload":{"docNo":"ARI-000001"}},"groupedEndpoint":"POST /v1/ar-module/ar-invoice/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.004.001.validate-ar-invoice","commandType":"validate-ar-invoice","mode":"read","operation":"Validate","summary":"Validate an AR invoice without saving.","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"},"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"}}},"groupedEndpoint":"POST /v1/ar-module/ar-invoice/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.005.002.create-ar-invoice","commandType":"create-ar-invoice","mode":"write","operation":"Create","summary":"Create an AR invoice.","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"},"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"}}},"groupedEndpoint":"POST /v1/ar-module/ar-invoice/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.006.003.update-ar-invoice","commandType":"update-ar-invoice","mode":"write","operation":"Edit","summary":"Update AR invoice header/simple fields.","payloadSchema":{"docNo":"required existing document number unless docKey is supplied","docKey":"optional existing document key","reason":"optional business reason for audit","docDate":"optional YYYY-MM-DD document date","description":"optional document description/narration","ref":"optional reference where the AutoCount document exposes it","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","debtorCode":"optional customer/debtor code where AutoCount allows changing it","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"optional line/detail edit array; each row supports lineNo/dtlKey, accNo/accountNo/glAccount/postingAccountNo, description, amount, taxCode, deptNo, projNo, classification","knockOffs":"optional knock-off allocation edit array for credit-note style documents; each row supports docType, docKey, docNo, amount","knockOffMode":"optional knock-off edit mode: replace | append | update"},"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"}]}},"groupedEndpoint":"POST /v1/ar-module/ar-invoice/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.007.004.void-ar-invoice","commandType":"void-ar-invoice","mode":"write","operation":"Void","summary":"Guarded AR invoice void request.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"void-ar-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ar-invoice","payload":{"docNo":"ARI-000001","reason":"void/correct document"}},"groupedEndpoint":"POST /v1/ar-module/ar-invoice/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven."},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.008.005.delete-ar-invoice","commandType":"delete-ar-invoice","mode":"write","operation":"Delete","summary":"Guarded AR invoice delete request.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"delete-ar-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ar-invoice","payload":{"docNo":"ARI-000001","reason":"remove/correct document"}},"groupedEndpoint":"POST /v1/ar-module/ar-invoice/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven."},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.000.000.list-ar-payments","commandType":"list-ar-payments","mode":"read","operation":"Read","summary":"List AR payments.","payloadSchema":{},"exampleRequest":{"commandId":"list-ar-payments-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ar-payments","payload":{}},"groupedEndpoint":"POST /v1/ar-module/ar-payment/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.001.000.read-ar-detail-lines","commandType":"read-ar-detail-lines","mode":"read","operation":"Read","summary":"Read AR account/detail lines across AR invoices, payments, refunds, credit notes, and debit notes.","payloadSchema":{"debtorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-ar-detail-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-detail-lines","payload":{"debtorCode":"300-A001","limit":50}},"groupedEndpoint":"POST /v1/ar-module/ar/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.001.000.read-ar-payment-lines","commandType":"read-ar-payment-lines","mode":"read","operation":"Read","summary":"Read AR payment detail/payment method lines only.","payloadSchema":{"debtorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-ar-payment-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-payment-lines","payload":{"debtorCode":"300-A001","limit":50}},"groupedEndpoint":"POST /v1/ar-module/ar-payment/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.001.000.read-ar-refund-lines","commandType":"read-ar-refund-lines","mode":"read","operation":"Read","summary":"Read AR refund detail/payment method lines only.","payloadSchema":{"debtorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-ar-refund-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-refund-lines","payload":{"debtorCode":"300-A001","limit":50}},"groupedEndpoint":"POST /v1/ar-module/ar-refund/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.002.000.get-ar-payment","commandType":"get-ar-payment","mode":"read","operation":"Read","summary":"Get one AR payment by document number.","payloadSchema":{"docNo":"required AR payment document number"},"exampleRequest":{"commandId":"get-ar-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ar-payment","payload":{"docNo":"OR-000001"}},"groupedEndpoint":"POST /v1/ar-module/ar-payment/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.004.001.validate-ar-payment","commandType":"validate-ar-payment","mode":"read","operation":"Validate","summary":"Validate an AR payment/receipt without saving. Supports one or many real invoice knock-offs.","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"},"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"}}},"groupedEndpoint":"POST /v1/ar-module/ar-payment/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.005.002.create-ar-deposit","commandType":"create-ar-deposit","mode":"write","operation":"Create","summary":"Create an AR deposit with a real payment detail and GL transaction.","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"},"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"}},"groupedEndpoint":"POST /v1/ar-module/ar/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.005.002.create-ar-payment","commandType":"create-ar-payment","mode":"write","operation":"Create","summary":"Create an AR payment/receipt. Supports one or many real invoice knock-offs.","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"},"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"}}},"groupedEndpoint":"POST /v1/ar-module/ar-payment/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.006.003.update-ar-payment","commandType":"update-ar-payment","mode":"write","operation":"Edit","summary":"Update AR payment header/simple fields.","payloadSchema":{"docNo":"required existing document number unless docKey is supplied","docKey":"optional existing document key","reason":"optional business reason for audit","docDate":"optional YYYY-MM-DD document date","description":"optional document description/narration","ref":"optional reference where the AutoCount document exposes it","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","debtorCode":"optional customer/debtor code where AutoCount allows changing it","detailMode":"optional detail edit mode: replace | append | update | delete","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"},"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}]}},"groupedEndpoint":"POST /v1/ar-module/ar-payment/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.007.004.void-ar-payment","commandType":"void-ar-payment","mode":"write","operation":"Void","summary":"Guarded AR payment void request.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"void-ar-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ar-payment","payload":{"docNo":"OR-000001","reason":"void/correct document"}},"groupedEndpoint":"POST /v1/ar-module/ar-payment/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven."},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.008.005.delete-ar-payment","commandType":"delete-ar-payment","mode":"write","operation":"Delete","summary":"Guarded AR payment delete request.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"delete-ar-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ar-payment","payload":{"docNo":"OR-000001","reason":"remove/correct document"}},"groupedEndpoint":"POST /v1/ar-module/ar-payment/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven."},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.000.000.list-ar-refunds","commandType":"list-ar-refunds","mode":"read","operation":"Read","summary":"List AR refunds.","payloadSchema":{},"exampleRequest":{"commandId":"list-ar-refunds-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ar-refunds","payload":{}},"groupedEndpoint":"POST /v1/ar-module/ar-refund/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.002.000.get-ar-refund","commandType":"get-ar-refund","mode":"read","operation":"Read","summary":"Get one AR refund by document number.","payloadSchema":{"docNo":"required AR refund document number"},"exampleRequest":{"commandId":"get-ar-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ar-refund","payload":{"docNo":"PV-000001"}},"groupedEndpoint":"POST /v1/ar-module/ar-refund/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.004.001.validate-ar-refund","commandType":"validate-ar-refund","mode":"read","operation":"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.","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"},"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"}}},"groupedEndpoint":"POST /v1/ar-module/ar-refund/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.005.002.create-ar-refund","commandType":"create-ar-refund","mode":"write","operation":"Create","summary":"Create an AR refund. Refund knocks off AR credit notes, not invoices. Use docType RC or friendly CN alias; docKey is recommended.","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"},"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"}}},"groupedEndpoint":"POST /v1/ar-module/ar-refund/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.006.003.update-ar-refund","commandType":"update-ar-refund","mode":"write","operation":"Edit","summary":"Update AR refund header/simple fields.","payloadSchema":{"docNo":"required existing document number unless docKey is supplied","docKey":"optional existing document key","reason":"optional business reason for audit","docDate":"optional YYYY-MM-DD document date","description":"optional document description/narration","ref":"optional reference where the AutoCount document exposes it","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","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"},"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}]}},"groupedEndpoint":"POST /v1/ar-module/ar-refund/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.007.004.void-ar-refund","commandType":"void-ar-refund","mode":"write","operation":"Void","summary":"Guarded AR refund void request.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"void-ar-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ar-refund","payload":{"docNo":"PV-000001","reason":"void/correct document"}},"groupedEndpoint":"POST /v1/ar-module/ar-refund/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven."},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.008.005.delete-ar-refund","commandType":"delete-ar-refund","mode":"write","operation":"Delete","summary":"Guarded AR refund delete request.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"delete-ar-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ar-refund","payload":{"docNo":"PV-000001","reason":"remove/correct document"}},"groupedEndpoint":"POST /v1/ar-module/ar-refund/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven."},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.000.000.list-ar-credit-notes","commandType":"list-ar-credit-notes","mode":"read","operation":"Read","summary":"List AR credit notes.","payloadSchema":{},"exampleRequest":{"commandId":"list-ar-credit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ar-credit-notes","payload":{}},"groupedEndpoint":"POST /v1/ar-module/ar-credit-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.001.000.read-ar-credit-note-lines","commandType":"read-ar-credit-note-lines","mode":"read","operation":"Read","summary":"Read AR credit note detail/account lines only.","payloadSchema":{"debtorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"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}},"groupedEndpoint":"POST /v1/ar-module/ar-credit-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.002.000.get-ar-credit-note","commandType":"get-ar-credit-note","mode":"read","operation":"Read","summary":"Get one AR credit note by document number.","payloadSchema":{"docNo":"required AR credit note document number"},"exampleRequest":{"commandId":"get-ar-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ar-credit-note","payload":{"docNo":"CN-000001"}},"groupedEndpoint":"POST /v1/ar-module/ar-credit-note/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.004.001.validate-ar-credit-note","commandType":"validate-ar-credit-note","mode":"read","operation":"Validate","summary":"Validate an AR credit note without saving. Supports one or many real invoice knock-offs.","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"},"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"}}},"groupedEndpoint":"POST /v1/ar-module/ar-credit-note/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.005.002.create-ar-credit-note","commandType":"create-ar-credit-note","mode":"write","operation":"Create","summary":"Create an AR credit note. Supports one or many real invoice knock-offs.","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"},"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"}}},"groupedEndpoint":"POST /v1/ar-module/ar-credit-note/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.006.003.update-ar-credit-note","commandType":"update-ar-credit-note","mode":"write","operation":"Edit","summary":"Update AR credit note header/simple fields.","payloadSchema":{"docNo":"required existing document number unless docKey is supplied","docKey":"optional existing document key","reason":"optional business reason for audit","docDate":"optional YYYY-MM-DD document date","description":"optional document description/narration","ref":"optional reference where the AutoCount document exposes it","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","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"},"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"}]}},"groupedEndpoint":"POST /v1/ar-module/ar-credit-note/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.007.004.void-ar-credit-note","commandType":"void-ar-credit-note","mode":"write","operation":"Void","summary":"Guarded AR credit note void request.","payloadSchema":{"docNo":"required","reason":"required"},"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"}},"groupedEndpoint":"POST /v1/ar-module/ar-credit-note/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven."},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.008.005.delete-ar-credit-note","commandType":"delete-ar-credit-note","mode":"write","operation":"Delete","summary":"Guarded AR credit note delete request.","payloadSchema":{"docNo":"required","reason":"required"},"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"}},"groupedEndpoint":"POST /v1/ar-module/ar-credit-note/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven."},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.000.000.list-ar-debit-notes","commandType":"list-ar-debit-notes","mode":"read","operation":"Read","summary":"List AR debit notes.","payloadSchema":{},"exampleRequest":{"commandId":"list-ar-debit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ar-debit-notes","payload":{}},"groupedEndpoint":"POST /v1/ar-module/ar-debit-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.001.000.read-ar-debit-note-lines","commandType":"read-ar-debit-note-lines","mode":"read","operation":"Read","summary":"Read AR debit note detail/account lines only.","payloadSchema":{"debtorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"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}},"groupedEndpoint":"POST /v1/ar-module/ar-debit-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.002.000.get-ar-debit-note","commandType":"get-ar-debit-note","mode":"read","operation":"Read","summary":"Get one AR debit note by document number.","payloadSchema":{"docNo":"required AR debit note document number"},"exampleRequest":{"commandId":"get-ar-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ar-debit-note","payload":{"docNo":"DN-000001"}},"groupedEndpoint":"POST /v1/ar-module/ar-debit-note/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.004.001.validate-ar-debit-note","commandType":"validate-ar-debit-note","mode":"read","operation":"Validate","summary":"Validate an AR debit note without saving.","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"},"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"}}},"groupedEndpoint":"POST /v1/ar-module/ar-debit-note/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.005.002.create-ar-debit-note","commandType":"create-ar-debit-note","mode":"write","operation":"Create","summary":"Create an AR debit note.","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"},"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"}}},"groupedEndpoint":"POST /v1/ar-module/ar-debit-note/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.006.003.update-ar-debit-note","commandType":"update-ar-debit-note","mode":"write","operation":"Edit","summary":"Update AR debit note header/simple fields.","payloadSchema":{"docNo":"required existing document number unless docKey is supplied","docKey":"optional existing document key","reason":"optional business reason for audit","docDate":"optional YYYY-MM-DD document date","description":"optional document description/narration","ref":"optional reference where the AutoCount document exposes it","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","debtorCode":"optional customer/debtor code where AutoCount allows changing it","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"optional line/detail edit array; each row supports lineNo/dtlKey, accNo/accountNo/glAccount/postingAccountNo, description, amount, taxCode, deptNo, projNo, classification","knockOffs":"optional knock-off allocation edit array for credit-note style documents; each row supports docType, docKey, docNo, amount","knockOffMode":"optional knock-off edit mode: replace | append | update"},"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"}]}},"groupedEndpoint":"POST /v1/ar-module/ar-debit-note/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.007.004.void-ar-debit-note","commandType":"void-ar-debit-note","mode":"write","operation":"Void","summary":"Guarded AR debit note void request.","payloadSchema":{"docNo":"required","reason":"required"},"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"}},"groupedEndpoint":"POST /v1/ar-module/ar-debit-note/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven."},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.008.005.delete-ar-debit-note","commandType":"delete-ar-debit-note","mode":"write","operation":"Delete","summary":"Guarded AR debit note delete request.","payloadSchema":{"docNo":"required","reason":"required"},"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"}},"groupedEndpoint":"POST /v1/ar-module/ar-debit-note/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven."},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.000.000.list-ar-deposits","commandType":"list-ar-deposits","mode":"read","operation":"Read","summary":"List AR deposits.","payloadSchema":{},"exampleRequest":{"commandId":"list-ar-deposits-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ar-deposits","payload":{}},"groupedEndpoint":"POST /v1/ar-module/ar/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.001.000.read-ar-outstanding","commandType":"read-ar-outstanding","mode":"read","operation":"Read","summary":"Legacy AR outstanding lookup. Prefer read-ar-outstanding-documents for docKey-based knock-off.","payloadSchema":{"debtorCode":"optional debtor/customer code","maxRows":"optional row limit; maxRows: 0 means return all rows"},"exampleRequest":{"commandId":"read-ar-outstanding-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ar-outstanding","payload":{"debtorCode":"300-A001","maxRows":0}},"groupedEndpoint":"POST /v1/ar-module/ar-outstanding/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.001.000.read-debtors","commandType":"read-debtors","mode":"read","operation":"Read","summary":"List debtors/customers.","payloadSchema":{},"exampleRequest":{"commandId":"read-debtors-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-debtors","payload":{}},"groupedEndpoint":"POST /v1/ar-module/debtor-customer/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.002.000.get-ar-deposit","commandType":"get-ar-deposit","mode":"read","operation":"Read","summary":"Get one AR deposit by document number.","payloadSchema":{"docNo":"required AR deposit document number"},"exampleRequest":{"commandId":"get-ar-deposit-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ar-deposit","payload":{"docNo":"OR-000001"}},"groupedEndpoint":"POST /v1/ar-module/ar/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.002.000.get-debtor-credit-control","commandType":"get-debtor-credit-control","mode":"read","operation":"Read","summary":"Read one debtor/customer credit-control settings through AutoCount debtor SDK.","payloadSchema":{"accNo":"required debtor/customer code; debtorCode or customerCode also accepted"},"exampleRequest":{"commandId":"get-debtor-credit-control-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-debtor-credit-control","payload":{"accNo":"300-A001"}},"groupedEndpoint":"POST /v1/ar-module/debtor-customer/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.002.000.get-debtor-detail","commandType":"get-debtor-detail","mode":"read","operation":"Read","summary":"Read one debtor/customer with all public SDK fields and child tables.","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"},"exampleRequest":{"commandId":"get-debtor-detail-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-debtor-detail","payload":{"accNo":"300-A001","maxTableRows":0}},"groupedEndpoint":"POST /v1/ar-module/debtor-customer/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.ARAP.Debtor.DebtorDataAccess.GetDebtor. Returns fields and child tables such as DebtorTable, BranchTable, ContactTable, TaxExemptionTable, and GLMastTable when available."},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.004.001.validate-ar-deposit","commandType":"validate-ar-deposit","mode":"read","operation":"Validate","summary":"Validate an AR deposit without saving.","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"},"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"}},"groupedEndpoint":"POST /v1/ar-module/ar/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.000.000.list-ap-invoices","commandType":"list-ap-invoices","mode":"read","operation":"Read","summary":"List AP invoices.","payloadSchema":{},"exampleRequest":{"commandId":"list-ap-invoices-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ap-invoices","payload":{}},"groupedEndpoint":"POST /v1/ap-module/ap-invoice/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.001.000.read-ap-invoice-lines","commandType":"read-ap-invoice-lines","mode":"read","operation":"Read","summary":"Read AP invoice detail/account lines only.","payloadSchema":{"creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-ap-invoice-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-invoice-lines","payload":{"accountNo":"610-0000","limit":50}},"groupedEndpoint":"POST /v1/ap-module/ap-invoice/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.001.000.read-ap-outstanding-documents","commandType":"read-ap-outstanding-documents","mode":"read","operation":"Read","summary":"List outstanding AP invoice documents with docKey for allocation and knock-off.","payloadSchema":{"creditorCode":"optional creditor/supplier code","maxRows":"optional row limit; maxRows: 0 means return all rows"},"exampleRequest":{"commandId":"read-ap-outstanding-documents-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-outstanding-documents","payload":{"creditorCode":"400-S001","maxRows":0}},"groupedEndpoint":"POST /v1/ap-module/ap-outstanding/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns SDK-safe docType PB plus displayDocType PI. Use the returned docType for AP payment and AP credit-note invoice knock-off."},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.002.000.get-ap-invoice","commandType":"get-ap-invoice","mode":"read","operation":"Read","summary":"Get one AP invoice by document number.","payloadSchema":{"docNo":"required AP invoice document number"},"exampleRequest":{"commandId":"get-ap-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ap-invoice","payload":{"docNo":"API-000001"}},"groupedEndpoint":"POST /v1/ap-module/ap-invoice/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.004.001.validate-ap-invoice","commandType":"validate-ap-invoice","mode":"read","operation":"Validate","summary":"Validate an AP invoice without saving.","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"},"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"}}},"groupedEndpoint":"POST /v1/ap-module/ap-invoice/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.005.002.create-ap-invoice","commandType":"create-ap-invoice","mode":"write","operation":"Create","summary":"Create an AP invoice.","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"},"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"}}},"groupedEndpoint":"POST /v1/ap-module/ap-invoice/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.006.003.update-ap-invoice","commandType":"update-ap-invoice","mode":"write","operation":"Edit","summary":"Update AP invoice header/simple fields.","payloadSchema":{"docNo":"required existing document number unless docKey is supplied","docKey":"optional existing document key","reason":"optional business reason for audit","docDate":"optional YYYY-MM-DD document date","description":"optional document description/narration","ref":"optional reference where the AutoCount document exposes it","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","creditorCode":"optional supplier/creditor code where AutoCount allows changing it","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"optional line/detail edit array; each row supports lineNo/dtlKey, accNo/accountNo/glAccount/postingAccountNo, description, amount, taxCode, deptNo, projNo, classification","knockOffs":"optional knock-off allocation edit array for credit-note style documents; each row supports docType, docKey, docNo, amount","knockOffMode":"optional knock-off edit mode: replace | append | update","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"},"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"}},"groupedEndpoint":"POST /v1/ap-module/ap-invoice/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.007.004.void-ap-invoice","commandType":"void-ap-invoice","mode":"write","operation":"Void","summary":"Guarded AP invoice void request.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"void-ap-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ap-invoice","payload":{"docNo":"API-000001","reason":"void/correct document"}},"groupedEndpoint":"POST /v1/ap-module/ap-invoice/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven."},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.008.005.delete-ap-invoice","commandType":"delete-ap-invoice","mode":"write","operation":"Delete","summary":"Guarded AP invoice delete request.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"delete-ap-invoice-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ap-invoice","payload":{"docNo":"API-000001","reason":"remove/correct document"}},"groupedEndpoint":"POST /v1/ap-module/ap-invoice/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven."},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.000.000.list-ap-payments","commandType":"list-ap-payments","mode":"read","operation":"Read","summary":"List AP payments.","payloadSchema":{},"exampleRequest":{"commandId":"list-ap-payments-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ap-payments","payload":{}},"groupedEndpoint":"POST /v1/ap-module/ap-payment/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.001.000.read-ap-detail-lines","commandType":"read-ap-detail-lines","mode":"read","operation":"Read","summary":"Read AP account/detail lines across AP invoices, payments, refunds, credit notes, and debit notes.","payloadSchema":{"creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-ap-detail-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-detail-lines","payload":{"creditorCode":"400-S001","limit":50}},"groupedEndpoint":"POST /v1/ap-module/ap/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.001.000.read-ap-payment-lines","commandType":"read-ap-payment-lines","mode":"read","operation":"Read","summary":"Read AP payment detail/payment method lines only.","payloadSchema":{"creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-ap-payment-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-payment-lines","payload":{"creditorCode":"400-S001","limit":50}},"groupedEndpoint":"POST /v1/ap-module/ap-payment/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.001.000.read-ap-refund-lines","commandType":"read-ap-refund-lines","mode":"read","operation":"Read","summary":"Read AP refund detail/payment method lines only.","payloadSchema":{"creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-ap-refund-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-refund-lines","payload":{"creditorCode":"400-S001","limit":50}},"groupedEndpoint":"POST /v1/ap-module/ap-refund/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.002.000.get-ap-payment","commandType":"get-ap-payment","mode":"read","operation":"Read","summary":"Get one AP payment by document number.","payloadSchema":{"docNo":"required AP payment document number"},"exampleRequest":{"commandId":"get-ap-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ap-payment","payload":{"docNo":"PV-000001"}},"groupedEndpoint":"POST /v1/ap-module/ap-payment/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.004.001.validate-ap-payment","commandType":"validate-ap-payment","mode":"read","operation":"Validate","summary":"Validate an AP payment without saving. Supports one or many real supplier invoice knock-offs.","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"},"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"}}},"groupedEndpoint":"POST /v1/ap-module/ap-payment/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.005.002.create-ap-deposit","commandType":"create-ap-deposit","mode":"write","operation":"Create","summary":"Create an AP deposit with a real payment detail and GL transaction.","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"},"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"}},"groupedEndpoint":"POST /v1/ap-module/ap/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.005.002.create-ap-payment","commandType":"create-ap-payment","mode":"write","operation":"Create","summary":"Create an AP payment. Supports one or many real supplier invoice knock-offs.","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"},"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"}}},"groupedEndpoint":"POST /v1/ap-module/ap-payment/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.006.003.update-ap-payment","commandType":"update-ap-payment","mode":"write","operation":"Edit","summary":"Update AP payment header/simple fields.","payloadSchema":{"docNo":"required existing document number unless docKey is supplied","docKey":"optional existing document key","reason":"optional business reason for audit","docDate":"optional YYYY-MM-DD document date","description":"optional document description/narration","ref":"optional reference where the AutoCount document exposes it","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","creditorCode":"optional supplier/creditor code where AutoCount allows changing it","detailMode":"optional detail edit mode: replace | append | update | delete","paymentLines":"optional AR/AP payment/detail edit array; each row supports lineNo/dtlKey, paymentMethod, paymentAmount/paymentAmt/amount, paymentBy, chequeNo, bankCharge","knockOffs":"optional knock-off allocation edit array; each row supports docType, docKey, docNo, amount","knockOffMode":"optional knock-off edit mode: replace | append | update"},"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}]}},"groupedEndpoint":"POST /v1/ap-module/ap-payment/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.007.004.void-ap-payment","commandType":"void-ap-payment","mode":"write","operation":"Void","summary":"Guarded AP payment void request.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"void-ap-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ap-payment","payload":{"docNo":"PV-000001","reason":"void/correct document"}},"groupedEndpoint":"POST /v1/ap-module/ap-payment/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven."},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.008.005.delete-ap-payment","commandType":"delete-ap-payment","mode":"write","operation":"Delete","summary":"Guarded AP payment delete request.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"delete-ap-payment-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ap-payment","payload":{"docNo":"PV-000001","reason":"remove/correct document"}},"groupedEndpoint":"POST /v1/ap-module/ap-payment/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven."},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.000.000.list-ap-refunds","commandType":"list-ap-refunds","mode":"read","operation":"Read","summary":"List AP refunds.","payloadSchema":{},"exampleRequest":{"commandId":"list-ap-refunds-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ap-refunds","payload":{}},"groupedEndpoint":"POST /v1/ap-module/ap-refund/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.002.000.get-ap-refund","commandType":"get-ap-refund","mode":"read","operation":"Read","summary":"Get one AP refund by document number.","payloadSchema":{"docNo":"required AP refund document number"},"exampleRequest":{"commandId":"get-ap-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ap-refund","payload":{"docNo":"PV-000001"}},"groupedEndpoint":"POST /v1/ap-module/ap-refund/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.004.001.validate-ap-refund","commandType":"validate-ap-refund","mode":"read","operation":"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.","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"},"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"}}},"groupedEndpoint":"POST /v1/ap-module/ap-refund/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.005.002.create-ap-refund","commandType":"create-ap-refund","mode":"write","operation":"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.","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"},"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"}}},"groupedEndpoint":"POST /v1/ap-module/ap-refund/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.006.003.update-ap-refund","commandType":"update-ap-refund","mode":"write","operation":"Edit","summary":"Update AP refund header/simple fields.","payloadSchema":{"docNo":"required existing document number unless docKey is supplied","docKey":"optional existing document key","reason":"optional business reason for audit","docDate":"optional YYYY-MM-DD document date","description":"optional document description/narration","ref":"optional reference where the AutoCount document exposes it","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","creditorCode":"optional supplier/creditor code where AutoCount allows changing it","detailMode":"optional detail edit mode: replace | append | update | delete","paymentLines":"optional AR/AP payment/detail edit array; each row supports lineNo/dtlKey, paymentMethod, paymentAmount/paymentAmt/amount, paymentBy, chequeNo, bankCharge","knockOffs":"optional knock-off allocation edit array; each row supports docType, docKey, docNo, amount","knockOffMode":"optional knock-off edit mode: replace | append | update"},"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}]}},"groupedEndpoint":"POST /v1/ap-module/ap-refund/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.007.004.void-ap-refund","commandType":"void-ap-refund","mode":"write","operation":"Void","summary":"Guarded AP refund void request.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"void-ap-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-ap-refund","payload":{"docNo":"PV-000001","reason":"void/correct document"}},"groupedEndpoint":"POST /v1/ap-module/ap-refund/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven."},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.008.005.delete-ap-refund","commandType":"delete-ap-refund","mode":"write","operation":"Delete","summary":"Guarded AP refund delete request.","payloadSchema":{"docNo":"required","reason":"required"},"exampleRequest":{"commandId":"delete-ap-refund-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-ap-refund","payload":{"docNo":"PV-000001","reason":"remove/correct document"}},"groupedEndpoint":"POST /v1/ap-module/ap-refund/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven."},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.000.000.list-ap-credit-notes","commandType":"list-ap-credit-notes","mode":"read","operation":"Read","summary":"List AP credit notes.","payloadSchema":{},"exampleRequest":{"commandId":"list-ap-credit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ap-credit-notes","payload":{}},"groupedEndpoint":"POST /v1/ap-module/ap-credit-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.001.000.read-ap-credit-note-lines","commandType":"read-ap-credit-note-lines","mode":"read","operation":"Read","summary":"Read AP credit note detail/account lines only.","payloadSchema":{"creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"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}},"groupedEndpoint":"POST /v1/ap-module/ap-credit-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.002.000.get-ap-credit-note","commandType":"get-ap-credit-note","mode":"read","operation":"Read","summary":"Get one AP credit note by document number.","payloadSchema":{"docNo":"required AP credit note document number"},"exampleRequest":{"commandId":"get-ap-credit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ap-credit-note","payload":{"docNo":"PCN-000001"}},"groupedEndpoint":"POST /v1/ap-module/ap-credit-note/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.004.001.validate-ap-credit-note","commandType":"validate-ap-credit-note","mode":"read","operation":"Validate","summary":"Validate an AP credit note without saving. Supports one or many real supplier invoice knock-offs.","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"},"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"}}},"groupedEndpoint":"POST /v1/ap-module/ap-credit-note/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.005.002.create-ap-credit-note","commandType":"create-ap-credit-note","mode":"write","operation":"Create","summary":"Create an AP credit note. Supports one or many real supplier invoice knock-offs.","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"},"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"}}},"groupedEndpoint":"POST /v1/ap-module/ap-credit-note/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.006.003.update-ap-credit-note","commandType":"update-ap-credit-note","mode":"write","operation":"Edit","summary":"Update AP credit note header/simple fields.","payloadSchema":{"docNo":"required existing document number unless docKey is supplied","docKey":"optional existing document key","reason":"optional business reason for audit","docDate":"optional YYYY-MM-DD document date","description":"optional document description/narration","ref":"optional reference where the AutoCount document exposes it","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","creditorCode":"optional supplier/creditor code where AutoCount allows changing it","detailMode":"optional detail edit mode: replace | append | update | delete","lines":"optional line/detail edit array; each row supports lineNo/dtlKey, accNo/accountNo/glAccount/postingAccountNo, description, amount, taxCode, deptNo, projNo, classification","knockOffs":"optional knock-off allocation edit array for credit-note style documents; each row supports docType, docKey, docNo, amount","knockOffMode":"optional knock-off edit mode: replace | append | update"},"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"}]}},"groupedEndpoint":"POST /v1/ap-module/ap-credit-note/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.007.004.void-ap-credit-note","commandType":"void-ap-credit-note","mode":"write","operation":"Void","summary":"Guarded AP credit note void request.","payloadSchema":{"docNo":"required","reason":"required"},"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"}},"groupedEndpoint":"POST /v1/ap-module/ap-credit-note/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven."},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.008.005.delete-ap-credit-note","commandType":"delete-ap-credit-note","mode":"write","operation":"Delete","summary":"Guarded AP credit note delete request.","payloadSchema":{"docNo":"required","reason":"required"},"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"}},"groupedEndpoint":"POST /v1/ap-module/ap-credit-note/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven."},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.000.000.list-ap-debit-notes","commandType":"list-ap-debit-notes","mode":"read","operation":"Read","summary":"List AP debit notes.","payloadSchema":{},"exampleRequest":{"commandId":"list-ap-debit-notes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ap-debit-notes","payload":{}},"groupedEndpoint":"POST /v1/ap-module/ap-debit-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.001.000.read-ap-debit-note-lines","commandType":"read-ap-debit-note-lines","mode":"read","operation":"Read","summary":"Read AP debit note detail/account lines only.","payloadSchema":{"creditorCode":"optional","accountNo":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"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}},"groupedEndpoint":"POST /v1/ap-module/ap-debit-note/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.002.000.get-ap-debit-note","commandType":"get-ap-debit-note","mode":"read","operation":"Read","summary":"Get one AP debit note by document number.","payloadSchema":{"docNo":"required AP debit note document number"},"exampleRequest":{"commandId":"get-ap-debit-note-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ap-debit-note","payload":{"docNo":"PDN-000001"}},"groupedEndpoint":"POST /v1/ap-module/ap-debit-note/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.004.001.validate-ap-debit-note","commandType":"validate-ap-debit-note","mode":"read","operation":"Validate","summary":"Validate an AP debit note without saving.","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"},"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"}}},"groupedEndpoint":"POST /v1/ap-module/ap-debit-note/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.005.002.create-ap-debit-note","commandType":"create-ap-debit-note","mode":"write","operation":"Create","summary":"Create an AP debit note.","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"},"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"}}},"groupedEndpoint":"POST /v1/ap-module/ap-debit-note/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.006.003.update-ap-debit-note","commandType":"update-ap-debit-note","mode":"write","operation":"Edit","summary":"Update AP debit note header/simple fields.","payloadSchema":{"docNo":"required existing document number unless docKey is supplied","docKey":"optional existing document key","reason":"optional business reason for audit","docDate":"optional YYYY-MM-DD document date","description":"optional document description/narration","ref":"optional reference where the AutoCount document exposes it","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","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"},"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"}]}},"groupedEndpoint":"POST /v1/ap-module/ap-debit-note/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.007.004.void-ap-debit-note","commandType":"void-ap-debit-note","mode":"write","operation":"Void","summary":"Guarded AP debit note void request.","payloadSchema":{"docNo":"required","reason":"required"},"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"}},"groupedEndpoint":"POST /v1/ap-module/ap-debit-note/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven."},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.008.005.delete-ap-debit-note","commandType":"delete-ap-debit-note","mode":"write","operation":"Delete","summary":"Guarded AP debit note delete request.","payloadSchema":{"docNo":"required","reason":"required"},"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"}},"groupedEndpoint":"POST /v1/ap-module/ap-debit-note/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven."},{"module":"AP","displayGroup":"AP","displayOrder":"004.999.000.000.list-ap-deposits","commandType":"list-ap-deposits","mode":"read","operation":"Read","summary":"List AP deposits.","payloadSchema":{},"exampleRequest":{"commandId":"list-ap-deposits-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-ap-deposits","payload":{}},"groupedEndpoint":"POST /v1/ap-module/ap/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.999.001.000.read-ap-outstanding","commandType":"read-ap-outstanding","mode":"read","operation":"Read","summary":"Legacy AP outstanding lookup. Prefer read-ap-outstanding-documents for docKey-based knock-off.","payloadSchema":{"creditorCode":"optional creditor/supplier code","maxRows":"optional row limit; maxRows: 0 means return all rows"},"exampleRequest":{"commandId":"read-ap-outstanding-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-ap-outstanding","payload":{"creditorCode":"400-S001","maxRows":0}},"groupedEndpoint":"POST /v1/ap-module/ap-outstanding/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.999.001.000.read-creditors","commandType":"read-creditors","mode":"read","operation":"Read","summary":"List creditors/suppliers.","payloadSchema":{},"exampleRequest":{"commandId":"read-creditors-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-creditors","payload":{}},"groupedEndpoint":"POST /v1/ap-module/creditor-supplier/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.999.002.000.get-ap-deposit","commandType":"get-ap-deposit","mode":"read","operation":"Read","summary":"Get one AP deposit by document number.","payloadSchema":{"docNo":"required AP deposit document number"},"exampleRequest":{"commandId":"get-ap-deposit-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-ap-deposit","payload":{"docNo":"PV-000001"}},"groupedEndpoint":"POST /v1/ap-module/ap/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"AP","displayGroup":"AP","displayOrder":"004.999.002.000.get-creditor-detail","commandType":"get-creditor-detail","mode":"read","operation":"Read","summary":"Read one creditor/supplier with all public SDK fields and child tables.","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"},"exampleRequest":{"commandId":"get-creditor-detail-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-creditor-detail","payload":{"accNo":"400-S001","maxTableRows":0}},"groupedEndpoint":"POST /v1/ap-module/creditor-supplier/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.ARAP.Creditor.CreditorDataAccess.GetCreditor. Returns fields and child tables such as CreditorTable, BranchTable, ContactTable, TaxExemptionTable, and GLMastTable when available."},{"module":"AP","displayGroup":"AP","displayOrder":"004.999.004.001.validate-ap-deposit","commandType":"validate-ap-deposit","mode":"read","operation":"Validate","summary":"Validate an AP deposit without saving.","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"},"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"}},"groupedEndpoint":"POST /v1/ap-module/ap/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.000.000.list-stock-item-brands","commandType":"list-stock-item-brands","mode":"read","operation":"Read","summary":"List Stock Item Brand Maintenance records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-item-brands-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-item-brands","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.000.000.list-stock-item-categories","commandType":"list-stock-item-categories","mode":"read","operation":"Read","summary":"List Stock Item Category Maintenance records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-item-categories-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-item-categories","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.000.000.list-stock-item-groups","commandType":"list-stock-item-groups","mode":"read","operation":"Read","summary":"List Stock Item Group Maintenance records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-item-groups-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-item-groups","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.000.000.list-stock-item-types","commandType":"list-stock-item-types","mode":"read","operation":"Read","summary":"List Stock Item Type Maintenance records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-item-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-item-types","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.000.000.list-stock-update-costs","commandType":"list-stock-update-costs","mode":"read","operation":"Read","summary":"List stock update cost records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-update-costs-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-update-costs","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock-update-cost/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.001.000.read-items","commandType":"read-items","mode":"read","operation":"Read","summary":"List stock items quickly with limit/search filters.","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"},"exampleRequest":{"commandId":"read-items-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-items","payload":{"limit":50,"search":"V274","activeOnly":true}},"groupedEndpoint":"POST /v1/stock-module/stock-item/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.001.000.read-items-all","commandType":"read-items-all","mode":"read","operation":"Read","summary":"Explicit full stock item export.","payloadSchema":{"search":"optional keyword filter","itemGroup":"optional exact item group","itemType":"optional exact item type","activeOnly":"optional boolean"},"exampleRequest":{"commandId":"read-items-all-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-items-all","payload":{"activeOnly":true}},"groupedEndpoint":"POST /v1/stock-module/stock-item/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Can be slow on large account books. Prefer read-items with limit/search for normal AI lookup."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.001.000.read-locations","commandType":"read-locations","mode":"read","operation":"Read","summary":"List stock locations.","payloadSchema":{},"exampleRequest":{"commandId":"read-locations-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-locations","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.001.000.read-stock-detail-lines","commandType":"read-stock-detail-lines","mode":"read","operation":"Read","summary":"Read stock transaction lines together, or filter with document.","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"},"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}},"groupedEndpoint":"POST /v1/stock-module/stock/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.001.000.read-stock-movement","commandType":"read-stock-movement","mode":"read","operation":"Read","summary":"Read stock movement.","payloadSchema":{"itemCode":"optional item code","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional"},"exampleRequest":{"commandId":"read-stock-movement-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-movement","payload":{"itemCode":"ITEM001"}},"groupedEndpoint":"POST /v1/stock-module/stock-movement/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.001.000.read-stock-update-cost-lines","commandType":"read-stock-update-cost-lines","mode":"read","operation":"Read","summary":"Read stock update cost detail lines only.","payloadSchema":{"itemCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-stock-update-cost-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-update-cost-lines","payload":{"itemCode":"ITEM001","limit":50}},"groupedEndpoint":"POST /v1/stock-module/stock-update-cost/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.002.000.get-stock-item-brand","commandType":"get-stock-item-brand","mode":"read","operation":"Read","summary":"Get one Stock Item Brand Maintenance record.","payloadSchema":{"code":"required item brand code"},"exampleRequest":{"commandId":"get-stock-item-brand-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-item-brand","payload":{"code":"BRAND1"}},"groupedEndpoint":"POST /v1/stock-module/stock/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.002.000.get-stock-item-category","commandType":"get-stock-item-category","mode":"read","operation":"Read","summary":"Get one Stock Item Category Maintenance record.","payloadSchema":{"code":"required item category code"},"exampleRequest":{"commandId":"get-stock-item-category-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-item-category","payload":{"code":"CAT1"}},"groupedEndpoint":"POST /v1/stock-module/stock/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.002.000.get-stock-item-detail","commandType":"get-stock-item-detail","mode":"read","operation":"Read","summary":"Read one stock item with all public SDK fields and child tables.","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"},"exampleRequest":{"commandId":"get-stock-item-detail-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-item-detail","payload":{"itemCode":"ITEM001","maxTableRows":50}},"groupedEndpoint":"POST /v1/stock-module/stock-item/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.002.000.get-stock-item-group","commandType":"get-stock-item-group","mode":"read","operation":"Read","summary":"Get one Stock Item Group Maintenance record.","payloadSchema":{"code":"required item group code"},"exampleRequest":{"commandId":"get-stock-item-group-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-item-group","payload":{"code":"FG"}},"groupedEndpoint":"POST /v1/stock-module/stock/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.002.000.get-stock-item-type","commandType":"get-stock-item-type","mode":"read","operation":"Read","summary":"Get one Stock Item Type Maintenance record.","payloadSchema":{"code":"required item type code"},"exampleRequest":{"commandId":"get-stock-item-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-item-type","payload":{"code":"RAW"}},"groupedEndpoint":"POST /v1/stock-module/stock/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.002.000.get-stock-update-cost","commandType":"get-stock-update-cost","mode":"read","operation":"Read","summary":"Get one stock update cost by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-stock-update-cost-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-update-cost","payload":{"docNo":"SUC-000001"}},"groupedEndpoint":"POST /v1/stock-module/stock-update-cost/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.004.001.validate-stock-update-cost","commandType":"validate-stock-update-cost","mode":"read","operation":"Validate","summary":"Validate stock update cost without 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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-update-cost/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.005.002.create-stock-item-brand","commandType":"create-stock-item-brand","mode":"write","operation":"Create","summary":"Create a Stock Item Brand Maintenance record.","payloadSchema":{"code":"required item brand code","description":"required description"},"exampleRequest":{"commandId":"create-stock-item-brand-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-item-brand","payload":{"code":"BRAND1","description":"Brand 1"}},"groupedEndpoint":"POST /v1/stock-module/stock/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount stock item brand maintenance SDK where available."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.005.002.create-stock-item-category","commandType":"create-stock-item-category","mode":"write","operation":"Create","summary":"Create a Stock Item Category Maintenance record.","payloadSchema":{"code":"required item category code","description":"required description"},"exampleRequest":{"commandId":"create-stock-item-category-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-item-category","payload":{"code":"CAT1","description":"Category 1"}},"groupedEndpoint":"POST /v1/stock-module/stock/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount stock item category maintenance SDK where available."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.005.002.create-stock-item-group","commandType":"create-stock-item-group","mode":"write","operation":"Create","summary":"Create a Stock Item Group Maintenance record.","payloadSchema":{"code":"required item group code","description":"required description"},"exampleRequest":{"commandId":"create-stock-item-group-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-item-group","payload":{"code":"FG","description":"Finished Goods"}},"groupedEndpoint":"POST /v1/stock-module/stock/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount stock item group maintenance SDK where available."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.005.002.create-stock-item-type","commandType":"create-stock-item-type","mode":"write","operation":"Create","summary":"Create a Stock Item Type Maintenance record.","payloadSchema":{"code":"required item type code","description":"required description"},"exampleRequest":{"commandId":"create-stock-item-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"create-stock-item-type","payload":{"code":"RAW","description":"Raw Material"}},"groupedEndpoint":"POST /v1/stock-module/stock/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount stock item type maintenance SDK where available."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.005.002.create-stock-update-cost","commandType":"create-stock-update-cost","mode":"write","operation":"Create","summary":"Create stock update cost document.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-update-cost/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.006.003.update-stock-item-brand","commandType":"update-stock-item-brand","mode":"write","operation":"Edit","summary":"Update a Stock Item Brand Maintenance record.","payloadSchema":{"code":"required item brand code","description":"description to update"},"exampleRequest":{"commandId":"update-stock-item-brand-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-item-brand","payload":{"code":"BRAND1","description":"Brand 1"}},"groupedEndpoint":"POST /v1/stock-module/stock/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount stock item brand maintenance SDK where available."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.006.003.update-stock-item-category","commandType":"update-stock-item-category","mode":"write","operation":"Edit","summary":"Update a Stock Item Category Maintenance record.","payloadSchema":{"code":"required item category code","description":"description to update"},"exampleRequest":{"commandId":"update-stock-item-category-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-item-category","payload":{"code":"CAT1","description":"Category 1"}},"groupedEndpoint":"POST /v1/stock-module/stock/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount stock item category maintenance SDK where available."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.006.003.update-stock-item-group","commandType":"update-stock-item-group","mode":"write","operation":"Edit","summary":"Update a Stock Item Group Maintenance record.","payloadSchema":{"code":"required item group code","description":"description to update"},"exampleRequest":{"commandId":"update-stock-item-group-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-item-group","payload":{"code":"FG","description":"Finished Goods"}},"groupedEndpoint":"POST /v1/stock-module/stock/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount stock item group maintenance SDK where available."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.006.003.update-stock-item-type","commandType":"update-stock-item-type","mode":"write","operation":"Edit","summary":"Update a Stock Item Type Maintenance record.","payloadSchema":{"code":"required item type code","description":"description to update"},"exampleRequest":{"commandId":"update-stock-item-type-001","connectorId":"customer-main","companyId":"macsofttest","type":"update-stock-item-type","payload":{"code":"RAW","description":"Raw Material"}},"groupedEndpoint":"POST /v1/stock-module/stock/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount stock item type maintenance SDK where available."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.006.003.update-stock-update-cost","commandType":"update-stock-update-cost","mode":"write","operation":"Edit","summary":"Edit stock update cost header fields and detail lines.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-update-cost/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.007.004.void-stock-update-cost","commandType":"void-stock-update-cost","mode":"write","operation":"Void","summary":"Void/cancel stock update cost.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"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"}},"groupedEndpoint":"POST /v1/stock-module/stock-update-cost/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK CancelDocument."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.008.005.delete-stock-update-cost","commandType":"delete-stock-update-cost","mode":"write","operation":"Delete","summary":"Delete stock update cost.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"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"}},"groupedEndpoint":"POST /v1/stock-module/stock-update-cost/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.999.999.export-items","commandType":"export-items","mode":"read","operation":"read","summary":"Alias for read-items-all explicit full stock item export.","payloadSchema":{"activeOnly":"optional boolean"},"exampleRequest":{"commandId":"export-items-001","connectorId":"customer-main","companyId":"macsofttest","type":"export-items","payload":{"activeOnly":true}},"groupedEndpoint":"POST /v1/stock-module/stock/export-items","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Use only for export/sync jobs, not repeated quick lookups."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.001.003.000.stock-balance","commandType":"stock-balance","mode":"read","operation":"Read","summary":"Inquire stock balance by item/location using AutoCount stock balance by location logic.","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"},"exampleRequest":{"commandId":"stock-balance-001","connectorId":"customer-main","companyId":"macsofttest","type":"stock-balance","payload":{"itemCode":"ITEM001","location":"HQ","maxRows":100}},"groupedEndpoint":"POST /v1/stock-module/stock-balance/stock-balance","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns rows from the first non-empty AutoCount result table plus table summaries. Use this when a customer asks stock quantity by location."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.000.000.list-stock-adjustments","commandType":"list-stock-adjustments","mode":"read","operation":"Read","summary":"List stock adjustment records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-adjustments-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-adjustments","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock-adjustment/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.001.000.read-stock-adjustment-lines","commandType":"read-stock-adjustment-lines","mode":"read","operation":"Read","summary":"Read stock adjustment detail lines only.","payloadSchema":{"itemCode":"optional","docNo":"optional","location":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-stock-adjustment-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-adjustment-lines","payload":{"itemCode":"ITEM001","limit":50}},"groupedEndpoint":"POST /v1/stock-module/stock-adjustment/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.002.000.get-stock-adjustment","commandType":"get-stock-adjustment","mode":"read","operation":"Read","summary":"Get one stock adjustment by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-stock-adjustment-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-adjustment","payload":{"docNo":"SA-000001"}},"groupedEndpoint":"POST /v1/stock-module/stock-adjustment/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.004.001.validate-stock-adjustment","commandType":"validate-stock-adjustment","mode":"read","operation":"Validate","summary":"Validate stock adjustment without 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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-adjustment/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.005.002.create-stock-adjustment","commandType":"create-stock-adjustment","mode":"write","operation":"Create","summary":"Create stock adjustment.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-adjustment/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.006.003.update-stock-adjustment","commandType":"update-stock-adjustment","mode":"write","operation":"Edit","summary":"Edit stock adjustment header fields and detail lines.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-adjustment/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.007.004.void-stock-adjustment","commandType":"void-stock-adjustment","mode":"write","operation":"Void","summary":"Void/cancel stock adjustment.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"void-stock-adjustment-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-adjustment","payload":{"docNo":"SA-000001","reason":"void/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/stock-adjustment/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK CancelDocument."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.008.005.delete-stock-adjustment","commandType":"delete-stock-adjustment","mode":"write","operation":"Delete","summary":"Delete stock adjustment.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"delete-stock-adjustment-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-adjustment","payload":{"docNo":"SA-000001","reason":"remove/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/stock-adjustment/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.000.000.list-stock-receives","commandType":"list-stock-receives","mode":"read","operation":"Read","summary":"List stock receive records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-receives-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-receives","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock-receive/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.001.000.read-stock-receive-lines","commandType":"read-stock-receive-lines","mode":"read","operation":"Read","summary":"Read stock receive detail lines only.","payloadSchema":{"itemCode":"optional","docNo":"optional","location":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-stock-receive-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-receive-lines","payload":{"itemCode":"ITEM001","limit":50}},"groupedEndpoint":"POST /v1/stock-module/stock-receive/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.002.000.get-stock-receive","commandType":"get-stock-receive","mode":"read","operation":"Read","summary":"Get one stock receive by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-stock-receive-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-receive","payload":{"docNo":"SR-000001"}},"groupedEndpoint":"POST /v1/stock-module/stock-receive/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.004.001.validate-stock-receive","commandType":"validate-stock-receive","mode":"read","operation":"Validate","summary":"Validate stock receive without 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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-receive/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.005.002.create-stock-receive","commandType":"create-stock-receive","mode":"write","operation":"Create","summary":"Create stock receive.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-receive/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.006.003.update-stock-receive","commandType":"update-stock-receive","mode":"write","operation":"Edit","summary":"Edit stock receive header fields and detail lines.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-receive/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.007.004.void-stock-receive","commandType":"void-stock-receive","mode":"write","operation":"Void","summary":"Void/cancel stock receive.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"void-stock-receive-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-receive","payload":{"docNo":"SR-000001","reason":"void/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/stock-receive/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK CancelDocument."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.008.005.delete-stock-receive","commandType":"delete-stock-receive","mode":"write","operation":"Delete","summary":"Delete stock receive.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"delete-stock-receive-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-receive","payload":{"docNo":"SR-000001","reason":"remove/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/stock-receive/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.000.000.list-stock-issues","commandType":"list-stock-issues","mode":"read","operation":"Read","summary":"List stock issue records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-issues-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-issues","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock-issue/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.001.000.read-stock-issue-lines","commandType":"read-stock-issue-lines","mode":"read","operation":"Read","summary":"Read stock issue detail lines only.","payloadSchema":{"itemCode":"optional","docNo":"optional","location":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-stock-issue-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-issue-lines","payload":{"itemCode":"ITEM001","limit":50}},"groupedEndpoint":"POST /v1/stock-module/stock-issue/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.002.000.get-stock-issue","commandType":"get-stock-issue","mode":"read","operation":"Read","summary":"Get one stock issue by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-stock-issue-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-issue","payload":{"docNo":"SI-000001"}},"groupedEndpoint":"POST /v1/stock-module/stock-issue/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.004.001.validate-stock-issue","commandType":"validate-stock-issue","mode":"read","operation":"Validate","summary":"Validate stock issue without 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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-issue/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.005.002.create-stock-issue","commandType":"create-stock-issue","mode":"write","operation":"Create","summary":"Create stock issue.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-issue/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.006.003.update-stock-issue","commandType":"update-stock-issue","mode":"write","operation":"Edit","summary":"Edit stock issue header fields and detail lines.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-issue/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.007.004.void-stock-issue","commandType":"void-stock-issue","mode":"write","operation":"Void","summary":"Void/cancel stock issue.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"void-stock-issue-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-issue","payload":{"docNo":"SI-000001","reason":"void/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/stock-issue/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK CancelDocument."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.008.005.delete-stock-issue","commandType":"delete-stock-issue","mode":"write","operation":"Delete","summary":"Delete stock issue.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"delete-stock-issue-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-issue","payload":{"docNo":"SI-000001","reason":"remove/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/stock-issue/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.000.000.list-stock-transfers","commandType":"list-stock-transfers","mode":"read","operation":"Read","summary":"List stock transfer records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-transfers-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-transfers","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock-transfer/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.001.000.read-stock-transfer-lines","commandType":"read-stock-transfer-lines","mode":"read","operation":"Read","summary":"Read stock transfer detail lines only.","payloadSchema":{"itemCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-stock-transfer-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-transfer-lines","payload":{"itemCode":"ITEM001","limit":50}},"groupedEndpoint":"POST /v1/stock-module/stock-transfer/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.002.000.get-stock-transfer","commandType":"get-stock-transfer","mode":"read","operation":"Read","summary":"Get one stock transfer by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-stock-transfer-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-transfer","payload":{"docNo":"ST-000001"}},"groupedEndpoint":"POST /v1/stock-module/stock-transfer/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.004.001.validate-stock-transfer","commandType":"validate-stock-transfer","mode":"read","operation":"Validate","summary":"Validate stock transfer without 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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-transfer/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.005.002.create-stock-transfer","commandType":"create-stock-transfer","mode":"write","operation":"Create","summary":"Create stock transfer.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-transfer/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.006.003.update-stock-transfer","commandType":"update-stock-transfer","mode":"write","operation":"Edit","summary":"Edit stock transfer header fields and detail lines.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-transfer/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.007.004.void-stock-transfer","commandType":"void-stock-transfer","mode":"write","operation":"Void","summary":"Void/cancel stock transfer.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"void-stock-transfer-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-transfer","payload":{"docNo":"ST-000001","reason":"void/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/stock-transfer/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK CancelDocument."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.008.005.delete-stock-transfer","commandType":"delete-stock-transfer","mode":"write","operation":"Delete","summary":"Delete stock transfer.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"delete-stock-transfer-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-transfer","payload":{"docNo":"ST-000001","reason":"remove/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/stock-transfer/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.000.000.list-stock-takes","commandType":"list-stock-takes","mode":"read","operation":"Read","summary":"List stock take records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-takes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-takes","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock-take/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.001.000.read-stock-take-lines","commandType":"read-stock-take-lines","mode":"read","operation":"Read","summary":"Read stock take detail lines only.","payloadSchema":{"itemCode":"optional","docNo":"optional","location":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-stock-take-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-take-lines","payload":{"itemCode":"ITEM001","limit":50}},"groupedEndpoint":"POST /v1/stock-module/stock-take/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.002.000.get-stock-take","commandType":"get-stock-take","mode":"read","operation":"Read","summary":"Get one stock take by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-stock-take-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-take","payload":{"docNo":"STK-000001"}},"groupedEndpoint":"POST /v1/stock-module/stock-take/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.004.001.validate-stock-take","commandType":"validate-stock-take","mode":"read","operation":"Validate","summary":"Validate stock take without 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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-take/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.005.002.create-stock-take","commandType":"create-stock-take","mode":"write","operation":"Create","summary":"Create stock take.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-take/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.006.003.update-stock-take","commandType":"update-stock-take","mode":"write","operation":"Edit","summary":"Edit stock take header fields and detail lines.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-take/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.007.004.void-stock-take","commandType":"void-stock-take","mode":"write","operation":"Void","summary":"Void/cancel stock take.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"void-stock-take-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-take","payload":{"docNo":"STK-000001","reason":"void/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/stock-take/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK CancelDocument."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.008.005.delete-stock-take","commandType":"delete-stock-take","mode":"write","operation":"Delete","summary":"Delete stock take.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"delete-stock-take-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-take","payload":{"docNo":"STK-000001","reason":"remove/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/stock-take/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.000.000.list-stock-write-offs","commandType":"list-stock-write-offs","mode":"read","operation":"Read","summary":"List stock write-off records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-write-offs-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-write-offs","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock-write-off/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.001.000.read-stock-write-off-lines","commandType":"read-stock-write-off-lines","mode":"read","operation":"Read","summary":"Read stock write-off detail lines only.","payloadSchema":{"itemCode":"optional","docNo":"optional","location":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-stock-write-off-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-write-off-lines","payload":{"itemCode":"ITEM001","limit":50}},"groupedEndpoint":"POST /v1/stock-module/stock-write-off/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.002.000.get-stock-write-off","commandType":"get-stock-write-off","mode":"read","operation":"Read","summary":"Get one stock write-off by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-stock-write-off-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-write-off","payload":{"docNo":"SWO-000001"}},"groupedEndpoint":"POST /v1/stock-module/stock-write-off/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.004.001.validate-stock-write-off","commandType":"validate-stock-write-off","mode":"read","operation":"Validate","summary":"Validate stock write-off without 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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-write-off/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.005.002.create-stock-write-off","commandType":"create-stock-write-off","mode":"write","operation":"Create","summary":"Create stock write-off.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-write-off/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.006.003.update-stock-write-off","commandType":"update-stock-write-off","mode":"write","operation":"Edit","summary":"Edit stock write-off header fields and detail lines.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/stock-write-off/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.007.004.void-stock-write-off","commandType":"void-stock-write-off","mode":"write","operation":"Void","summary":"Void/cancel stock write-off.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"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"}},"groupedEndpoint":"POST /v1/stock-module/stock-write-off/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK CancelDocument."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.008.005.delete-stock-write-off","commandType":"delete-stock-write-off","mode":"write","operation":"Delete","summary":"Delete stock write-off.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"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"}},"groupedEndpoint":"POST /v1/stock-module/stock-write-off/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.000.000.list-stock-uom-conversions","commandType":"list-stock-uom-conversions","mode":"read","operation":"Read","summary":"List stock UOM conversion records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-uom-conversions-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-uom-conversions","payload":{}},"groupedEndpoint":"POST /v1/stock-module/uom-conversion/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.001.000.read-stock-uom-conversion-lines","commandType":"read-stock-uom-conversion-lines","mode":"read","operation":"Read","summary":"Read stock UOM conversion detail lines only.","payloadSchema":{"itemCode":"optional","docNo":"optional","dateFrom":"YYYY-MM-DD optional","dateTo":"YYYY-MM-DD optional","limit":"optional"},"exampleRequest":{"commandId":"read-stock-uom-conversion-lines-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-stock-uom-conversion-lines","payload":{"itemCode":"ITEM001","limit":50}},"groupedEndpoint":"POST /v1/stock-module/uom-conversion/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.002.000.get-stock-uom-conversion","commandType":"get-stock-uom-conversion","mode":"read","operation":"Read","summary":"Get one stock UOM conversion by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-stock-uom-conversion-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-uom-conversion","payload":{"docNo":"UC-000001"}},"groupedEndpoint":"POST /v1/stock-module/uom-conversion/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.004.001.validate-stock-uom-conversion","commandType":"validate-stock-uom-conversion","mode":"read","operation":"Validate","summary":"Validate stock UOM conversion without 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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/uom-conversion/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.005.002.create-stock-uom-conversion","commandType":"create-stock-uom-conversion","mode":"write","operation":"Create","summary":"Create stock UOM conversion.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/uom-conversion/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.006.003.update-stock-uom-conversion","commandType":"update-stock-uom-conversion","mode":"write","operation":"Edit","summary":"Edit stock UOM conversion header fields and detail lines.","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"},"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"}}},"groupedEndpoint":"POST /v1/stock-module/uom-conversion/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.007.004.void-stock-uom-conversion","commandType":"void-stock-uom-conversion","mode":"write","operation":"Void","summary":"Void/cancel stock UOM conversion.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"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"}},"groupedEndpoint":"POST /v1/stock-module/uom-conversion/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK CancelDocument."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.008.005.delete-stock-uom-conversion","commandType":"delete-stock-uom-conversion","mode":"write","operation":"Delete","summary":"Delete stock UOM conversion.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"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"}},"groupedEndpoint":"POST /v1/stock-module/uom-conversion/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.000.000.list-item-packages","commandType":"list-item-packages","mode":"read","operation":"Read","summary":"List item package records.","payloadSchema":{},"exampleRequest":{"commandId":"list-item-packages-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-item-packages","payload":{}},"groupedEndpoint":"POST /v1/stock-module/item-package/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.002.000.get-item-package","commandType":"get-item-package","mode":"read","operation":"Read","summary":"Get one item package by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-item-package-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-item-package","payload":{"docNo":"PKG-API"}},"groupedEndpoint":"POST /v1/stock-module/item-package/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.004.001.validate-item-package","commandType":"validate-item-package","mode":"read","operation":"Validate","summary":"Validate item package without saving.","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"},"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"}},"groupedEndpoint":"POST /v1/stock-module/item-package/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Validation only; does not save. Full human payload reference for Item Package. Component item codes and UOM must exist in AutoCount."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.005.002.create-item-package","commandType":"create-item-package","mode":"write","operation":"Create","summary":"Create item package definition.","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"},"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"}},"groupedEndpoint":"POST /v1/stock-module/item-package/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Creates item package through AutoCount SDK. Full human payload reference for Item Package. Component item codes and UOM must exist in AutoCount."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.006.003.update-item-package","commandType":"update-item-package","mode":"write","operation":"Edit","summary":"Guarded item package edit request.","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"},"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"}},"groupedEndpoint":"POST /v1/stock-module/item-package/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.007.004.void-item-package","commandType":"void-item-package","mode":"write","operation":"Void","summary":"Guarded item package void request.","payloadSchema":{"packageCode":"required","reason":"required"},"exampleRequest":{"commandId":"void-item-package-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-item-package","payload":{"packageCode":"PKG-API","reason":"void package"}},"groupedEndpoint":"POST /v1/stock-module/item-package/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Master definitions do not have a proven safe void path; request is guarded."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.008.005.delete-item-package","commandType":"delete-item-package","mode":"write","operation":"Delete","summary":"Guarded item package delete request.","payloadSchema":{"packageCode":"required","reason":"required"},"exampleRequest":{"commandId":"delete-item-package-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-item-package","payload":{"packageCode":"PKG-API","reason":"remove package"}},"groupedEndpoint":"POST /v1/stock-module/item-package/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Deletion remains guarded for master definitions."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.000.000.list-bom-items","commandType":"list-bom-items","mode":"read","operation":"Read","summary":"List item BOM records.","payloadSchema":{},"exampleRequest":{"commandId":"list-bom-items-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-bom-items","payload":{}},"groupedEndpoint":"POST /v1/stock-module/bom/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.002.000.get-item-bom","commandType":"get-item-bom","mode":"read","operation":"Read","summary":"Get one item BOM by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-item-bom-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-item-bom","payload":{"docNo":"BOM-API"}},"groupedEndpoint":"POST /v1/stock-module/bom/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.004.001.validate-item-bom","commandType":"validate-item-bom","mode":"read","operation":"Validate","summary":"Validate item BOM without saving.","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"},"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"}},"groupedEndpoint":"POST /v1/stock-module/bom/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.005.002.create-item-bom","commandType":"create-item-bom","mode":"write","operation":"Create","summary":"Create item BOM definition.","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"},"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"}},"groupedEndpoint":"POST /v1/stock-module/bom/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.006.003.update-item-bom","commandType":"update-item-bom","mode":"write","operation":"Edit","summary":"Update item BOM definition.","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"},"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"}},"groupedEndpoint":"POST /v1/stock-module/bom/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.007.004.void-item-bom","commandType":"void-item-bom","mode":"write","operation":"Void","summary":"Guarded item BOM void request.","payloadSchema":{"itemCode":"required finished item","reason":"required"},"exampleRequest":{"commandId":"void-item-bom-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-item-bom","payload":{"itemCode":"FINISHED-API","reason":"void BOM"}},"groupedEndpoint":"POST /v1/stock-module/bom/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Master definitions do not have a proven safe void path; request is guarded."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.008.005.delete-item-bom","commandType":"delete-item-bom","mode":"write","operation":"Delete","summary":"Guarded item BOM delete request.","payloadSchema":{"itemCode":"required finished item","reason":"required"},"exampleRequest":{"commandId":"delete-item-bom-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-item-bom","payload":{"itemCode":"FINISHED-API","reason":"remove BOM"}},"groupedEndpoint":"POST /v1/stock-module/bom/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Deletion remains guarded for master definitions."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.000.000.list-stock-assemblies","commandType":"list-stock-assemblies","mode":"read","operation":"Read","summary":"List stock assembly records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-assemblies-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-assemblies","payload":{}},"groupedEndpoint":"POST /v1/stock-module/stock/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.000.000.list-stock-assembly-orders","commandType":"list-stock-assembly-orders","mode":"read","operation":"Read","summary":"List stock assembly order records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-assembly-orders-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-assembly-orders","payload":{}},"groupedEndpoint":"POST /v1/stock-module/assembly-order/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.000.000.list-stock-disassemblies","commandType":"list-stock-disassemblies","mode":"read","operation":"Read","summary":"List stock disassembly records.","payloadSchema":{},"exampleRequest":{"commandId":"list-stock-disassemblies-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-stock-disassemblies","payload":{}},"groupedEndpoint":"POST /v1/stock-module/disassembly/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.002.000.get-stock-assembly","commandType":"get-stock-assembly","mode":"read","operation":"Read","summary":"Get one stock assembly by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-stock-assembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-assembly","payload":{"docNo":"ASM-000001"}},"groupedEndpoint":"POST /v1/stock-module/assembly/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.002.000.get-stock-assembly-order","commandType":"get-stock-assembly-order","mode":"read","operation":"Read","summary":"Get one stock assembly order by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-stock-assembly-order-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-assembly-order","payload":{"docNo":"ASO-000001"}},"groupedEndpoint":"POST /v1/stock-module/assembly-order/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.002.000.get-stock-disassembly","commandType":"get-stock-disassembly","mode":"read","operation":"Read","summary":"Get one stock disassembly by document/code.","payloadSchema":{"docNo":"required document number or code"},"exampleRequest":{"commandId":"get-stock-disassembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-stock-disassembly","payload":{"docNo":"DSA-000001"}},"groupedEndpoint":"POST /v1/stock-module/disassembly/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.004.001.validate-stock-assembly","commandType":"validate-stock-assembly","mode":"read","operation":"Validate","summary":"Validate stock assembly without saving.","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"},"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"}},"groupedEndpoint":"POST /v1/stock-module/assembly/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.004.001.validate-stock-assembly-order","commandType":"validate-stock-assembly-order","mode":"read","operation":"Validate","summary":"Validate stock assembly order without saving.","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"},"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"}},"groupedEndpoint":"POST /v1/stock-module/assembly-order/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.004.001.validate-stock-disassembly","commandType":"validate-stock-disassembly","mode":"read","operation":"Validate","summary":"Validate stock disassembly without saving.","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"},"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"}},"groupedEndpoint":"POST /v1/stock-module/disassembly/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.005.002.create-stock-assembly","commandType":"create-stock-assembly","mode":"write","operation":"Create","summary":"Create stock assembly.","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"},"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"}},"groupedEndpoint":"POST /v1/stock-module/assembly/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.005.002.create-stock-assembly-order","commandType":"create-stock-assembly-order","mode":"write","operation":"Create","summary":"Create stock assembly order.","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"},"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"}},"groupedEndpoint":"POST /v1/stock-module/assembly-order/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.005.002.create-stock-disassembly","commandType":"create-stock-disassembly","mode":"write","operation":"Create","summary":"Create stock disassembly.","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"},"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"}},"groupedEndpoint":"POST /v1/stock-module/disassembly/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.006.003.update-stock-assembly","commandType":"update-stock-assembly","mode":"write","operation":"Edit","summary":"Edit stock assembly header fields and detail lines.","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"},"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}},"groupedEndpoint":"POST /v1/stock-module/assembly/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.006.003.update-stock-assembly-order","commandType":"update-stock-assembly-order","mode":"write","operation":"Edit","summary":"Edit stock assembly order header fields and detail lines.","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"},"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}},"groupedEndpoint":"POST /v1/stock-module/assembly-order/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.006.003.update-stock-disassembly","commandType":"update-stock-disassembly","mode":"write","operation":"Edit","summary":"Edit stock disassembly header fields and detail lines.","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"},"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}},"groupedEndpoint":"POST /v1/stock-module/disassembly/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.007.004.void-stock-assembly","commandType":"void-stock-assembly","mode":"write","operation":"Void","summary":"Void/cancel stock assembly.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"void-stock-assembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-assembly","payload":{"docNo":"ASM-000001","reason":"void/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/assembly/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK CancelDocument."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.007.004.void-stock-assembly-order","commandType":"void-stock-assembly-order","mode":"write","operation":"Void","summary":"Void/cancel stock assembly order.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"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"}},"groupedEndpoint":"POST /v1/stock-module/assembly-order/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK CancelDocument."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.007.004.void-stock-disassembly","commandType":"void-stock-disassembly","mode":"write","operation":"Void","summary":"Void/cancel stock disassembly.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"void-stock-disassembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-stock-disassembly","payload":{"docNo":"DSA-000001","reason":"void/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/disassembly/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK CancelDocument."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.008.005.delete-stock-assembly","commandType":"delete-stock-assembly","mode":"write","operation":"Delete","summary":"Delete stock assembly.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"delete-stock-assembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-assembly","payload":{"docNo":"ASM-000001","reason":"remove/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/assembly/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.008.005.delete-stock-assembly-order","commandType":"delete-stock-assembly-order","mode":"write","operation":"Delete","summary":"Delete stock assembly order.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"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"}},"groupedEndpoint":"POST /v1/stock-module/assembly-order/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history."},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.008.005.delete-stock-disassembly","commandType":"delete-stock-disassembly","mode":"write","operation":"Delete","summary":"Delete stock disassembly.","payloadSchema":{"docNo":"required document number or code","reason":"optional"},"exampleRequest":{"commandId":"delete-stock-disassembly-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-stock-disassembly","payload":{"docNo":"DSA-000001","reason":"remove/correct stock document"}},"groupedEndpoint":"POST /v1/stock-module/disassembly/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount SDK Delete. Use carefully because stock transactions affect costing and audit history."},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.001.000.read-chart-accounts","commandType":"read-chart-accounts","mode":"read","operation":"Read","summary":"List GL chart of accounts.","payloadSchema":{},"exampleRequest":{"commandId":"read-chart-accounts-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-chart-accounts","payload":{}},"groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.001.000.read-gl-account-balance","commandType":"read-gl-account-balance","mode":"read","operation":"Read","summary":"Read one GL account balance.","payloadSchema":{"accNo":"required","fromDate":"YYYY-MM-DD required","toDate":"YYYY-MM-DD required"},"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"}},"groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.002.000.get-gl-account","commandType":"get-gl-account","mode":"read","operation":"Read","summary":"Get one GL Account Maintenance account.","payloadSchema":{"accNo":"required account code"},"exampleRequest":{"commandId":"get-gl-account-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-gl-account","payload":{"accNo":"610-0000"}},"groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Reads from AutoCount AccountInquiry chart data."},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.005.002.create-fixed-asset-gl-accounts","commandType":"create-fixed-asset-gl-accounts","mode":"write","operation":"Create","summary":"Create the two GL accounts from AutoCount's Create New Fixed Asset Account screen.","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"}},"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"}}},"groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.005.002.create-gl-account","commandType":"create-gl-account","mode":"write","operation":"Create","summary":"Create a GL Account Maintenance account.","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"},"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"}},"groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.006.003.update-gl-account","commandType":"update-gl-account","mode":"write","operation":"Edit","summary":"Guarded GL account edit request.","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"},"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"}},"groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.007.004.void-gl-account","commandType":"void-gl-account","mode":"write","operation":"Void","summary":"Guarded GL account void request.","payloadSchema":{"accNo":"required account code","reason":"required"},"exampleRequest":{"commandId":"void-gl-account-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-gl-account","payload":{"accNo":"610-0000","reason":"deactivate account"}},"groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked; chart accounts may be linked to posted transactions."},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.008.005.delete-gl-account","commandType":"delete-gl-account","mode":"write","operation":"Delete","summary":"Guarded GL account delete request.","payloadSchema":{"accNo":"required account code","reason":"required"},"exampleRequest":{"commandId":"delete-gl-account-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-gl-account","payload":{"accNo":"610-0000","reason":"remove unused account"}},"groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked; chart accounts may be linked to posted transactions."},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.000.000.list-journal-entries","commandType":"list-journal-entries","mode":"read","operation":"Read","summary":"List journal entries.","payloadSchema":{"status":"optional AutoCount document status","columns":"optional comma-separated master columns"},"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"}},"groupedEndpoint":"POST /v1/gl-module/journal-entry/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount JournalEntryCommand.InquireAllMaster."},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.002.000.get-journal-entry","commandType":"get-journal-entry","mode":"read","operation":"Read","summary":"Get one journal entry with detail lines.","payloadSchema":{"docNo":"required unless docKey is supplied","docKey":"optional numeric document key"},"exampleRequest":{"commandId":"get-journal-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-journal-entry","payload":{"docNo":"JV-000001"}},"groupedEndpoint":"POST /v1/gl-module/journal-entry/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount JournalEntryCommand.View."},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.004.001.validate-journal-entry","commandType":"validate-journal-entry","mode":"read","operation":"Validate","summary":"Validate a GL journal entry without saving. Supports the same multi-line payload as create-journal-entry.","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"},"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"}}},"groupedEndpoint":"POST /v1/gl-module/journal-entry/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Validation only. Total debit must equal total credit. Multiple lines are supported. Debit and credit totals must balance before AutoCount will save."},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.005.002.create-journal-entry","commandType":"create-journal-entry","mode":"write","operation":"Create","summary":"Create GL journal entry. Supports one or many debit/credit lines.","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"},"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"}}},"groupedEndpoint":"POST /v1/gl-module/journal-entry/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.006.003.update-journal-entry","commandType":"update-journal-entry","mode":"write","operation":"Edit","summary":"Update a journal entry header/simple fields and supported detail rows.","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"},"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"}]}},"groupedEndpoint":"POST /v1/gl-module/journal-entry/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.007.004.void-journal-entry","commandType":"void-journal-entry","mode":"write","operation":"Void","summary":"Cancel/void a journal entry.","payloadSchema":{"docNo":"required unless docKey is provided","docKey":"optional numeric document key","reason":"optional audit reason"},"exampleRequest":{"commandId":"void-journal-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"void-journal-entry","payload":{"docNo":"JV-000001","reason":"void/correct journal"}},"groupedEndpoint":"POST /v1/gl-module/journal-entry/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount JournalEntryCommand.CancelDocument."},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.008.005.delete-journal-entry","commandType":"delete-journal-entry","mode":"write","operation":"Delete","summary":"Hard delete a journal entry.","payloadSchema":{"docNo":"required unless docKey is provided","docKey":"optional numeric document key","reason":"optional audit reason"},"exampleRequest":{"commandId":"delete-journal-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"delete-journal-entry","payload":{"docNo":"JV-000001","reason":"delete incorrect journal"}},"groupedEndpoint":"POST /v1/gl-module/journal-entry/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount JournalEntryCommand.Delete. Use void-journal-entry when audit-trail cancellation is required."},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.000.000.list-gl-bank-cash-accounts","commandType":"list-gl-bank-cash-accounts","mode":"read","operation":"Read","summary":"List GL bank and cash accounts used by cash book.","payloadSchema":{},"exampleRequest":{"commandId":"list-gl-bank-cash-accounts-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-gl-bank-cash-accounts","payload":{}},"groupedEndpoint":"POST /v1/gl-module/gl-cash-book/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.000.000.list-gl-cash-book-documents","commandType":"list-gl-cash-book-documents","mode":"read","operation":"Read","summary":"List the G/L > Cash Book Entry document grid.","payloadSchema":{"status":"optional AutoCount document status","columns":"optional comma-separated master columns"},"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"}},"groupedEndpoint":"POST /v1/gl-module/cash-book-entry/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.000.000.list-gl-cash-book-entries","commandType":"list-gl-cash-book-entries","mode":"read","operation":"Read","summary":"List cash book report/inquiry rows grouped by bank/cash account.","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"},"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}},"groupedEndpoint":"POST /v1/gl-module/cash-book-report/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.002.000.get-gl-cash-book-entry","commandType":"get-gl-cash-book-entry","mode":"read","operation":"Read","summary":"Get one G/L Cash Book entry with detail and payment rows.","payloadSchema":{"docNo":"required unless docKey is supplied","docKey":"optional numeric document key"},"exampleRequest":{"commandId":"get-gl-cash-book-entry-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-gl-cash-book-entry","payload":{"docNo":"PV-000001"}},"groupedEndpoint":"POST /v1/gl-module/cash-book-entry/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CashBookCommand.View."},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.004.001.validate-gl-cash-book-payment","commandType":"validate-gl-cash-book-payment","mode":"read","operation":"Validate","summary":"Validate a G/L Cash Book payment voucher without saving.","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"},"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"}}},"groupedEndpoint":"POST /v1/gl-module/payment-voucher/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.004.001.validate-gl-cash-book-receipt","commandType":"validate-gl-cash-book-receipt","mode":"read","operation":"Validate","summary":"Validate a G/L Cash Book official receipt without saving.","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"},"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"}}},"groupedEndpoint":"POST /v1/gl-module/official-receipt/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.005.002.create-gl-cash-book-payment","commandType":"create-gl-cash-book-payment","mode":"write","operation":"Create","summary":"Create a G/L Cash Book payment voucher. Supports one or many account lines and payment rows.","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"},"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"}}},"groupedEndpoint":"POST /v1/gl-module/payment-voucher/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.005.002.create-gl-cash-book-receipt","commandType":"create-gl-cash-book-receipt","mode":"write","operation":"Create","summary":"Create a G/L Cash Book official receipt. Supports one or many account lines and payment rows.","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"},"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"}}},"groupedEndpoint":"POST /v1/gl-module/official-receipt/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.006.003.update-gl-cash-book-entry","commandType":"update-gl-cash-book-entry","mode":"write","operation":"Edit","summary":"Update G/L Cash Book header/simple fields.","payloadSchema":{"docNo":"required existing document number unless docKey is supplied","docKey":"optional existing document key","reason":"optional business reason for audit","docDate":"optional YYYY-MM-DD document date","description":"optional document description/narration","ref":"optional reference where the AutoCount document exposes it","note":"optional note where the AutoCount document exposes it","journalType":"optional journal type where the AutoCount document exposes it","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"},"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"}]}},"groupedEndpoint":"POST /v1/gl-module/cash-book-entry/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.007.004.void-gl-cash-book-entry","commandType":"void-gl-cash-book-entry","mode":"write","operation":"Void","summary":"Cancel/void a G/L Cash Book entry.","payloadSchema":{"docNo":"required unless docKey is provided","docKey":"optional numeric document key","reason":"optional audit reason"},"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"}},"groupedEndpoint":"POST /v1/gl-module/cash-book-entry/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CashBookCommand.CancelDocument."},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.008.005.delete-gl-cash-book-entry","commandType":"delete-gl-cash-book-entry","mode":"write","operation":"Delete","summary":"Hard delete a G/L Cash Book entry.","payloadSchema":{"docNo":"required unless docKey is provided","docKey":"optional numeric document key","reason":"optional audit reason"},"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"}},"groupedEndpoint":"POST /v1/gl-module/cash-book-entry/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount CashBookCommand.Delete. Use void-gl-cash-book-entry when audit-trail cancellation is required."},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.003.001.000.read-gl-cash-flow-accounts","commandType":"read-gl-cash-flow-accounts","mode":"read","operation":"Read","summary":"List GL accounts with cash-flow category metadata.","payloadSchema":{},"exampleRequest":{"commandId":"read-gl-cash-flow-accounts-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-gl-cash-flow-accounts","payload":{}},"groupedEndpoint":"POST /v1/gl-module/cash-flow-account/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.999.000.000.list-gl-cheques","commandType":"list-gl-cheques","mode":"read","operation":"Read","summary":"List issued or received cheque entries.","payloadSchema":{"fromDate":"YYYY-MM-DD optional","toDate":"YYYY-MM-DD optional","chequeOption":"issued | received","cancelled":"all | cancelled | uncancelled","showCashAccount":"boolean optional"},"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}},"groupedEndpoint":"POST /v1/gl-module/cheque/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.999.001.000.read-payment-methods","commandType":"read-payment-methods","mode":"read","operation":"Read","summary":"List payment methods used by AR/AP cashbook-style documents.","payloadSchema":{},"exampleRequest":{"commandId":"read-payment-methods-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-payment-methods","payload":{}},"groupedEndpoint":"POST /v1/gl-module/payment-method/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.000.000.list-gl-bank-reconciliation-uncleared","commandType":"list-gl-bank-reconciliation-uncleared","mode":"read","operation":"Read","summary":"List uncleared transactions for a bank/cash account.","payloadSchema":{"accNo":"required bank/cash account number","startDate":"optional YYYY-MM-DD"},"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"}},"groupedEndpoint":"POST /v1/gl-module/uncleared-transactions/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.GL.BankRecon.BankReconCommand.InquireUnclearedData."},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.000.000.list-gl-bank-reconciliations","commandType":"list-gl-bank-reconciliations","mode":"read","operation":"Read","summary":"List bank reconciliation records.","payloadSchema":{},"exampleRequest":{"commandId":"list-gl-bank-reconciliations-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-gl-bank-reconciliations","payload":{}},"groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.GL.BankRecon.BankReconCommand.InquireAllMaster."},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.002.000.get-gl-bank-reconciliation","commandType":"get-gl-bank-reconciliation","mode":"read","operation":"Read","summary":"Get one bank reconciliation with master/detail/reconciliation rows.","payloadSchema":{"accNo":"required bank/cash account number","reconDate":"required YYYY-MM-DD bank statement/reconciliation date"},"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"}},"groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.GL.BankRecon.BankReconCommand.View."},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.004.001.validate-gl-bank-reconciliation","commandType":"validate-gl-bank-reconciliation","mode":"read","operation":"Validate","summary":"Create a bank reconciliation draft without saving. If selectedBankTransKeys or clearedRows are supplied, the returned draft shows which rows would be ticked.","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"},"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"}},"groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.005.002.create-gl-bank-reconciliation","commandType":"create-gl-bank-reconciliation","mode":"write","operation":"Create","summary":"Create and save a bank reconciliation.","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"},"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"}},"groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.006.003.update-gl-bank-reconciliation","commandType":"update-gl-bank-reconciliation","mode":"write","operation":"Edit","summary":"Edit and re-save an existing bank reconciliation.","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"},"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"}},"groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.007.004.void-gl-bank-reconciliation","commandType":"void-gl-bank-reconciliation","mode":"write","operation":"Void","summary":"Guarded bank reconciliation void request.","payloadSchema":{"accNo":"required","reconDate":"required YYYY-MM-DD","reason":"required"},"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"}},"groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked; no safe Bank Recon void path has been proven."},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.008.005.delete-gl-bank-reconciliation","commandType":"delete-gl-bank-reconciliation","mode":"write","operation":"Delete","summary":"Delete a bank reconciliation.","payloadSchema":{"accNo":"required","reconDate":"required YYYY-MM-DD","confirmDelete":"required true"},"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}},"groupedEndpoint":"POST /v1/gl-module/bank-reconciliation/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount BankReconCommand.Delete. confirmDelete=true is required."},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.000.000.007.list-autocount-report-templates","commandType":"list-autocount-report-templates","mode":"read","operation":"PDF/Report","summary":"List AutoCount report templates available in this account book.","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}},"groupedEndpoint":"POST /v1/reports/reports/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.001.010.007.sales-document-autocount-pdf","commandType":"sales-document-autocount-pdf","mode":"report","operation":"PDF/Report","summary":"Generate an AutoCount-looking sales document PDF/report.","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"},"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"}},"groupedEndpoint":"POST /v1/sales-module/reports/pdf","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.001.010.007.sales-invoice-autocount-pdf","commandType":"sales-invoice-autocount-pdf","mode":"report","operation":"PDF/Report","summary":"Legacy sales invoice PDF/export command. Prefer sales-document-autocount-pdf for new integrations.","payloadSchema":{"docNo":"required sales invoice document number","out":"optional local connector output path"},"exampleRequest":{"commandId":"sales-invoice-autocount-pdf-001","connectorId":"customer-main","companyId":"macsofttest","type":"sales-invoice-autocount-pdf","payload":{"docNo":"IV-000001"}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/pdf","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Compatibility command kept for older integrations."},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.001.010.007.sales-report-html","commandType":"sales-report-html","mode":"report","operation":"PDF/Report","summary":"Generate readable sales report HTML.","payloadSchema":{"document":"invoice | cash-sale | sales-order | quotation","out":"optional local output path"},"exampleRequest":{"commandId":"sales-report-html-001","connectorId":"customer-main","companyId":"macsofttest","type":"sales-report-html","payload":{"document":"invoice"}},"groupedEndpoint":"POST /v1/sales-module/reports/report","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.002.010.007.purchase-document-autocount-pdf","commandType":"purchase-document-autocount-pdf","mode":"report","operation":"PDF/Report","summary":"Generate an AutoCount-looking purchase document PDF/report.","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"},"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"}},"groupedEndpoint":"POST /v1/purchase-module/reports/pdf","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount purchase report templates for PO, GRN, purchase invoice, purchase return, and cash purchase."},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.004.010.007.stock-document-autocount-pdf","commandType":"stock-document-autocount-pdf","mode":"report","operation":"PDF/Report","summary":"Generate an AutoCount-looking stock document PDF/report.","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"}},"groupedEndpoint":"POST /v1/stock-module/reports/pdf","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount stock and manufacturing stock report templates."},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.006.010.007.arap-statement-autocount-pdf","commandType":"arap-statement-autocount-pdf","mode":"report","operation":"PDF/Report","summary":"Generate official AutoCount debtor or creditor statement PDF.","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"}},"groupedEndpoint":"POST /v1/arap-module/reports/pdf","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.006.010.007.creditor-statement-report","commandType":"creditor-statement-report","mode":"read","operation":"PDF/Report","summary":"Read AutoCount creditor statement data.","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}},"groupedEndpoint":"POST /v1/ap-module/creditor-supplier/report","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.006.010.007.debtor-statement-report","commandType":"debtor-statement-report","mode":"read","operation":"PDF/Report","summary":"Read AutoCount debtor statement data.","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}},"groupedEndpoint":"POST /v1/ar-module/debtor-customer/report","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.006.010.007.statement-report-html","commandType":"statement-report-html","mode":"report","operation":"PDF/Report","summary":"Export a human-readable debtor or creditor statement HTML report.","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}},"groupedEndpoint":"POST /v1/reports/reports/report","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.007.010.007.arap-document-autocount-pdf","commandType":"arap-document-autocount-pdf","mode":"report","operation":"PDF/Report","summary":"Generate AutoCount PDFs for AR/AP invoice, payment, deposit, refund, credit note, debit note, and contra.","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"}},"groupedEndpoint":"POST /v1/arap-module/reports/pdf","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount report templates. Invoice/payment/deposit/refund use single-document listing data sources; credit/debit note and contra use document data sources."},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.007.010.007.gl-document-autocount-pdf","commandType":"gl-document-autocount-pdf","mode":"report","operation":"PDF/Report","summary":"Generate AutoCount-looking GL cash book voucher and journal voucher PDFs.","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"}},"groupedEndpoint":"POST /v1/gl-module/reports/pdf","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"payment-voucher, official-receipt, and journal-entry are supported with AutoCount report templates."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.000.005.002.create-debtor","commandType":"create-debtor","mode":"write","operation":"Create","summary":"Create a debtor/customer.","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}]}},"groupedEndpoint":"POST /v1/ar-module/debtor-customer/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.000.006.003.update-debtor","commandType":"update-debtor","mode":"write","operation":"Edit","summary":"Update a debtor/customer.","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}]}},"groupedEndpoint":"POST /v1/ar-module/debtor-customer/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.000.007.004.void-debtor","commandType":"void-debtor","mode":"write","operation":"Void","summary":"Guarded void request for a debtor/customer.","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"}},"groupedEndpoint":"POST /v1/ar-module/debtor-customer/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Prefer inactive/discontinued flags because master records may already be linked to transactions."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.000.008.005.delete-debtor","commandType":"delete-debtor","mode":"write","operation":"Delete","summary":"Guarded delete request for a debtor/customer.","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"}},"groupedEndpoint":"POST /v1/ar-module/debtor-customer/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety and linked-transaction checks are proven. Prefer inactive/discontinued flags."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.001.005.002.create-creditor","commandType":"create-creditor","mode":"write","operation":"Create","summary":"Create a creditor/supplier.","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}]}},"groupedEndpoint":"POST /v1/ap-module/creditor-supplier/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.001.006.003.update-creditor","commandType":"update-creditor","mode":"write","operation":"Edit","summary":"Update a creditor/supplier.","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}]}},"groupedEndpoint":"POST /v1/ap-module/creditor-supplier/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.001.007.004.void-creditor","commandType":"void-creditor","mode":"write","operation":"Void","summary":"Guarded void request for a creditor/supplier.","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"}},"groupedEndpoint":"POST /v1/ap-module/creditor-supplier/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Prefer inactive/discontinued flags because master records may already be linked to transactions."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.001.008.005.delete-creditor","commandType":"delete-creditor","mode":"write","operation":"Delete","summary":"Guarded delete request for a creditor/supplier.","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"}},"groupedEndpoint":"POST /v1/ap-module/creditor-supplier/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety and linked-transaction checks are proven. Prefer inactive/discontinued flags."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.002.005.002.create-item","commandType":"create-item","mode":"write","operation":"Create","summary":"Create a stock item. Supports proven UOM, sub-code, price, opening balance, BOM, and replacement child rows.","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"}},"groupedEndpoint":"POST /v1/stock-module/stock-item/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.002.006.003.update-item","commandType":"update-item","mode":"write","operation":"Edit","summary":"Update a stock item.","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"}},"groupedEndpoint":"POST /v1/stock-module/stock-item/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.002.007.004.void-item","commandType":"void-item","mode":"write","operation":"Void","summary":"Guarded void request for a stock item.","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"}},"groupedEndpoint":"POST /v1/stock-module/stock-item/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Prefer inactive/discontinued flags because master records may already be linked to transactions."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.002.008.005.delete-item","commandType":"delete-item","mode":"write","operation":"Delete","summary":"Guarded delete request for a stock item.","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"}},"groupedEndpoint":"POST /v1/stock-module/stock-item/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety and linked-transaction checks are proven. Prefer inactive/discontinued flags."},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.011.001.000.read-default-accounts","commandType":"read-default-accounts","mode":"read","operation":"Read","summary":"Read default posting accounts used by validate/create commands.","payloadSchema":{},"exampleRequest":{"commandId":"read-default-accounts-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-default-accounts","payload":{}},"groupedEndpoint":"POST /v1/master-data/default-accounts/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.000.012.009.einvoice.setting.get","commandType":"einvoice.setting.get","mode":"read","operation":"e-Invoice","summary":"Read local AutoCount e-Invoice settings summary.","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}},"groupedEndpoint":"POST /v1/e-invoice-module/e-invoice-setting/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Full human payload reference for einvoice.setting.get. Unsupported filters are ignored safely by read-only connector handlers."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.001.012.009.einvoice.status.list","commandType":"einvoice.status.list","mode":"read","operation":"e-Invoice","summary":"List local AutoCount e-Invoice submission status.","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}},"groupedEndpoint":"POST /v1/e-invoice-module/submission-status/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Full human payload reference for einvoice.status.list. Unsupported filters are ignored safely by read-only connector handlers."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.001.012.009.einvoice.status.refresh","commandType":"einvoice.status.refresh","mode":"write","operation":"e-Invoice","summary":"Guarded MyInvois/AIP status refresh request.","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}}},"groupedEndpoint":"POST /v1/e-invoice-module/submission-status/refresh","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.002.005.002.einvoice.consolidated.create-draft","commandType":"einvoice.consolidated.create-draft","mode":"write","operation":"Create","summary":"Guarded consolidated e-Invoice draft generation.","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}}},"groupedEndpoint":"POST /v1/e-invoice-module/consolidated-e-invoice/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.002.012.009.einvoice.consolidated.list","commandType":"einvoice.consolidated.list","mode":"read","operation":"e-Invoice","summary":"List consolidated e-Invoice inquiry rows from AutoCount 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}},"groupedEndpoint":"POST /v1/e-invoice-module/consolidated-e-invoice/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Full human payload reference for einvoice.consolidated.list. Unsupported filters are ignored safely by read-only connector handlers."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.003.005.002.einvoice.self-billed.create-draft","commandType":"einvoice.self-billed.create-draft","mode":"write","operation":"Create","summary":"Guarded self-billed e-Invoice draft generation.","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}}},"groupedEndpoint":"POST /v1/e-invoice-module/self-billed/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.003.012.009.einvoice.self-billed.list","commandType":"einvoice.self-billed.list","mode":"read","operation":"e-Invoice","summary":"List local self-billed e-Invoice records when the account book has the table.","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}},"groupedEndpoint":"POST /v1/e-invoice-module/self-billed/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Full human payload reference for einvoice.self-billed.list. Unsupported filters are ignored safely by read-only connector handlers."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.004.005.002.einvoice.supplier-item-mapping.create","commandType":"einvoice.supplier-item-mapping.create","mode":"write","operation":"Create","summary":"Guarded supplier item mapping create request.","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}}},"groupedEndpoint":"POST /v1/stock-module/supplier-item-mapping/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.004.012.009.einvoice.supplier-item-mapping.list","commandType":"einvoice.supplier-item-mapping.list","mode":"read","operation":"e-Invoice","summary":"List local supplier item mapping records when the account book has the table.","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}},"groupedEndpoint":"POST /v1/stock-module/supplier-item-mapping/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Full human payload reference for einvoice.supplier-item-mapping.list. Unsupported filters are ignored safely by read-only connector handlers."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.004.012.009.einvoice.supplier-item-mapping.update","commandType":"einvoice.supplier-item-mapping.update","mode":"write","operation":"e-Invoice","summary":"Guarded supplier item mapping update request.","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}}},"groupedEndpoint":"POST /v1/stock-module/supplier-item-mapping/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.005.007.004.einvoice.cancel","commandType":"einvoice.cancel","mode":"write","operation":"Void","summary":"Guarded e-Invoice cancel request.","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}}},"groupedEndpoint":"POST /v1/e-invoice-module/e-invoice/cancel","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.005.012.009.einvoice.reject-request.sync","commandType":"einvoice.reject-request.sync","mode":"write","operation":"e-Invoice","summary":"Guarded sync for MyInvois reject requests.","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}}},"groupedEndpoint":"POST /v1/e-invoice-module/e-invoice/einvoice-reject-request-sync","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.005.012.009.einvoice.submit","commandType":"einvoice.submit","mode":"write","operation":"e-Invoice","summary":"Guarded e-Invoice submit request.","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}}},"groupedEndpoint":"POST /v1/e-invoice-module/e-invoice/submit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.005.012.009.einvoice.supplier-import.apply","commandType":"einvoice.supplier-import.apply","mode":"write","operation":"e-Invoice","summary":"Guarded supplier e-Invoice import into AutoCount.","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}}},"groupedEndpoint":"POST /v1/e-invoice-module/supplier-import/apply","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.005.012.009.einvoice.supplier-import.preview","commandType":"einvoice.supplier-import.preview","mode":"write","operation":"e-Invoice","summary":"Guarded supplier e-Invoice import preview.","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}}},"groupedEndpoint":"POST /v1/e-invoice-module/supplier-import/preview","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create","commandType":"bulk-create","mode":"write","operation":"Bulk","summary":"Generic bulk create wrapper. Use when one request needs to create many documents or master records.","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}]}]}},"groupedEndpoint":"POST /v1/bulk-module/bulk/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"The local connector processes records on the customer PC in one leased command. Each row gets its own idempotency/audit result."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-advanced-quotations","commandType":"bulk-create-advanced-quotations","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-advanced-quotation.","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"},"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"}},"groupedEndpoint":"POST /v1/bulk-module/advanced-quotation/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ap-credit-notes","commandType":"bulk-create-ap-credit-notes","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-ap-credit-note.","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"}},"groupedEndpoint":"POST /v1/ap-module/ap-credit-note/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ap-debit-notes","commandType":"bulk-create-ap-debit-notes","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-ap-debit-note.","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"}},"groupedEndpoint":"POST /v1/ap-module/ap-debit-note/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ap-invoices","commandType":"bulk-create-ap-invoices","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-ap-invoice.","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"}},"groupedEndpoint":"POST /v1/ap-module/ap-invoice/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ap-payments","commandType":"bulk-create-ap-payments","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-ap-payment.","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"}},"groupedEndpoint":"POST /v1/ap-module/ap-payment/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ap-refunds","commandType":"bulk-create-ap-refunds","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-ap-refund.","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"}},"groupedEndpoint":"POST /v1/ap-module/ap-refund/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ar-credit-notes","commandType":"bulk-create-ar-credit-notes","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-ar-credit-note.","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"}},"groupedEndpoint":"POST /v1/ar-module/ar-credit-note/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ar-debit-notes","commandType":"bulk-create-ar-debit-notes","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-ar-debit-note.","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"}},"groupedEndpoint":"POST /v1/ar-module/ar-debit-note/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ar-invoices","commandType":"bulk-create-ar-invoices","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-ar-invoice.","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"}},"groupedEndpoint":"POST /v1/ar-module/ar-invoice/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ar-payments","commandType":"bulk-create-ar-payments","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-ar-payment.","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"}},"groupedEndpoint":"POST /v1/ar-module/ar-payment/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ar-refunds","commandType":"bulk-create-ar-refunds","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-ar-refund.","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"}},"groupedEndpoint":"POST /v1/ar-module/ar-refund/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-arap-contras","commandType":"bulk-create-arap-contras","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-arap-contra.","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"}},"groupedEndpoint":"POST /v1/arap-module/arap-contra/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-cash-purchases","commandType":"bulk-create-cash-purchases","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-cash-purchase.","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"},"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"}},"groupedEndpoint":"POST /v1/bulk-module/cash-purchase/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-cash-sales","commandType":"bulk-create-cash-sales","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-cash-sale.","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"},"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"}},"groupedEndpoint":"POST /v1/bulk-module/cash-sale/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-creditors","commandType":"bulk-create-creditors","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-creditor.","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"}},"groupedEndpoint":"POST /v1/ap-module/creditor-supplier/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-debtors","commandType":"bulk-create-debtors","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-debtor.","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"}},"groupedEndpoint":"POST /v1/ar-module/debtor-customer/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-delivery-orders","commandType":"bulk-create-delivery-orders","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-delivery-order.","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"},"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"}},"groupedEndpoint":"POST /v1/bulk-module/delivery-order/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-fixed-asset-gl-accounts","commandType":"bulk-create-fixed-asset-gl-accounts","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-fixed-asset-gl-accounts.","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"}},"groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-addresses","commandType":"bulk-create-general-addresses","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-address.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/address/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-areas","commandType":"bulk-create-general-areas","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-area.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/area/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-cn-types","commandType":"bulk-create-general-cn-types","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-cn-type.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/cn-type/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-creditor-types","commandType":"bulk-create-general-creditor-types","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-creditor-type.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/creditor-type/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-currencies","commandType":"bulk-create-general-currencies","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-currency.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/currency/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-debtor-types","commandType":"bulk-create-general-debtor-types","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-debtor-type.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/debtor-type/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-dn-types","commandType":"bulk-create-general-dn-types","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-dn-type.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/dn-type/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-payment-methods","commandType":"bulk-create-general-payment-methods","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-payment-method.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/payment-method/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-price-categories","commandType":"bulk-create-general-price-categories","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-price-category.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/price-category/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-projects","commandType":"bulk-create-general-projects","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-project.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/project/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-purchase-agents","commandType":"bulk-create-general-purchase-agents","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-purchase-agent.","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"},"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"}},"groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-sales-agents","commandType":"bulk-create-general-sales-agents","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-sales-agent.","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"},"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"}},"groupedEndpoint":"POST /v1/general-maintenance/sales-agent/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-shipping-methods","commandType":"bulk-create-general-shipping-methods","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-general-shipping-method.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/shipping-method/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-gl-accounts","commandType":"bulk-create-gl-accounts","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-gl-account.","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"}},"groupedEndpoint":"POST /v1/gl-module/chart-of-accounts/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-gl-cash-book-payments","commandType":"bulk-create-gl-cash-book-payments","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-gl-cash-book-payment.","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"}},"groupedEndpoint":"POST /v1/gl-module/payment-voucher/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-gl-cash-book-receipts","commandType":"bulk-create-gl-cash-book-receipts","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-gl-cash-book-receipt.","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"}},"groupedEndpoint":"POST /v1/gl-module/official-receipt/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-goods-received-notes","commandType":"bulk-create-goods-received-notes","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-goods-received-note.","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"},"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"}},"groupedEndpoint":"POST /v1/purchase-module/goods-received-note/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-item-boms","commandType":"bulk-create-item-boms","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-item-bom.","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"}},"groupedEndpoint":"POST /v1/stock-module/bom/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-item-packages","commandType":"bulk-create-item-packages","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-item-package.","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"}},"groupedEndpoint":"POST /v1/stock-module/item-package/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-items","commandType":"bulk-create-items","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-item.","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"}},"groupedEndpoint":"POST /v1/stock-module/stock-item/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-journal-entries","commandType":"bulk-create-journal-entries","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-journal-entry.","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"}},"groupedEndpoint":"POST /v1/gl-module/journal-entry/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-purchase-invoices","commandType":"bulk-create-purchase-invoices","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-purchase-invoice.","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"},"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"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-invoice/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-purchase-orders","commandType":"bulk-create-purchase-orders","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-purchase-order.","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"},"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"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-order/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-purchase-returns","commandType":"bulk-create-purchase-returns","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-purchase-return.","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"},"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"}},"groupedEndpoint":"POST /v1/purchase-module/purchase-return/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-quotations","commandType":"bulk-create-quotations","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-quotation.","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"},"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"}},"groupedEndpoint":"POST /v1/bulk-module/quotation/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-sales-credit-notes","commandType":"bulk-create-sales-credit-notes","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-sales-credit-note.","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"},"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"}},"groupedEndpoint":"POST /v1/sales-module/sales-credit-note/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-sales-debit-notes","commandType":"bulk-create-sales-debit-notes","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-sales-debit-note.","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"},"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"}},"groupedEndpoint":"POST /v1/sales-module/sales-debit-note/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-sales-invoices","commandType":"bulk-create-sales-invoices","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-sales-invoice.","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"},"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"}},"groupedEndpoint":"POST /v1/sales-module/sales-invoice/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-sales-orders","commandType":"bulk-create-sales-orders","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-sales-order.","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"},"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"}},"groupedEndpoint":"POST /v1/sales-module/sales-order/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-adjustments","commandType":"bulk-create-stock-adjustments","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-stock-adjustment.","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"}},"groupedEndpoint":"POST /v1/stock-module/stock-adjustment/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-assemblies","commandType":"bulk-create-stock-assemblies","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-stock-assembly.","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"}},"groupedEndpoint":"POST /v1/stock-module/bulk/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-assembly-orders","commandType":"bulk-create-stock-assembly-orders","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-stock-assembly-order.","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"}},"groupedEndpoint":"POST /v1/stock-module/assembly-order/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-disassemblies","commandType":"bulk-create-stock-disassemblies","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-stock-disassembly.","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"}},"groupedEndpoint":"POST /v1/stock-module/disassembly/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-issues","commandType":"bulk-create-stock-issues","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-stock-issue.","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"}},"groupedEndpoint":"POST /v1/stock-module/stock-issue/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-receives","commandType":"bulk-create-stock-receives","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-stock-receive.","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"}},"groupedEndpoint":"POST /v1/stock-module/stock-receive/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-takes","commandType":"bulk-create-stock-takes","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-stock-take.","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"}},"groupedEndpoint":"POST /v1/stock-module/stock-take/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-transfers","commandType":"bulk-create-stock-transfers","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-stock-transfer.","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"}},"groupedEndpoint":"POST /v1/stock-module/stock-transfer/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-uom-conversions","commandType":"bulk-create-stock-uom-conversions","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-stock-uom-conversion.","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"}},"groupedEndpoint":"POST /v1/stock-module/uom-conversion/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-update-costs","commandType":"bulk-create-stock-update-costs","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-stock-update-cost.","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"}},"groupedEndpoint":"POST /v1/stock-module/stock-update-cost/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-write-offs","commandType":"bulk-create-stock-write-offs","mode":"write","operation":"Bulk","summary":"Bulk wrapper for create-stock-write-off.","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"}},"groupedEndpoint":"POST /v1/stock-module/stock-write-off/bulk-create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-gst-processors","commandType":"list-gst-processors","mode":"read","operation":"Read","summary":"List GST processors.","payloadSchema":{},"exampleRequest":{"commandId":"list-gst-processors-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-gst-processors","payload":{}},"groupedEndpoint":"POST /v1/tax/tax/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.MalaysiaGST.GSTProcessor.GSTProcessorCommand.LoadGSTProcessorTable."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-sst-processors","commandType":"list-sst-processors","mode":"read","operation":"Read","summary":"List SST processors.","payloadSchema":{},"exampleRequest":{"commandId":"list-sst-processors-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-sst-processors","payload":{}},"groupedEndpoint":"POST /v1/tax/tax/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.MalaysiaGST.SSTProcessor.SSTProcessorCommand.LoadSSTProcessorTable."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-tariff-codes","commandType":"list-tariff-codes","mode":"read","operation":"Read","summary":"List tariff codes.","payloadSchema":{},"exampleRequest":{"commandId":"list-tariff-codes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-tariff-codes","payload":{}},"groupedEndpoint":"POST /v1/tax/tax/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.GeneralMaint.Tariff.TariffCommand.LoadBrowseTable."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-tax-codes","commandType":"list-tax-codes","mode":"read","operation":"Read","summary":"Alias for list-tax-types; lists all AutoCount tax codes.","payloadSchema":{},"exampleRequest":{"commandId":"list-tax-codes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-tax-codes","payload":{}},"groupedEndpoint":"POST /v1/tax/tax/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cloud and local connector normalize this to list-tax-types before execution."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-tax-entities","commandType":"list-tax-entities","mode":"read","operation":"Read","summary":"List tax entities from the account book.","payloadSchema":{},"exampleRequest":{"commandId":"list-tax-entities-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-tax-entities","payload":{}},"groupedEndpoint":"POST /v1/tax/tax/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.TaxEntityMaintenance.TaxEntityCommand.LoadDataTable."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-tax-types","commandType":"list-tax-types","mode":"read","operation":"Read","summary":"List all tax codes from the account book.","payloadSchema":{},"exampleRequest":{"commandId":"list-tax-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-tax-types","payload":{}},"groupedEndpoint":"POST /v1/tax/tax/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.TaxCodeMaintenance.TaxCodeCommand.LoadBrowseTable. Alias accepted: list-tax-codes."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-withholding-tax-codes","commandType":"list-withholding-tax-codes","mode":"read","operation":"Read","summary":"List withholding tax codes.","payloadSchema":{},"exampleRequest":{"commandId":"list-withholding-tax-codes-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-withholding-tax-codes","payload":{}},"groupedEndpoint":"POST /v1/tax/tax/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.WithholdingTax.WithholdingTaxCommand.LoadBrowseTable."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.001.000.read-gst-settings","commandType":"read-gst-settings","mode":"read","operation":"Read","summary":"Read GST settings.","payloadSchema":{},"exampleRequest":{"commandId":"read-gst-settings-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-gst-settings","payload":{}},"groupedEndpoint":"POST /v1/tax/tax/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Reads settings from available account-book GST tables."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.001.000.read-sst-settings","commandType":"read-sst-settings","mode":"read","operation":"Read","summary":"Read SST settings.","payloadSchema":{},"exampleRequest":{"commandId":"read-sst-settings-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-sst-settings","payload":{}},"groupedEndpoint":"POST /v1/tax/tax/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Reads settings from available account-book SST tables."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-gst-processor","commandType":"get-gst-processor","mode":"read","operation":"Read","summary":"Get one GST processor by key.","payloadSchema":{"key":"required processor key"},"exampleRequest":{"commandId":"get-gst-processor-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-gst-processor","payload":{"key":1}},"groupedEndpoint":"POST /v1/tax/tax/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.MalaysiaGST.GSTProcessor.GSTProcessorCommand.ViewGSTProcessor."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-sst-processor","commandType":"get-sst-processor","mode":"read","operation":"Read","summary":"Get one SST processor by key.","payloadSchema":{"key":"required processor key"},"exampleRequest":{"commandId":"get-sst-processor-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-sst-processor","payload":{"key":1}},"groupedEndpoint":"POST /v1/tax/tax/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.MalaysiaGST.SSTProcessor.SSTProcessorCommand.ViewSSTProcessor."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-tariff-code","commandType":"get-tariff-code","mode":"read","operation":"Read","summary":"Get one tariff code.","payloadSchema":{"code":"required tariff code"},"exampleRequest":{"commandId":"get-tariff-code-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-tariff-code","payload":{"code":"API-TAR"}},"groupedEndpoint":"POST /v1/tax/tax/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.GeneralMaint.Tariff.TariffCommand.GetTariff."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-tax-code","commandType":"get-tax-code","mode":"read","operation":"Read","summary":"Alias for get-tax-type; gets one AutoCount tax code.","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"}},"groupedEndpoint":"POST /v1/tax/tax/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cloud and local connector normalize this to get-tax-type before execution."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-tax-entity","commandType":"get-tax-entity","mode":"read","operation":"Read","summary":"Get one tax entity by id, code, or name.","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"}},"groupedEndpoint":"POST /v1/tax/tax/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Reads account-book tax entity data without direct SQL writes."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-tax-type","commandType":"get-tax-type","mode":"read","operation":"Read","summary":"Get one tax code by 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"}},"groupedEndpoint":"POST /v1/tax/tax/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Reads one account-book tax setup row without direct SQL writes. Alias accepted: get-tax-code."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-withholding-tax-code","commandType":"get-withholding-tax-code","mode":"read","operation":"Read","summary":"Get one withholding tax code.","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"}},"groupedEndpoint":"POST /v1/tax/tax/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.WithholdingTax.WithholdingTaxCommand.GetWithholdingTax."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-gst-payment","commandType":"create-gst-payment","mode":"write","operation":"Create","summary":"Guarded GST payment request.","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"}},"groupedEndpoint":"POST /v1/tax/tax/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns createBlocked until fresh-account-book proof confirms the AutoCount GSTPaymentCommand workflow."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-gst-processor","commandType":"create-gst-processor","mode":"write","operation":"Create","summary":"Guarded GST processor create request.","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"}},"groupedEndpoint":"POST /v1/tax/tax/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns createBlocked until fresh-account-book proof confirms generated journals, audit trail, and recovery behavior."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-sst-payment","commandType":"create-sst-payment","mode":"write","operation":"Create","summary":"Guarded SST payment request.","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"}},"groupedEndpoint":"POST /v1/tax/tax/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns createBlocked until fresh-account-book proof confirms the AutoCount SSTPaymentCommand workflow."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-sst-processor","commandType":"create-sst-processor","mode":"write","operation":"Create","summary":"Guarded SST processor create request.","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"}},"groupedEndpoint":"POST /v1/tax/tax/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns createBlocked until fresh-account-book proof confirms generated journals, audit trail, and recovery behavior."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-tariff-code","commandType":"create-tariff-code","mode":"write","operation":"Create","summary":"Create a tariff code.","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"}},"groupedEndpoint":"POST /v1/tax/tax/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.GeneralMaint.Tariff.TariffCommand.NewTariff and SaveTariff."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-tax-code","commandType":"create-tax-code","mode":"write","operation":"Create","summary":"Alias for create-tax-type; creates an AutoCount tax code.","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"}},"groupedEndpoint":"POST /v1/tax/tax/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cloud and local connector normalize this to create-tax-type before execution."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-tax-entity","commandType":"create-tax-entity","mode":"write","operation":"Create","summary":"Create a tax entity.","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"}},"groupedEndpoint":"POST /v1/tax/tax/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.TaxEntityMaintenance.TaxEntityCommand.New and TaxEntity.Save."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-tax-type","commandType":"create-tax-type","mode":"write","operation":"Create","summary":"Create a tax code.","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}},"groupedEndpoint":"POST /v1/tax/tax/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.TaxCodeMaintenance.TaxCodeCommand.NewTaxCode and SaveTaxCode."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-withholding-tax-code","commandType":"create-withholding-tax-code","mode":"write","operation":"Create","summary":"Create a withholding tax code.","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"}},"groupedEndpoint":"POST /v1/tax/tax/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.WithholdingTax.WithholdingTaxCommand.NewWithholdingTax and SaveWithholdingTax."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-gst-processor","commandType":"update-gst-processor","mode":"write","operation":"Edit","summary":"Guarded GST processor edit request.","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"}},"groupedEndpoint":"POST /v1/tax/tax/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns editBlocked until fresh-account-book proof confirms generated journals, audit trail, and recovery behavior."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-gst-settings","commandType":"update-gst-settings","mode":"write","operation":"Edit","summary":"Guarded GST settings update request.","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":{}}},"groupedEndpoint":"POST /v1/tax/tax/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns editBlocked until the exact AutoCount SDK save workflow is proven."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-sst-processor","commandType":"update-sst-processor","mode":"write","operation":"Edit","summary":"Guarded SST processor edit request.","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"}},"groupedEndpoint":"POST /v1/tax/tax/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns editBlocked until fresh-account-book proof confirms generated journals, audit trail, and recovery behavior."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-sst-settings","commandType":"update-sst-settings","mode":"write","operation":"Edit","summary":"Guarded SST settings update request.","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":{}}},"groupedEndpoint":"POST /v1/tax/tax/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns editBlocked until the exact AutoCount SDK save workflow is proven."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-tariff-code","commandType":"update-tariff-code","mode":"write","operation":"Edit","summary":"Update a tariff code.","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"}},"groupedEndpoint":"POST /v1/tax/tax/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.GeneralMaint.Tariff.TariffCommand.GetTariff and SaveTariff."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-tax-code","commandType":"update-tax-code","mode":"write","operation":"Edit","summary":"Alias for update-tax-type; updates an AutoCount tax code.","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"}},"groupedEndpoint":"POST /v1/tax/tax/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Cloud and local connector normalize this to update-tax-type before execution."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-tax-entity","commandType":"update-tax-entity","mode":"write","operation":"Edit","summary":"Update a tax entity.","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"}},"groupedEndpoint":"POST /v1/tax/tax/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.TaxEntityMaintenance.TaxEntityCommand.Edit and TaxEntity.Save."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-tax-type","commandType":"update-tax-type","mode":"write","operation":"Edit","summary":"Update a tax code.","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}},"groupedEndpoint":"POST /v1/tax/tax/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.TaxCodeMaintenance.TaxCodeCommand.GetTaxCode and SaveTaxCode."},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-withholding-tax-code","commandType":"update-withholding-tax-code","mode":"write","operation":"Edit","summary":"Update a withholding tax code.","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}},"groupedEndpoint":"POST /v1/tax/tax/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.Tax.WithholdingTax.WithholdingTaxCommand.GetWithholdingTax and SaveWithholdingTax."},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.000.000.list-arap-contras","commandType":"list-arap-contras","mode":"read","operation":"Read","summary":"List AR/AP contra documents.","payloadSchema":{},"exampleRequest":{"commandId":"list-arap-contras-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-arap-contras","payload":{}},"groupedEndpoint":"POST /v1/arap-module/arap-contra/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-account-types","commandType":"list-general-account-types","mode":"read","operation":"Read","summary":"List account types. Read-only because AutoCount 2.2 does not expose a safe SDK write command for Account Type.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-account-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-account-types","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/account-type/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-addresses","commandType":"list-general-addresses","mode":"read","operation":"Read","summary":"List address maintenance records.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-addresses-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-addresses","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/address/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-areas","commandType":"list-general-areas","mode":"read","operation":"Read","summary":"List area maintenance records.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-areas-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-areas","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/area/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-cn-types","commandType":"list-general-cn-types","mode":"read","operation":"Read","summary":"List C/N type maintenance records.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-cn-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-cn-types","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/cn-type/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-credit-terms","commandType":"list-general-credit-terms","mode":"read","operation":"Read","summary":"List credit terms. Read-only because AutoCount 2.2 does not expose a safe SDK write command for Credit Term.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-credit-terms-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-credit-terms","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/credit-term/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-creditor-types","commandType":"list-general-creditor-types","mode":"read","operation":"Read","summary":"List creditor type maintenance records.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-creditor-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-creditor-types","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/creditor-type/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-currencies","commandType":"list-general-currencies","mode":"read","operation":"Read","summary":"List currency maintenance records.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-currencies-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-currencies","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/currency/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-debtor-types","commandType":"list-general-debtor-types","mode":"read","operation":"Read","summary":"List debtor type maintenance records.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-debtor-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-debtor-types","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/debtor-type/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-dn-types","commandType":"list-general-dn-types","mode":"read","operation":"Read","summary":"List D/N type maintenance records.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-dn-types-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-dn-types","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/dn-type/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-payment-methods","commandType":"list-general-payment-methods","mode":"read","operation":"Read","summary":"List General Maintenance payment methods.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-payment-methods-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-payment-methods","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/payment-method/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-price-categories","commandType":"list-general-price-categories","mode":"read","operation":"Read","summary":"List price categories.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-price-categories-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-price-categories","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/price-category/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-projects","commandType":"list-general-projects","mode":"read","operation":"Read","summary":"List projects.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-projects-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-projects","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/project/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-purchase-agents","commandType":"list-general-purchase-agents","mode":"read","operation":"Read","summary":"List purchase agents.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-purchase-agents-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-purchase-agents","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-sales-agents","commandType":"list-general-sales-agents","mode":"read","operation":"Read","summary":"List sales agents.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-sales-agents-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-sales-agents","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/sales-agent/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-shipping-methods","commandType":"list-general-shipping-methods","mode":"read","operation":"Read","summary":"List shipping methods.","payloadSchema":{},"exampleRequest":{"commandId":"list-general-shipping-methods-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-general-shipping-methods","payload":{}},"groupedEndpoint":"POST /v1/general-maintenance/shipping-method/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"POS","displayGroup":"POS","displayOrder":"999.999.000.000.list-pos-raw-transactions","commandType":"list-pos-raw-transactions","mode":"read","operation":"Read","summary":"List POS sales/receipt rows through AutoCount POS DLL only.","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}},"groupedEndpoint":"POST /v1/pos/pos/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"UDF","displayGroup":"UDF","displayOrder":"999.999.000.000.list-udf-definitions","commandType":"list-udf-definitions","mode":"read","operation":"Read","summary":"List UDF field definitions for one table or all UDF-enabled tables.","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"}},"groupedEndpoint":"POST /v1/udf/udf/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.UDF.Data.UDFDA.GetUDF(tableName)."},{"module":"UDF","displayGroup":"UDF","displayOrder":"999.999.000.000.list-udf-tables","commandType":"list-udf-tables","mode":"read","operation":"Read","summary":"List AutoCount tables that expose UDF definitions in the selected account book.","payloadSchema":{},"exampleRequest":{"commandId":"list-udf-tables-001","connectorId":"customer-main","companyId":"macsofttest","type":"list-udf-tables","payload":{}},"groupedEndpoint":"POST /v1/udf/udf/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.UDF.Data.UDFDA.GetTableNames. Only returned tables should be treated as UDF-enabled for that account book."},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.001.000.read-company-ai-context","commandType":"read-company-ai-context","mode":"read","operation":"Read","summary":"Read the AI Startup Flow context for an AutoCount account book.","payloadSchema":{"includeHints":"optional boolean"},"exampleRequest":{"commandId":"read-company-ai-context-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-company-ai-context","payload":{"includeHints":true}},"groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Intelligent Connector Flow step 1. Returns starterCommands, activeModules, workflowHints, safetyRules, companyProfile, companyName, and discovery counts. Schema: /v1/schema/commands/read-company-ai-context"},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.001.000.read-company-profile","commandType":"read-company-profile","mode":"read","operation":"Read","summary":"Read the real AutoCount Company Profile for the selected account book.","payloadSchema":{},"exampleRequest":{"commandId":"read-company-profile-001","connectorId":"customer-main","companyId":"macsofttest","type":"read-company-profile","payload":{}},"groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Linked Documents","displayGroup":"Linked Documents","displayOrder":"999.999.001.000.read-document-linkage","commandType":"read-document-linkage","mode":"read","operation":"Read","summary":"Read linked/transferred document detail rows and linkage columns.","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"}},"groupedEndpoint":"POST /v1/linked-documents/linked-documents/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Use this before changing linked document lines. Correct process is reverse then partial transfer."},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.001.000.read-field-catalog","commandType":"read-field-catalog","mode":"read","operation":"Read","summary":"Read field catalog so humans and AI know read/write/native/guarded fields.","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"}},"groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/list","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Intelligent Connector Flow step 2. Returns catalogVersion, cache, modules, documents, fields, mode, and source. Schema: /v1/schema/commands/read-field-catalog"},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.002.000.get-arap-contra","commandType":"get-arap-contra","mode":"read","operation":"Read","summary":"Get one AR/AP contra document by document number.","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"}},"groupedEndpoint":"POST /v1/arap-module/arap-contra/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":""},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-account-type","commandType":"get-general-account-type","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/account-type/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-address","commandType":"get-general-address","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-address-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-address","payload":{"code":"API"}},"groupedEndpoint":"POST /v1/general-maintenance/address/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-area","commandType":"get-general-area","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-area-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-area","payload":{"code":"API"}},"groupedEndpoint":"POST /v1/general-maintenance/area/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-cn-type","commandType":"get-general-cn-type","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/cn-type/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-credit-term","commandType":"get-general-credit-term","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/credit-term/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-creditor-type","commandType":"get-general-creditor-type","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/creditor-type/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-currency","commandType":"get-general-currency","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-currency-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-currency","payload":{"code":"API"}},"groupedEndpoint":"POST /v1/general-maintenance/currency/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-debtor-type","commandType":"get-general-debtor-type","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/debtor-type/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-dn-type","commandType":"get-general-dn-type","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/dn-type/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-payment-method","commandType":"get-general-payment-method","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/payment-method/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-price-category","commandType":"get-general-price-category","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/price-category/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-project","commandType":"get-general-project","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-project-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-project","payload":{"code":"API"}},"groupedEndpoint":"POST /v1/general-maintenance/project/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-purchase-agent","commandType":"get-general-purchase-agent","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-purchase-agent-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-purchase-agent","payload":{"code":"API"}},"groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-sales-agent","commandType":"get-general-sales-agent","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","payloadSchema":{"code":"required setup code"},"exampleRequest":{"commandId":"get-general-sales-agent-001","connectorId":"customer-main","companyId":"macsofttest","type":"get-general-sales-agent","payload":{"code":"API"}},"groupedEndpoint":"POST /v1/general-maintenance/sales-agent/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-shipping-method","commandType":"get-general-shipping-method","mode":"read","operation":"Read","summary":"Get one General Maintenance setup record by code.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/shipping-method/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses the same AutoCount SDK/listing source as the matching list command and returns the matching row."},{"module":"POS","displayGroup":"POS","displayOrder":"999.999.002.000.get-pos-raw-transaction","commandType":"get-pos-raw-transaction","mode":"read","operation":"Read","summary":"Get one POS receipt raw AutoCount bundle through AutoCount POS DLL only.","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}},"groupedEndpoint":"POST /v1/pos/pos/get","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.004.001.validate-arap-contra","commandType":"validate-arap-contra","mode":"read","operation":"Validate","summary":"Validate an AR/AP contra document without saving. Invoice knock-off allocation is guarded until proven with AutoCount SDK.","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}]}},"groupedEndpoint":"POST /v1/arap-module/arap-contra/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.004.001.validate-command","commandType":"validate-command","mode":"read","operation":"Validate","summary":"Preflight a proposed command before saving.","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"}},"groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/validate","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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"},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.005.002.create-account-book","commandType":"create-account-book","mode":"write","operation":"Create","summary":"Create a new AutoCount account book from an existing connector company.","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}},"groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.005.002.create-arap-contra","commandType":"create-arap-contra","mode":"write","operation":"Create","summary":"Create an AR/AP contra document. Invoice knock-off allocation is guarded until proven with AutoCount SDK.","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}]}},"groupedEndpoint":"POST /v1/arap-module/arap-contra/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-account-type","commandType":"create-general-account-type","mode":"write","operation":"Create","summary":"Guarded create request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/account-type/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-address","commandType":"create-general-address","mode":"write","operation":"Create","summary":"Create an address maintenance record.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/address/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-area","commandType":"create-general-area","mode":"write","operation":"Create","summary":"Create an area.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/area/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Requires write access permission. Full human payload reference for Area Maintenance."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-cn-type","commandType":"create-general-cn-type","mode":"write","operation":"Create","summary":"Create a C/N type.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/cn-type/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-credit-term","commandType":"create-general-credit-term","mode":"write","operation":"Create","summary":"Guarded create request for General Maintenance setup data.","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}},"groupedEndpoint":"POST /v1/general-maintenance/credit-term/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-creditor-type","commandType":"create-general-creditor-type","mode":"write","operation":"Create","summary":"Create a creditor type.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/creditor-type/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-currency","commandType":"create-general-currency","mode":"write","operation":"Create","summary":"Create a currency.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/currency/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Requires write access permission. Full human payload reference for Currency Maintenance. Exchange rate behavior follows AutoCount account-book currency settings."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-debtor-type","commandType":"create-general-debtor-type","mode":"write","operation":"Create","summary":"Create a debtor type.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/debtor-type/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-dn-type","commandType":"create-general-dn-type","mode":"write","operation":"Create","summary":"Create a D/N type.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/dn-type/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-payment-method","commandType":"create-general-payment-method","mode":"write","operation":"Create","summary":"Create a payment method.","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}},"groupedEndpoint":"POST /v1/general-maintenance/payment-method/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-price-category","commandType":"create-general-price-category","mode":"write","operation":"Create","summary":"Create a 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"}},"groupedEndpoint":"POST /v1/general-maintenance/price-category/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Requires write access permission. Full human payload reference for Price Category Maintenance. Item selling price rows can also refer to this price category."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-project","commandType":"create-general-project","mode":"write","operation":"Create","summary":"Create a project.","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}},"groupedEndpoint":"POST /v1/general-maintenance/project/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Requires write access permission. Full human payload reference for Project Maintenance. Parent project and active flags depend on AutoCount project settings."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-purchase-agent","commandType":"create-general-purchase-agent","mode":"write","operation":"Create","summary":"Create a purchase agent.","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"},"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}},"groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Requires write access permission. Full human payload reference for Purchase Agent Maintenance."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-sales-agent","commandType":"create-general-sales-agent","mode":"write","operation":"Create","summary":"Create a sales agent.","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"},"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"}},"groupedEndpoint":"POST /v1/general-maintenance/sales-agent/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Requires write access permission. Full human payload reference for Sales Agent Maintenance."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-shipping-method","commandType":"create-general-shipping-method","mode":"write","operation":"Create","summary":"Create a shipping method.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/shipping-method/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"UDF","displayGroup":"UDF","displayOrder":"999.999.005.002.create-udf-field","commandType":"create-udf-field","mode":"write","operation":"Create","summary":"Create an AutoCount UDF field definition.","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}},"groupedEndpoint":"POST /v1/udf/udf/create","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.UDF.UDFTable(tableName, DBSetting).Add(fieldName, UDFType, caption).Save()."},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.006.003.update-arap-contra","commandType":"update-arap-contra","mode":"write","operation":"Edit","summary":"Update AR/AP contra header/simple fields.","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}]}},"groupedEndpoint":"POST /v1/arap-module/arap-contra/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-account-type","commandType":"update-general-account-type","mode":"write","operation":"Edit","summary":"Guarded edit request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/account-type/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-address","commandType":"update-general-address","mode":"write","operation":"Edit","summary":"Update an address maintenance record.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/address/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-area","commandType":"update-general-area","mode":"write","operation":"Edit","summary":"Update an area.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/area/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Requires write access permission. Full human payload reference for Area Maintenance."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-cn-type","commandType":"update-general-cn-type","mode":"write","operation":"Edit","summary":"Update a C/N type.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/cn-type/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-credit-term","commandType":"update-general-credit-term","mode":"write","operation":"Edit","summary":"Guarded edit request for General Maintenance setup data.","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}},"groupedEndpoint":"POST /v1/general-maintenance/credit-term/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-creditor-type","commandType":"update-general-creditor-type","mode":"write","operation":"Edit","summary":"Update a creditor type.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/creditor-type/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-currency","commandType":"update-general-currency","mode":"write","operation":"Edit","summary":"Update a currency.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/currency/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Requires write access permission. Full human payload reference for Currency Maintenance. Exchange rate behavior follows AutoCount account-book currency settings."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-debtor-type","commandType":"update-general-debtor-type","mode":"write","operation":"Edit","summary":"Update a debtor type.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/debtor-type/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-dn-type","commandType":"update-general-dn-type","mode":"write","operation":"Edit","summary":"Update a D/N type.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/dn-type/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-payment-method","commandType":"update-general-payment-method","mode":"write","operation":"Edit","summary":"Update a payment method.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/payment-method/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-price-category","commandType":"update-general-price-category","mode":"write","operation":"Edit","summary":"Update a 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"}},"groupedEndpoint":"POST /v1/general-maintenance/price-category/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Requires write access permission. Full human payload reference for Price Category Maintenance. Item selling price rows can also refer to this price category."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-project","commandType":"update-general-project","mode":"write","operation":"Edit","summary":"Update a project.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/project/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Requires write access permission. Full human payload reference for Project Maintenance. Parent project and active flags depend on AutoCount project settings."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-purchase-agent","commandType":"update-general-purchase-agent","mode":"write","operation":"Edit","summary":"Update a purchase agent.","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"},"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"}},"groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Requires write access permission. Full human payload reference for Purchase Agent Maintenance."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-sales-agent","commandType":"update-general-sales-agent","mode":"write","operation":"Edit","summary":"Update a sales agent.","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"},"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"}},"groupedEndpoint":"POST /v1/general-maintenance/sales-agent/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Requires write access permission. Full human payload reference for Sales Agent Maintenance."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-shipping-method","commandType":"update-general-shipping-method","mode":"write","operation":"Edit","summary":"Update a shipping method.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/shipping-method/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."},{"module":"UDF","displayGroup":"UDF","displayOrder":"999.999.006.003.update-udf-field","commandType":"update-udf-field","mode":"write","operation":"Edit","summary":"Update an existing AutoCount UDF field definition.","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}},"groupedEndpoint":"POST /v1/udf/udf/edit","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Uses AutoCount.UDF.UDFTable Save. This changes UDF setup, not transaction data."},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.007.004.void-arap-contra","commandType":"void-arap-contra","mode":"write","operation":"Void","summary":"Guarded AR/AP contra void request.","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"}},"groupedEndpoint":"POST /v1/arap-module/arap-contra/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked until module-specific AutoCount void/cancel safety is proven."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-account-type","commandType":"void-general-account-type","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/account-type/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-address","commandType":"void-general-address","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/address/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-area","commandType":"void-general-area","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/area/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-cn-type","commandType":"void-general-cn-type","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/cn-type/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-credit-term","commandType":"void-general-credit-term","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/credit-term/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-creditor-type","commandType":"void-general-creditor-type","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/creditor-type/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-currency","commandType":"void-general-currency","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/currency/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-debtor-type","commandType":"void-general-debtor-type","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/debtor-type/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-dn-type","commandType":"void-general-dn-type","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/dn-type/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-payment-method","commandType":"void-general-payment-method","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/payment-method/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-price-category","commandType":"void-general-price-category","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/price-category/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-project","commandType":"void-general-project","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/project/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-purchase-agent","commandType":"void-general-purchase-agent","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"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"}},"groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-sales-agent","commandType":"void-general-sales-agent","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"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"}},"groupedEndpoint":"POST /v1/general-maintenance/sales-agent/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-shipping-method","commandType":"void-general-shipping-method","mode":"write","operation":"Void","summary":"Guarded void request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/shipping-method/void","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns voidBlocked. Most setup tables should be edited to inactive where AutoCount supports it."},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.008.005.delete-arap-contra","commandType":"delete-arap-contra","mode":"write","operation":"Delete","summary":"Guarded AR/AP contra delete request.","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"}},"groupedEndpoint":"POST /v1/arap-module/arap-contra/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked. Use reversal, cancellation, or replacement workflow until module-specific AutoCount delete safety is proven."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-account-type","commandType":"delete-general-account-type","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/account-type/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-address","commandType":"delete-general-address","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/address/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-area","commandType":"delete-general-area","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/area/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-cn-type","commandType":"delete-general-cn-type","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/cn-type/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-credit-term","commandType":"delete-general-credit-term","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/credit-term/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-creditor-type","commandType":"delete-general-creditor-type","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/creditor-type/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-currency","commandType":"delete-general-currency","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/currency/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-debtor-type","commandType":"delete-general-debtor-type","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/debtor-type/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-dn-type","commandType":"delete-general-dn-type","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/dn-type/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-payment-method","commandType":"delete-general-payment-method","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/payment-method/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-price-category","commandType":"delete-general-price-category","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/price-category/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-project","commandType":"delete-general-project","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/project/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-purchase-agent","commandType":"delete-general-purchase-agent","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"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"}},"groupedEndpoint":"POST /v1/general-maintenance/purchase-agent/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-sales-agent","commandType":"delete-general-sales-agent","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","payloadSchema":{"code":"required setup code","reason":"required business reason"},"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"}},"groupedEndpoint":"POST /v1/general-maintenance/sales-agent/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-shipping-method","commandType":"delete-general-shipping-method","mode":"write","operation":"Delete","summary":"Guarded delete request for General Maintenance setup data.","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"}},"groupedEndpoint":"POST /v1/general-maintenance/shipping-method/delete","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns deleteBlocked until AutoCount SDK delete safety is proven for this setup table."},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.999.999.explain-command-error","commandType":"explain-command-error","mode":"read","operation":"read","summary":"Explain technical connector or AutoCount errors in human and AI-friendly field guidance.","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"}},"groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/explain-command-error","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Use after failed commands to decide whether the error is missing master data, unsupported field write, SDK method gap, or setup/config issue."},{"module":"Linked Documents","displayGroup":"Linked Documents","displayOrder":"999.999.999.999.partial-transfer-document","commandType":"partial-transfer-document","mode":"write","operation":"write","summary":"Create a target document by partial transferring selected source rows.","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}]}},"groupedEndpoint":"POST /v1/linked-documents/linked-documents/partial-transfer-document","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Supports the standard sales/purchase chains where AutoCount exposes PartialTransfer."},{"module":"Linked Documents","displayGroup":"Linked Documents","displayOrder":"999.999.999.999.rebuild-linked-document-lines","commandType":"rebuild-linked-document-lines","mode":"write","operation":"write","summary":"Correct linked-document line workflow: reverse then 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}]}},"groupedEndpoint":"POST /v1/linked-documents/linked-documents/rebuild-linked-document-lines","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Existing linked document rebuild is guarded until reverse is proven. With createReplacement:true, connector can create a replacement target document by partial transfer."},{"module":"Linked Documents","displayGroup":"Linked Documents","displayOrder":"999.999.999.999.reverse-document-transfer","commandType":"reverse-document-transfer","mode":"write","operation":"write","summary":"Guarded reverse/untransfer request for an existing linked document.","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"}},"groupedEndpoint":"POST /v1/linked-documents/linked-documents/reverse-document-transfer","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns reverseTransferNotProven unless a safe AutoCount reverse/untransfer SDK method is proven for the flow."},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.999.999.run-company-discovery","commandType":"run-company-discovery","mode":"read","operation":"read","summary":"Build a read-only Mac Soft AI demo profile from the AutoCount account book.","payloadSchema":{},"exampleRequest":{"commandId":"run-company-discovery-001","connectorId":"customer-main","companyId":"macsofttest","type":"run-company-discovery","payload":{"includeHints":true}},"groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/run-company-discovery","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","notes":"Returns activeModules, masterDataCounts, documentCounts, features, workflows, and aiHints. Use this first for CEO, executive, admin, and clerk demos before preparing writes."},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.999.999.suggest-command-fixes","commandType":"suggest-command-fixes","mode":"read","operation":"read","summary":"Suggest safe fixes when validation fails or a master value is missing.","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}}},"groupedEndpoint":"POST /v1/startup-account-book/startup-account-book/suggest-command-fixes","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."}],"recipes":[{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.000.000.list-advanced-quotations","commandType":"list-advanced-quotations","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.001.000.read-advanced-quotation-lines","commandType":"read-advanced-quotation-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.002.000.get-advanced-quotation","commandType":"get-advanced-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.004.001.validate-advanced-quotation","commandType":"validate-advanced-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.005.002.create-advanced-quotation","commandType":"create-advanced-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.006.003.update-advanced-quotation","commandType":"update-advanced-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.007.004.cancel-advanced-quotation","commandType":"cancel-advanced-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.007.004.void-advanced-quotation","commandType":"void-advanced-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.000.008.005.delete-advanced-quotation","commandType":"delete-advanced-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.000.000.list-quotations","commandType":"list-quotations","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.001.000.read-quotation-lines","commandType":"read-quotation-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.002.000.get-quotation","commandType":"get-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.004.001.validate-quotation","commandType":"validate-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.005.002.create-quotation","commandType":"create-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.006.003.update-quotation","commandType":"update-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.007.004.cancel-quotation","commandType":"cancel-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.007.004.void-quotation","commandType":"void-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.001.008.005.delete-quotation","commandType":"delete-quotation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.000.000.list-sales-orders","commandType":"list-sales-orders","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.001.000.read-sales-order-lines","commandType":"read-sales-order-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.002.000.get-sales-order","commandType":"get-sales-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.004.001.validate-sales-order","commandType":"validate-sales-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.005.002.create-sales-order","commandType":"create-sales-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.006.003.update-sales-order","commandType":"update-sales-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.007.004.cancel-sales-order","commandType":"cancel-sales-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.007.004.void-sales-order","commandType":"void-sales-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.002.008.005.delete-sales-order","commandType":"delete-sales-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.000.000.list-delivery-orders","commandType":"list-delivery-orders","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.001.000.read-delivery-order-lines","commandType":"read-delivery-order-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.002.000.get-delivery-order","commandType":"get-delivery-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.004.001.validate-delivery-order","commandType":"validate-delivery-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.005.002.create-delivery-order","commandType":"create-delivery-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.006.003.update-delivery-order","commandType":"update-delivery-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.007.004.cancel-delivery-order","commandType":"cancel-delivery-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.007.004.void-delivery-order","commandType":"void-delivery-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.003.008.005.delete-delivery-order","commandType":"delete-delivery-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.000.000.list-sales-invoices","commandType":"list-sales-invoices","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.001.000.read-sales-invoice-lines","commandType":"read-sales-invoice-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.002.000.get-sales-invoice","commandType":"get-sales-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.004.001.validate-sales-invoice","commandType":"validate-sales-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.005.002.create-sales-invoice","commandType":"create-sales-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.006.003.update-sales-invoice","commandType":"update-sales-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.007.004.cancel-sales-invoice","commandType":"cancel-sales-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.007.004.void-sales-invoice","commandType":"void-sales-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.004.008.005.delete-sales-invoice","commandType":"delete-sales-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.000.000.list-cash-sales","commandType":"list-cash-sales","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.001.000.read-cash-sale-lines","commandType":"read-cash-sale-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.002.000.get-cash-sale","commandType":"get-cash-sale","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.004.001.validate-cash-sale","commandType":"validate-cash-sale","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.005.002.create-cash-sale","commandType":"create-cash-sale","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.006.003.update-cash-sale","commandType":"update-cash-sale","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.007.004.cancel-cash-sale","commandType":"cancel-cash-sale","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.007.004.void-cash-sale","commandType":"void-cash-sale","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.005.008.005.delete-cash-sale","commandType":"delete-cash-sale","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.000.000.list-sales-credit-notes","commandType":"list-sales-credit-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.001.000.read-sales-credit-note-lines","commandType":"read-sales-credit-note-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.002.000.get-sales-credit-note","commandType":"get-sales-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.004.001.validate-sales-credit-note","commandType":"validate-sales-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.005.002.create-sales-credit-note","commandType":"create-sales-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.006.003.update-sales-credit-note","commandType":"update-sales-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.007.004.cancel-sales-credit-note","commandType":"cancel-sales-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.007.004.void-sales-credit-note","commandType":"void-sales-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.006.008.005.delete-sales-credit-note","commandType":"delete-sales-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.000.000.list-sales-debit-notes","commandType":"list-sales-debit-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.001.000.read-sales-debit-note-lines","commandType":"read-sales-debit-note-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.002.000.get-sales-debit-note","commandType":"get-sales-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.004.001.validate-sales-debit-note","commandType":"validate-sales-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.005.002.create-sales-debit-note","commandType":"create-sales-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.006.003.update-sales-debit-note","commandType":"update-sales-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.007.004.cancel-sales-debit-note","commandType":"cancel-sales-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.007.004.void-sales-debit-note","commandType":"void-sales-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.007.008.005.delete-sales-debit-note","commandType":"delete-sales-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-delivery-order-to-sales-invoice","commandType":"transfer-delivery-order-to-sales-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-quotation-to-delivery-order","commandType":"transfer-quotation-to-delivery-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-quotation-to-sales-invoice","commandType":"transfer-quotation-to-sales-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-quotation-to-sales-order","commandType":"transfer-quotation-to-sales-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-sales-invoice-to-sales-credit-note","commandType":"transfer-sales-invoice-to-sales-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-sales-order-to-delivery-order","commandType":"transfer-sales-order-to-delivery-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-sales-order-to-purchase-order","commandType":"transfer-sales-order-to-purchase-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.008.009.006.transfer-sales-order-to-sales-invoice","commandType":"transfer-sales-order-to-sales-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.999.001.000.read-item-sales-by-customer","commandType":"read-item-sales-by-customer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Sales","displayGroup":"Sales","displayOrder":"001.999.001.000.read-sales-detail-lines","commandType":"read-sales-detail-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.000.000.list-purchase-orders","commandType":"list-purchase-orders","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.001.000.read-purchase-order-lines","commandType":"read-purchase-order-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.002.000.get-purchase-order","commandType":"get-purchase-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.004.001.validate-purchase-order","commandType":"validate-purchase-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.005.002.create-purchase-order","commandType":"create-purchase-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.006.003.update-purchase-order","commandType":"update-purchase-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.007.004.cancel-purchase-order","commandType":"cancel-purchase-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.007.004.void-purchase-order","commandType":"void-purchase-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.000.008.005.delete-purchase-order","commandType":"delete-purchase-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.000.000.list-goods-received-notes","commandType":"list-goods-received-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.001.000.read-goods-received-note-lines","commandType":"read-goods-received-note-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.002.000.get-goods-received-note","commandType":"get-goods-received-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.004.001.validate-goods-received-note","commandType":"validate-goods-received-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.005.002.create-goods-received-note","commandType":"create-goods-received-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.006.003.update-goods-received-note","commandType":"update-goods-received-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.007.004.cancel-goods-received-note","commandType":"cancel-goods-received-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.007.004.void-goods-received-note","commandType":"void-goods-received-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.001.008.005.delete-goods-received-note","commandType":"delete-goods-received-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.000.000.list-purchase-invoices","commandType":"list-purchase-invoices","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.001.000.read-purchase-invoice-lines","commandType":"read-purchase-invoice-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.002.000.get-purchase-invoice","commandType":"get-purchase-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.004.001.validate-purchase-invoice","commandType":"validate-purchase-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.005.002.create-purchase-invoice","commandType":"create-purchase-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.006.003.update-purchase-invoice","commandType":"update-purchase-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.007.004.cancel-purchase-invoice","commandType":"cancel-purchase-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.007.004.void-purchase-invoice","commandType":"void-purchase-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.002.008.005.delete-purchase-invoice","commandType":"delete-purchase-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.000.000.list-cash-purchases","commandType":"list-cash-purchases","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.001.000.read-cash-purchase-lines","commandType":"read-cash-purchase-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.002.000.get-cash-purchase","commandType":"get-cash-purchase","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.004.001.validate-cash-purchase","commandType":"validate-cash-purchase","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.005.002.create-cash-purchase","commandType":"create-cash-purchase","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.006.003.update-cash-purchase","commandType":"update-cash-purchase","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.007.004.cancel-cash-purchase","commandType":"cancel-cash-purchase","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.007.004.void-cash-purchase","commandType":"void-cash-purchase","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.003.008.005.delete-cash-purchase","commandType":"delete-cash-purchase","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.000.000.list-purchase-returns","commandType":"list-purchase-returns","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.001.000.read-purchase-return-lines","commandType":"read-purchase-return-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.002.000.get-purchase-return","commandType":"get-purchase-return","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.004.001.validate-purchase-return","commandType":"validate-purchase-return","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.005.002.create-purchase-return","commandType":"create-purchase-return","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.006.003.update-purchase-return","commandType":"update-purchase-return","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.007.004.cancel-purchase-return","commandType":"cancel-purchase-return","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.007.004.void-purchase-return","commandType":"void-purchase-return","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.004.008.005.delete-purchase-return","commandType":"delete-purchase-return","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.005.009.006.transfer-goods-received-note-to-purchase-invoice","commandType":"transfer-goods-received-note-to-purchase-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.005.009.006.transfer-purchase-invoice-to-purchase-return","commandType":"transfer-purchase-invoice-to-purchase-return","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.005.009.006.transfer-purchase-order-to-goods-received-note","commandType":"transfer-purchase-order-to-goods-received-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.005.009.006.transfer-purchase-order-to-purchase-invoice","commandType":"transfer-purchase-order-to-purchase-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Purchase","displayGroup":"Purchase","displayOrder":"002.999.001.000.read-purchase-detail-lines","commandType":"read-purchase-detail-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.000.000.list-ar-invoices","commandType":"list-ar-invoices","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.001.000.read-ar-invoice-lines","commandType":"read-ar-invoice-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.001.000.read-ar-outstanding-documents","commandType":"read-ar-outstanding-documents","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.002.000.get-ar-invoice","commandType":"get-ar-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.004.001.validate-ar-invoice","commandType":"validate-ar-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.005.002.create-ar-invoice","commandType":"create-ar-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.006.003.update-ar-invoice","commandType":"update-ar-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.007.004.void-ar-invoice","commandType":"void-ar-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.000.008.005.delete-ar-invoice","commandType":"delete-ar-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.000.000.list-ar-payments","commandType":"list-ar-payments","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.001.000.read-ar-detail-lines","commandType":"read-ar-detail-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.001.000.read-ar-payment-lines","commandType":"read-ar-payment-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.001.000.read-ar-refund-lines","commandType":"read-ar-refund-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.002.000.get-ar-payment","commandType":"get-ar-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.004.001.validate-ar-payment","commandType":"validate-ar-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.005.002.create-ar-deposit","commandType":"create-ar-deposit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.005.002.create-ar-payment","commandType":"create-ar-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.006.003.update-ar-payment","commandType":"update-ar-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.007.004.void-ar-payment","commandType":"void-ar-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.001.008.005.delete-ar-payment","commandType":"delete-ar-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.000.000.list-ar-refunds","commandType":"list-ar-refunds","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.002.000.get-ar-refund","commandType":"get-ar-refund","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.004.001.validate-ar-refund","commandType":"validate-ar-refund","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.005.002.create-ar-refund","commandType":"create-ar-refund","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.006.003.update-ar-refund","commandType":"update-ar-refund","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.007.004.void-ar-refund","commandType":"void-ar-refund","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.002.008.005.delete-ar-refund","commandType":"delete-ar-refund","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.000.000.list-ar-credit-notes","commandType":"list-ar-credit-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.001.000.read-ar-credit-note-lines","commandType":"read-ar-credit-note-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.002.000.get-ar-credit-note","commandType":"get-ar-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.004.001.validate-ar-credit-note","commandType":"validate-ar-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.005.002.create-ar-credit-note","commandType":"create-ar-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.006.003.update-ar-credit-note","commandType":"update-ar-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.007.004.void-ar-credit-note","commandType":"void-ar-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.003.008.005.delete-ar-credit-note","commandType":"delete-ar-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.000.000.list-ar-debit-notes","commandType":"list-ar-debit-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.001.000.read-ar-debit-note-lines","commandType":"read-ar-debit-note-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.002.000.get-ar-debit-note","commandType":"get-ar-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.004.001.validate-ar-debit-note","commandType":"validate-ar-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.005.002.create-ar-debit-note","commandType":"create-ar-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.006.003.update-ar-debit-note","commandType":"update-ar-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.007.004.void-ar-debit-note","commandType":"void-ar-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.004.008.005.delete-ar-debit-note","commandType":"delete-ar-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.000.000.list-ar-deposits","commandType":"list-ar-deposits","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.001.000.read-ar-outstanding","commandType":"read-ar-outstanding","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.001.000.read-debtors","commandType":"read-debtors","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.002.000.get-ar-deposit","commandType":"get-ar-deposit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.002.000.get-debtor-credit-control","commandType":"get-debtor-credit-control","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.002.000.get-debtor-detail","commandType":"get-debtor-detail","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR","displayGroup":"AR","displayOrder":"003.999.004.001.validate-ar-deposit","commandType":"validate-ar-deposit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.000.000.list-ap-invoices","commandType":"list-ap-invoices","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.001.000.read-ap-invoice-lines","commandType":"read-ap-invoice-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.001.000.read-ap-outstanding-documents","commandType":"read-ap-outstanding-documents","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.002.000.get-ap-invoice","commandType":"get-ap-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.004.001.validate-ap-invoice","commandType":"validate-ap-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.005.002.create-ap-invoice","commandType":"create-ap-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.006.003.update-ap-invoice","commandType":"update-ap-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.007.004.void-ap-invoice","commandType":"void-ap-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.000.008.005.delete-ap-invoice","commandType":"delete-ap-invoice","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.000.000.list-ap-payments","commandType":"list-ap-payments","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.001.000.read-ap-detail-lines","commandType":"read-ap-detail-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.001.000.read-ap-payment-lines","commandType":"read-ap-payment-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.001.000.read-ap-refund-lines","commandType":"read-ap-refund-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.002.000.get-ap-payment","commandType":"get-ap-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.004.001.validate-ap-payment","commandType":"validate-ap-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.005.002.create-ap-deposit","commandType":"create-ap-deposit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.005.002.create-ap-payment","commandType":"create-ap-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.006.003.update-ap-payment","commandType":"update-ap-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.007.004.void-ap-payment","commandType":"void-ap-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.001.008.005.delete-ap-payment","commandType":"delete-ap-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.000.000.list-ap-refunds","commandType":"list-ap-refunds","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.002.000.get-ap-refund","commandType":"get-ap-refund","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.004.001.validate-ap-refund","commandType":"validate-ap-refund","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.005.002.create-ap-refund","commandType":"create-ap-refund","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.006.003.update-ap-refund","commandType":"update-ap-refund","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.007.004.void-ap-refund","commandType":"void-ap-refund","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.002.008.005.delete-ap-refund","commandType":"delete-ap-refund","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.000.000.list-ap-credit-notes","commandType":"list-ap-credit-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.001.000.read-ap-credit-note-lines","commandType":"read-ap-credit-note-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.002.000.get-ap-credit-note","commandType":"get-ap-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.004.001.validate-ap-credit-note","commandType":"validate-ap-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.005.002.create-ap-credit-note","commandType":"create-ap-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.006.003.update-ap-credit-note","commandType":"update-ap-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.007.004.void-ap-credit-note","commandType":"void-ap-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.003.008.005.delete-ap-credit-note","commandType":"delete-ap-credit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.000.000.list-ap-debit-notes","commandType":"list-ap-debit-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.001.000.read-ap-debit-note-lines","commandType":"read-ap-debit-note-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.002.000.get-ap-debit-note","commandType":"get-ap-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.004.001.validate-ap-debit-note","commandType":"validate-ap-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.005.002.create-ap-debit-note","commandType":"create-ap-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.006.003.update-ap-debit-note","commandType":"update-ap-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.007.004.void-ap-debit-note","commandType":"void-ap-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.004.008.005.delete-ap-debit-note","commandType":"delete-ap-debit-note","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.999.000.000.list-ap-deposits","commandType":"list-ap-deposits","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.999.001.000.read-ap-outstanding","commandType":"read-ap-outstanding","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.999.001.000.read-creditors","commandType":"read-creditors","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.999.002.000.get-ap-deposit","commandType":"get-ap-deposit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.999.002.000.get-creditor-detail","commandType":"get-creditor-detail","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AP","displayGroup":"AP","displayOrder":"004.999.004.001.validate-ap-deposit","commandType":"validate-ap-deposit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.000.000.list-stock-item-brands","commandType":"list-stock-item-brands","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.000.000.list-stock-item-categories","commandType":"list-stock-item-categories","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.000.000.list-stock-item-groups","commandType":"list-stock-item-groups","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.000.000.list-stock-item-types","commandType":"list-stock-item-types","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.000.000.list-stock-update-costs","commandType":"list-stock-update-costs","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.001.000.read-items","commandType":"read-items","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.001.000.read-items-all","commandType":"read-items-all","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.001.000.read-locations","commandType":"read-locations","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.001.000.read-stock-detail-lines","commandType":"read-stock-detail-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.001.000.read-stock-movement","commandType":"read-stock-movement","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.001.000.read-stock-update-cost-lines","commandType":"read-stock-update-cost-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.002.000.get-stock-item-brand","commandType":"get-stock-item-brand","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.002.000.get-stock-item-category","commandType":"get-stock-item-category","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.002.000.get-stock-item-detail","commandType":"get-stock-item-detail","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.002.000.get-stock-item-group","commandType":"get-stock-item-group","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.002.000.get-stock-item-type","commandType":"get-stock-item-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.002.000.get-stock-update-cost","commandType":"get-stock-update-cost","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.004.001.validate-stock-update-cost","commandType":"validate-stock-update-cost","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.005.002.create-stock-item-brand","commandType":"create-stock-item-brand","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.005.002.create-stock-item-category","commandType":"create-stock-item-category","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.005.002.create-stock-item-group","commandType":"create-stock-item-group","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.005.002.create-stock-item-type","commandType":"create-stock-item-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.005.002.create-stock-update-cost","commandType":"create-stock-update-cost","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.006.003.update-stock-item-brand","commandType":"update-stock-item-brand","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.006.003.update-stock-item-category","commandType":"update-stock-item-category","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.006.003.update-stock-item-group","commandType":"update-stock-item-group","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.006.003.update-stock-item-type","commandType":"update-stock-item-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.006.003.update-stock-update-cost","commandType":"update-stock-update-cost","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.007.004.void-stock-update-cost","commandType":"void-stock-update-cost","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.008.005.delete-stock-update-cost","commandType":"delete-stock-update-cost","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.000.999.999.export-items","commandType":"export-items","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.001.003.000.stock-balance","commandType":"stock-balance","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.000.000.list-stock-adjustments","commandType":"list-stock-adjustments","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.001.000.read-stock-adjustment-lines","commandType":"read-stock-adjustment-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.002.000.get-stock-adjustment","commandType":"get-stock-adjustment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.004.001.validate-stock-adjustment","commandType":"validate-stock-adjustment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.005.002.create-stock-adjustment","commandType":"create-stock-adjustment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.006.003.update-stock-adjustment","commandType":"update-stock-adjustment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.007.004.void-stock-adjustment","commandType":"void-stock-adjustment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.002.008.005.delete-stock-adjustment","commandType":"delete-stock-adjustment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.000.000.list-stock-receives","commandType":"list-stock-receives","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.001.000.read-stock-receive-lines","commandType":"read-stock-receive-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.002.000.get-stock-receive","commandType":"get-stock-receive","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.004.001.validate-stock-receive","commandType":"validate-stock-receive","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.005.002.create-stock-receive","commandType":"create-stock-receive","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.006.003.update-stock-receive","commandType":"update-stock-receive","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.007.004.void-stock-receive","commandType":"void-stock-receive","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.003.008.005.delete-stock-receive","commandType":"delete-stock-receive","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.000.000.list-stock-issues","commandType":"list-stock-issues","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.001.000.read-stock-issue-lines","commandType":"read-stock-issue-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.002.000.get-stock-issue","commandType":"get-stock-issue","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.004.001.validate-stock-issue","commandType":"validate-stock-issue","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.005.002.create-stock-issue","commandType":"create-stock-issue","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.006.003.update-stock-issue","commandType":"update-stock-issue","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.007.004.void-stock-issue","commandType":"void-stock-issue","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.004.008.005.delete-stock-issue","commandType":"delete-stock-issue","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.000.000.list-stock-transfers","commandType":"list-stock-transfers","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.001.000.read-stock-transfer-lines","commandType":"read-stock-transfer-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.002.000.get-stock-transfer","commandType":"get-stock-transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.004.001.validate-stock-transfer","commandType":"validate-stock-transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.005.002.create-stock-transfer","commandType":"create-stock-transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.006.003.update-stock-transfer","commandType":"update-stock-transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.007.004.void-stock-transfer","commandType":"void-stock-transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.005.008.005.delete-stock-transfer","commandType":"delete-stock-transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.000.000.list-stock-takes","commandType":"list-stock-takes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.001.000.read-stock-take-lines","commandType":"read-stock-take-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.002.000.get-stock-take","commandType":"get-stock-take","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.004.001.validate-stock-take","commandType":"validate-stock-take","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.005.002.create-stock-take","commandType":"create-stock-take","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.006.003.update-stock-take","commandType":"update-stock-take","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.007.004.void-stock-take","commandType":"void-stock-take","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.006.008.005.delete-stock-take","commandType":"delete-stock-take","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.000.000.list-stock-write-offs","commandType":"list-stock-write-offs","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.001.000.read-stock-write-off-lines","commandType":"read-stock-write-off-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.002.000.get-stock-write-off","commandType":"get-stock-write-off","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.004.001.validate-stock-write-off","commandType":"validate-stock-write-off","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.005.002.create-stock-write-off","commandType":"create-stock-write-off","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.006.003.update-stock-write-off","commandType":"update-stock-write-off","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.007.004.void-stock-write-off","commandType":"void-stock-write-off","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.007.008.005.delete-stock-write-off","commandType":"delete-stock-write-off","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.000.000.list-stock-uom-conversions","commandType":"list-stock-uom-conversions","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.001.000.read-stock-uom-conversion-lines","commandType":"read-stock-uom-conversion-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.002.000.get-stock-uom-conversion","commandType":"get-stock-uom-conversion","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.004.001.validate-stock-uom-conversion","commandType":"validate-stock-uom-conversion","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.005.002.create-stock-uom-conversion","commandType":"create-stock-uom-conversion","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.006.003.update-stock-uom-conversion","commandType":"update-stock-uom-conversion","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.007.004.void-stock-uom-conversion","commandType":"void-stock-uom-conversion","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.008.008.005.delete-stock-uom-conversion","commandType":"delete-stock-uom-conversion","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.000.000.list-item-packages","commandType":"list-item-packages","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.002.000.get-item-package","commandType":"get-item-package","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.004.001.validate-item-package","commandType":"validate-item-package","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.005.002.create-item-package","commandType":"create-item-package","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.006.003.update-item-package","commandType":"update-item-package","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.007.004.void-item-package","commandType":"void-item-package","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.009.008.005.delete-item-package","commandType":"delete-item-package","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.000.000.list-bom-items","commandType":"list-bom-items","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.002.000.get-item-bom","commandType":"get-item-bom","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.004.001.validate-item-bom","commandType":"validate-item-bom","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.005.002.create-item-bom","commandType":"create-item-bom","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.006.003.update-item-bom","commandType":"update-item-bom","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.007.004.void-item-bom","commandType":"void-item-bom","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.010.008.005.delete-item-bom","commandType":"delete-item-bom","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.000.000.list-stock-assemblies","commandType":"list-stock-assemblies","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.000.000.list-stock-assembly-orders","commandType":"list-stock-assembly-orders","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.000.000.list-stock-disassemblies","commandType":"list-stock-disassemblies","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.002.000.get-stock-assembly","commandType":"get-stock-assembly","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.002.000.get-stock-assembly-order","commandType":"get-stock-assembly-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.002.000.get-stock-disassembly","commandType":"get-stock-disassembly","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.004.001.validate-stock-assembly","commandType":"validate-stock-assembly","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.004.001.validate-stock-assembly-order","commandType":"validate-stock-assembly-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.004.001.validate-stock-disassembly","commandType":"validate-stock-disassembly","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.005.002.create-stock-assembly","commandType":"create-stock-assembly","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.005.002.create-stock-assembly-order","commandType":"create-stock-assembly-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.005.002.create-stock-disassembly","commandType":"create-stock-disassembly","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.006.003.update-stock-assembly","commandType":"update-stock-assembly","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.006.003.update-stock-assembly-order","commandType":"update-stock-assembly-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.006.003.update-stock-disassembly","commandType":"update-stock-disassembly","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.007.004.void-stock-assembly","commandType":"void-stock-assembly","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.007.004.void-stock-assembly-order","commandType":"void-stock-assembly-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.007.004.void-stock-disassembly","commandType":"void-stock-disassembly","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.008.005.delete-stock-assembly","commandType":"delete-stock-assembly","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.008.005.delete-stock-assembly-order","commandType":"delete-stock-assembly-order","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Stock","displayGroup":"Stock","displayOrder":"005.011.008.005.delete-stock-disassembly","commandType":"delete-stock-disassembly","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.001.000.read-chart-accounts","commandType":"read-chart-accounts","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.001.000.read-gl-account-balance","commandType":"read-gl-account-balance","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.002.000.get-gl-account","commandType":"get-gl-account","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.005.002.create-fixed-asset-gl-accounts","commandType":"create-fixed-asset-gl-accounts","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.005.002.create-gl-account","commandType":"create-gl-account","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.006.003.update-gl-account","commandType":"update-gl-account","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.007.004.void-gl-account","commandType":"void-gl-account","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.000.008.005.delete-gl-account","commandType":"delete-gl-account","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.000.000.list-journal-entries","commandType":"list-journal-entries","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.002.000.get-journal-entry","commandType":"get-journal-entry","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.004.001.validate-journal-entry","commandType":"validate-journal-entry","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.005.002.create-journal-entry","commandType":"create-journal-entry","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.006.003.update-journal-entry","commandType":"update-journal-entry","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.007.004.void-journal-entry","commandType":"void-journal-entry","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL","displayGroup":"GL","displayOrder":"006.002.008.005.delete-journal-entry","commandType":"delete-journal-entry","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.000.000.list-gl-bank-cash-accounts","commandType":"list-gl-bank-cash-accounts","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.000.000.list-gl-cash-book-documents","commandType":"list-gl-cash-book-documents","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.000.000.list-gl-cash-book-entries","commandType":"list-gl-cash-book-entries","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.002.000.get-gl-cash-book-entry","commandType":"get-gl-cash-book-entry","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.004.001.validate-gl-cash-book-payment","commandType":"validate-gl-cash-book-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.004.001.validate-gl-cash-book-receipt","commandType":"validate-gl-cash-book-receipt","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.005.002.create-gl-cash-book-payment","commandType":"create-gl-cash-book-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.005.002.create-gl-cash-book-receipt","commandType":"create-gl-cash-book-receipt","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.006.003.update-gl-cash-book-entry","commandType":"update-gl-cash-book-entry","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.007.004.void-gl-cash-book-entry","commandType":"void-gl-cash-book-entry","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.000.008.005.delete-gl-cash-book-entry","commandType":"delete-gl-cash-book-entry","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.003.001.000.read-gl-cash-flow-accounts","commandType":"read-gl-cash-flow-accounts","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.999.000.000.list-gl-cheques","commandType":"list-gl-cheques","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"GL Cash Book","displayGroup":"GL Cash Book","displayOrder":"007.999.001.000.read-payment-methods","commandType":"read-payment-methods","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.000.000.list-gl-bank-reconciliation-uncleared","commandType":"list-gl-bank-reconciliation-uncleared","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.000.000.list-gl-bank-reconciliations","commandType":"list-gl-bank-reconciliations","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.002.000.get-gl-bank-reconciliation","commandType":"get-gl-bank-reconciliation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.004.001.validate-gl-bank-reconciliation","commandType":"validate-gl-bank-reconciliation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.005.002.create-gl-bank-reconciliation","commandType":"create-gl-bank-reconciliation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.006.003.update-gl-bank-reconciliation","commandType":"update-gl-bank-reconciliation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.007.004.void-gl-bank-reconciliation","commandType":"void-gl-bank-reconciliation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bank Reconciliation","displayGroup":"Bank Reconciliation","displayOrder":"008.999.008.005.delete-gl-bank-reconciliation","commandType":"delete-gl-bank-reconciliation","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.000.000.007.list-autocount-report-templates","commandType":"list-autocount-report-templates","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.001.010.007.sales-document-autocount-pdf","commandType":"sales-document-autocount-pdf","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.001.010.007.sales-invoice-autocount-pdf","commandType":"sales-invoice-autocount-pdf","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.001.010.007.sales-report-html","commandType":"sales-report-html","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.002.010.007.purchase-document-autocount-pdf","commandType":"purchase-document-autocount-pdf","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.004.010.007.stock-document-autocount-pdf","commandType":"stock-document-autocount-pdf","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.006.010.007.arap-statement-autocount-pdf","commandType":"arap-statement-autocount-pdf","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"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."]},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.006.010.007.creditor-statement-report","commandType":"creditor-statement-report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.006.010.007.debtor-statement-report","commandType":"debtor-statement-report","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.006.010.007.statement-report-html","commandType":"statement-report-html","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.007.010.007.arap-document-autocount-pdf","commandType":"arap-document-autocount-pdf","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Reports","displayGroup":"Reports","displayOrder":"009.007.010.007.gl-document-autocount-pdf","commandType":"gl-document-autocount-pdf","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.000.005.002.create-debtor","commandType":"create-debtor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.000.006.003.update-debtor","commandType":"update-debtor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.000.007.004.void-debtor","commandType":"void-debtor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.000.008.005.delete-debtor","commandType":"delete-debtor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.001.005.002.create-creditor","commandType":"create-creditor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.001.006.003.update-creditor","commandType":"update-creditor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.001.007.004.void-creditor","commandType":"void-creditor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.001.008.005.delete-creditor","commandType":"delete-creditor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.002.005.002.create-item","commandType":"create-item","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.002.006.003.update-item","commandType":"update-item","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.002.007.004.void-item","commandType":"void-item","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.002.008.005.delete-item","commandType":"delete-item","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Master Data","displayGroup":"Master Data","displayOrder":"010.011.001.000.read-default-accounts","commandType":"read-default-accounts","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.000.012.009.einvoice.setting.get","commandType":"einvoice.setting.get","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.001.012.009.einvoice.status.list","commandType":"einvoice.status.list","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.001.012.009.einvoice.status.refresh","commandType":"einvoice.status.refresh","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.002.005.002.einvoice.consolidated.create-draft","commandType":"einvoice.consolidated.create-draft","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.002.012.009.einvoice.consolidated.list","commandType":"einvoice.consolidated.list","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.003.005.002.einvoice.self-billed.create-draft","commandType":"einvoice.self-billed.create-draft","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.003.012.009.einvoice.self-billed.list","commandType":"einvoice.self-billed.list","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.004.005.002.einvoice.supplier-item-mapping.create","commandType":"einvoice.supplier-item-mapping.create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.004.012.009.einvoice.supplier-item-mapping.list","commandType":"einvoice.supplier-item-mapping.list","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.004.012.009.einvoice.supplier-item-mapping.update","commandType":"einvoice.supplier-item-mapping.update","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.005.007.004.einvoice.cancel","commandType":"einvoice.cancel","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.005.012.009.einvoice.reject-request.sync","commandType":"einvoice.reject-request.sync","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.005.012.009.einvoice.submit","commandType":"einvoice.submit","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.005.012.009.einvoice.supplier-import.apply","commandType":"einvoice.supplier-import.apply","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"e-Invoice","displayGroup":"e-Invoice","displayOrder":"011.005.012.009.einvoice.supplier-import.preview","commandType":"einvoice.supplier-import.preview","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create","commandType":"bulk-create","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-advanced-quotations","commandType":"bulk-create-advanced-quotations","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ap-credit-notes","commandType":"bulk-create-ap-credit-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ap-debit-notes","commandType":"bulk-create-ap-debit-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ap-invoices","commandType":"bulk-create-ap-invoices","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ap-payments","commandType":"bulk-create-ap-payments","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ap-refunds","commandType":"bulk-create-ap-refunds","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ar-credit-notes","commandType":"bulk-create-ar-credit-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ar-debit-notes","commandType":"bulk-create-ar-debit-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ar-invoices","commandType":"bulk-create-ar-invoices","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ar-payments","commandType":"bulk-create-ar-payments","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-ar-refunds","commandType":"bulk-create-ar-refunds","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-arap-contras","commandType":"bulk-create-arap-contras","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-cash-purchases","commandType":"bulk-create-cash-purchases","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-cash-sales","commandType":"bulk-create-cash-sales","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-creditors","commandType":"bulk-create-creditors","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-debtors","commandType":"bulk-create-debtors","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-delivery-orders","commandType":"bulk-create-delivery-orders","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-fixed-asset-gl-accounts","commandType":"bulk-create-fixed-asset-gl-accounts","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-addresses","commandType":"bulk-create-general-addresses","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-areas","commandType":"bulk-create-general-areas","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-cn-types","commandType":"bulk-create-general-cn-types","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-creditor-types","commandType":"bulk-create-general-creditor-types","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-currencies","commandType":"bulk-create-general-currencies","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-debtor-types","commandType":"bulk-create-general-debtor-types","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-dn-types","commandType":"bulk-create-general-dn-types","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-payment-methods","commandType":"bulk-create-general-payment-methods","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-price-categories","commandType":"bulk-create-general-price-categories","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-projects","commandType":"bulk-create-general-projects","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-purchase-agents","commandType":"bulk-create-general-purchase-agents","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-sales-agents","commandType":"bulk-create-general-sales-agents","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-general-shipping-methods","commandType":"bulk-create-general-shipping-methods","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-gl-accounts","commandType":"bulk-create-gl-accounts","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-gl-cash-book-payments","commandType":"bulk-create-gl-cash-book-payments","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-gl-cash-book-receipts","commandType":"bulk-create-gl-cash-book-receipts","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-goods-received-notes","commandType":"bulk-create-goods-received-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-item-boms","commandType":"bulk-create-item-boms","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-item-packages","commandType":"bulk-create-item-packages","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-items","commandType":"bulk-create-items","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-journal-entries","commandType":"bulk-create-journal-entries","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-purchase-invoices","commandType":"bulk-create-purchase-invoices","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-purchase-orders","commandType":"bulk-create-purchase-orders","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-purchase-returns","commandType":"bulk-create-purchase-returns","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-quotations","commandType":"bulk-create-quotations","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-sales-credit-notes","commandType":"bulk-create-sales-credit-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-sales-debit-notes","commandType":"bulk-create-sales-debit-notes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-sales-invoices","commandType":"bulk-create-sales-invoices","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-sales-orders","commandType":"bulk-create-sales-orders","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-adjustments","commandType":"bulk-create-stock-adjustments","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-assemblies","commandType":"bulk-create-stock-assemblies","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-assembly-orders","commandType":"bulk-create-stock-assembly-orders","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-disassemblies","commandType":"bulk-create-stock-disassemblies","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-issues","commandType":"bulk-create-stock-issues","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-receives","commandType":"bulk-create-stock-receives","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-takes","commandType":"bulk-create-stock-takes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-transfers","commandType":"bulk-create-stock-transfers","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-uom-conversions","commandType":"bulk-create-stock-uom-conversions","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-update-costs","commandType":"bulk-create-stock-update-costs","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Bulk","displayGroup":"Bulk / Tools","displayOrder":"012.000.011.008.bulk-create-stock-write-offs","commandType":"bulk-create-stock-write-offs","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-gst-processors","commandType":"list-gst-processors","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-sst-processors","commandType":"list-sst-processors","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-tariff-codes","commandType":"list-tariff-codes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-tax-codes","commandType":"list-tax-codes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-tax-entities","commandType":"list-tax-entities","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-tax-types","commandType":"list-tax-types","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.000.000.list-withholding-tax-codes","commandType":"list-withholding-tax-codes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.001.000.read-gst-settings","commandType":"read-gst-settings","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.001.000.read-sst-settings","commandType":"read-sst-settings","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-gst-processor","commandType":"get-gst-processor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-sst-processor","commandType":"get-sst-processor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-tariff-code","commandType":"get-tariff-code","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-tax-code","commandType":"get-tax-code","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-tax-entity","commandType":"get-tax-entity","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-tax-type","commandType":"get-tax-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.002.000.get-withholding-tax-code","commandType":"get-withholding-tax-code","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-gst-payment","commandType":"create-gst-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-gst-processor","commandType":"create-gst-processor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-sst-payment","commandType":"create-sst-payment","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-sst-processor","commandType":"create-sst-processor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-tariff-code","commandType":"create-tariff-code","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-tax-code","commandType":"create-tax-code","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-tax-entity","commandType":"create-tax-entity","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-tax-type","commandType":"create-tax-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.005.002.create-withholding-tax-code","commandType":"create-withholding-tax-code","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-gst-processor","commandType":"update-gst-processor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-gst-settings","commandType":"update-gst-settings","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-sst-processor","commandType":"update-sst-processor","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-sst-settings","commandType":"update-sst-settings","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-tariff-code","commandType":"update-tariff-code","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-tax-code","commandType":"update-tax-code","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-tax-entity","commandType":"update-tax-entity","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-tax-type","commandType":"update-tax-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Tax","displayGroup":"Tax","displayOrder":"013.999.006.003.update-withholding-tax-code","commandType":"update-withholding-tax-code","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.000.000.list-arap-contras","commandType":"list-arap-contras","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-account-types","commandType":"list-general-account-types","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-addresses","commandType":"list-general-addresses","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-areas","commandType":"list-general-areas","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-cn-types","commandType":"list-general-cn-types","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-credit-terms","commandType":"list-general-credit-terms","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-creditor-types","commandType":"list-general-creditor-types","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-currencies","commandType":"list-general-currencies","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-debtor-types","commandType":"list-general-debtor-types","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-dn-types","commandType":"list-general-dn-types","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-payment-methods","commandType":"list-general-payment-methods","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-price-categories","commandType":"list-general-price-categories","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-projects","commandType":"list-general-projects","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-purchase-agents","commandType":"list-general-purchase-agents","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-sales-agents","commandType":"list-general-sales-agents","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.000.000.list-general-shipping-methods","commandType":"list-general-shipping-methods","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"POS","displayGroup":"POS","displayOrder":"999.999.000.000.list-pos-raw-transactions","commandType":"list-pos-raw-transactions","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"UDF","displayGroup":"UDF","displayOrder":"999.999.000.000.list-udf-definitions","commandType":"list-udf-definitions","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"UDF","displayGroup":"UDF","displayOrder":"999.999.000.000.list-udf-tables","commandType":"list-udf-tables","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.001.000.read-company-ai-context","commandType":"read-company-ai-context","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.001.000.read-company-profile","commandType":"read-company-profile","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Linked Documents","displayGroup":"Linked Documents","displayOrder":"999.999.001.000.read-document-linkage","commandType":"read-document-linkage","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.001.000.read-field-catalog","commandType":"read-field-catalog","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.002.000.get-arap-contra","commandType":"get-arap-contra","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-account-type","commandType":"get-general-account-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-address","commandType":"get-general-address","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-area","commandType":"get-general-area","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-cn-type","commandType":"get-general-cn-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-credit-term","commandType":"get-general-credit-term","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-creditor-type","commandType":"get-general-creditor-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-currency","commandType":"get-general-currency","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-debtor-type","commandType":"get-general-debtor-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-dn-type","commandType":"get-general-dn-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-payment-method","commandType":"get-general-payment-method","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-price-category","commandType":"get-general-price-category","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-project","commandType":"get-general-project","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-purchase-agent","commandType":"get-general-purchase-agent","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-sales-agent","commandType":"get-general-sales-agent","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.002.000.get-general-shipping-method","commandType":"get-general-shipping-method","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"POS","displayGroup":"POS","displayOrder":"999.999.002.000.get-pos-raw-transaction","commandType":"get-pos-raw-transaction","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.004.001.validate-arap-contra","commandType":"validate-arap-contra","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.004.001.validate-command","commandType":"validate-command","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.005.002.create-account-book","commandType":"create-account-book","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.005.002.create-arap-contra","commandType":"create-arap-contra","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-account-type","commandType":"create-general-account-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-address","commandType":"create-general-address","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-area","commandType":"create-general-area","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-cn-type","commandType":"create-general-cn-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-credit-term","commandType":"create-general-credit-term","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-creditor-type","commandType":"create-general-creditor-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-currency","commandType":"create-general-currency","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-debtor-type","commandType":"create-general-debtor-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-dn-type","commandType":"create-general-dn-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-payment-method","commandType":"create-general-payment-method","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-price-category","commandType":"create-general-price-category","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-project","commandType":"create-general-project","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-purchase-agent","commandType":"create-general-purchase-agent","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-sales-agent","commandType":"create-general-sales-agent","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.005.002.create-general-shipping-method","commandType":"create-general-shipping-method","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"UDF","displayGroup":"UDF","displayOrder":"999.999.005.002.create-udf-field","commandType":"create-udf-field","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.006.003.update-arap-contra","commandType":"update-arap-contra","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-account-type","commandType":"update-general-account-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-address","commandType":"update-general-address","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-area","commandType":"update-general-area","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-cn-type","commandType":"update-general-cn-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-credit-term","commandType":"update-general-credit-term","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-creditor-type","commandType":"update-general-creditor-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-currency","commandType":"update-general-currency","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-debtor-type","commandType":"update-general-debtor-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-dn-type","commandType":"update-general-dn-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-payment-method","commandType":"update-general-payment-method","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-price-category","commandType":"update-general-price-category","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-project","commandType":"update-general-project","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-purchase-agent","commandType":"update-general-purchase-agent","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-sales-agent","commandType":"update-general-sales-agent","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.006.003.update-general-shipping-method","commandType":"update-general-shipping-method","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"UDF","displayGroup":"UDF","displayOrder":"999.999.006.003.update-udf-field","commandType":"update-udf-field","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.007.004.void-arap-contra","commandType":"void-arap-contra","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-account-type","commandType":"void-general-account-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-address","commandType":"void-general-address","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-area","commandType":"void-general-area","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-cn-type","commandType":"void-general-cn-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-credit-term","commandType":"void-general-credit-term","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-creditor-type","commandType":"void-general-creditor-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-currency","commandType":"void-general-currency","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-debtor-type","commandType":"void-general-debtor-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-dn-type","commandType":"void-general-dn-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-payment-method","commandType":"void-general-payment-method","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-price-category","commandType":"void-general-price-category","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-project","commandType":"void-general-project","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-purchase-agent","commandType":"void-general-purchase-agent","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-sales-agent","commandType":"void-general-sales-agent","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.007.004.void-general-shipping-method","commandType":"void-general-shipping-method","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"AR/AP Contra","displayGroup":"AR/AP Contra","displayOrder":"999.999.008.005.delete-arap-contra","commandType":"delete-arap-contra","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-account-type","commandType":"delete-general-account-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-address","commandType":"delete-general-address","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-area","commandType":"delete-general-area","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-cn-type","commandType":"delete-general-cn-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-credit-term","commandType":"delete-general-credit-term","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-creditor-type","commandType":"delete-general-creditor-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-currency","commandType":"delete-general-currency","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-debtor-type","commandType":"delete-general-debtor-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-dn-type","commandType":"delete-general-dn-type","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-payment-method","commandType":"delete-general-payment-method","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-price-category","commandType":"delete-general-price-category","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-project","commandType":"delete-general-project","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-purchase-agent","commandType":"delete-general-purchase-agent","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-sales-agent","commandType":"delete-general-sales-agent","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"General Maintenance","displayGroup":"General Maintenance","displayOrder":"999.999.008.005.delete-general-shipping-method","commandType":"delete-general-shipping-method","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.999.999.explain-command-error","commandType":"explain-command-error","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Linked Documents","displayGroup":"Linked Documents","displayOrder":"999.999.999.999.partial-transfer-document","commandType":"partial-transfer-document","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Linked Documents","displayGroup":"Linked Documents","displayOrder":"999.999.999.999.rebuild-linked-document-lines","commandType":"rebuild-linked-document-lines","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Linked Documents","displayGroup":"Linked Documents","displayOrder":"999.999.999.999.reverse-document-transfer","commandType":"reverse-document-transfer","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.999.999.run-company-discovery","commandType":"run-company-discovery","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]},{"module":"Startup / Account Book","displayGroup":"Startup / Account Book","displayOrder":"999.999.999.999.suggest-command-fixes","commandType":"suggest-command-fixes","endpoint":"POST /v1/commands","resultEndpoint":"GET /v1/commands/{commandId}","artifactEndpoint":"GET /v1/commands/{commandId}/artifact","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."]}]}