GET api/v2/draftgroup/{draftGroupId}

Получение группы черновиков

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

GET параметры

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

Идентификатор группы черновиков

globally unique identifier

Required

Body параметры

Нет.

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

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

Группа черновиков

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

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

globally unique identifier

Нет.

Authorities

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

DraftAuthorities

Нет.

Drafts

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

Массив GetDraftModel

Нет.

Receiver

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

ReceiverModel

Нет.

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

application/json, text/json

Пример:
{
  "DraftGroupId": "de79986d-3615-4885-8bcc-e870af76d31a",
  "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": "024d52b0-51eb-41ae-ae69-42968eeb79e3",
      "ShelfId": "ea4bdf14-00b6-4764-8130-8df09fcbb068",
      "Filename": "sample string 2",
      "NeedSign": true,
      "UnformalizedDocumentType": "sample string 4",
      "Comment": "sample string 5",
      "Date": "2019-08-22T07:47:41.8845287+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": "cbdddbf1-813a-4596-83ed-e871126e5a7b",
        "Name": "sample string 2"
      }
    },
    {
      "DraftId": "024d52b0-51eb-41ae-ae69-42968eeb79e3",
      "ShelfId": "ea4bdf14-00b6-4764-8130-8df09fcbb068",
      "Filename": "sample string 2",
      "NeedSign": true,
      "UnformalizedDocumentType": "sample string 4",
      "Comment": "sample string 5",
      "Date": "2019-08-22T07:47:41.8845287+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": "cbdddbf1-813a-4596-83ed-e871126e5a7b",
        "Name": "sample string 2"
      }
    }
  ],
  "Receiver": {
    "Id": "40ceb0d1-0b55-49eb-aa56-c92e01fcbf03",
    "DocflowUserId": "sample string 1",
    "DepartmentId": "f72cab59-20b2-44de-8145-0629b7b44382",
    "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>de79986d-3615-4885-8bcc-e870af76d31a</DraftGroupId>
  <Drafts>
    <GetDraftGroupModel.GetDraftModel>
      <Comment>sample string 5</Comment>
      <Date>2019-08-22T07:47:41.8845287+03:00</Date>
      <Department>
        <Id>cbdddbf1-813a-4596-83ed-e871126e5a7b</Id>
        <Name>sample string 2</Name>
      </Department>
      <DocumentType>
        <Code>1</Code>
        <Name>sample string 2</Name>
      </DocumentType>
      <DraftId>024d52b0-51eb-41ae-ae69-42968eeb79e3</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>ea4bdf14-00b6-4764-8130-8df09fcbb068</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-08-22T07:47:41.8845287+03:00</Date>
      <Department>
        <Id>cbdddbf1-813a-4596-83ed-e871126e5a7b</Id>
        <Name>sample string 2</Name>
      </Department>
      <DocumentType>
        <Code>1</Code>
        <Name>sample string 2</Name>
      </DocumentType>
      <DraftId>024d52b0-51eb-41ae-ae69-42968eeb79e3</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>ea4bdf14-00b6-4764-8130-8df09fcbb068</ShelfId>
      <Size>8</Size>
      <Title>sample string 7</Title>
      <UnformalizedDocumentType>sample string 4</UnformalizedDocumentType>
    </GetDraftGroupModel.GetDraftModel>
  </Drafts>
  <Receiver>
    <DepartmentId>f72cab59-20b2-44de-8145-0629b7b44382</DepartmentId>
    <DocflowUserId>sample string 1</DocflowUserId>
    <Id>40ceb0d1-0b55-49eb-aa56-c92e01fcbf03</Id>
    <Inn>sample string 3</Inn>
    <Kpp>sample string 4</Kpp>
    <Name>sample string 2</Name>
  </Receiver>
</GetDraftGroupModel>