PUT internal/emailDocument/addAndSend
Создает документ на основе сведений из указанного черновика.
Request Information
URI Parameters
None.
Body Parameters
Сведения для создания нового документа из черновика.
Korus.Eds.Api.Internal.Models.SaveDocumentForEmailRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| DocumentTypeId | integer |
None. |
|
| ReceiverName | string |
None. |
|
| ReceiverInn | string |
None. |
|
| ReceiverKpp | string |
None. |
|
| ReceiverEmail | string |
None. |
|
| Number | string |
None. |
|
| Date | date |
None. |
|
| NetSum | decimal number |
None. |
|
| VatSum | decimal number |
None. |
|
| TotalSum | decimal number |
None. |
|
| ContractNumber | string |
None. |
|
| ContractDate | date |
None. |
|
| Comment | string |
None. |
|
| Content | Korus.Eds.Api.Internal.Models.FileContent |
None. |
|
| DataSourceIdentifier | Korus.Eds.Core.DataSourceIdentifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"documentTypeId": 1,
"receiverName": "sample string 2",
"receiverInn": "sample string 3",
"receiverKpp": "sample string 4",
"receiverEmail": "sample string 5",
"number": "sample string 6",
"date": "2025-11-01T20:53:21.7779108+03:00",
"netSum": 1.0,
"vatSum": 1.0,
"totalSum": 1.0,
"contractNumber": "sample string 8",
"contractDate": "2025-11-01T20:53:21.7779108+03:00",
"comment": "sample string 9",
"content": {
"filename": "sample string 1",
"mimeType": "sample string 2",
"content": "QEA="
},
"dataSourceIdentifier": 0
}
application/xml, text/xml
Sample:
<SaveDocumentForEmailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Korus.Eds.Api.Internal.Models">
<Comment>sample string 9</Comment>
<Content>
<Content>QEA=</Content>
<Filename>sample string 1</Filename>
<MimeType>sample string 2</MimeType>
</Content>
<ContractDate>2025-11-01T20:53:21.7779108+03:00</ContractDate>
<ContractNumber>sample string 8</ContractNumber>
<DataSourceIdentifier>Undefined</DataSourceIdentifier>
<Date>2025-11-01T20:53:21.7779108+03:00</Date>
<DocumentTypeId>1</DocumentTypeId>
<NetSum>1</NetSum>
<Number>sample string 6</Number>
<ReceiverEmail>sample string 5</ReceiverEmail>
<ReceiverInn>sample string 3</ReceiverInn>
<ReceiverKpp>sample string 4</ReceiverKpp>
<ReceiverName>sample string 2</ReceiverName>
<TotalSum>1</TotalSum>
<VatSum>1</VatSum>
</SaveDocumentForEmailRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Карточка нового документа.
Korus.Eds.Api.Internal.Models.SaveDocumentEmailResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Guid | string |
None. |
|
| TypeId | integer |
None. |
|
| Description | string |
None. |
|
| SchemaVersionId | integer |
None. |
|
| DocumentTypeId | integer |
None. |
|
| ReceiverName | string |
None. |
|
| ReceiverInn | string |
None. |
|
| ReceiverKpp | string |
None. |
|
| ReceiverEmail | string |
None. |
|
| Number | string |
None. |
|
| Date | date |
None. |
|
| NetSum | decimal number |
None. |
|
| VatSum | decimal number |
None. |
|
| TotalSum | decimal number |
None. |
|
| ContractNumber | string |
None. |
|
| ContractDate | date |
None. |
|
| Comment | string |
None. |
|
| Content | Korus.Eds.Api.Internal.Models.FileContent |
None. |
|
| DataSourceIdentifier | Korus.Eds.Core.DataSourceIdentifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"guid": "sample string 2",
"typeId": 3,
"description": "sample string 4",
"schemaVersionId": 1,
"documentTypeId": 5,
"receiverName": "sample string 6",
"receiverInn": "sample string 7",
"receiverKpp": "sample string 8",
"receiverEmail": "sample string 9",
"number": "sample string 10",
"date": "2025-11-01T20:53:21.7935422+03:00",
"netSum": 1.0,
"vatSum": 1.0,
"totalSum": 1.0,
"contractNumber": "sample string 12",
"contractDate": "2025-11-01T20:53:21.7935422+03:00",
"comment": "sample string 13",
"content": {
"filename": "sample string 1",
"mimeType": "sample string 2",
"content": "QEA="
},
"dataSourceIdentifier": 0
}
application/xml, text/xml
Sample:
<SaveDocumentEmailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Korus.Eds.Api.Internal.Models">
<Comment>sample string 13</Comment>
<Content>
<Content>QEA=</Content>
<Filename>sample string 1</Filename>
<MimeType>sample string 2</MimeType>
</Content>
<ContractDate>2025-11-01T20:53:21.7935422+03:00</ContractDate>
<ContractNumber>sample string 12</ContractNumber>
<DataSourceIdentifier>Undefined</DataSourceIdentifier>
<Date>2025-11-01T20:53:21.7935422+03:00</Date>
<DocumentTypeId>5</DocumentTypeId>
<NetSum>1</NetSum>
<Number>sample string 10</Number>
<ReceiverEmail>sample string 9</ReceiverEmail>
<ReceiverInn>sample string 7</ReceiverInn>
<ReceiverKpp>sample string 8</ReceiverKpp>
<ReceiverName>sample string 6</ReceiverName>
<TotalSum>1</TotalSum>
<VatSum>1</VatSum>
<Description>sample string 4</Description>
<Guid>sample string 2</Guid>
<Id>1</Id>
<SchemaVersionId>1</SchemaVersionId>
<TypeId>3</TypeId>
</SaveDocumentEmailResponse>