China Business License OCR API in Postman

Use Postman to call the ChinaValidate business license recognition endpoint and inspect the extracted fields from an authorized image.

ArticlesPublished by ChinaValidatePublished December 3, 2026Last updated December 3, 2026

Extract registered fields from a Chinese business license image, along with available confidence scores and image coordinates.

View API documentationAPI workspace
China Business License OCR API in Postman

Postman can send a Chinese business license image to ChinaValidate and show the fields the recognition endpoint extracts. The endpoint accepts either a raw binary image or a JSON object with an accessible image URL. This guide starts with a local image and then shows the URL alternative. Both are POST requests to the same operation. Use the body corresponding to the source you want to send. Business License Recognition API

The endpoint can return fields such as a company name and Unified Social Credit Code read from an image. Inspect those values against the original. When you need to confirm current registry information, use a separate profile lookup with the exact legal name or the code after checking what the image actually says. The recognition response and the registry result can then appear alongside each other with distinct sources.

Set up a request in Postman

Create a new request, choose POST and use the documented endpoint. Store the API key locally as a secret available to Postman. Select Bearer Token in the request's Authorization tab and reference the secret there. An Authorization header inserted by Postman is enough. Remove a second manually added Authorization header if one was already present. Keep credentials and document files outside shared example collections and exported environments. Postman request authorization

The destination is the API host shown below. The language parameter in this request applies to the binary body. The main ChinaValidate website is where you read the reference or get credits. Using the API host for the actual request makes it easier to check the final address in Postman. Set an appropriate response language for the document test you intend to run.

POST https://api.chinavalidate.com/v1/business-licenses/recognize?language=zh-CN
Authorization: Bearer YOUR_API_KEY
Content-Type: application/octet-stream

For a first test, choose an image that you are authorized to process and with legible document text. Avoid sharing a real business document with a test template. If the file is an attachment to an internal case, keep that internal record reference beside the request. A person investigating a result later needs the actual image used, not a different crop or a more recent version of the same document.

Send the binary image

In Postman, select the Body tab and choose binary. Pick the image from your local files. Set the content type to application/octet-stream, as in the API's binary request. Verify that the request has one body and that the URL includes your selected language parameter. The raw bytes should form the body. Form data and a string copied from an image path represent different inputs. Postman request body options

Send the request once. In the response panel, examine the HTTP status, headers and JSON body. Under the documented application response rules, an HTTP 200 result can contain a JSON application error. Read the envelope code before deciding that the recognition operation succeeded. When a result is available, look at the items and their fields. Inspect the extracted company name and credit code against the printed ones. If the service reports an empty result, keep the image and request reference for diagnosis.

Use a local image test before designing the business form that will call this endpoint. It tells you which parts of the file are being transmitted and what the service actually returns. Try one known legible sample during integration testing and record the file type, size and response outcome with the test. The API reference lists its supported image formats and limits. An application accepting files should validate its input against that reference and return a clear result if the submitted image cannot be processed.

Use the image URL alternative

In a separate Postman request, choose raw JSON as the body type. Replace the placeholder URL below with an authorized location the API can access. The body sets the language for the JSON option in the example. Remove the earlier binary content type and use application/json. Use a documented image URL rather than a link to an HTML page showing a preview. A link that only works because you are logged into a separate service may not be accessible to the recognition service.

{
  "image_url": "https://example.com/business-license.jpg",
  "language": "zh-CN"
}

An internal file can be sent directly as binary where that meets the integration's handling requirements. Use a URL when the image is intentionally accessible and that route fits the system you are connecting. Keep the request mode with the saved result. If an indirect link becomes unavailable, you need to know whether to obtain a fresh authorized URL or switch to a binary request for a one-off check.

Check that the URL request really sends JSON. Postman can retain selected body settings when you duplicate a request. Review the request address and headers after the change. Keep the working binary and URL examples in separate collection items with neutral names. Document how to provide a test image without embedding a private file or a provider key in the shared item.

Interpret the recognition result

The excerpt below illustrates two available fields from the published response example. Real results can contain other values, and a field may be unavailable. Store the extracted values with their evidence and keep any edits a reviewer makes visible. When a reviewer corrects a character, it should be possible to tell what the endpoint read and what was confirmed from the image.

{
  "code": 200,
  "msg": "ok",
  "data": {
    "total_count": 1,
    "items": [
      {
        "angle": 0,
        "fields": {
          "company_name": "苏州示例精密制造有限公司",
          "unified_social_credit_code": "91320505MA00000005"
        }
      }
    ]
  }
}

A recognized value should be used according to the confidence your process can establish from the document. If the name is incomplete or the code and name appear to identify different companies, review the source before applying the result. A final registration verification depends on information from another check. The Company Profile API accepts a verified credit code or full Chinese legal name as the input for that next step.

For a language other than Chinese, use the original fields when comparing the image with the response. A translated display view helps staff read relevant values. Preserve the Chinese identity wherever a separate company endpoint expects the original name. A translation also makes a poor replacement for the image when an operator needs to review a particular character.

Troubleshoot the first request

Begin with the request settings you can observe. If authorization fails, check the configured key and whether Postman added it to this request. If credits are insufficient, check the API account rather than resending the same input. For an input error, confirm the exact body mode and content type. If the call completes with an empty output or missing fields, check the document image and the current support requirements before trying another file. These outcomes need different actions. ChinaValidate API pricing

Keep the provider request identifier if returned, and preserve a local timestamp. Capture only the information needed to reproduce the issue. Sharing a raw export can also share credentials and document contents if both are included. A useful support record has the operation, body mode, selected language, returned code and the request identifier. Replace secrets and redact source details that are not needed to explain the failure.

Once you know how the request and response work in Postman, move the two examples into whichever HTTP library your application uses. Keep the authentication server-side and send the same documented body as your successful test. Reuse recorded examples for parser tests. Run a real check only when you need to verify the connection, an authorized file or a change to how the request is produced. The result should tell staff which fields were extracted, which remain uncertain, and whether a separate registry check has been made.

Keep the working request reproducible

When the request works, document the inputs that must be supplied by each tester, including the API key, the authorized file location and the response language. Keep a redacted example of the returned JSON. Run a second test only if it answers a different question, for example whether the image URL is accessible in the environment where it will be used. A new tester should be able to reproduce the request configuration with separate credentials and a suitable file.

A simple handoff distinguishes the submitted document, the fields extracted from it and the company selected after a registry check. In an employee-facing tool those values can be shown in adjacent panels. That lets the operator correct an OCR error without replacing the source scan and saves a clean place for the independent registry result when the workflow needs it.

Before passing the example to a teammate, save the body mode and the expected result as part of the same request description. One useful comparison is a readable image sent as binary versus the same approved image served from an authorized URL. If both results are available, compare the document fields rather than requiring the entire response to be identical, since request-level metadata can change. Then document which mode your application will use. A future change in document storage can be evaluated against that choice instead of silently changing how the request sends data.