> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/infor-integration-and-configuration/importing-customer-master-data/custom-master-data.md). Agents can also search and read this documentation through its [MCP server](https://docs.docbits.com/~gitbook/mcp).

# Custom Master Data

Set up a custom master data template or API endpoint in DocBits.

Custom Master Data lets you connect DocBits to one of your own API endpoints and use the data it returns as master data — for example your own supplier or article table — alongside the data DocBits maintains for you. Prepare the API URL, authentication details and a sample response with your integration administrator before you start.

## Activating Custom Master Data

Custom Master Data is a module. To switch it on, go to **Settings → DOCUMENT PROCESSING → Module → Document Integration** and activate the **Custom Master Data** toggle in the **Document type configuration** section.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-96f4ed1aca4f70e22aa2c11b46bd93f9a61d0198%2Fcustom-master-data-module-en-20261012.png?alt=media" alt="Settings Module page, Document Integration section, Document type configuration, with the Custom Master Data toggle"><figcaption><p>The Custom Master Data toggle in the Document type configuration section of Document Integration</p></figcaption></figure>

For more about modules, see [Module](https://docs.docbits.com/administration-and-setup/settings/document-processing/module.md).

## Opening the Custom Master Data dialog

Once the module is active, go to **Settings → DOCUMENT PROCESSING → Lookup Master Data**. In the list of master data groups on the left, click the **settings** icon next to **ERP API Data** to open the **Custom Master Data** dialog. The plus icon next to **Imported** is for CSV uploads, not for API endpoints.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-b7342cedc12afb43971bbf4e159b37ed51d1c08d%2Fcustom-master-data-lookup-en-20261012.png?alt=media" alt="Lookup Master Data page with the master data group list on the left"><figcaption><p>Lookup Master Data — the settings icon next to ERP API Data opens the Custom Master Data dialog</p></figcaption></figure>

The dialog lists your custom master data tables with their **Name**, **Method**, and **Body Type**, and offers two ways to add a new one:

* **Create Template** — define a reusable preset that you can pick when creating endpoints.
* **Create Endpoint** — connect a master data table that DocBits fills from your API.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-45e25fc62f15793f33f9c6a811a3b5f050d1fb0c%2Fcustom-master-data-actions-en-20261012.png?alt=media" alt="Custom Master Data dialog with the Create Template and Create Endpoint buttons and the list of existing endpoints"><figcaption><p>The Custom Master Data dialog with Create Template and Create Endpoint</p></figcaption></figure>

Each existing connection has four row actions:

* **Edit** opens the endpoint configuration.
* **Trigger Endpoint** runs the API call immediately instead of waiting for the next automatic lookup.
* **Clear data** deletes all records of the data set, including records from other sources such as a CSV upload. The endpoint configuration is kept, so you can trigger it again; until then, lookups that use the data set return no results.
* **Delete** removes the connection from DocBits. The data source on your side is left unchanged.

## Creating a Template

Click **Create Template** to define a preset that you can reuse across several endpoints. Templates are managed on the **Create Preset** page (**Settings → Lookup Master Data → Create Preset**).

The first step is **Select Preset**: choose whether the preset should use your organization's **ION API** file or **OAUTH2**. With ION API you upload the organization's ION API JSON file in the next screen; with OAUTH2 you enter the credentials when configuring the preset.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-0296d6d29c66c7c35b61f4aad1d8e23fe1883d03%2Fcustom-master-data-template-en-20261012.png?alt=media" alt="Create Preset page with the Select Preset step offering ION API and OAUTH2"><figcaption><p>Create Preset — Select Preset: ION API or OAUTH2</p></figcaption></figure>

In the **Configure Preset** step, give the preset a name without spaces, choose the body type and the request method, and enter the base URL and the URL of the API call. The remaining tabs describe the call itself:

* **Params** — query parameters as key/value pairs.
* **Headers** — HTTP header fields as key/value pairs.
* **Authorization** — the authentication type and its JSON data; the upload field accepts an authentication JSON file.
* **Body** — the request body, sent for methods that use one.

Continue with **Select Tabledata Path** and **Create Table with Response** as described for an endpoint below, and finish with **Done**. The saved preset then appears in the **Select Preset** step of the endpoint wizard.

## Creating an Endpoint

Click **Create Endpoint** to connect a master data table. The wizard has four steps.

### Step 1 — Select Preset

Choose the starting point: **Blank** to configure everything yourself, **ION API** to prefill the authentication from your organization's ION API file, **OAUTH2** to prefill OAuth2 authentication, or one of your saved templates.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-f4e37ef1ebdccd54df1283635823ef41eb4df044%2Fcustom-master-data-create-en-20261012.png?alt=media" alt="Create page with the Select Preset step offering Blank, ION API, OAuth2 and saved templates"><figcaption><p>Create Endpoint — Select Preset: Blank, ION API, OAuth2, or a saved template</p></figcaption></figure>

### Step 2 — Configure API Endpoint

Enter an **Endpoint Name** without spaces; this name becomes the name of your master data table.

Activate **Dynamic Lookup Population Based on Document Fields** if the lookup should depend on the document being processed. DocBits then fills placeholders in the API call — in the URL, the query parameters, or the headers — with values taken from the current document, so the call can return data that matches that document.

Select the **Body Type** and the **Method** of the call, and enter the **Base URL**. The tabs below describe the call:

* **Params** — query parameters as key/value pairs; with dynamic lookup population the values can come from document fields.
* **Headers** — HTTP header fields as key/value pairs, added with **Add New**.
* **Authorization** — the authentication type and its JSON data. The available types depend on the selected preset.
* **Body** — the request body for methods that send one. **Beautify** formats the JSON for easier reading.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-a8083e400fb8ccc1262ced82f010e24624c178cf%2Fcustom-master-data-endpoint-en-20261012.png?alt=media" alt="Configure API Endpoint step with Endpoint Name, Dynamic Lookup Population Based on Document Fields, Body Type, Method, Base URL and the Params, Headers, Authorization and Body tabs"><figcaption><p>Create Endpoint — Configure API Endpoint</p></figcaption></figure>

Use **Continue** to move on; **Back** returns to the previous step without losing your entries.

### Step 3 — Select Tabledata Path

Enter the **JSON path**, in dot notation, of the field in the API response that holds the table data. The page shows the API response next to the extracted data so that you can check whether the path selects the right entries. For more about dot notation, see [Writing JSONPath expressions](https://docs.hevodata.com/sources/engg-analytics/streaming/rest-api/writing-jsonpath-expressions/).

### Step 4 — Create Table with Response

Map the response values to the columns you would like to create: enter a name for the column and the matching value from the response, then click **Add**. Use **Test Extraction** to verify that DocBits reads the values you expect before you save.

Lastly, click **Done** for your new master data table to be created and populated.

For help finding and using master data after setup, see [Master Data Lookup](https://docs.docbits.com/administration-and-setup/settings/document-processing/master-data-lookup.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/infor-integration-and-configuration/importing-customer-master-data/custom-master-data.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
