GET api/v2/draftgroup/autosave

Получение автосохраненной группы документов

Информация о запросе

GET параметры

None.

Body параметры

Нет.

Информация об ответе

Информация о ресурсах

Автосохраненная группа документов

GetDraftGroupModel
НазваниеОписаниеТипДополнительная информация
DraftGroupId

Идентификатор

globally unique identifier

Нет.

Authorities

Полномочия отправителя

DraftAuthorities

Нет.

Drafts

Список черновиков

Массив GetDraftModel

Нет.

Receiver

Получатель черновика

ReceiverModel

Нет.

Форматы ответа

application/json, text/json

Пример:
{
  "DraftGroupId": "a8b66b1e-7432-4797-9e9f-a48bd2d9b22b",
  "Authorities": {
    "Area": 1,
    "Status": 2,
    "OtherInformation": "sample string 3",
    "StateRegistrationCertificate": "sample string 4",
    "Post": "sample string 5",
    "BasisForEmployee": "sample string 6",
    "BasisForOrganization": "sample string 7"
  },
  "Drafts": [
    {
      "DraftId": "37d06dda-e0a3-484f-9c71-36cc4415adf8",
      "ShelfId": "d148d0f0-29ab-4579-870c-b7321ec7b2a2",
      "Filename": "sample string 2",
      "NeedSign": true,
      "UnformalizedDocumentType": "sample string 4",
      "Comment": "sample string 5",
      "Date": "2019-10-21T15:57:32.6821878+03:00",
      "Flc": {
        "IsSuccess": true,
        "Errors": [
          "sample string 1",
          "sample string 2"
        ]
      },
      "DocumentType": {
        "Code": 1,
        "Name": "sample string 2"
      },
      "Title": "sample string 7",
      "Size": 8,
      "Department": {
        "Id": "1924b6cb-40c6-42b8-9944-89d1286c821d",
        "Name": "sample string 2"
      }
    },
    {
      "DraftId": "37d06dda-e0a3-484f-9c71-36cc4415adf8",
      "ShelfId": "d148d0f0-29ab-4579-870c-b7321ec7b2a2",
      "Filename": "sample string 2",
      "NeedSign": true,
      "UnformalizedDocumentType": "sample string 4",
      "Comment": "sample string 5",
      "Date": "2019-10-21T15:57:32.6821878+03:00",
      "Flc": {
        "IsSuccess": true,
        "Errors": [
          "sample string 1",
          "sample string 2"
        ]
      },
      "DocumentType": {
        "Code": 1,
        "Name": "sample string 2"
      },
      "Title": "sample string 7",
      "Size": 8,
      "Department": {
        "Id": "1924b6cb-40c6-42b8-9944-89d1286c821d",
        "Name": "sample string 2"
      }
    }
  ],
  "Receiver": {
    "Id": "6984dc80-3477-4b8f-943d-3235586f2e7a",
    "DocflowUserId": "sample string 1",
    "DepartmentId": "0daa335c-07b3-4e36-85e5-98590cd13c74",
    "Name": "sample string 2",
    "Inn": "sample string 3",
    "Kpp": "sample string 4"
  }
}

application/xml, text/xml

Пример:
<GetDraftGroupModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Taxnet.Transcrypt.Api20.Models">
  <Authorities>
    <Area>1</Area>
    <BasisForEmployee>sample string 6</BasisForEmployee>
    <BasisForOrganization>sample string 7</BasisForOrganization>
    <OtherInformation>sample string 3</OtherInformation>
    <Post>sample string 5</Post>
    <StateRegistrationCertificate>sample string 4</StateRegistrationCertificate>
    <Status>2</Status>
  </Authorities>
  <DraftGroupId>a8b66b1e-7432-4797-9e9f-a48bd2d9b22b</DraftGroupId>
  <Drafts>
    <GetDraftGroupModel.GetDraftModel>
      <Comment>sample string 5</Comment>
      <Date>2019-10-21T15:57:32.6821878+03:00</Date>
      <Department>
        <Id>1924b6cb-40c6-42b8-9944-89d1286c821d</Id>
        <Name>sample string 2</Name>
      </Department>
      <DocumentType>
        <Code>1</Code>
        <Name>sample string 2</Name>
      </DocumentType>
      <DraftId>37d06dda-e0a3-484f-9c71-36cc4415adf8</DraftId>
      <Filename>sample string 2</Filename>
      <Flc>
        <Errors xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </Errors>
        <IsSuccess>true</IsSuccess>
      </Flc>
      <NeedSign>true</NeedSign>
      <ShelfId>d148d0f0-29ab-4579-870c-b7321ec7b2a2</ShelfId>
      <Size>8</Size>
      <Title>sample string 7</Title>
      <UnformalizedDocumentType>sample string 4</UnformalizedDocumentType>
    </GetDraftGroupModel.GetDraftModel>
    <GetDraftGroupModel.GetDraftModel>
      <Comment>sample string 5</Comment>
      <Date>2019-10-21T15:57:32.6821878+03:00</Date>
      <Department>
        <Id>1924b6cb-40c6-42b8-9944-89d1286c821d</Id>
        <Name>sample string 2</Name>
      </Department>
      <DocumentType>
        <Code>1</Code>
        <Name>sample string 2</Name>
      </DocumentType>
      <DraftId>37d06dda-e0a3-484f-9c71-36cc4415adf8</DraftId>
      <Filename>sample string 2</Filename>
      <Flc>
        <Errors xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </Errors>
        <IsSuccess>true</IsSuccess>
      </Flc>
      <NeedSign>true</NeedSign>
      <ShelfId>d148d0f0-29ab-4579-870c-b7321ec7b2a2</ShelfId>
      <Size>8</Size>
      <Title>sample string 7</Title>
      <UnformalizedDocumentType>sample string 4</UnformalizedDocumentType>
    </GetDraftGroupModel.GetDraftModel>
  </Drafts>
  <Receiver>
    <DepartmentId>0daa335c-07b3-4e36-85e5-98590cd13c74</DepartmentId>
    <DocflowUserId>sample string 1</DocflowUserId>
    <Id>6984dc80-3477-4b8f-943d-3235586f2e7a</Id>
    <Inn>sample string 3</Inn>
    <Kpp>sample string 4</Kpp>
    <Name>sample string 2</Name>
  </Receiver>
</GetDraftGroupModel>