FinchContext
Run with

Build e-Faktur (Faktur Pajak elektronik) XML

Skill: Convert a taxable sale into the e-Faktur Pajak record submitted via DJP e-Faktur / Coretax

Region: Indonesia (Indonesia) Category: E-Invoicing — Faktur Pajak elektronik Does: Takes ordinary sales data from a Pengusaha Kena Pajak (PKP) and produces the Faktur Pajak elektronik (e-Faktur) record — seller/buyer NPWP and NITKU, kode dan nomor seri faktur pajak, DPP and PPN — uploaded to the DJP e-Faktur application (now migrating into Coretax DJP) where it receives an approval code and QR. System: e-Faktur (Direktorat Jenderal Pajak) / Coretax DJP

A Faktur Pajak is only valid once the DJP system returns an approval/persetujuan code — a locally built XML/CSV is a draft until then. With the move to Coretax DJP (rolled out from 2025) the upload channel, document format, and the use of NITKU (Nomor Identitas Tempat Kegiatan Usaha) alongside the 16-digit NPWP changed; always confirm the active Coretax import schema before generating files.


When this applies


Input data required

Group Fields
Seller (penjual) name, NPWP (16-digit), NITKU of the place of business, address
Buyer (pembeli) name, NPWP/NIK, NITKU (if any), address
Faktur header kode transaksi + status + Nomor Seri Faktur Pajak, tanggal faktur
Line items (detail barang/jasa) name, kode, quantity, harga satuan, total harga, discount
Tax base DPP (Dasar Pengenaan Pajak) per line and total
Output tax PPN and, where relevant, PPnBM (luxury goods)

Field mapping (e-Faktur import structure)

The e-Faktur desktop import uses FK (header), FAPR / buyer, OF (item) record groups; the Coretax import uses an XML/JSON equivalent. Core fields:

Field Meaning
KD_JENIS_TRANSAKSI 2-digit kode transaksi (01, 04, 07, 08, ...)
FG_PENGGANTI 0 normal / 1 faktur pengganti
NOMOR_FAKTUR 13-digit Nomor Seri Faktur Pajak
TANGGAL_FAKTUR dd/mm/yyyy
NPWP / NITKU buyer NPWP and place-of-business identity
HARGA_SATUAN, JUMLAH_BARANG, HARGA_TOTAL, DISKON per line
DPP, PPN, PPNBM tax base and taxes per line

Calculation rules


Worked example (one standard sale, kode 01)

FK,01,0,0000000123456789,,07/05/2026,...
  Penjual : PT Sumber Makmur, NPWP 0012345678901000, NITKU 0012345678901000000000
  Pembeli : PT Cahaya Abadi,  NPWP 0098765432109000

OF,Jasa konsultansi,1,50000000,0,50000000          ; harga total Rp 50.000.000
   DPP  = 50.000.000 × 11/12 = 45.833.333
   PPN  = 45.833.333 × 12%   =  5.500.000           ; effective 11% of 50.000.000
   PPnBM = 0

Header totals:  JUMLAH_DPP 45.833.333   JUMLAH_PPN 5.500.000

After upload to e-Faktur / Coretax DJP the document is approved and returns the kode persetujuan (approval code) and the printable QR code that links to the DJP validation page.


Validation checklist


Last updated: 2026-06-04 — confirm the active schema version, field codes, and DJP/Coretax requirements against the current Direktorat Jenderal Pajak specifications before use.