# NPWP Validator

Validate an Indonesian tax number in both the legacy 15-digit form and the NIK-based 16-digit form, with the checksum that catches a transposed digit.

- Method: `GET`
- Path: `/v1/id/npwp`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `npwp` | string | required | With or without punctuation. Both the 15- and 16-digit forms are accepted. |

**Example request**

```bash
curl https://api.diraz.ae/v1/id/npwp \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "input": "01.234.567.9-123.456",
    "normalised": "012345679123456",
    "valid": true,
    "format": "legacy-15",
    "formatted": "01.234.567.9-123.456",
    "taxpayer_id": "012345679",
    "tax_office_code": "123",
    "branch_code": "456",
    "issues": []
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ"
  }
}
```