> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.vlenseg.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.vlenseg.com/_mcp/server.

# Get Commercial Register PDF processing result

GET https://api.vlenseg.com/v1/ocr/get_process_pdf_result/{transaction_id}

Retrieves the result of a PDF submitted via `POST /v1/ocr/process_pdf`. Use this to poll for completion, or as a fallback if the completion webhook is not received.

Reference: https://docs.vlenseg.com/api-reference/vlens-api/ocr/get-ocr-get-process-pdf-result

## Authentication

- `ApiKey` header (required) — Static API key issued to your tenant. Required on every request.
- `Authorization` header (bearer token, required) — End-user JWT from registration or login. Required for verification, signing, and user-scoped operations.

## Servers

- `https://api.vlenseg.com` (Production, default)
- `https://api.vlens.co` (Staging)

## Request

### Path parameters

- `transaction_id` (string, required) — The `transaction_id` supplied to `process_pdf`.

## Response

### 200

Current status and, once complete, the extracted result.

- `data` (object, required)
  - `transaction_id` (string, required)
  - `status` (string, required)
  - `result` (object, required)
- `error_code` (integer, required, nullable)
- `error_message` (string, required)

## Examples

**Response**

```json
{
  "data": {
    "transaction_id": "<uuid>",
    "status": "<string>",
    "result": {}
  },
  "error_code": null,
  "error_message": "<string>"
}
```

**SDK Code**

```python OCR_getOcrGetProcessPdfResult_example
import requests

url = "https://api.vlenseg.com/v1/ocr/get_process_pdf_result/%7B%7Bocr_pdf_transaction_id%7D%7D"

headers = {"ApiKey": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript OCR_getOcrGetProcessPdfResult_example
const url = 'https://api.vlenseg.com/v1/ocr/get_process_pdf_result/%7B%7Bocr_pdf_transaction_id%7D%7D';
const options = {method: 'GET', headers: {ApiKey: '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go OCR_getOcrGetProcessPdfResult_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.vlenseg.com/v1/ocr/get_process_pdf_result/%7B%7Bocr_pdf_transaction_id%7D%7D"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("ApiKey", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby OCR_getOcrGetProcessPdfResult_example
require 'uri'
require 'net/http'

url = URI("https://api.vlenseg.com/v1/ocr/get_process_pdf_result/%7B%7Bocr_pdf_transaction_id%7D%7D")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["ApiKey"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java OCR_getOcrGetProcessPdfResult_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.vlenseg.com/v1/ocr/get_process_pdf_result/%7B%7Bocr_pdf_transaction_id%7D%7D")
  .header("ApiKey", "<apiKey>")
  .asString();
```

```php OCR_getOcrGetProcessPdfResult_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.vlenseg.com/v1/ocr/get_process_pdf_result/%7B%7Bocr_pdf_transaction_id%7D%7D', [
  'headers' => [
    'ApiKey' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp OCR_getOcrGetProcessPdfResult_example
using RestSharp;

var client = new RestClient("https://api.vlenseg.com/v1/ocr/get_process_pdf_result/%7B%7Bocr_pdf_transaction_id%7D%7D");
var request = new RestRequest(Method.GET);
request.AddHeader("ApiKey", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift OCR_getOcrGetProcessPdfResult_example
import Foundation

let headers = ["ApiKey": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.vlenseg.com/v1/ocr/get_process_pdf_result/%7B%7Bocr_pdf_transaction_id%7D%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```