---
title: "Extract NPWP"
method: POST
path: "/ocr/npwp"
tags: ["NPWP"]
---

# Extract NPWP

`POST /ocr/npwp`

The purpose of OCR is to extract information from NPWP image. The result will be in “text” format. All the data inside NPWP  will be extracted.

  You will receive a response consists of message and an error code if the
request fails to process. The following is a list of error codes.
<br>

| Error status                                  | Error code                    | Description                                  |
| ------------------------------|----------------------------------------------|----------------------------------------------|
| 200 | NPWP_NOT_DETECTED  | Image is not detected as NPWP |
| 400 | INVALID_PAYLOAD                | No value in payload |
| 400 | INVALID_PAYLOAD_IMAGE_FORMAT        |  Invalid  image format                     |
| 400 | INSUFFICIENT_QUOTA         |  Quota is not sufficient to continue                       |
| 500 | INTERNAL_SERVER_ERROR         | Internal server error |

## Headers

- `App-ID` string, required
- `API-Key` string, required

## Response `200`

Successful Response

- ResponseExtractNPWP
  - `Message` string — Message indicating the status of the request to be processed
  - `data` object — Show the recognition result
    - `npwp` string — Shows npwp number
    - `name` string — Shows name from NPWP
    - `nik` string — Shows nik number from NPWP
    - `address` string — Shows address from NPWP

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/verihubs/apis/sms-api-documentation.md) · [All operations](https://skmtc.net/verihubs/apis/sms-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/verihubs/sms-api-documentation/versions/5fa885d38adc/schema)
