API Reference

e-Faktur Check: QR vs Printed Invoice

Send the text decoded from a VAT invoice QR code and, optionally, what is printed on the invoice. Two QR formats are supported: the Coretax data QR (invoices issued from 2025, a #-separated string) is read directly, and the older QR holding a DJP validation URL (svc.efaktur.pajak.go.id/validasi/faktur/...) is checked live against DJP's validation service. The result is a per-field comparison: seller and buyer NPWP and name, invoice number and date, DPP and VAT. DJP states that QR data differing from the printed invoice makes the invoice invalid, so this helps AP/finance teams before paying or crediting input VAT. The Coretax data QR carries no signature this API can verify, so the check catches a QR-vs-print mismatch; it does not prove the invoice is genuine. 500 credits per check; an unsupported QR or an unanswered DJP call is not charged.

Main endpoint
POST https://use.apiindonesia.id/api/v1/efaktur/cek
Endpoints
1
Authentication
x-api-key header (create one free in the dashboard)
Price
500 credits per successful request (1 credit = Rp1); failed requests are free
Format
JSON (REST), with cURL, JavaScript and Python examples
Data source
Source: for older QR codes, the Directorate General of Taxes e-Faktur validation service (svc.efaktur.pajak.go.id), called per request with no cache; only that DJP host is ever called. Coretax data QR codes are read directly without calling any service. The result reflects DJP's answer at request time and is not a legal opinion or a confirmation of either party's tax status.
Product Brief

What this API gives you

Send the text decoded from a VAT invoice QR code and, optionally, what is printed on the invoice. Two QR formats are supported: the Coretax data QR (invoices issued from 2025, a #-separated string) is read directly, and the older QR holding a DJP validation URL (svc.efaktur.pajak.go.id/validasi/faktur/...) is checked live against DJP's validation service. The result is a per-field comparison: seller and buyer NPWP and name, invoice number and date, DPP and VAT. DJP states that QR data differing from the printed invoice makes the invoice invalid, so this helps AP/finance teams before paying or crediting input VAT. The Coretax data QR carries no signature this API can verify, so the check catches a QR-vs-print mismatch; it does not prove the invoice is genuine. 500 credits per check; an unsupported QR or an unanswered DJP call is not charged.

Source: for older QR codes, the Directorate General of Taxes e-Faktur validation service (svc.efaktur.pajak.go.id), called per request with no cache; only that DJP host is ever called. Coretax data QR codes are read directly without calling any service. The result reflects DJP's answer at request time and is not a legal opinion or a confirmation of either party's tax status.

Coverage
1

ready-to-use endpoints in this product, with JSON responses and consistent error handling.

Access
API key

Can be tried with the 3,000 credit signup bonus, then used in production through one API Indonesia key.

Sample resource
https://use.apiindonesia.id/api/v1/efaktur/cek

data.format is coretax or efaktur_djp. data.status is cocok (every printed field sent equals the QR/DJP data), tidak_cocok (at least one differs), data_qr_saja (Coretax QR read, no printed fields sent), valid_djp (DJP knows the older invoice, no printed fields were sent) or tidak_ditemukan_di_djp. The Coretax document link (coretaxdjp.pajak.go.id/.../DocumentExternalLink/...) opens a DJP download form behind a captcha, so it cannot be checked automatically: as qr it answers 422 CORETAX_LINK_TIDAK_BISA_DICEK, as qr_link it is only validated and echoed back. An unrecognised QR answers 422 QR_TIDAK_DIDUKUNG and an unanswered DJP call answers 502 UPSTREAM_TIDAK_TERSEDIA; neither is charged. NPWP and invoice numbers compare digits only, amounts accept 1.000.000,00 or 1000000, dates accept dd/mm/yyyy or yyyy-mm-dd.

Example product scenarios

This section separates the product page from the docs. The docs explain how to call endpoints; this page explains why the endpoints make sense for your feature.

  • AP/finance teams: check an input VAT invoice before paying it and before crediting its VAT.
  • Accounting software & invoice OCR: add an automatic match/mismatch flag after the QR and invoice fields are read.
  • Audit & procurement: run through many vendor invoices and flag those DJP does not know or whose figures differ from the print.

Example Usage

Request
curl -X POST "https://use.apiindonesia.id/api/v1/efaktur/cek" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"qr": "PT CONTOH SEJAHTERA#0000000000000001#PT PEMBELI MAKMUR#0000000000000002#04002500000000001#31-07-2025#1.000.000,00#110.000,00#0,00#APPROVED", "cetak": {"jumlah_dpp": "1.000.000,00", "jumlah_ppn": "120.000"}}'
Response · 200 OK
{
  "success": true,
  "data": {
    "format": "coretax",
    "status": "tidak_cocok",
    "status_qr": "APPROVED",
    "faktur_qr": {
      "nama_penjual": "PT CONTOH SEJAHTERA",
      "npwp_penjual": "0000000000000001",
      "nama_pembeli": "PT PEMBELI MAKMUR",
      "npwp_pembeli": "0000000000000002",
      "nomor_faktur": "04002500000000001",
      "tanggal_faktur": "2025-07-31",
      "jumlah_dpp": 1000000,
      "jumlah_ppn": 110000,
      "jumlah_ppnbm": 0,
      "status_qr": "APPROVED"
    },
    "perbandingan": [
      { "field": "jumlah_dpp", "cetak": "1.000.000,00", "djp": "1000000", "cocok": true },
      { "field": "jumlah_ppn", "cetak": "120.000", "djp": "110000", "cocok": false }
    ],
    "tautan_dokumen_djp": null
  },
  "meta": {
    "disclaimer": "Data dibaca dari QR Coretax. QR Coretax tidak memuat tanda tangan yang bisa diverifikasi oleh API ini, jadi cek ini menangkap ketidaksesuaian antara QR dan isi cetakan, bukan memastikan keaslian faktur. Bukan pernyataan hukum atau konfirmasi status pajak para pihak.",
    "sumber": "Data QR Coretax pada faktur (dibaca langsung, tanpa memanggil layanan DJP)",
    "diperiksa_pada": "2026-11-28T08:16:46.000Z"
  }
}

Related Articles

Pricing 500 credits per successful request (1 credit = Rp1); failed requests are free. One-time 3,000 credit signup bonus, no credit card, no monthly allowance.

e-Faktur Check: QR vs Printed Invoice API questions

Which QR codes are supported?

The Coretax data QR (invoices issued from 2025, a #-separated string) and older QR codes holding a DJP validation URL (svc.efaktur.pajak.go.id/validasi/faktur/...). The Coretax document link cannot be checked automatically because its download form uses a captcha; an unrecognised QR answers 422 and is not charged.

Does cocok mean the invoice is legitimate?

cocok means the printed fields sent equal DJP's answer at that moment. It is not a legal opinion or a confirmation of the seller's or buyer's tax status.

Is invoice data stored?

No. DJP's answer is passed through and compared per request with no cache.

Get Started

Start Integrating
Today

Sign up for free and get a 3,000 credit bonus (Rp3,000) once your email is verified, grab an API key, and call your first endpoint right away. No credit card, no tedious approval process.

Dot wave visualization