API Reference

Tax: PPh 21 TER, PTKP, VAT, Stamp Duty & Tobacco Excise

Indonesian tax rates read from the official regulation text, plus PPh 21 and VAT calculators.

Main endpoint
GET https://use.apiindonesia.id/api/v1/pajak/pph21/ter
Endpoints
8
Authentication
x-api-key header (create one free in the dashboard)
Price
Included in the Pro and Business plans; failed requests are free
Format
JSON (REST), with cURL, JavaScript and Python examples
Data source
Sources: PP 58/2023, PMK 168/2023, PMK 101/PMK.010/2016, UU 7/2021 (HPP), PMK 131/2024, UU 10/2020, PMK 97/2024, read from the Finance Ministry JDIH; Regulations are not copyrighted (UU 28/2014 Article 42); The calculators are a reference, not tax advice; special schemes (pensioners, non-permanent staff, no NPWP) are not modelled yet; Every response carries meta.attribution
Product Brief

What this API gives you

Indonesian tax rates read from the official regulation text, plus PPh 21 and VAT calculators.

  • PPh 21 average effective rates (TER) for categories A, B and C from PP 58/2023 (44, 40 and 41 brackets) and the daily TER
  • PTKP for 12 statuses (PMK 101/2016), Article 17 brackets (UU HPP), job and pension deductions (PMK 168/2023)
  • 12% VAT with the 11/12 other-value tax base (PMK 131/2024), Rp10,000 stamp duty (UU 10/2020)
  • Tobacco excise rates per product type and tier (PMK 97/2024), 28 rows
  • PPh 21 calculator for regular months (TER) and December (full-year recompute), plus a VAT calculator
  • Every row carries dasar_hukum, berlaku_mulai and sumber_url
  • Sources: PP 58/2023, PMK 168/2023, PMK 101/PMK.010/2016, UU 7/2021 (HPP), PMK 131/2024, UU 10/2020, PMK 97/2024, read from the Finance Ministry JDIH
  • Regulations are not copyrighted (UU 28/2014 Article 42)
  • The calculators are a reference, not tax advice; special schemes (pensioners, non-permanent staff, no NPWP) are not modelled yet
  • Every response carries meta.attribution
Coverage
8

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/pajak/pph21/ter

Monthly (and daily) average effective rate brackets from the PP 58/2023 annex. Without a filter all three categories are returned.

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.

  • Payroll & HR apps: compute monthly and December PPh 21 withholding without maintaining TER tables yourself.
  • Invoicing & e-commerce: compute 12% VAT on the 11/12 base and check when a document needs stamp duty.
  • Tax research & education: quote rates together with the regulation number and effective date.

Example Usage

Request
curl "https://use.apiindonesia.id/api/v1/pajak/pph21/ter?kategori=A" \
  -H "x-api-key: YOUR_API_KEY"
Response · 200 OK
{
  "success": true,
  "data": {
    "bulanan": [
      {
        "kategori": "A",
        "batas_bawah": 0,
        "batas_bawah_inklusif": true,
        "batas_atas": 5400000,
        "batas_atas_inklusif": true,
        "tarif_persen": 0,
        "dasar_hukum": "Peraturan Pemerintah Nomor 58 Tahun 2023 tentang Tarif Pemotongan Pajak Penghasilan Pasal 21 atas Penghasilan Sehubungan dengan Pekerjaan, Jasa, atau Kegiatan Wajib Pajak Orang Pribadi, Lampiran huruf A",
        "berlaku_mulai": "2024-01-01",
        "sumber_url": "https://jdih.kemenkeu.go.id/api/download/e47c3fc4-a912-4bf1-bcad-335fee3f71f8/2023pp058.pdf"
      },
      {
        "kategori": "A",
        "batas_bawah": 5400000,
        "batas_bawah_inklusif": false,
        "batas_atas": 5650000,
        "batas_atas_inklusif": true,
        "tarif_persen": 0.25,
        "dasar_hukum": "Peraturan Pemerintah Nomor 58 Tahun 2023 tentang Tarif Pemotongan Pajak Penghasilan Pasal 21 atas Penghasilan Sehubungan dengan Pekerjaan, Jasa, atau Kegiatan Wajib Pajak Orang Pribadi, Lampiran huruf A",
        "berlaku_mulai": "2024-01-01",
        "sumber_url": "https://jdih.kemenkeu.go.id/api/download/e47c3fc4-a912-4bf1-bcad-335fee3f71f8/2023pp058.pdf"
      }
    ],
    "harian": [
      {
        "batas_bawah": 0,
        "batas_bawah_inklusif": true,
        "batas_atas": 450000,
        "tarif_persen": 0,
        "dasar_hukum": "Peraturan Pemerintah Nomor 58 Tahun 2023 tentang Tarif Pemotongan Pajak Penghasilan Pasal 21 atas Penghasilan Sehubungan dengan Pekerjaan, Jasa, atau Kegiatan Wajib Pajak Orang Pribadi, Lampiran huruf D",
        "berlaku_mulai": "2024-01-01",
        "sumber_url": "https://jdih.kemenkeu.go.id/api/download/e47c3fc4-a912-4bf1-bcad-335fee3f71f8/2023pp058.pdf"
      },
      {
        "batas_bawah": 450000,
        "batas_bawah_inklusif": false,
        "batas_atas": 2500000,
        "tarif_persen": 0.5,
        "dasar_hukum": "Peraturan Pemerintah Nomor 58 Tahun 2023 tentang Tarif Pemotongan Pajak Penghasilan Pasal 21 atas Penghasilan Sehubungan dengan Pekerjaan, Jasa, atau Kegiatan Wajib Pajak Orang Pribadi, Lampiran huruf D",
        "berlaku_mulai": "2024-01-01",
        "sumber_url": "https://jdih.kemenkeu.go.id/api/download/e47c3fc4-a912-4bf1-bcad-335fee3f71f8/2023pp058.pdf"
      }
    ]
  },
  "meta": {
    "attribution": {
      "source": "JDIH Kementerian Keuangan; Direktorat Jenderal Pajak",
      "license": "Peraturan perundang-undangan, tidak dilindungi hak cipta (UU 28/2014 Pasal 42)",
      "attribution_page": "https://apiindonesia.id/produk/pajak/",
      "notice": "Angka diambil dari teks peraturan resmi; API Indonesia menambahkan struktur JSON dan kalkulator (referensi, bukan nasihat pajak)"
    }
  }
}

Related Articles

Pricing Included in the Pro and Business plans; failed requests are free. One-time 3,000 credit signup bonus, no credit card, no monthly allowance.

Tax: PPh 21 TER, PTKP, VAT, Stamp Duty & Tobacco Excise API questions

Which TER category applies to status K/1?

Category B. PP 58/2023 Article 2 puts TK/2, TK/3, K/1 and K/2 in category B, TK/0, TK/1 and K/0 in category A, and K/3 in category C. The /api/v1/pajak/pph21/kategori endpoint returns this mapping.

How is December PPh 21 calculated?

Full-year gross minus the job cost (5%, max Rp6 million) and pension contributions, then PTKP. Taxable income is rounded down to thousands, taxed at Article 17 rates, then reduced by the PPh 21 withheld January to November (PMK 168/2023).

Can the calculator output be used as a withholding slip?

No. The output is a calculation reference from the regulation text, not tax advice. Special schemes such as employees without an NPWP, pensioners and non-permanent staff are not modelled yet.

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