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

# Extract NPWP

`POST /ocr/npwp`

## Request

- Base URL: `https://api.verihubs.com`
- URL: `https://api.verihubs.com/ocr/npwp`
- Auth: none declared. Required headers: `App-ID`, `API-Key`

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

## Request body `multipart/form-data`

- ExtractNPWP
  - `image` string, binary, required: NPWP image file

## 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.dev/verihubs/apis/ai-api-documentation.md) - [All operations](https://skmtc.dev/verihubs/apis/ai-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/verihubs/apis/ai-api-documentation/revisions/9313db607e15?raw)
