Home / Validate VAT / Indonesia
Validate Indonesia Tax ID Numbers via API
When building B2B applications that serve Indonesia (Indonesia), validating your customers' NPWP (Nomor Pokok Wajib Pajak — Taxpayer Identification Number) is essential for B2B compliance and protecting your business from tax liability.
The TaxID API provides instant format validation and live lookup for Indonesia NPWP numbers via DJP (Direktorat Jenderal Pajak — Directorate General of Taxes). Every request returns the validation status with sub-100ms response times for cached results.Indonesia applies a standard rate of 11% (NPWP).
QUICK START
curl -H "Authorization: Bearer YOUR_API_KEY" \ http://localhost:3000/api/v1/validate/ID/012345678901234
Code examples
Choose your language. Every example validates a Indonesia VAT number and returns the registration status with company details.
const res = await fetch('http://localhost:3000/api/v1/validate/ID/012345678901234', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
const data = await res.json();
// { valid: true, status: "active", company_name: "...", country_code: "ID", cached: false }
console.log(data);When to validate Indonesia tax ID numbers
B2B invoicing and accounts payable
When issuing or receiving invoices from Indonesia businesses, validating the NPWP (Nomor Pokok Wajib Pajak — Taxpayer Identification Number) ensures the identifier is genuine before committing the transaction to your ERP. Invalid or fabricated tax IDs are a leading vector for invoice fraud and can result in rejected filings or audit penalties.
SaaS and e-commerce checkout
If your platform serves Indonesia business customers, collecting and validating their NPWP (Nomor Pokok Wajib Pajak — Taxpayer Identification Number) at checkout is required for accurate tax treatment, correct invoicing, and downstream reporting. An invalid tax ID at the point of sale creates a correction burden across your finance stack.
Supplier and marketplace onboarding
For procurement platforms and regulated marketplaces onboarding Indonesia sellers or vendors, validating the NPWP (Nomor Pokok Wajib Pajak — Taxpayer Identification Number) at registration prevents fraudulent or duplicate accounts from entering your ecosystem. Validate once at onboarding, then re-validate periodically to detect deregistrations or changes.
About Indonesia VAT format (NPWP)
Indonesia raised its VAT rate from 10% to 11% in April 2022 (with a further increase to 12% planned). The NPWP is a 15-digit identifier transitioning to a 16-digit NIK-based format as part of tax ID reform. Indonesia is the fourth most populous country and the largest economy in Southeast Asia.
| Field | Value |
|---|---|
| Country code | ID |
| Local name | NPWP (Nomor Pokok Wajib Pajak — Taxpayer Identification Number) |
| Format | 15 digits (old format: XX.XXX.XXX.X-XXX.XXX) |
| Regex pattern | ^[0-9]{15}$ |
| Example | 012345678901234 |
| VIES supported | No |
VAT rates in Indonesia
Indonesia applies a standard NPWP rate of 11%. Reduced rates of 0% apply to essential goods and services.
| Rate type | Percentage | Currency |
|---|---|---|
| Standard rate | 11% | IDR |
| Reduced rate | 0% | IDR |
Frequently asked questions
What is the Indonesia tax ID number format?
Indonesia tax ID numbers (NPWP (Nomor Pokok Wajib Pajak — Taxpayer Identification Number)) follow the format: 15 digits (old format: XX.XXX.XXX.X-XXX.XXX). A valid example is 012345678901234. The TaxID API validates the format locally and where possible checks against the DJP (Direktorat Jenderal Pajak — Directorate General of Taxes), ensuring you only accept properly registered businesses.
Should I validate NPWP numbers when transacting with Indonesia businesses?
Validating NPWP numbers reduces fraud risk, prevents invalid identifiers from entering your accounting system, and is required by many B2B contracts and procurement platforms. While mandatory rules vary by jurisdiction, validating at onboarding is widely considered best practice — especially for SaaS, marketplace, and fintech platforms with global customer bases.
What is the standard tax rate in Indonesia?
The standard tax rate in Indonesia is 11% (NPWP). Reduced rates of 0% apply to certain goods and services such as food, books, and medical supplies. The TaxID API's /rates endpoint returns all current rates for programmatic access.
How long does Indonesia tax ID validation take with TaxID?
For cached results (previously validated in the last 24 hours), the TaxID API responds in under 10ms. Format validation is instantaneous. For uncached requests requiring a live lookup against DJP (Direktorat Jenderal Pajak — Directorate General of Taxes), response time is typically 100–500ms. Valid numbers are cached for 24 hours; invalid numbers are cached for 1 hour.
How does the TaxID API validate Indonesia NPWP numbers?
The TaxID API validates Indonesia NPWP numbers in two steps: first it checks the format against the official pattern (15 digits (old format: XX.XXX.XXX.X-XXX.XXX)), then it queries DJP (Direktorat Jenderal Pajak — Directorate General of Taxes) where a live API is available. Indonesia raised its VAT rate from 10% to 11% in April 2022 (with a further increase to 12% planned). The NPWP is a 15-digit identifier transitioning to a 16-digit NIK-based format as part of tax ID reform. Indonesia is the fourth most populous country and the largest economy in Southeast Asia.
Start validating Indonesia VAT numbers
Free plan includes 100 validations/month. No credit card required.
Get free API keyDeveloper resources:
Also validate VAT in:
Concepts explained: