# Handelsregister.ai German Register Document Download API

Get German Register Document Download data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Handelsregister, pass parameters such as async, company_id, document_type, and retrieve structured data including reported status, returned credits remaining field, response message, and returned retry after field for document research and entity reference, and integration reference.

Documentation: https://openany.si/handelsregister/handelsregister-ai-german-register-document-download-api/ba87d135-5385-47c1-b155-c77ff41be583/
API ID: ba87d135-5385-47c1-b155-c77ff41be583
Provider: handelsregister
Contract revision: 2
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/handelsregister/api/v1/fetch-document
Page update time: 2026-12-03T02:49:41.391Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.164835 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:40.634Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "164835",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Handelsregister.ai German Register Document Download API

Use the Handelsregister.ai German Register Document Download API to download an official German company register document as PDF or structured XML. Provide company\_id in query, document\_type in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Document research and entity reference**: Keep document and entity identifiers with each returned reference.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `status` | Reported status |
| `meta.credits_remaining` | Returned credits remaining field |
| `meta.message` | Response message |
| `meta.request_credit_cost` | Returned request credit cost field |
| `meta.retry_after` | Returned retry after field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Handelsregister.ai German Register Document Download API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "company_id": {
          "type": "string",
          "description": "32-hex company entity_id, not a company name. Exact hexadecimal pattern is validated upstream.",
          "minLength": 32,
          "maxLength": 32
        },
        "document_type": {
          "type": "string",
          "description": "PDF except SI, which is XJustiz XML. Some originals may be unsupported TIFF.",
          "enum": [
            "AD",
            "CD",
            "shareholders_list",
            "articles_of_association",
            "SI"
          ]
        },
        "async": {
          "type": "boolean",
          "description": "Optional 202 polling mode. A 202 is not file delivery and costs 0 credits; retry the same request after Retry-After. HTTP 200 delivers the raw file."
        }
      },
      "required": [
        "company_id",
        "document_type"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {
        "Idempotency-Key": {
          "type": "string",
          "description": "Per logical request idempotency key: 1–128 ASCII letters/digits/dot/underscore/colon/hyphen; starts with letter or digit. Reuse only with identical parameters. The legacy query/header validator enforces length but delegates the exact pattern to the provider.",
          "minLength": 1,
          "maxLength": 128
        }
      }
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "credits_remaining": {
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "request_credit_cost": {
          "type": "integer"
        },
        "retry_after": {
          "type": "integer"
        }
      }
    },
    "status": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official response
```bash
curl \
  'https://api.openany.si/v1/agent-apis/handelsregister/api/v1/fetch-document?async=true&company_id=94eb910fef13f94585c48c263fa446d4&document_type=AD' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 202
```json
{
  "meta": {
    "credits_remaining": 145,
    "message": "The document is being retrieved. Repeat this request after Retry-After seconds to receive it.",
    "request_credit_cost": 0,
    "retry_after": 20
  },
  "status": "processing"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide company_id in query (string); document_type in query (string). Keep identifiers and URLs in the formats documented for this implementation.

### Which values can I use for document_type?
The selected schema accepts AD, CD, shareholders_list, articles_of_association, SI. Keep the documented string type and exact spelling for this input.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- handelsregister: https://openany.si/handelsregister/handelsregister-ai-german-register-document-download-api/ba87d135-5385-47c1-b155-c77ff41be583/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
