# Building tax-compliant ERP for Indonesia

> How to build a Coretax-ready ERP in Indonesia: 16-digit NPWP and NITKU, PPN 12% on DPP Nilai Lain, 17-digit invoice numbers, XML import and landed cost.

URL: https://www.matthewswong.com/en/indonesia/tax-erp/

- Author: Matthews Wong (https://www.matthewswong.com/en/about/)
- Researched on: 12 October 2026

> **Key takeaway:** Since 1 January 2025 Indonesian tax invoices run through Coretax DJP. A compliant ERP stores NPWP and NITKU as fixed-length strings, charges PPN at 12% of a DPP Nilai Lain of 11/12 for non-luxury goods, rounds to whole rupiah, exports DJP's XML templates, and leaves the 17-digit invoice number empty until DJP approves the e-Faktur.

> **Research note and disclaimer.** Researched on 12 October 2026. Everything below summarises the official sources linked on this page as they stood on that date. Regulations, tax rates and provider fees in Indonesia change, sometimes with little notice. Check the linked source before you rely on any figure, and treat anything older than a few months as a starting point rather than the current rule. General information only, not tax, legal or financial advice. For a decision about your own business, consult a licensed tax consultant (konsultan pajak), a lawyer, or the provider directly.

## What you need to know

### Coretax replaced the old toolchain on 1 January 2025

DJP put Coretax DJP into service on 1 January 2025; its statement of 10 January admits the launch was rough, and at that point XML uploads were capped at 100 invoices per submission. Under PER-11/PJ/2025 a Faktur Pajak is an electronic document, signed electronically, made in the Portal Wajib Pajak or in an application integrated with DJP's system, which in practice means a PJAP, a tax application provider appointed by DJP.

The desktop client did not vanish. Under KEP-54/PJ/2025, from 12 February 2025 every PKP may create normal invoices in e-Faktur Client Desktop, except for transaction codes 06 and 07, PKPs that centralise VAT at a branch, and PKPs registered after 1 January 2025. Returns, cancellations and the SPT Masa PPN stay in Coretax, where desktop invoices appear within two days. Treat Coretax as the record and reconcile against it.

### Tax IDs: NIK, the 16-digit NPWP and NITKU

Since 1 July 2024 DJP's services use the NIK as the NPWP for resident individuals, a 16-digit NPWP, and a NITKU for each place of business; other parties could keep the 15-digit NPWP until 31 December 2024. DJP's FAQ defines the NITKU as 22 digits: the head office's 16-digit NPWP plus a 6-digit sequence, with the head office's own ending in 000000. A NITKU marks a location; tax obligations stay with the NPWP.

So store fixed-length digit strings, never integers: a leading zero lost in a JSON round-trip corrupts the ID. On the invoice, PER-11/PJ/2025 asks for the buyer's NPWP if it is a domestic company or government body, the NPWP or NIK for a resident individual, and a passport number for a foreign individual. DJP's XML templates added the NITKU and validate NPWP and NITKU values, so a malformed ID is rejected.

### PPN: what the tax engine has to encode

PMK 131/2024 sets PPN at 12% from 1 January 2025 on two bases. For luxury goods, meaning motor vehicles and other goods subject to PPnBM, the base is the full selling price or import value. For everything else it is DPP Nilai Lain, 11/12 of the import value, selling price or replacement value, so the tax comes to 11% of the price. PMK 11/2025, in force from 4 February 2025, moved the special nilai lain and fixed-amount schemes onto the same 12% × 11/12 form.

PER-11/PJ/2025 settles the rest. A Faktur Pajak is made at delivery, at payment if that comes first, or at each progress payment; a Faktur Pajak gabungan may cover one buyer for a calendar month, made by its end. Foreign-currency PPN is converted at the Minister of Finance rate in force when the invoice should have been made. DPP and PPN are whole rupiah, below 0.50 rounding down and 0.50 or more up. Store DPP, DPP Nilai Lain and PPN as separate integer fields, with the rate and coefficient read from effective-dated data.

### Invoice numbers, approval and XML export

The 17-digit number is a 2-digit transaction code, a 2-digit status code and a 13-digit serial that DJP assigns when the e-Faktur is uploaded and approved. Upload and approval must happen by the 20th of the month after the invoice date; an unapproved e-Faktur is not a Faktur Pajak. Since the number does not exist at draft time, model the invoice as a state machine (draft, uploaded, approved, replaced, cancelled). Desktop invoices gain a 9 at the fifth digit in Coretax, so keep both forms.

Bulk import is XML. DJP's template page lists what changed from the old CSV files and versions each converter; the output-invoice converter was at v1.6, dated 23 January 2026, on the research date. Pin the template version your serialiser targets and validate before upload. Since 1 October 2026, PER-12/PJ/2026 makes each SPT correction replace the previous return and blocks a normal SPT Masa PPN while the prior period's is missing, unless that period is under audit. Build each period as a complete snapshot.

### Imports: bea masuk, PPN impor and PPh 22

Bea masuk is charged on the CIF value at the rate for the goods' tariff line in PMK 26/PMK.010/2022, the customs tariff book, as amended. The import value used by the import taxes is CIF plus bea masuk and other customs levies. PPN impor on non-luxury goods is 12% of 11/12 of that value, and PMK 131/2024 lets it be credited as input tax under the tax rules.

PPh Pasal 22 on imports is collected by customs (DJBC) or a foreign-exchange bank under PMK 51/2025, in force since 1 August 2025: 2.5% of the import value with an API (importer identification number), 7.5% without, 10% or 7.5% for listed goods regardless of API, 0.5% for soybeans, wheat and flour with an API, and 0.25% for gold bars. It is not final; it counts toward that year's income tax. So a landed-cost engine puts freight, insurance and bea masuk into inventory cost, PPN impor into input VAT and PPh 22 into prepaid tax.

### Inventory, audit trail and the shape of the ERP

UU KUP Article 28(11) requires books, records and their source documents, including electronically processed data, to be kept for 10 years in Indonesia. Design retention around that: keep the exact XML you submitted and DJP's response with each invoice, keep stock opname count sheets and variance approvals, and make posted journals append-only, corrected by reversals.

The rest is architecture. Keep tax as its own module with an effective-dated table of rates, coefficients and transaction codes, so a regulation change is a data change. Hold money as integer rupiah, rounding where PER-11 says to. Derive invoices from deliveries, which follows PER-11's default timing. Count stock against a frozen snapshot with a second person approving variances, and give multi-entity groups a company and NITKU dimension on every document.

## What changed for the ERP, and what to change in code

| Area | Before | Now | What to change in code |
| --- | --- | --- | --- |
| Taxpayer ID | 15-digit NPWP, and a separate NPWP for each branch | From 1 July 2024: NIK as NPWP for resident individuals, a 16-digit NPWP, and a 22-digit NITKU per place of business | Store IDs as fixed-length digit strings, add a NITKU per location, validate length at entry |
| Invoice number | 16-digit number; NSFP requested in advance through e-Nofa | 17 digits: 2 transaction code, 2 status code, 13 serial; the serial is assigned when the e-Faktur is uploaded and approved | Drop the number pool, keep the number empty until approval, store both forms for desktop-era invoices |
| Bulk import | CSV files | XML built to DJP's templates, which add the NITKU and validate NPWP, NITKU, tax object codes and tax rates | Write an XML serialiser per template version and validate before upload |
| PPN base | Rate × selling price or replacement value, the DPP the VAT law defines | 12% × selling price for PPnBM goods; 12% × 11/12 of it (DPP Nilai Lain) for everything else | Store DPP, DPP Nilai Lain and PPN as separate fields; keep rate and coefficient as effective-dated data |
| Issuing channel | Legacy e-Faktur applications | Coretax portal, a PJAP host-to-host link, or e-Faktur Client Desktop for normal invoices since 12 February 2025; returns, cancellations and SPT Masa PPN only in Coretax | Treat Coretax as the source of truth and reconcile desktop invoices, which arrive within two days |
| SPT Masa PPN corrections | A correction reported the difference against the earlier return | From 1 October 2026 each correction replaces the previous return, and returns are filed in period order | Build each period as a full snapshot and block out-of-order filing |

State of play on 12 October 2026. Each row traces to the timeline and sources on this page. DJP revises its XML templates and converters, so record which version every export was built against.

## Timeline

- **1 July 2024: NIK as NPWP, the 16-digit NPWP and NITKU enter DJP services.** Tax ID columns move to 16-digit strings plus a 22-digit NITKU per location. Other parties could keep the 15-digit NPWP until 31 December 2024 if their systems were not ready. Source: [DJP announcement PENG-26/PJ.09/2024 on using the NPWP and NITKU (pajak.go.id)](https://www.pajak.go.id/sites/default/files/2024-09/Petunjuk%20Penggunaan%20Nomor%20Pokok%20Wajib%20Pajak%20dan%20Nomor%20Identitas%20Tempat%20Kegiatan%20Usaha%20bagi%20Wajib%20Pajak.pdf)
- **1 January 2025: Coretax DJP goes live.** Tax invoices are created and signed in Coretax. At launch it accepted XML uploads of up to 100 invoices per submission, and DJP's first fixes included company role access (impersonation) and a PIC for invoicing. Source: [DJP written statement KT-02/2025 on the Coretax implementation](https://www.pajak.go.id/sites/default/files/2025-01/KT-2_2025%20Keterangan%20Tertulis%20-%20Implementasi%20Coretax%20DJP.pdf)
- **1 January 2025: PMK 131/2024: PPN at 12%, on DPP Nilai Lain of 11/12 for non-luxury goods.** The tax engine needs two bases: the full price for PPnBM goods and 11/12 of it for everything else. For luxury goods sold to end consumers, the 11/12 base applied through January 2025 and the full base from 1 February 2025. Source: [Kemenkeu JDIH: PMK No. 131 Tahun 2024 on PPN treatment](https://jdih.kemenkeu.go.id/dok/pmk-131-tahun-2024)
- **4 February 2025: PMK 11/2025 consolidates DPP Nilai Lain and fixed-amount PPN.** Special bases that sat in separate regulations now use 12% × 11/12 × DPP, or a set formula × 12% × 11/12 × DPP. Each special case is a row in the rate table, not a code path. Source: [DJP press release SP-4/2025 on PMK-11/2025](https://www.pajak.go.id/sites/default/files/2025-02/SP-4%20PEMERINTAH%20TERBITKAN%20ATURAN%20DPP%20NILAI%20LAIN%20DAN%20BESARAN%20TERTENTU%20PPN.pdf)
- **12 February 2025: KEP-54/PJ/2025 reopens e-Faktur Client Desktop to every PKP.** Normal invoices may come from the desktop client, with exclusions; their numbers gain a 9 at the fifth digit in Coretax. Returns, cancellations and the SPT Masa PPN stay in Coretax. Source: [DJP announcement PENG-13/PJ.09/2025 on tax invoices via e-Faktur Client Desktop](https://www.pajak.go.id/sites/default/files/2025-02/Pembuatan%20Faktur%20Pajak%20Melalui%20Aplikasi%20E-Faktur%20Client%20Desktop.pdf)
- **31 March 2025: PER-1/PJ/2025 transition ends.** From 1 January to 31 March 2025, non-luxury invoices showing 11% or 12% of the selling price were treated as correct. After that, invoices had to show 12% × 11/12 × selling price; an overcharged buyer could ask for the 1% back through a replacement invoice. Source: [DJP written statement KT-01/2025 on PER-1/PJ/2025](https://www.pajak.go.id/sites/default/files/2025-04/KT-01.pdf)
- **22 May 2025: PER-11/PJ/2025 sets tax invoice rules for Coretax.** 17-digit code and serial, the serial assigned on approval, upload and approval by the 20th of the following month, and whole-rupiah rounding with 0.50 rounding up. Source: [DJP: full text of PER-11/PJ/2025 (pajak.go.id)](https://www.pajak.go.id/sites/default/files/lampiran/PER-11_PJ_2025_0.pdf)
- **1 August 2025: PMK 51/2025 resets PPh Pasal 22 collection, including on imports.** Import PPh 22 is 2.5% of import value with an API and 7.5% without, with fixed rates for listed goods. It is not final, so post it to prepaid income tax rather than inventory. Source: [PMK No. 51 Tahun 2025, full text (copy hosted by Klikpajak)](https://klikpajak.id/wp-content/uploads/2025/08/PMK-No-51-Tahun-2025.pdf)
- **23 January 2026: DJP updates the output-invoice XML converter to v1.6.** The converter and templates are versioned and keep changing. Record the template version each export targets, and re-test the serialiser when DJP publishes a new one. Source: [DJP: Template XML dan Converter Excel ke XML (pajak.go.id)](https://www.pajak.go.id/en/node/112031)
- **1 October 2026: PER-12/PJ/2026: SPT corrections replace, returns go in order.** Each SPT correction now replaces the previous return, and a normal SPT Masa PPN cannot be filed while the prior period's is missing unless that period is under audit. VAT return exports become full-period snapshots. Source: [DJP briefing on PER-12/PJ/2026, amending PER-11/PJ/2025 (pajak.go.id)](https://pajak.go.id/sites/default/files/2026-09/Pelaporan%20SPT%20Dalam%20Rangka%20Pelaksanaan%20Sistem%20Inti%20Administrasi%20Perpajakan%20(PER-12_PJ_%202026%20tentang%20Perubahan%20PER-11_PJ_2025%20%20tentang%20Ketentuan%20Pelaporan%20PPh,%20PPN,%20PPnBM,%20dan%20Bea%20Materai).pdf)

## Go deeper: the articles behind this guide

### Tax integration

- [Coretax DJP for Developers: e-Faktur, e-Bupot & NPWP Integration](https://www.matthewswong.com/en/blog/coretax-djp-tax-integration-indonesia-developer/): Read this when you are moving invoice and withholding exports onto Coretax and need the tax-ID, numbering and XML changes in one place
- [e-Faktur Integration for Indonesian ERP: PPN Done Right](https://www.matthewswong.com/en/blog/erp-e-faktur-tax-integration-indonesia/): Read this when you are building the tax-invoice module itself: NPWP validation, DPP calculation, NSFP handling and the export contract
- [Indonesian Tax Compliance in a Custom ERP: PPN, PPh, and e-Faktur Integration](https://www.matthewswong.com/en/blog/erp-tax-compliance-indonesia-ppn/): Read this when you want the overall layout of PPN, PPh withholding and month-end tax closing, with a Coretax XML serialiser
- [ERP Invoice PDF Generation: Puppeteer + Handlebars in NestJS](https://www.matthewswong.com/en/blog/erp-invoice-pdf-generation/): Read this when you are rendering the invoice document with rupiah formatting, the seller's NPWP and PPN under PMK 131/2024
- [Multi-Currency Accounting in ERP: Rates, FX Gains, IDR Rounding](https://www.matthewswong.com/en/blog/erp-multi-currency-accounting/): Read this when you invoice in USD and need the Minister of Finance tax rate kept apart from the accounting rate

### Imports, inventory and entities

- [Landed Cost in ERP: True Import Cost for Indonesian Trade](https://www.matthewswong.com/en/blog/erp-landed-cost-import-calculation-indonesia/): Read this when you need to spread freight, insurance and bea masuk across purchase lines while keeping PPN impor out of inventory
- [Stock Opname in ERP: Cycle Counts Without Freezing Ops](https://www.matthewswong.com/en/blog/erp-stock-opname-cycle-count-indonesia/): Read this when you want stock opname without freezing the warehouse: ABC cycle counts, frozen snapshots and variance approval
- [Multi-Company ERP: Intercompany Transactions and Elimination](https://www.matthewswong.com/en/blog/erp-multi-company-intercompany-transactions/): Read this when a second legal entity arrives and intercompany invoices, tax settings per company and eliminations have to be designed
- [ERP Fixed Asset Module: Depreciation Schedules Done Right](https://www.matthewswong.com/en/blog/erp-fixed-asset-depreciation-module/): Read this when you need depreciation schedules that reconcile to the ledger and feed the fiscal depreciation list in the annual return

### Architecture and money

- [Why We Store Money as Integer Rupiah, Never Float](https://www.matthewswong.com/en/blog/integer-money-idr-avoid-float-errors/): Read this when totals drift by a rupiah or two and you need integer money with a single rounding step
- [ERP General Ledger: Designing a Double-Entry Core](https://www.matthewswong.com/en/blog/erp-general-ledger-double-entry-design/): Read this when you are designing the ledger every tax posting lands in, including period close and reversing entries
- [Building an ERP Audit Trail and Activity Log: PostgreSQL, NestJS Interceptors, and React Activity Feed](https://www.matthewswong.com/en/blog/erp-audit-trail-activity-log/): Read this when you need a record of who changed what, kept for the 10 years UU KUP requires
- [Quote-to-Cash in ERP: Quotation to Invoice to Payment](https://www.matthewswong.com/en/blog/erp-quotation-to-cash-sales-workflow/): Read this when you are wiring quotation, order, delivery and invoice so invoices come from deliveries
- [Odoo ERP Custom Module Development: A Developer's Guide for Indonesian Business Workflows](https://www.matthewswong.com/en/blog/odoo-erp-custom-module-development-indonesia/): Read this when the ERP is Odoo and the Indonesian fields, 16-digit NPWP and NITKU checks and approval chain go in a custom module

### Choosing and running an ERP in Indonesia

- [ERP Market in Indonesia: Who's Using What and Why in 2025](https://www.matthewswong.com/en/blog/erp-market-indonesia/): Read this when you need the lie of the land: who runs SAP, Odoo or custom builds, and why
- [Why ERP Implementations Fail in Indonesian Businesses — And How to Avoid It](https://www.matthewswong.com/en/blog/why-erp-fails-indonesian-businesses/): Read this when the project risk is people and process rather than code
- [Cloud ERP vs On-Premise in Indonesia: Making the Right Call](https://www.matthewswong.com/en/blog/erp-cloud-vs-on-premise-indonesia/): Read this when you are deciding where the ERP should run and who will maintain it

## FAQ

### When did Coretax replace e-Faktur in Indonesia?

DJP put Coretax DJP into service on 1 January 2025. From 12 February 2025, KEP-54/PJ/2025 let every PKP create normal tax invoices in e-Faktur Client Desktop again, with exclusions, while returns, cancellations and the SPT Masa PPN go through Coretax. Invoices can be made in the Coretax portal, through a PJAP integrated with Coretax, or in the desktop client.

### How is PPN 12% calculated with DPP Nilai Lain?

Under PMK 131/2024, goods and services other than luxury goods are taxed at 12% of a DPP Nilai Lain equal to 11/12 of the selling price, import value or replacement value, which works out at 11% of the price. Luxury goods subject to PPnBM are taxed at 12% of the full price or import value. For a Rp50,000,000 sale of non-luxury goods, the DPP Nilai Lain rounds to Rp45,833,333 and the PPN to Rp5,500,000, because PER-11/PJ/2025 rounds to whole rupiah with 0.50 rounding up.

### How many digits is a Faktur Pajak number in Coretax?

Seventeen. PER-11/PJ/2025 splits it into a 2-digit transaction code, a 2-digit status code and a 13-digit serial that DJP assigns automatically when the e-Faktur is uploaded and approved. Invoices made in e-Faktur Client Desktop get a 9 inserted at the fifth digit of their original number when they appear in Coretax.

### What is the deadline to upload an e-Faktur to Coretax?

PER-11/PJ/2025 requires an e-Faktur to be uploaded and approved by DJP no later than the 20th of the month after its creation date. An e-Faktur that is not approved is not a Faktur Pajak. The invoice itself is due at delivery, when payment arrives before delivery, or at each progress payment.

### How are PPN impor and PPh 22 impor calculated?

The import value is the CIF value plus bea masuk and other customs levies. PPN impor on non-luxury goods is 12% of 11/12 of that import value under PMK 131/2024. Under PMK 51/2025, PPh Pasal 22 on imports is 2.5% of the import value for importers with an API and 7.5% without, with set rates for listed goods; it is not final and counts toward that year's income tax.

## Sources

- [DJP: PER-11/PJ/2025 on reporting PPh, PPN, PPnBM and stamp duty under Coretax (Articles 30-44, 129)](https://www.pajak.go.id/sites/default/files/lampiran/PER-11_PJ_2025_0.pdf)
- [DJP briefing: PER-12/PJ/2026 amending PER-11/PJ/2025, in force 1 October 2026](https://pajak.go.id/sites/default/files/2026-09/Pelaporan%20SPT%20Dalam%20Rangka%20Pelaksanaan%20Sistem%20Inti%20Administrasi%20Perpajakan%20(PER-12_PJ_%202026%20tentang%20Perubahan%20PER-11_PJ_2025%20%20tentang%20Ketentuan%20Pelaporan%20PPh,%20PPN,%20PPnBM,%20dan%20Bea%20Materai).pdf)
- [DJP written statement KT-02/2025: implementation of Coretax DJP](https://www.pajak.go.id/sites/default/files/2025-01/KT-2_2025%20Keterangan%20Tertulis%20-%20Implementasi%20Coretax%20DJP.pdf)
- [DJP: Template XML dan Converter Excel ke XML for Coretax imports](https://www.pajak.go.id/en/node/112031)
- [DJP announcement PENG-26/PJ.09/2024: using the 16-digit NPWP and NITKU](https://www.pajak.go.id/sites/default/files/2024-09/Petunjuk%20Penggunaan%20Nomor%20Pokok%20Wajib%20Pajak%20dan%20Nomor%20Identitas%20Tempat%20Kegiatan%20Usaha%20bagi%20Wajib%20Pajak.pdf)
- [DJP: FAQ on NITKU (22-digit structure)](https://www.pajak.go.id/index.php/system/files/2023-12/FAQ%20Terkait%20NITKU.pdf)
- [Kemenkeu JDIH: PMK No. 131 Tahun 2024 on PPN treatment (Articles 2, 3 and 5)](https://jdih.kemenkeu.go.id/dok/pmk-131-tahun-2024)
- [PMK No. 51 Tahun 2025 on PPh Pasal 22, including imports (Articles 2, 3 and 10; copy hosted by Klikpajak)](https://klikpajak.id/wp-content/uploads/2025/08/PMK-No-51-Tahun-2025.pdf)
- [BPK JDIH: PMK No. 26/PMK.010/2022 on goods classification and import duty rates](https://peraturan.bpk.go.id/Details/215104/pmk-no-26pmk0102022)
- [DJP: UU No. 28 Tahun 2007 amending the KUP law (Article 28(11), 10-year record retention)](https://www.pajak.go.id/id/undang-undang-nomor-28-tahun-2007)

---

- HTML version: https://www.matthewswong.com/en/indonesia/tax-erp/
- Bahasa Indonesia: https://www.matthewswong.com/id/indonesia/tax-erp/
- Site index for agents: https://www.matthewswong.com/llms.txt
- Sitemap: https://www.matthewswong.com/sitemap.xml
- API description (OpenAPI): https://www.matthewswong.com/openapi.json
