# OData in 1C: setup, queries and REST integration with examples

Source: https://checkcraft.ru/en/guides/1c-odata.html · updated 2026-11-24

How to enable the standard OData interface in 1C 8.3, choose objects, grant access and fetch data with $filter, $select and $top in JSON.

Practical workflow

Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. [Download, no sign-up →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

The standard OData interface is built-in REST access to 1C data without writing HTTP services. It is enabled when publishing the database, after which catalogs and documents are available at addresses like /odata/standard.odata/Catalog_Name. Below are setup, queries, testing and errors.

Checkcraft · 24 November 2026

Get help with your first test →

## What the standard OData interface is

It is a REST protocol the platform supports itself: an external service reads and, if allowed, changes catalogs, documents and registers with ordinary HTTP requests. No handlers to write, but the set of available objects and the rights are configured explicitly.

## How to enable OData

When publishing the database on a web server, tick the standard OData interface. Then choose which objects the interface exposes: standard configurations on the SSL library have a setup data processor, others call SetStandardODataInterfaceContent. Give the exchange user a role with rights only to the needed objects.

Repeating checks like this by hand? Checkcraft saves them and reruns them in one click. [Download Free →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

## How to test the interface from outside

Open /odata/standard.odata/ with a 1C account: it returns the list of available entities. An empty list means the object set was not configured. Then request one entity with $format=json and $top so you do not pull the whole catalog.

## When OData and when an HTTP service

OData suits an external system that needs to read data as is when you do not want to write code. An HTTP service is better when you need your own logic, input validation, a custom response format or protection from extra fields. Many integrations use both.

## OData queries with curl

```
# список доступных сущностей
curl -u "Обмен:пароль" "http://erp.example.local/trade/odata/standard.odata/?\$format=json"

# первые 10 позиций номенклатуры, только ключ и наименование
curl -u "Обмен:пароль" "http://erp.example.local/trade/odata/standard.odata/Catalog_Номенклатура?\$format=json&\$top=10&\$select=Ref_Key,Description"

# отбор по наименованию
curl -u "Обмен:пароль" -G "http://erp.example.local/trade/odata/standard.odata/Catalog_Номенклатура" \
  --data-urlencode "\$format=json" --data-urlencode "\$filter=Description eq 'Монитор 24'"
```

The dollar sign is escaped on a Linux shell. In Windows PowerShell put the URL in single quotes or use curl.exe. Cyrillic entity names are passed as is; curl encodes them.

## What the response looks like

```
{
  "odata.metadata": "http://erp.example.local/trade/odata/standard.odata/$metadata#Catalog_Номенклатура",
  "value": [
    { "Ref_Key": "6a1c...e3", "Description": "Монитор 24" },
    { "Ref_Key": "9b7f...10", "Description": "Клавиатура" }
  ]
}
```

The record key comes in Ref_Key and the name in Description. References to other objects come as keys ending in _Key, not as names.

## OData query parameters

| Parameter | What it does | Example |
|---|---|---|
| $format=json | JSON instead of XML | ?$format=json |
| $top | Limit the number of records | $top=10 |
| $skip | Skip records for paging | $skip=100 |
| $select | Only the needed fields | $select=Ref_Key,Description |
| $filter | Filter by a condition | $filter=Description eq 'Monitor 24' |
| $orderby | Sorting | $orderby=Description |

## Common OData errors

| Response | Cause | Fix |
|---|---|---|
| 401 | No auth or wrong password | Send the 1C user login and password |
| 403 | The user lacks rights to the object | Grant a role with rights to the objects |
| 404 on an entity | The object is not in the OData interface set | Add it to the set and retry |
| Empty entity list | The interface set is not configured | Configure it with the data processor or code |
| HTML instead of JSON | Publishing error or no $format=json | Check the publication URL and the format parameter |

Saved OData requests with field checks are a simple way to notice that after a configuration update the integration started getting different data. See [API regression testing](https://checkcraft.ru/en/guides/api-regression-testing.html).

## More on 1C

Section overview and all guides: [1C integration via API: options, architecture and examples](https://checkcraft.ru/en/guides/1c-api-integration.html).

- [1C web services (SOAP): create, publish, WSDL and calls with examples](https://checkcraft.ru/en/guides/1c-web-service.html)
- [Publishing 1C on IIS and Apache: step by step and common errors](https://checkcraft.ru/en/guides/1c-web-publish.html)
- [JSON in 1C:Enterprise: read, write, HTTP requests and common errors](https://checkcraft.ru/en/guides/1c-json.html)
- [Unexpected character when reading JSON in 1C: causes and fixes](https://checkcraft.ru/en/guides/1c-json-unexpected-character.html)
- [Structure, Array and ValueTable to JSON in 1C: both directions](https://checkcraft.ru/en/guides/1c-json-value-table.html)

Next step

## Repeat this on your own API

Checkcraft is a desktop app that saves API response checks without code and shows what did not match. Start with a sample, then use your own sanitized data. Free runs on Windows and Linux with no time limit.

[Download Free](https://checkcraft.ru/en/download-checkcraft.html#free-download) · [Download and first run](https://checkcraft.ru/en/download-checkcraft.html)

No sign-up or email needed, the archive is ready in a couple of minutes. See the [edition limits](https://checkcraft.ru/en/pricing.html).

## References

[OData protocol documentation](https://www.odata.org/documentation/)

## Continue with a related task

[1C HTTP services: create, publish, test and debug with examples](https://checkcraft.ru/en/guides/1c-http-service.html) · [Publishing 1C on IIS and Apache: step by step and common errors](https://checkcraft.ru/en/guides/1c-web-publish.html) · [JSON in 1C:Enterprise: read, write, HTTP requests and common errors](https://checkcraft.ru/en/guides/1c-json.html) · [HTTP requests from 1C: GET, POST, headers, auth and timeouts with examples](https://checkcraft.ru/en/guides/1c-http-request.html) · [Configure API request authentication](https://checkcraft.ru/en/guides/api-request-authorization.html)

Start with the linked example and compare its result with your own test requirement.

Ask a person

## Get help with your first test

Tell us what you want to test or where you got stuck. We can help you start Checkcraft, choose an example and understand your first run. You can ask before downloading.

[Ask in Telegram](https://t.me/checkcraftchat)Send an email

The Telegram group is public: do not post passwords, tokens or confidential work data. A description of your task is enough to start.

You can also email us support@checkcraft.ru

Page card: /ai/pages/en/guides/1c-odata.md
