# Coretax and ERP: Tax Invoice Data and Monthly Reconciliation

> Tidy counterparty data, tax-treatment mapping, invoice flow, returns, input tax, and monthly reconciliation in the ERP so it stays in sync with Coretax.

Source: https://www.agsora.tech/en/blog/coretax-dan-erp-merapikan-data-faktur-pajak-dan-rekonsiliasi-bulanan
Category: ERP & Operations · Published: 2026-12-02 · Updated: 2026-12-02 · By PT Agsora Teknologi Indonesia

Since the core tax administration system called Coretax came into use at Indonesia's Directorate General of Taxes, many companies have found that the hardest work is not on the Coretax screens themselves but in the data that flows into them. Rejected tax invoices, counterparty names and identities that do not match, and differences between ERP figures and period reports consume the finance team's time every month. Toward year-end closing and annual reporting, small problems that pile up become large jobs. This article explains how to tidy data and processes in the ERP so synchronisation with Coretax runs more calmly, without replacing the role of a tax consultant or official rules.

*The accuracy of transaction data in the ERP determines how smoothly tax invoices and period reports can be prepared.*

## An important note before reading

Tax rules, file formats, and Coretax features can change through regulations and system updates. This article describes data management and internal process practice, not tax advice. For the latest rates, obligations, and formats, refer to official Directorate General of Taxes sources and your tax consultant. We also do not state specific figures or deadlines, because they depend on the type of business and the regulations in force when you read this.

## Why ERP data is at the centre of the problem

Coretax combines many services that were previously separate. For a company, that means the same data is used for several purposes: issuing tax invoices, withholding slips, period reporting, and matching against other parties' data. If source data in the ERP is not uniform, mismatches appear in many places at once.

The patterns most often heard about:

- A buyer's name or identity number in the ERP differs from what is registered in the tax system, so the invoice fails to process.
- One customer has several codes with differently written names, so the summary per counterparty is inconsistent.
- Return documents, credit notes, or invoice replacements are not linked to the original invoice.
- The tax base on the invoice differs from the sales value in the ledger because discounts, advances, or delivery fees are recorded differently.
- Input tax from suppliers cannot be matched because invoice numbers were typed manually with mistakes.

The root of all this is almost always the same: master data that is not maintained and processes that depend on manual input. Master data issues are covered in [ERP master data: item, customer, and supplier codes](https://www.agsora.tech/en/blog/master-data-erp-kode-barang-pelanggan-pemasok).

## Step one: tidy counterparty data

Customers and suppliers are the biggest source of errors. Create simple but strict rules.

- One counterparty, one master code. Duplicates are merged with a clear trail.
- Tax identity fields are mandatory according to counterparty type, and verified against official documents received, not copied from conversations.
- Names are written as on the official identity, not nicknames or brand names.
- Address and, where relevant, the business location or branch marker are recorded separately from the delivery address.
- The counterparty's status (active or not) and last verification date are stored.

For existing customers, run a one-time clean-up: export the list, flag those with empty or odd-looking identity fields, then ask the sales team to complete them. Broader governance rules are in [data quality and data governance for mid-sized businesses](https://www.agsora.tech/en/blog/kualitas-data-dan-tata-kelola-data-untuk-bisnis-menengah).

## Step two: map transactions to tax treatment

Each type of transaction needs to be mapped to the correct tax treatment code in the ERP. Prepare a mapping table approved by your tax consultant.

- Type of goods or services and its treatment, for example taxable, non-taxable, or exempt.
- Type of supply: ordinary sale, export, supply to a collector, or other special transaction.
- Treatment of advances, instalments, and staged billing.
- Treatment of discounts, free goods, and additional charges.
- Treatment of returns and cancellations.

This mapping is installed as configuration in the ERP so cashiers and billing staff do not have to choose manually each time. Manual choice is the most expensive source of error. A general discussion of ERP and electronic invoicing is in [electronic invoicing and tax compliance with ERP](https://www.agsora.tech/en/blog/faktur-elektronik-dan-kepatuhan-pajak-dengan-erp).

## Step three: a controlled invoice issuance flow

Design the flow from order to tax invoice as one traceable chain.

- Orders and deliveries trigger a draft invoice in the ERP with values taken from source documents.
- Automated checks reject drafts with empty counterparty identity, zero value, or an incomplete treatment code.
- Approval by tax staff when the value is above a threshold or the transaction type is special.
- Data is sent to Coretax through an import file or the tax application provider you use, following the mechanism in force.
- The invoice number and status from the tax system are saved back into the ERP and linked to the sales invoice.

The last point is often missed. Without the link back, reconciliation must rely on fragile matching of names and dates. Also store the issue date and who issued it, in line with [audit trails and internal control in ERP](https://www.agsora.tech/en/blog/jejak-audit-dan-pengendalian-internal-di-sistem-erp).

## Step four: handle returns, replacements, and cancellations

This is where differences most often arise. Working rules:

- A goods return is always created as a document that references the original invoice, not as a negative sale without reference.
- Replacing or cancelling an invoice is allowed only with a recorded reason and approval.
- A partial return is calculated proportionally so the tax base and tax amount adjust accordingly.
- Periods are handled carefully: a return in the following month does not change the figures of a month already reported without the proper procedure.

Warehouse, sales, and finance teams need to understand that one return triggers a tax effect. The flow of goods and claims is covered in [warranty, returns, and after-sales service with ERP](https://www.agsora.tech/en/blog/garansi-retur-barang-dan-layanan-purna-jual-rma-dengan-erp).

## Step five: input tax and suppliers

The purchasing side is just as important. Many companies focus on output invoices and are overwhelmed on the input side.

- Record supplier invoice numbers by scanning or import, not manual typing. Document extraction techniques are in [intelligent document processing for invoices and delivery notes](https://www.agsora.tech/en/blog/pemrosesan-dokumen-cerdas-idp-ocr-dan-ai-untuk-faktur-po-dan-surat-jalan).
- Match supplier invoices against purchase orders and goods receipts before payment, in line with [goods receipt and three-way matching](https://www.agsora.tech/en/blog/penerimaan-barang-dan-inspeksi-barang-masuk-dengan-erp-grn-retur-pemasok-dan-selisih).
- Flag input invoices not yet received or with mismatched data, then follow up with suppliers every week, not once a year.
- Keep the reason when input tax is not credited, so it can be explained during an examination.

## Step six: routine monthly reconciliation

Reconciliation is not a year-end activity but a monthly habit. Create three basic matches.

- Total sales in the ledger against the total tax base on output invoices, with a list of explained differences (exports, non-taxable sales, advances).
- Total output tax in the ledger against the tax on issued invoices.
- Total input tax in the ledger against valid input invoices.

Each difference gets an owner, a cause, and a completion date. The reconciliation report is stored as an attachment to the month-end close. If the data is available in the ERP, this report can be generated automatically; see also [automating routine reports](https://www.agsora.tech/en/blog/otomatisasi-laporan-rutin). For year-end, connect it with [year-end close in ERP: stocktake, adjustments, and opening balances](https://www.agsora.tech/en/blog/tutup-tahun-di-erp-stok-opname-penyesuaian-dan-saldo-awal-tahun-buku-baru).

## Access rights and segregation of duties

Tax data is sensitive and has legal consequences. Separate the roles.

- Billing staff create drafts but do not issue tax invoices.
- Tax staff issue and monitor but do not change customer master data.
- The master data administrator changes counterparty identity with approval.
- The finance supervisor reviews reconciliation and exceptions.

Access to the company's tax system account should be managed like bank access: a list of who holds it, periodic review, and immediate revocation when employees change roles. General discussion is in [designing user access rights](https://www.agsora.tech/en/blog/merancang-hak-akses-pengguna).

## Integration: import files or an interface

Data can reach Coretax by uploading files generated by the ERP or through an officially connected service provider. Choose by volume.

- Low volume: an import file generated by the ERP and uploaded manually after checking.
- Medium to high volume: automation through an official provider, with a queue, handling of failed submissions, and clear logs.

Whichever you choose, keep a copy of the file sent, the system's response, and the status of each document. Submission failures should appear on a dashboard, not be discovered at month-end. Principles of reliable integration are in [webhooks and real-time integration for business](https://www.agsora.tech/en/blog/webhook-dan-integrasi-real-time-untuk-bisnis).

## Retention and security of tax data

Tax documents must be kept for the period required by regulations, and your tax consultant can state the applicable limit. On the other side, customers' personal data on invoices is protected by personal data protection rules. Set retention and access deliberately; the approach is covered in [data retention and customer data deletion policy](https://www.agsora.tech/en/blog/kebijakan-retensi-data-dan-penghapusan-data-pelanggan-di-aplikasi-bisnis).

## A 60-day plan

- Days 1 to 10: export customer and supplier data, count those with empty or duplicate identity fields, and appoint data owners.
- Days 11 to 25: clean master data, prepare the tax-treatment mapping table with the consultant, and install automated checks on draft invoices.
- Days 26 to 40: test the flow from order to invoice with 20 to 30 real transactions and special cases such as returns, advances, and exports.
- Days 41 to 55: run a pilot monthly reconciliation and record the sources of differences.
- Days 56 to 60: set the SOP, segregation of duties, and routine reconciliation schedule.

## Preparing the team and documentation

Technology alone is not enough. Write a short working procedure: who prepares invoices, who approves, who handles rejections, and the deadline for resolution. Keep examples of past cases and how they were fixed as training material for new staff. Hold a short monthly meeting between finance, sales, and the systems team to review the list of rejections and differences. Regular meetings like this often uncover root causes, for example a new-customer form that does not ask for identity data, so the fix is made upstream instead of constantly patching downstream.

## Conclusion

Synchronising with Coretax is fundamentally a matter of data quality and process discipline. Companies that tidy master data, map tax treatment into system settings, link returns to original invoices, and reconcile every month will face year-end much more calmly. Start with the counterparty list, because that is where most rejections and differences begin.

**Tidy the tax and invoice data flow in your ERP** AG·SORA helps design master data, tax-treatment rules, integrations, and reconciliation reports in the ERP so reporting is more orderly. [Free consultation](https://www.agsora.tech/en/services/erp)
