Интеграция 1С
Интеграция с 1С.
Подключить 1С
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/1c/connect" \ -H "Content-Type: application/json" \ -d '{ "baseUrl": "string", "login": "string", "password": "string" }'{
"success": true
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}curl -X POST "https://loading/api/v1/integrations/1c/disconnect"{
"success": true
}Список документов 1С
В: header
Параметры запроса
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/1c/documents"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Создать документ в 1С
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/1c/documents" \ -H "Content-Type: application/json" \ -d '{ "data": { "property1": null, "property2": null }, "resource": "string" }'{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Получить документ 1С
В: header
Параметры пути
Параметры запроса
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/1c/documents/string"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Обновить документ в 1С
В: header
Параметры пути
Параметры запроса
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X PATCH "https://loading/api/v1/integrations/1c/documents/string" \ -H "Content-Type: application/json" \ -d '{ "data": { "property1": null, "property2": null } }'{
"success": true
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Удалить документ в 1С
В: header
Параметры пути
Параметры запроса
Тело ответа
application/json
application/problem+json
curl -X DELETE "https://loading/api/v1/integrations/1c/documents/string"{
"success": true
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}curl -X GET "https://loading/api/v1/integrations/1c/metadata"{
"property1": null,
"property2": null
}Отправить данные в 1С с маппингом полей
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/1c/push" \ -H "Content-Type: application/json" \ -d '{ "data": { "property1": null, "property2": null }, "fieldMapping": { "property1": "string", "property2": "string" }, "resource": "string" }'{
"refKey": "string",
"success": true
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Разрешить сущность 1С в каноническую форму
В: header
Параметры пути
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/1c/resolve/string/string"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}curl -X GET "https://loading/api/v1/integrations/1c/resources"{
"property1": null,
"property2": null
}Получить список полей ресурса 1С
В: header
Параметры пути
Тело ответа
application/json
curl -X GET "https://loading/api/v1/integrations/1c/resources/string/fields"{
"property1": null,
"property2": null
}Поиск сущностей в 1С
В: header
Параметры пути
Параметры запроса
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/1c/search/string"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}curl -X GET "https://loading/api/v1/integrations/1c/status"{
"connected": true,
"status": "connected"
}