# Verification: sanctions screening and e-Faktur check

> Documentation index for AI agents: [/llms.txt](https://docs.apiindonesia.id/llms.txt). Every page is also available as markdown: add `.md` to the URL.

Screen a name against the OFAC and UK sanctions lists, and check an e-Faktur QR against DJP and the printed invoice.

Paid-per-request verification. Sanctions screening returns candidate matches from official lists for a human reviewer, never a verdict, and does not include the Indonesian DTTOT/PPSPM lists or PEP data. The e-Faktur check reads the Coretax data QR (2025+) directly, or calls the DJP validation service live for older QR codes, and compares the result with the printed fields. The Coretax data QR carries no verifiable signature, so the check catches QR-vs-print mismatches, not forgeries.

All endpoints need the `x-api-key` header (see [Authentication](https://docs.apiindonesia.id/authentication.md)) and return the standard [envelope](https://docs.apiindonesia.id/errors.md). Failed requests are not charged.

## Endpoints on this page

- [`POST /api/v1/screening/sanksi`](#post-api-v1-screening-sanksi): Screen a name
- [`GET /api/v1/screening/sanksi/sumber`](#get-api-v1-screening-sanksi-sumber): List freshness
- [`POST /api/v1/efaktur/cek`](#post-api-v1-efaktur-cek): Check an e-Faktur

## Sanctions Screening: OFAC & UK

Screen one person or company name against official sanctions lists: the US OFAC SDN and Consolidated (non-SDN) lists and the UK Sanctions List. Matching is fuzzy and word-order insensitive, uses every list's aliases, and can be sharpened with birth year and nationality. The result is a set of candidate matches for a human reviewer, not a verdict. The UN list, Indonesian DTTOT/PPSPM lists and PEP data are not included. 1,000 credits per screening; a failed request is not charged.

### POST /api/v1/screening/sanksi

**Screen a name.** Returns candidates scoring above the threshold (default 0.80), highest first, with the matched name, aliases, sanctions programmes, birth dates, nationalities and a source link. A matching birth year raises the score and a different one lowers it; nationality works the same way. A single given name usually stays below the threshold. A body without a name answers 400 and is not charged.

| Body field | Required | Type | Description |
| --- | --- | --- | --- |
| `nama` | yes | string | Full name of the person or company (Latin script). |
| `tipe` | no | string | person or entity. Empty means both. |
| `tanggal_lahir` | no | string | YYYY, YYYY-MM or YYYY-MM-DD. Used as a birth-year signal. |
| `kewarganegaraan` | no | string | Country name in English, e.g. Iran. |
| `sumber` | no | array | Subset of ["ofac", "uk"]. Defaults to both. A legacy "un" value is ignored and noted in meta.catatan. |
| `ambang` | no | number | Minimum score from 0.5 to 1. Defaults to 0.8. |
| `limit` | no | integer | Maximum candidates, 1 to 50. Defaults to 10. |

```bash
curl -X POST "https://use.apiindonesia.id/api/v1/screening/sanksi" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{"nama":"Mohammad Aman Akhund","tipe":"person","tanggal_lahir":"1970"}'
```

Example response (shortened):

```json
{
  "success": true,
  "data": {
    "query": {
      "nama": "Mohammad Aman Akhund",
      "tipe": "person",
      "tanggal_lahir": "1970",
      "kewarganegaraan": null,
      "sumber": [
        "ofac",
        "uk"
      ],
      "ambang": 0.8
    },
    "jumlah_kandidat": 2,
    "kandidat": [
      {
        "skor": 1,
        "skor_nama": 1,
        "nama_cocok": "AKHUND, Mohammad Aman",
        "nama_utama": "AKHUND, Mohammad Aman",
        "alias": [
          "AMAN, Mohammed",
          "OMAN, Mullah Mohammed"
        ],
        "tipe": "person",
        "sumber": "ofac",
        "id_sumber": "12798",
        "program": [
          "SDGT"
        ],
        "tanggal_lahir": [
          "1970"
        ],
        "kewarganegaraan": [],
        "tanggal_listing": null,
        "keterangan": "SDN List | DOB 1970; POB Bande Tumur Village, Maiwand District, Qandahar Province, Afghanistan; ...",
        "url_sumber": "https://sanctionssearch.ofac.treas.gov/",
        "sinyal": {
          "tanggal_lahir": "cocok",
          "kewarganegaraan": null
        }
      },
      {
        "skor": 1,
        "skor_nama": 1,
        "nama_cocok": "MOHAMMAD AMAN AKHUND",
        "nama_utama": "MOHAMMAD AMAN AKHUND",
        "alias": [
          "Mohammed AMAN",
          "Mad Aman Ustad NOORZAI"
        ],
        "tipe": "person",
        "sumber": "uk",
        "id_sumber": "AFG0124",
        "program": [
          "The Afghanistan (Sanctions) (EU Exit) Regulations 2020"
        ],
        "tanggal_lahir": [
          "dd/mm/1970"
        ],
        "kewarganegaraan": [],
        "tanggal_listing": "2012-01-06",
        "keterangan": "Senior Taliban member as at 2011 with financial duties, including raising funds on behalf of the leadership. ...",
        "url_sumber": "https://www.gov.uk/government/publications/the-uk-sanctions-list",
        "sinyal": {
          "tanggal_lahir": "cocok",
          "kewarganegaraan": null
        }
      }
    ]
  },
  "meta": {
    "disclaimer": "Hasil adalah kandidat kecocokan nama untuk ditinjau manusia, bukan putusan bahwa seseorang atau badan usaha terkena sanksi. ...",
    "sumber": [
      {
        "sumber": "ofac",
        "nama": "OFAC SDN List + Consolidated (non-SDN) List",
        "tanggal_publikasi": "2026-11-23",
        "diambil_pada": "2026-11-28T09:06:45.910Z",
        "jumlah_entri": 20022,
        "url": "https://ofac.treasury.gov/sanctions-list-service",
        "lisensi": "US Government work",
        "atribusi": "U.S. Department of the Treasury, Office of Foreign Assets Control (OFAC)"
      },
      {
        "sumber": "uk",
        "nama": "UK Sanctions List",
        "tanggal_publikasi": "2026-11-26",
        "diambil_pada": "2026-11-28T09:06:45.910Z",
        "jumlah_entri": 6458,
        "url": "https://www.gov.uk/government/publications/the-uk-sanctions-list",
        "lisensi": "Open Government Licence v3.0",
        "atribusi": "Contains public sector information licensed under the Open Government Licence v3.0 (UK Sanctions List, FCDO)"
      }
    ]
  }
}
```

### GET /api/v1/screening/sanksi/sumber

**List freshness.** The loaded sanctions lists with publication date, fetch time, record count, licence and attribution. Priced like a generic data endpoint.

```bash
curl "https://use.apiindonesia.id/api/v1/screening/sanksi/sumber" \
  -H "x-api-key: YOUR_API_KEY"
```

Example response (shortened):

```json
{
  "success": true,
  "data": [
    {
      "sumber": "ofac",
      "nama": "OFAC SDN List + Consolidated (non-SDN) List",
      "tanggal_publikasi": "2026-11-23",
      "diambil_pada": "2026-11-28T09:06:45.910Z",
      "jumlah_entri": 20022,
      "url": "https://ofac.treasury.gov/sanctions-list-service",
      "lisensi": "US Government work",
      "atribusi": "U.S. Department of the Treasury, Office of Foreign Assets Control (OFAC)"
    },
    {
      "sumber": "uk",
      "nama": "UK Sanctions List",
      "tanggal_publikasi": "2026-11-26",
      "diambil_pada": "2026-11-28T09:06:45.910Z",
      "jumlah_entri": 6458,
      "url": "https://www.gov.uk/government/publications/the-uk-sanctions-list",
      "lisensi": "Open Government Licence v3.0",
      "atribusi": "Contains public sector information licensed under the Open Government Licence v3.0 (UK Sanctions List, FCDO)"
    }
  ],
  "meta": {
    "disclaimer": "Hasil adalah kandidat kecocokan nama untuk ditinjau manusia, bukan putusan ..."
  }
}
```

## 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.

### POST /api/v1/efaktur/cek

**Check an e-Faktur.** 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.

| Body field | Required | Type | Description |
| --- | --- | --- | --- |
| `qr` | yes | string | Text decoded from the invoice QR: the Coretax data QR (#-separated) or an older DJP validation URL. |
| `qr_link` | no | string | Optional: the Coretax document link from the second QR, echoed back for a human to open. |
| `cetak` | no | object | Optional: npwp_penjual, nama_penjual, npwp_pembeli, nama_pembeli, nomor_faktur, tanggal_faktur, jumlah_dpp, jumlah_ppn as printed. |

```bash
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"}}'
```

Example response (shortened):

```json
{
  "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 i...",
    "sumber": "Data QR Coretax pada faktur (dibaca langsung, tanpa memanggil layanan DJP)",
    "diperiksa_pada": "2026-11-28T08:16:46.000Z"
  }
}
```
