Building tax-compliant ERP for Indonesia
What Coretax DJP, PMK 131/2024 and PER-11/PJ/2025 mean for the code: tax IDs, PPN calculation, invoice numbering, XML export, import costs and audit trails, each traced to the rule that sets it. Then the article to read for the job in front of you.
By Matthews WongResearched on
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.
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.
The comparison in one table
| 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 |
Timeline
The dated changes a developer had to act on, oldest first, each linked to its official source.
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)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 implementationPMK 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 treatmentPMK 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/2025KEP-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 DesktopPER-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/2025PER-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)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)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)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)
These rules keep changing.
Add matthewswong.com as a preferred source, and when you search Google for Tax & ERP news, my updates show up more often in Top Stories.
Go deeper: the articles behind this guide
Each one is a hands-on write-up of a problem I worked through. Start with the one that matches where you are.
Tax integration
- ERP10 min readCoretax DJP for Developers: e-Faktur, e-Bupot & NPWP IntegrationRead this when you are moving invoice and withholding exports onto Coretax and need the tax-ID, numbering and XML changes in one place
- ERP10 min reade-Faktur Integration for Indonesian ERP: PPN Done RightRead this when you are building the tax-invoice module itself: NPWP validation, DPP calculation, NSFP handling and the export contract
- ERP12 min readIndonesian Tax Compliance in a Custom ERP: PPN, PPh, and e-Faktur IntegrationRead this when you want the overall layout of PPN, PPh withholding and month-end tax closing, with a Coretax XML serialiser
- ERP9 min readERP Invoice PDF Generation: Puppeteer + Handlebars in NestJSRead this when you are rendering the invoice document with rupiah formatting, the seller's NPWP and PPN under PMK 131/2024
- ERP10 min readMulti-Currency Accounting in ERP: Rates, FX Gains, IDR RoundingRead this when you invoice in USD and need the Minister of Finance tax rate kept apart from the accounting rate
Imports, inventory and entities
- ERP10 min readLanded Cost in ERP: True Import Cost for Indonesian TradeRead this when you need to spread freight, insurance and bea masuk across purchase lines while keeping PPN impor out of inventory
- ERP9 min readStock Opname in ERP: Cycle Counts Without Freezing OpsRead this when you want stock opname without freezing the warehouse: ABC cycle counts, frozen snapshots and variance approval
- ERP10 min readMulti-Company ERP: Intercompany Transactions and EliminationRead this when a second legal entity arrives and intercompany invoices, tax settings per company and eliminations have to be designed
- ERP10 min readERP Fixed Asset Module: Depreciation Schedules Done RightRead this when you need depreciation schedules that reconcile to the ledger and feed the fiscal depreciation list in the annual return
Architecture and money
- Backend9 min readWhy We Store Money as Integer Rupiah, Never FloatRead this when totals drift by a rupiah or two and you need integer money with a single rounding step
- ERP11 min readERP General Ledger: Designing a Double-Entry CoreRead this when you are designing the ledger every tax posting lands in, including period close and reversing entries
- ERP8 min readBuilding an ERP Audit Trail and Activity Log: PostgreSQL, NestJS Interceptors, and React Activity FeedRead this when you need a record of who changed what, kept for the 10 years UU KUP requires
- ERP10 min readQuote-to-Cash in ERP: Quotation to Invoice to PaymentRead this when you are wiring quotation, order, delivery and invoice so invoices come from deliveries
- ERP11 min readOdoo ERP Custom Module Development: A Developer's Guide for Indonesian Business WorkflowsRead 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
- Career10 min readERP Market in Indonesia: Who's Using What and Why in 2025Read this when you need the lie of the land: who runs SAP, Odoo or custom builds, and why
- ERP10 min readWhy ERP Implementations Fail in Indonesian Businesses — And How to Avoid ItRead this when the project risk is people and process rather than code
- ERP11 min readCloud ERP vs On-Premise in Indonesia: Making the Right CallRead this when you are deciding where the ERP should run and who will maintain it
Frequently asked questions
Short answers, consistent with the sources on this page as of the research date.
When did Coretax replace e-Faktur in Indonesia?
How is PPN 12% calculated with DPP Nilai Lain?
How many digits is a Faktur Pajak number in Coretax?
What is the deadline to upload an e-Faktur to Coretax?
How are PPN impor and PPh 22 impor calculated?
Sources
Primary sources checked on the research date. Follow them for the current version.
- DJP: PER-11/PJ/2025 on reporting PPh, PPN, PPnBM and stamp duty under Coretax (Articles 30-44, 129)
- DJP briefing: PER-12/PJ/2026 amending PER-11/PJ/2025, in force 1 October 2026
- DJP written statement KT-02/2025: implementation of Coretax DJP
- DJP: Template XML dan Converter Excel ke XML for Coretax imports
- DJP announcement PENG-26/PJ.09/2024: using the 16-digit NPWP and NITKU
- DJP: FAQ on NITKU (22-digit structure)
- Kemenkeu JDIH: PMK No. 131 Tahun 2024 on PPN treatment (Articles 2, 3 and 5)
- PMK No. 51 Tahun 2025 on PPh Pasal 22, including imports (Articles 2, 3 and 10; copy hosted by Klikpajak)
- BPK JDIH: PMK No. 26/PMK.010/2022 on goods classification and import duty rates
- DJP: UU No. 28 Tahun 2007 amending the KUP law (Article 28(11), 10-year record retention)
More from the Indonesia guide
The other hubs, the reference pages and the calculators in this section.
- PaymentsQRIS, SNAP, virtual accounts, e-wallets and choosing a gateway.
- Cloud & HostingLocal VPS, Jakarta regions or Singapore, data placement and cost in IDR.
- Data ProtectionUU PDP, PSE registration and identity checks, mapped to engineering controls.
- Payment Gateway FeesPublished fees side by side, every cell linked to the provider's own page.
- GlossaryIndonesian tax, payment and compliance terms, defined for developers.
- Regulation TimelineEvery dated rule change from the four hubs in one list, newest first.
- PPN CalculatorPPN at 12% with DPP nilai lain 11/12, with the integer-rupiah code behind it.
- Landed Cost CalculatorCIF value, import duty and import taxes into a per-unit landed cost.