LegalStack

СБИС (Saby)

Интеграция со СБИС (ЭДО).

Список сертификатов СБИС

GET
/api/v1/integrations/saby/certificates
АвторизацияBearer <токен>

В: header

Тело ответа

application/json

curl -X GET "https://loading/api/v1/integrations/saby/certificates"
{
  "property1": null,
  "property2": null
}

Список изменений в документах СБИС

GET
/api/v1/integrations/saby/changes
АвторизацияBearer <токен>

В: header

Параметры запроса

dateFrom?string
eventId?string

Тело ответа

application/json

application/problem+json

curl -X GET "https://loading/api/v1/integrations/saby/changes"
{
  "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
}

Подключить СБИС

POST
/api/v1/integrations/saby/connect
АвторизацияBearer <токен>

В: header

Тело запроса

application/json

TypeScript-определения

Используйте тип request body в TypeScript.

Тело ответа

application/json

application/problem+json

curl -X POST "https://loading/api/v1/integrations/saby/connect" \  -H "Content-Type: application/json" \  -d '{    "appClientId": "string",    "appSecret": "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
}

Получить информацию о контрагенте СБИС

GET
/api/v1/integrations/saby/contragent
АвторизацияBearer <токен>

В: header

Параметры запроса

inn?string
kpp?string

Тело ответа

application/json

application/problem+json

curl -X GET "https://loading/api/v1/integrations/saby/contragent"
{
  "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
}

Список контрагентов СБИС

GET
/api/v1/integrations/saby/contragents
АвторизацияBearer <токен>

В: header

Параметры запроса

orgInn?string
orgKpp?string
page?string
pageSize?string

Тело ответа

application/json

curl -X GET "https://loading/api/v1/integrations/saby/contragents"
{
  "property1": null,
  "property2": null
}

Создать или обновить контрагента СБИС

POST
/api/v1/integrations/saby/contragents
АвторизацияBearer <токен>

В: header

Тело запроса

application/json

TypeScript-определения

Используйте тип request body в TypeScript.

[key: string]?unknown

Тело ответа

application/json

curl -X POST "https://loading/api/v1/integrations/saby/contragents" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
{
  "property1": null,
  "property2": null
}

Поиск контрагентов СБИС

GET
/api/v1/integrations/saby/contragents/find
АвторизацияBearer <токен>

В: header

Параметры запроса

q?string

Тело ответа

application/json

application/problem+json

curl -X GET "https://loading/api/v1/integrations/saby/contragents/find"
{
  "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
}

Получить контрагента СБИС

GET
/api/v1/integrations/saby/contragents/read
АвторизацияBearer <токен>

В: header

Параметры запроса

inn?string
kpp?string

Тело ответа

application/json

application/problem+json

curl -X GET "https://loading/api/v1/integrations/saby/contragents/read"
{
  "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
}

Отключить СБИС

POST
/api/v1/integrations/saby/disconnect
АвторизацияBearer <токен>

В: header

Тело ответа

application/json

curl -X POST "https://loading/api/v1/integrations/saby/disconnect"
{
  "success": true
}

Список документов СБИС

GET
/api/v1/integrations/saby/documents
АвторизацияBearer <токен>

В: header

Параметры запроса

page?string
pageSize?string
dateFrom?string
dateTo?string
type?string
direction?string

Тело ответа

application/json

curl -X GET "https://loading/api/v1/integrations/saby/documents"
{
  "property1": null,
  "property2": null
}

Создать или обновить документ СБИС

POST
/api/v1/integrations/saby/documents
АвторизацияBearer <токен>

В: header

Тело запроса

application/json

TypeScript-определения

Используйте тип request body в TypeScript.

[key: string]?unknown

Тело ответа

application/json

curl -X POST "https://loading/api/v1/integrations/saby/documents" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
{
  "property1": null,
  "property2": null
}

Список событий по документам СБИС

GET
/api/v1/integrations/saby/documents/events
АвторизацияBearer <токен>

В: header

Параметры запроса

section?string
page?string
pageSize?string
dateFrom?string
dateTo?string
attachmentType?string

Тело ответа

application/json

curl -X GET "https://loading/api/v1/integrations/saby/documents/events"
{
  "property1": null,
  "property2": null
}

Удалить вложение из документа СБИС

DELETE
/api/v1/integrations/saby/documents/{docId}/attachments/{attachmentId}
АвторизацияBearer <токен>

В: header

Параметры пути

docId*string
attachmentId*string

Тело ответа

application/json

curl -X DELETE "https://loading/api/v1/integrations/saby/documents/string/attachments/string"
{
  "success": true
}

Получить документ СБИС

GET
/api/v1/integrations/saby/documents/{id}
АвторизацияBearer <токен>

В: header

Параметры пути

id*string

Тело ответа

application/json

curl -X GET "https://loading/api/v1/integrations/saby/documents/string"
{
  "property1": null,
  "property2": null
}

Удалить документ СБИС

DELETE
/api/v1/integrations/saby/documents/{id}
АвторизацияBearer <токен>

В: header

Параметры пути

id*string

Тело ответа

application/json

curl -X DELETE "https://loading/api/v1/integrations/saby/documents/string"
{
  "success": true
}

Выполнить действие над документом СБИС

POST
/api/v1/integrations/saby/documents/{id}/action
АвторизацияBearer <токен>

В: header

Параметры пути

id*string

Тело запроса

application/json

TypeScript-определения

Используйте тип request body в TypeScript.

Тело ответа

application/json

application/problem+json

curl -X POST "https://loading/api/v1/integrations/saby/documents/string/action" \  -H "Content-Type: application/json" \  -d '{    "action": "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
}

Аннулировать документ СБИС

POST
/api/v1/integrations/saby/documents/{id}/annul
АвторизацияBearer <токен>

В: header

Параметры пути

id*string

Тело запроса

application/json

TypeScript-определения

Используйте тип request body в TypeScript.

comment?string

Тело ответа

application/json

curl -X POST "https://loading/api/v1/integrations/saby/documents/string/annul" \  -H "Content-Type: application/json" \  -d '{}'
{
  "success": true
}

Список вложений документа СБИС

GET
/api/v1/integrations/saby/documents/{id}/attachments
АвторизацияBearer <токен>

В: header

Параметры пути

id*string

Тело ответа

application/json

curl -X GET "https://loading/api/v1/integrations/saby/documents/string/attachments"
{
  "property1": null,
  "property2": null
}

Загрузить вложение в документ СБИС

POST
/api/v1/integrations/saby/documents/{id}/attachments
АвторизацияBearer <токен>

В: header

Параметры пути

id*string

Тело запроса

application/json

TypeScript-определения

Используйте тип request body в TypeScript.

[key: string]?unknown

Тело ответа

application/json

curl -X POST "https://loading/api/v1/integrations/saby/documents/string/attachments" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
{
  "property1": null,
  "property2": null
}

Получить вложение документа СБИС

GET
/api/v1/integrations/saby/documents/{id}/attachments/{attachmentId}
АвторизацияBearer <токен>

В: header

Параметры пути

id*string
attachmentId*string

Тело ответа

application/json

curl -X GET "https://loading/api/v1/integrations/saby/documents/string/attachments/string"
{
  "property1": null,
  "property2": null
}

Скачать вложение документа СБИС

GET
/api/v1/integrations/saby/documents/{id}/attachments/{attachmentId}/download
АвторизацияBearer <токен>

В: header

Параметры пути

id*string
attachmentId*string

Тело ответа

application/octet-stream

application/problem+json

curl -X GET "https://loading/api/v1/integrations/saby/documents/string/attachments/string/download"
"string"
{
  "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
}

Скачать PDF со штампом подписи СБИС

GET
/api/v1/integrations/saby/documents/{id}/attachments/{attachmentId}/stamped
АвторизацияBearer <токен>

В: header

Параметры пути

id*string
attachmentId*string

Тело ответа

application/pdf

application/problem+json

curl -X GET "https://loading/api/v1/integrations/saby/documents/string/attachments/string/stamped"
"string"
{
  "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
}

Получить ссылку на документ СБИС

GET
/api/v1/integrations/saby/documents/{id}/link
АвторизацияBearer <токен>

В: header

Параметры пути

id*string

Тело ответа

application/json

curl -X GET "https://loading/api/v1/integrations/saby/documents/string/link"
{
  "property1": null,
  "property2": null
}

Подготовить действие над документом СБИС

POST
/api/v1/integrations/saby/documents/{id}/prepare
АвторизацияBearer <токен>

В: header

Параметры пути

id*string

Тело запроса

application/json

TypeScript-определения

Используйте тип request body в TypeScript.

Тело ответа

application/json

application/problem+json

curl -X POST "https://loading/api/v1/integrations/saby/documents/string/prepare" \  -H "Content-Type: application/json" \  -d '{    "action": "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
}

Отклонить документ СБИС

POST
/api/v1/integrations/saby/documents/{id}/reject
АвторизацияBearer <токен>

В: header

Параметры пути

id*string

Тело запроса

application/json

TypeScript-определения

Используйте тип request body в TypeScript.

comment?string

Тело ответа

application/json

curl -X POST "https://loading/api/v1/integrations/saby/documents/string/reject" \  -H "Content-Type: application/json" \  -d '{}'
{
  "success": true
}

Восстановить документ СБИС

POST
/api/v1/integrations/saby/documents/{id}/restore
АвторизацияBearer <токен>

В: header

Параметры пути

id*string

Тело ответа

application/json

curl -X POST "https://loading/api/v1/integrations/saby/documents/string/restore"
{
  "success": true
}

Проверить подключение контрагента к ЭДО

GET
/api/v1/integrations/saby/edo/check
АвторизацияBearer <токен>

В: header

Параметры запроса

inn?string
kpp?string

Тело ответа

application/json

application/problem+json

curl -X GET "https://loading/api/v1/integrations/saby/edo/check"
{
  "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
}

Отправить приглашение в СБИС

POST
/api/v1/integrations/saby/invite
АвторизацияBearer <токен>

В: header

Тело запроса

application/json

TypeScript-определения

Используйте тип request body в TypeScript.

[key: string]?unknown

Тело ответа

application/json

curl -X POST "https://loading/api/v1/integrations/saby/invite" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
{
  "property1": null,
  "property2": null
}

Получить приглашение СБИС

GET
/api/v1/integrations/saby/invite/{id}
АвторизацияBearer <токен>

В: header

Параметры пути

id*string

Тело ответа

application/json

curl -X GET "https://loading/api/v1/integrations/saby/invite/string"
{
  "property1": null,
  "property2": null
}

Список организаций СБИС

GET
/api/v1/integrations/saby/organizations
АвторизацияBearer <токен>

В: header

Тело ответа

application/json

curl -X GET "https://loading/api/v1/integrations/saby/organizations"
{
  "property1": null,
  "property2": null
}

Сопоставить организацию СБИС по ИНН/КПП

GET
/api/v1/integrations/saby/organizations/match
АвторизацияBearer <токен>

В: header

Параметры запроса

inn?string
kpp?string

Тело ответа

application/json

application/problem+json

curl -X GET "https://loading/api/v1/integrations/saby/organizations/match"
{
  "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
}

Получить организацию СБИС

GET
/api/v1/integrations/saby/organizations/read
АвторизацияBearer <токен>

В: header

Параметры запроса

inn?string
kpp?string

Тело ответа

application/json

application/problem+json

curl -X GET "https://loading/api/v1/integrations/saby/organizations/read"
{
  "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
}

Обновить список организаций СБИС

POST
/api/v1/integrations/saby/organizations/refresh
АвторизацияBearer <токен>

В: header

Тело ответа

application/json

curl -X POST "https://loading/api/v1/integrations/saby/organizations/refresh"
{
  "property1": null,
  "property2": null
}

Разрешить сущность СБИС в каноническую форму

GET
/api/v1/integrations/saby/resolve/{type}/{id}
АвторизацияBearer <токен>

В: header

Параметры пути

type*string
id*string

Тело ответа

application/json

application/problem+json

curl -X GET "https://loading/api/v1/integrations/saby/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
}

Поиск сущностей СБИС по ИНН

GET
/api/v1/integrations/saby/search/{type}
АвторизацияBearer <токен>

В: header

Параметры пути

type*string

Параметры запроса

q?string

Тело ответа

application/json

application/problem+json

curl -X GET "https://loading/api/v1/integrations/saby/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
}

Статус подключения СБИС

GET
/api/v1/integrations/saby/status
АвторизацияBearer <токен>

В: header

Тело ответа

application/json

curl -X GET "https://loading/api/v1/integrations/saby/status"
{
  "connected": true,
  "status": "connected"
}