Exportcenter:AttachAccountingDocuments:v2.2: различия между версиями

Материал из Справочная система Россельхознадзора
Перейти к навигации Перейти к поиску
Строка 311: Строка 311:
|-
|-
|042
|042
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:binaryData mimeCode&#61;{{color|#007f15|"?"}} filename&#61;{{color|#007f15|"?"}}>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:binaryData>'''}}
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:includedFile>'''}}
|[[ExcDocumentBinaryData_v2.0|exc:ExcDocumentBinaryData]]
|[[ExcDocumentFile_v2.2|exc:ExcDocumentFile]]
|[1..1]
|[1..1]
| style="width:52em;"| 4.2.1. Скан-копия документа-основания (прикрепленный документ)
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">4.2.1. Скан-копия документа-основания (прикрепленный документ)</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
* Файл может быть передан двумя способами:
** Загружен в хранилище операцией uploadAttachmentRequest - в этом случае в запросе должны быть переданы:
*** fileName
*** mimeCode
*** fileSize (опционально)
*** fileDigest
*** referenceId
** Файл передается в запросе в формате base64 - в этом случае в запросе должны быть переданы:
*** fileName
*** mimeCode
*** binaryData</div>
</div>
|-
|-
|043
|043
|style="font-weight: ; font-family: Courier;" |············{{color|#190dbf|'''<exc:fileName>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:fileName>'''}}
|[[String255|bs:String255]]
|[1..1]
| style="width:52em;"| Имя файла
|-
|044
|style="font-weight: ; font-family: Courier;" |············{{color|#190dbf|'''<exc:mimeCode>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:mimeCode>'''}}
|[http://www.w3.org/TR/xmlschema-2/#token xs:token]
|[1..1]
| style="width:52em;"| MIME-код файла
|-
|045
|style="font-weight: ; font-family: Courier;" |············{{color|#190dbf|'''<exc:fileSize>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:fileSize>'''}}
|[http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger xs:nonNegativeInteger]
|[0..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Размер файла в байтах</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
* Может быть передан опционально для дополнительной идентификации файла, если он был загружен в хранилище операцией uploadAttachmentRequest</div>
</div>
|-
|046
|style="font-weight: ; font-family: Courier;" |············{{color|#190dbf|'''<exc:fileDigest algorithmId&#61;{{color|#007f15|"?"}}>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:fileDigest>'''}}
|[[ExcFileDigest_v2.2|exc:ExcFileDigest]]
|[0..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Хеш-значение для файла в соответствии с указанным алгоритмом</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
* Обязательно, если передан referenceId (файл загружен в хранилище операцией uploadAttachmentRequest)</div>
</div>
|-
|047
|style="font-weight: ; font-family: Courier;" |············{{color|#190dbf|'''<exc:referenceId>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:referenceId>'''}}
|[[ExcDocumentFileReference_v2.2|exc:ExcDocumentFileReference]]
|[0..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Ссылка или идентификатор файла в хранилище</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
* Обязательно, если файл загружен в хранилище операцией uploadAttachmentRequest</div>
</div>
|-
|048
|style="font-weight: ; font-family: Courier;" |············{{color|#190dbf|'''<exc:binaryData xmime:contentType&#61;{{color|#007f15|"?"}}>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:binaryData>'''}}
|[[ExcDocumentBinaryData_v2.0|exc:ExcDocumentBinaryData]]
|[0..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Содержимое файла в формате base64</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
* Обязательно, если файл не загружался в хранилище операцией uploadAttachmentRequest</div>
</div>
|-
|049
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''</exc:includedFile>'''}}
|
|
| style="width:52em;"|
|-
|050
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''</exc:attachedDocument>'''}}
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''</exc:attachedDocument>'''}}
|
|
Строка 322: Строка 394:
| style="width:52em;"|  
| style="width:52em;"|  
|-
|-
|044
|051
|style="font-weight: ; font-family: Courier;" |···{{color|#190dbf|'''</exc:contractApplication>'''}}
|style="font-weight: ; font-family: Courier;" |···{{color|#190dbf|'''</exc:contractApplication>'''}}
|
|
Строка 328: Строка 400:
| style="width:52em;"|  
| style="width:52em;"|  
|-
|-
|045
|052
|style="font-weight: ; font-family: Courier;" |···{{color|#190dbf|'''<exc:attachedDocument>'''}}
|style="font-weight: ; font-family: Courier;" |···{{color|#190dbf|'''<exc:attachedDocument>'''}}
|[[ExcAttachedDocument_v2.0|exc:ExcAttachedDocument]]
|[[ExcAttachedDocument_v2.0|exc:ExcAttachedDocument]]
Строка 338: Строка 410:
</div>
</div>
|-
|-
|046
|053
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''<{{color|#660e7a|vd:}}type>'''}}{{color|#131313|?}}{{color|#190dbf|'''</{{color|#660e7a|vd:}}type>'''}}
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''<{{color|#660e7a|vd:}}type>'''}}{{color|#131313|?}}{{color|#190dbf|'''</{{color|#660e7a|vd:}}type>'''}}
|[[DocumentType_v2.2|dt:DocumentType]]
|[[DocumentType_v2.2|dt:DocumentType]]
Строка 349: Строка 421:
</div>
</div>
|-
|-
|047
|054
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''<exc:binaryData mimeCode&#61;{{color|#007f15|"?"}} filename&#61;{{color|#007f15|"?"}}>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:binaryData>'''}}
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''<exc:includedFile>'''}}
|[[ExcDocumentFile_v2.2|exc:ExcDocumentFile]]
|[1..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">5.2. Вложение (прикрепленный документ)</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
* Файл может быть передан двумя способами:
** Загружен в хранилище операцией uploadAttachmentRequest - в этом случае в запросе должны быть переданы:
*** fileName
*** mimeCode
*** fileSize (опционально)
*** fileDigest (обязательно, если отсутствует signature)
*** referenceId
*** signature (обязательно для подписываемых документов)
** Файл передается в запросе в формате base64 - в этом случае в запросе должны быть переданы:
*** fileName
*** mimeCode
*** binaryData
*** signature (обязательно для подписываемых документов)</div>
</div>
|-
|055
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:fileName>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:fileName>'''}}
|[[String255|bs:String255]]
|[1..1]
| style="width:52em;"| Имя файла
|-
|056
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:mimeCode>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:mimeCode>'''}}
|[http://www.w3.org/TR/xmlschema-2/#token xs:token]
|[1..1]
| style="width:52em;"| MIME-код файла
|-
|057
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:fileSize>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:fileSize>'''}}
|[http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger xs:nonNegativeInteger]
|[0..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Размер файла в байтах</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
* Может быть передан опционально для дополнительной идентификации файла, если он был загружен в хранилище операцией uploadAttachmentRequest</div>
</div>
|-
|058
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:fileDigest algorithmId&#61;{{color|#007f15|"?"}}>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:fileDigest>'''}}
|[[ExcFileDigest_v2.2|exc:ExcFileDigest]]
|[0..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Хеш-значение для файла в соответствии с указанным алгоритмом</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
* Обязательно, если передан referenceId и отсутствует signature (файл загружен в хранилище операцией uploadAttachmentRequest)</div>
</div>
|-
|059
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:referenceId>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:referenceId>'''}}
|[[ExcDocumentFileReference_v2.2|exc:ExcDocumentFileReference]]
|[0..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Ссылка или идентификатор файла в хранилище</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
* Обязательно, если файл загружен в хранилище операцией uploadAttachmentRequest</div>
</div>
|-
|060
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:binaryData xmime:contentType&#61;{{color|#007f15|"?"}}>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:binaryData>'''}}
|[[ExcDocumentBinaryData_v2.0|exc:ExcDocumentBinaryData]]
|[[ExcDocumentBinaryData_v2.0|exc:ExcDocumentBinaryData]]
|[0..1]
|[0..1]
| style="width:52em;"| 5.2. Вложение (прикрепленный документ)
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Содержимое файла в формате base64</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
* Обязательно, если файл не загружался в хранилище операцией uploadAttachmentRequest</div>
</div>
|-
|061
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:signature>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:signature>'''}}
|[[ExcDocumentBinaryData_v2.0|exc:ExcDocumentBinaryData]]
|[0..*]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Открепленная подпись файла</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
* Обязательно для подписываемых документов при любом способе передачи</div>
</div>
|-
|-
|048
|062
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''</exc:includedFile>'''}}
|
|
| style="width:52em;"|
|-
|063
|style="font-weight: ; font-family: Courier;" |···{{color|#190dbf|'''</exc:attachedDocument>'''}}
|style="font-weight: ; font-family: Courier;" |···{{color|#190dbf|'''</exc:attachedDocument>'''}}
|
|
Строка 361: Строка 517:
| style="width:52em;"|  
| style="width:52em;"|  
|-
|-
|049
|064
|style="font-weight: ; font-family: Courier;" |···{{color|#190dbf|'''<exc:additionalProperties>'''}}
|style="font-weight: ; font-family: Courier;" |···{{color|#190dbf|'''<exc:additionalProperties>'''}}
|[[ExcAdditionalAttributeList_v2.2|exc:ExcAdditionalAttributeList]]
|[[ExcAdditionalAttributeList_v2.2|exc:ExcAdditionalAttributeList]]
Строка 367: Строка 523:
| style="width:52em;"| Дополнительные опции запроса
| style="width:52em;"| Дополнительные опции запроса
|-
|-
|050
|065
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''<exc:additionalAttribute>'''}}
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''<exc:additionalAttribute>'''}}
|[[ExcAdditionalAttribute_v2.2|exc:ExcAdditionalAttribute]]
|[[ExcAdditionalAttribute_v2.2|exc:ExcAdditionalAttribute]]
Строка 373: Строка 529:
| style="width:52em;"| 1.6. Дополнительный атрибут
| style="width:52em;"| 1.6. Дополнительный атрибут
|-
|-
|051
|066
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:attrID>'''}}{{color|#131313|OPERATION_CONTEXT}}{{color|#190dbf|'''</exc:attrID>'''}}
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:attrID>'''}}{{color|#131313|OPERATION_CONTEXT}}{{color|#190dbf|'''</exc:attrID>'''}}
|[[Identifier|bs:Identifier]]
|[[Identifier|bs:Identifier]]
Строка 379: Строка 535:
| style="width:52em;"| Идентификатор атрибута - Контекст операции (тип процесса)
| style="width:52em;"| Идентификатор атрибута - Контекст операции (тип процесса)
|-
|-
|052
|067
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:attrValue>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:attrValue>'''}}
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<exc:attrValue>'''}}{{color|#131313|?}}{{color|#190dbf|'''</exc:attrValue>'''}}
|[[Text|bs:Text]]
|[[Text|bs:Text]]
Строка 390: Строка 546:
</div>
</div>
|-
|-
|053
|068
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''</exc:additionalAttribute>'''}}
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''</exc:additionalAttribute>'''}}
|
|
Строка 396: Строка 552:
| style="width:52em;"|  
| style="width:52em;"|  
|-
|-
|054
|069
|style="font-weight: ; font-family: Courier;" |···{{color|#190dbf|'''</exc:additionalProperties>'''}}
|style="font-weight: ; font-family: Courier;" |···{{color|#190dbf|'''</exc:additionalProperties>'''}}
|
|
Строка 402: Строка 558:
| style="width:52em;"|  
| style="width:52em;"|  
|-
|-
|055
|070
|style="font-weight: ; font-family: Courier;" |{{color|#190dbf|'''</exc:attachAccountingDocumentsRequest>'''}}
|style="font-weight: ; font-family: Courier;" |{{color|#190dbf|'''</exc:attachAccountingDocumentsRequest>'''}}
|
|

Версия 06:17, 10 апреля 2023

Общие сведения

Операция AttachAccountingDocuments предназначена для подачи сведений о документах в контексте заявок ВБР и ЛИ.

Спецификация запроса

# Название XML-элемента Тип Обязат. Описание (нажмите [...] для отображения дополнительного описания)
001 <exc:attachAccountingDocumentsRequest>
002 ···<exc:metadata> exc:ServiceMetadata [1..1] 1. Служебная информация
003 ······<exc:processID>?</exc:processID> bs:Identifier [1..1] 1.1. Идентификатор процесса в ИС Одно окно РЭЦ
004 ······<exc:seqNumber>?</exc:seqNumber> bs:SequenceNumber [1..1] 1.2. Порядковый номер запроса
005 ······<exc:documentID>?</exc:documentID> bs:UUID [1..1]

1.5. Идентификатор заявления в ВетИС

  • Указывается идентификатор заявки на услугу (ВБР, ЛИ), в контексте которой передаются сведения
006 ······<dt:businessEntity> dt:BusinessEntity [1..1] 1.4. Сведения о хозяйствующем субъекте-заявителе
007 ·········<bs:guid>?</bs:guid> bs:UUID [1..1] 1.4.1. Глобальный идентификатор записи
008 ·········<dt:inn>?</dt:inn> bs:String255 [1..1] 1.4.2. ИНН хозяйствующего субъекта
009 ······</dt:businessEntity>
010 ···</exc:metadata>
011 ···<exc:invoicePaymentInfo> exc:ExcInvoicePayment [0..1]

2. Сведения об оплате счета

  • Обязательно в случае передачи сведений об оплате
  • При заполнении сведений в п. 2 сведения в п. 3, 4, 5 не заполняются
012 ······<exc:paymentOrderNumber>?</exc:paymentOrderNumber> bs:String255 [1..1] 2.1. Номер платежного поручения
013 ······<exc:paymentDate>?</exc:paymentDate> xs:date [1..1] 2.2. Дата приема поручения к исполнению
014 ······<exc:paymentPurpose>?</exc:paymentPurpose> bs:String255 [1..1]

2.3. Назначение платежа

  • Max длина 210 символов
015 ···</exc:invoicePaymentInfo>
016 ···<exc:acceptanceStatementInfo> exc:ExcAcceptanceCertificate [0..1]

3. Сведения об отказе в подписании акта выполненных работ

  • Обязательно в случае передачи сведений об отказе в подписании
  • При заполнении сведений в п. 3 сведения в п. 2, 4, 5 не заполняются
017 ······<exc:refusalReason>?</exc:refusalReason> exc:ExcRefusalSigningReason [1..1]

3.1. Причина отказа

  • EXPIRED_SIGNING_DATE - Вышел срок подписания акта
  • SERVICE_CLAIMS - Имеются претензии к предоставленным услугам
018 ···</exc:acceptanceStatementInfo>
019 ···<exc:contractApplication> exc:ExcContractApplication [0..1]

4. Сведения для заключения договора

  • Договор на оказание услуг по выдаче заключения заключается:
    • для ВБР: между учреждением, указанным в laboratory, и заявителем, указанным в metadata/businessEntity исходной заявки, переданной в операции 9.1
  • При заполнении сведений в п. 4 сведения в п. 2, 3, 5 не заполняются
020 ······<exc:businessEntity> dt:BusinessEntity [0..1] Сведения о заказчике
021 ········<dt:kpp>?</dt:kpp> bs:String255 [0..1]

4.4.2. КПП

  • Обязательный для юр.лиц, необязательный для ИП
022 ········<dt:ogrn>?</dt:ogrn> bs:String255 [1..1]

4.4.1. ОГРН / ОГРНИП

  • 13 или 15 (ИП) символов
023 ······</exc:businessEntity>
024 ······<exc:bankAccountDetails> dt:BankAccountDetails [1..1] 4.5. Сведения для расчетов
025 ·········<dt:paymentAccountNumber>?</dt:paymentAccountNumber> dt:BankAccountNumber [1..1]

4.5.1. Расчетный счет

  • 20 символов
026 ·········<dt:correspondentAccountNumber>?</dt:correspondentAccountNumber> dt:BankAccountNumber [1..1]

4.5.2. Корреспондентский счет

  • 20 символов
027 ·········<dt:BIC>?</dt:BIC> dt:BankIdentificationNumber [1..1]

4.5.3. БИК

  • 9 символов
028 ·········<dt:bankName>?</dt:bankName> bs:String255 [1..1] 4.5.4. Наименование банка
029 ······</exc:bankAccountDetails>
030 ······<exc:postAddress> dt:Address [1..1] Почтовый адрес
031 ·········<dt:addressView>?</dt:addressView> bs:NText [1..1] 4.3. Строковое представление адреса
032 ······</exc:postAddress>
033 ······<exc:definedContact> exc:ExcDefinedContact [1..1]

4.6. Контактные данные

  • Данные, которые будут указаны в договоре
034 ·········<exc:email>?</exc:email> bs:String255 [1..1] 4.6.1. E-mail контактного лица
035 ·········<exc:phone>?</exc:phone> bs:String255 [1..1] 4.6.2. Номер телефона контактного лица
036 ······</exc:definedContact>
037 ······<exc:authorizedPerson> vd:User [1..1] 4.1. Уполномоченное лицо заказчика
038 ·········<vd:fio>?</vd:fio> bs:String255 [1..1] 4.1.1. ФИО
039 ·········<vd:post>?</vd:post> bs:String255 [1..1] 4.1.2. Должность
040 ······</exc:authorizedPerson>
041 ······<exc:attachedDocument> exc:ExcAttachedDocument [1..1] 4.2. Основание права подписи уполномоченного лица
042 ·········<exc:includedFile> exc:ExcDocumentFile [1..1]

4.2.1. Скан-копия документа-основания (прикрепленный документ)

  • Файл может быть передан двумя способами:
    • Загружен в хранилище операцией uploadAttachmentRequest - в этом случае в запросе должны быть переданы:
      • fileName
      • mimeCode
      • fileSize (опционально)
      • fileDigest
      • referenceId
    • Файл передается в запросе в формате base64 - в этом случае в запросе должны быть переданы:
      • fileName
      • mimeCode
      • binaryData
043 ············<exc:fileName>?</exc:fileName> bs:String255 [1..1] Имя файла
044 ············<exc:mimeCode>?</exc:mimeCode> xs:token [1..1] MIME-код файла
045 ············<exc:fileSize>?</exc:fileSize> xs:nonNegativeInteger [0..1]

Размер файла в байтах

  • Может быть передан опционально для дополнительной идентификации файла, если он был загружен в хранилище операцией uploadAttachmentRequest
046 ············<exc:fileDigest algorithmId="?">?</exc:fileDigest> exc:ExcFileDigest [0..1]

Хеш-значение для файла в соответствии с указанным алгоритмом

  • Обязательно, если передан referenceId (файл загружен в хранилище операцией uploadAttachmentRequest)
047 ············<exc:referenceId>?</exc:referenceId> exc:ExcDocumentFileReference [0..1]

Ссылка или идентификатор файла в хранилище

  • Обязательно, если файл загружен в хранилище операцией uploadAttachmentRequest
048 ············<exc:binaryData xmime:contentType="?">?</exc:binaryData> exc:ExcDocumentBinaryData [0..1]

Содержимое файла в формате base64

  • Обязательно, если файл не загружался в хранилище операцией uploadAttachmentRequest
049 ·········</exc:includedFile>
050 ······</exc:attachedDocument>
051 ···</exc:contractApplication>
052 ···<exc:attachedDocument> exc:ExcAttachedDocument [0..*]

5. Сведения о прикрепленных документах

  • При заполнении сведений в п. 5 сведения в п. 2, 3, 4 не заполняются
053 ······<vd:type>?</vd:type> dt:DocumentType [1..1]

5.1. Тип документа

  • 47 - Договор (документ из пакета документов к договору)
  • 48 - Акт выполненных работ
054 ······<exc:includedFile> exc:ExcDocumentFile [1..1]

5.2. Вложение (прикрепленный документ)

  • Файл может быть передан двумя способами:
    • Загружен в хранилище операцией uploadAttachmentRequest - в этом случае в запросе должны быть переданы:
      • fileName
      • mimeCode
      • fileSize (опционально)
      • fileDigest (обязательно, если отсутствует signature)
      • referenceId
      • signature (обязательно для подписываемых документов)
    • Файл передается в запросе в формате base64 - в этом случае в запросе должны быть переданы:
      • fileName
      • mimeCode
      • binaryData
      • signature (обязательно для подписываемых документов)
055 ·········<exc:fileName>?</exc:fileName> bs:String255 [1..1] Имя файла
056 ·········<exc:mimeCode>?</exc:mimeCode> xs:token [1..1] MIME-код файла
057 ·········<exc:fileSize>?</exc:fileSize> xs:nonNegativeInteger [0..1]

Размер файла в байтах

  • Может быть передан опционально для дополнительной идентификации файла, если он был загружен в хранилище операцией uploadAttachmentRequest
058 ·········<exc:fileDigest algorithmId="?">?</exc:fileDigest> exc:ExcFileDigest [0..1]

Хеш-значение для файла в соответствии с указанным алгоритмом

  • Обязательно, если передан referenceId и отсутствует signature (файл загружен в хранилище операцией uploadAttachmentRequest)
059 ·········<exc:referenceId>?</exc:referenceId> exc:ExcDocumentFileReference [0..1]

Ссылка или идентификатор файла в хранилище

  • Обязательно, если файл загружен в хранилище операцией uploadAttachmentRequest
060 ·········<exc:binaryData xmime:contentType="?">?</exc:binaryData> exc:ExcDocumentBinaryData [0..1]

Содержимое файла в формате base64

  • Обязательно, если файл не загружался в хранилище операцией uploadAttachmentRequest
061 ·········<exc:signature>?</exc:signature> exc:ExcDocumentBinaryData [0..*]

Открепленная подпись файла

  • Обязательно для подписываемых документов при любом способе передачи
062 ······</exc:includedFile>
063 ···</exc:attachedDocument>
064 ···<exc:additionalProperties> exc:ExcAdditionalAttributeList [1..1] Дополнительные опции запроса
065 ······<exc:additionalAttribute> exc:ExcAdditionalAttribute [1..1] 1.6. Дополнительный атрибут
066 ·········<exc:attrID>OPERATION_CONTEXT</exc:attrID> bs:Identifier [1..1] Идентификатор атрибута - Контекст операции (тип процесса)
067 ·········<exc:attrValue>?</exc:attrValue> bs:Text [1..1]

1.6. Значение атрибута

  • WBR - ВБР
  • LAB_RESEARCH - ЛИ
068 ······</exc:additionalAttribute>
069 ···</exc:additionalProperties>
070 </exc:attachAccountingDocumentsRequest>

Спецификация ответа

# Название XML-элемента Тип Обязат. Описание (нажмите [...] для отображения дополнительного описания)
001 <exc:attachAccountingDocumentsResponse>
002 ···<exc:metadata> exc:ServiceMetadata [1..1] 1. Служебная информация
003 ······<exc:processID>?</exc:processID> bs:Identifier [1..1] 1.5. Идентификатор процесса в ИС Одно окно РЭЦ
004 ······<exc:seqNumber>?</exc:seqNumber> bs:SequenceNumber [1..1] 1.6. Порядковый номер запроса
005 ······<exc:documentID>?</exc:documentID> bs:UUID [1..1] 1.1. Идентификатор документа/заявления, зарегистрированного в ВетИС
006 ······<exc:documentNumber>?</exc:documentNumber> xs:token [0..1] 1.2. Человекочитаемый номер документа/заявления, зарегистрированного в ВетИС
007 ······<exc:documentStatus>?</exc:documentStatus> exc:ApplicationDocumentStatus [1..1]

1.3. Статус документа/заявления, зарегистрированного в ВетИС

  • UNKNOWN - Неизвестен
  • UNDEFINED - Не определен
  • DATA_FOR_CONTRACT_RECEIVED - получены сведения для заключения договора
  • CONTRACT_RECEIVED - договор получен
  • PREPAYMENT_INFO_RECEIVED - получены сведения о предоплате
  • IN_PROGRESS - проведение исследования
  • NEW_REVISION_RECEIVED - получена доработанная заявка
  • PAYMENT_INFO_RECEIVED - получены сведения об оплате
  • ACT_RECEIVED - получен акт выполненных работ
008 ······<exc:documentStatusDate>?</exc:documentStatusDate> xs:dateTime [1..1] 1.4. Дата установления статуса документа
009 ···</exc:metadata>
010 </exc:attachAccountingDocumentsResponse>

Примеры запросов

14.5.RQ1. Передача сведений об оплате счета


14.5.Request.InvoicePaymentInfo

<!-- Операция 14.5 
      Передача сведений об оплате счета -->
<exc:attachAccountingDocumentsRequest
	xmlns:exc="http://api.vetrf.ru/schema/cdm/exportcenter/applications/v2"
     xmlns:dt="http://api.vetrf.ru/schema/cdm/dictionary/v2"
     xmlns:bs="http://api.vetrf.ru/schema/cdm/base"
     xmlns:vd="http://api.vetrf.ru/schema/cdm/mercury/vet-document/v2"
     xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID>  
       <exc:seqNumber>1</exc:seqNumber>
       <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID>
       <dt:businessEntity> 
          <bs:guid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:guid> 
          <dt:inn>0123456789</dt:inn> 
       </dt:businessEntity>
   </exc:metadata>
   <!-- 2. Сведения об оплате счета -->
   <exc:invoicePaymentInfo> <!-- 2. -->
      <exc:paymentOrderNumber>0123456789</exc:paymentOrderNumber> <!-- 2.1. [1..1] --> <!-- String255 -->
      <exc:paymentDate>2022-12-22</exc:paymentDate> <!-- 2.2. [1..1] --> <!-- date -->
      <exc:paymentPurpose>string</exc:paymentPurpose> <!-- 2.3. [1..1] --> <!-- PaymentPurpose -->
   </exc:invoicePaymentInfo>
   <!-- 1.6. Контекст операции -->
   <exc:additionalProperties>
      <exc:additionalAttribute>
         <exc:attrID>OPERATION_CONTEXT</exc:attrID>
         <exc:attrValue>WBR</exc:attrValue> <!-- 1.6. [1..1] --> <!-- enum: [WBR, LAB_RESEARCH] -->
      </exc:additionalAttribute>
   </exc:additionalProperties>    
</exc:attachAccountingDocumentsRequest>


14.5.Response.InvoicePaymentInfo

<exc:attachAccountingDocumentsResponse
   xmlns:exc="http://api.vetrf.ru/schema/cdm/exportcenter/applications/v2"
     xmlns:dt="http://api.vetrf.ru/schema/cdm/dictionary/v2"
     xmlns:bs="http://api.vetrf.ru/schema/cdm/base"
     xmlns:vd="http://api.vetrf.ru/schema/cdm/mercury/vet-document/v2"
     xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID>
      <exc:seqNumber>1</exc:seqNumber>
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID>
      <exc:documentNumber>0123456789</exc:documentNumber>
      <exc:documentStatus>PREPAYMENT_INFO_RECEIVED</exc:documentStatus> <!-- enum: PREPAYMENT_INFO_RECEIVED, PAYMENT_INFO_RECEIVED -->
      <exc:documentStatusDate>2022-06-09T22:15:04+07:00</exc:documentStatusDate>
   </exc:metadata>
</exc:attachAccountingDocumentsResponse>


14.5.RQ2. Передача сведений об отказе в подписании акта выполненных работ


14.5.Request.AcceptanceStatementInfo

 <!-- Операция 14.5 
      Передача сведений об отказе в подписании акта выполненных работ -->
<exc:attachAccountingDocumentsRequest
	xmlns:exc="http://api.vetrf.ru/schema/cdm/exportcenter/applications/v2"
     xmlns:dt="http://api.vetrf.ru/schema/cdm/dictionary/v2"
     xmlns:bs="http://api.vetrf.ru/schema/cdm/base"
     xmlns:vd="http://api.vetrf.ru/schema/cdm/mercury/vet-document/v2"
     xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID>  
       <exc:seqNumber>1</exc:seqNumber>
       <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID>
       <dt:businessEntity> 
          <bs:guid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:guid> 
          <dt:inn>0123456789</dt:inn> 
       </dt:businessEntity>
   </exc:metadata>      
   <!-- 3. Сведения об отказе подписания акта выполненных работ -->
   <exc:acceptanceStatementInfo>
      <exc:refusalReason>EXPIRED_SIGNING_DATE</exc:refusalReason> <!-- 3.1. [1..1] --> <!-- enum: [EXPIRED_SIGNING_DATE, SERVICE_CLAIMS] -->
   </exc:acceptanceStatementInfo>
   <!-- 1.6. Контекст операции -->
   <exc:additionalProperties>
      <exc:additionalAttribute>
         <exc:attrID>OPERATION_CONTEXT</exc:attrID>
         <exc:attrValue>WBR</exc:attrValue> <!-- 1.6. [1..1] --> <!-- enum: [WBR, LAB_RESEARCH] -->
      </exc:additionalAttribute>
   </exc:additionalProperties>  
</exc:attachAccountingDocumentsRequest>


14.5.Response.AcceptanceStatementInfo

<exc:attachAccountingDocumentsResponse
   xmlns:exc="http://api.vetrf.ru/schema/cdm/exportcenter/applications/v2"
     xmlns:dt="http://api.vetrf.ru/schema/cdm/dictionary/v2"
     xmlns:bs="http://api.vetrf.ru/schema/cdm/base"
     xmlns:vd="http://api.vetrf.ru/schema/cdm/mercury/vet-document/v2"
     xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID>
      <exc:seqNumber>1</exc:seqNumber>
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID>
      <exc:documentNumber>0123456789</exc:documentNumber>
      <exc:documentStatus>IN_PROGRESS</exc:documentStatus> <!-- enum: IN_PROGRESS, PAYMENT_INFO_RECEIVED -->
      <exc:documentStatusDate>2022-06-09T22:15:04+07:00</exc:documentStatusDate>
   </exc:metadata>
</exc:attachAccountingDocumentsResponse>


14.5.RQ3. Передача сведений для заключения договора


14.5.Request.ContractApplication

 <!-- Операция 14.5 
      Передача сведений для заключения договора -->
<exc:attachAccountingDocumentsRequest
	xmlns:exc="http://api.vetrf.ru/schema/cdm/exportcenter/applications/v2"
     xmlns:dt="http://api.vetrf.ru/schema/cdm/dictionary/v2"
     xmlns:bs="http://api.vetrf.ru/schema/cdm/base"
     xmlns:vd="http://api.vetrf.ru/schema/cdm/mercury/vet-document/v2"
     xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID>  
       <exc:seqNumber>1</exc:seqNumber>
       <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID>
       <dt:businessEntity> 
          <bs:guid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:guid> 
          <dt:inn>0123456789</dt:inn> 
       </dt:businessEntity>
   </exc:metadata>   
   <!-- 4. Сведения для заключения договора -->
   <exc:contractApplication>
      <exc:businessEntity> <!-- [0..1] -->
         <dt:kpp>012345678</dt:kpp> <!-- 4.4.1. [0..1] --> <!-- String255 -->
         <dt:ogrn>0123456789012</dt:ogrn> <!-- 4.4.2. [1..1] --> <!-- String255 -->
      </exc:businessEntity>
      <exc:bankAccountDetails> <!-- 4.5. [1..1] --> 
         <dt:paymentAccountNumber>01234567890123456789</dt:paymentAccountNumber> <!-- 4.5.1. [1..1] --> <!-- BankAccountNumber -->
         <dt:correspondentAccountNumber>01234567890123456789</dt:correspondentAccountNumber> <!-- 4.5.2. [1..1] --> <!-- BankAccountNumber -->
         <dt:BIC>012345678</dt:BIC> <!-- 4.5.3. [1..1] --> <!-- BankIdentificationNumber --> 
         <dt:bankName>string</dt:bankName> <!-- 4.5.4. [1..1] --> <!-- String255 -->
      </exc:bankAccountDetails>
      <exc:postAddress> <!-- [1..1] -->
         <dt:addressView>string</dt:addressView> <!-- 4.3. [1..1] --> <!-- NText -->
      </exc:postAddress>
      <exc:definedContact> <!-- 4.6. [1..1] --> 
         <exc:email>a@a.ru</exc:email> <!-- 4.6.2. [1..1] --> <!-- String255 -->
         <exc:phone>0123456789</exc:phone> <!-- 4.6.1. [1..1] --> <!-- String255 -->
      </exc:definedContact>
      <exc:authorizedPerson> <!-- 4.1. [1..1] --> 
         <vd:fio>string</vd:fio> <!-- 4.1.1. [1..1] --> <!-- String255 -->
         <vd:post>string</vd:post> <!-- 4.1.2. [1..1] --> <!-- String255 -->
      </exc:authorizedPerson>
      <exc:attachedDocument> <!-- 4.2. [1..1] --> 
         <exc:binaryData mimeCode="application/pdf" filename="">0123456789ABCDEF</exc:binaryData> <!-- 4.2.1. [1..1] --> 
      </exc:attachedDocument>
   </exc:contractApplication>
   <!-- 1.6. Контекст операции -->
   <exc:additionalProperties>
      <exc:additionalAttribute>
         <exc:attrID>OPERATION_CONTEXT</exc:attrID>
         <exc:attrValue>WBR</exc:attrValue> <!-- 1.6. [1..1] --> <!-- enum: [WBR, LAB_RESEARCH] -->
      </exc:additionalAttribute>
   </exc:additionalProperties>  
</exc:attachAccountingDocumentsRequest>


14.5.Response.ContractApplication

<exc:attachAccountingDocumentsResponse
   xmlns:exc="http://api.vetrf.ru/schema/cdm/exportcenter/applications/v2"
     xmlns:dt="http://api.vetrf.ru/schema/cdm/dictionary/v2"
     xmlns:bs="http://api.vetrf.ru/schema/cdm/base"
     xmlns:vd="http://api.vetrf.ru/schema/cdm/mercury/vet-document/v2"
     xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID>
      <exc:seqNumber>1</exc:seqNumber>
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID>
      <exc:documentNumber>0123456789</exc:documentNumber>
      <exc:documentStatus>DATA_FOR_CONTRACT_RECEIVED</exc:documentStatus>
      <exc:documentStatusDate>2022-06-09T22:15:04+07:00</exc:documentStatusDate>
   </exc:metadata>
</exc:attachAccountingDocumentsResponse>


14.5.RQ4. Передача вложений (файлов)


14.5.Request.AttachedDocument

<!-- Операция 14.5 
      Передача вложений (файлов) -->
<exc:attachAccountingDocumentsRequest
	xmlns:exc="http://api.vetrf.ru/schema/cdm/exportcenter/applications/v2"
     xmlns:dt="http://api.vetrf.ru/schema/cdm/dictionary/v2"
     xmlns:bs="http://api.vetrf.ru/schema/cdm/base"
     xmlns:vd="http://api.vetrf.ru/schema/cdm/mercury/vet-document/v2"
     xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID>  
       <exc:seqNumber>1</exc:seqNumber>
       <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID>
       <dt:businessEntity> 
          <bs:guid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:guid> 
          <dt:inn>0123456789</dt:inn> 
       </dt:businessEntity>
   </exc:metadata>
   <!-- 5. Вложения -->
   <exc:attachedDocument> <!-- 5. [1..*] -->
      <vd:type>47</vd:type> <!-- 5.1. [1..1] --> <!-- enum: [47, 48] -->
      <exc:binaryData mimeCode="application/pdf" filename="">0123456789ABCDEF</exc:binaryData> <!-- 5.2. [1..1] --> 
   </exc:attachedDocument>
   <!-- 1.6. Контекст операции -->
   <exc:additionalProperties>
      <exc:additionalAttribute>
         <exc:attrID>OPERATION_CONTEXT</exc:attrID>
         <exc:attrValue>WBR</exc:attrValue> <!-- 1.6. [1..1] --> <!-- enum: [WBR, LAB_RESEARCH] -->
      </exc:additionalAttribute>
   </exc:additionalProperties>  
</exc:attachAccountingDocumentsRequest>


14.5.Response.AttachedDocument

<exc:attachAccountingDocumentsResponse
   xmlns:exc="http://api.vetrf.ru/schema/cdm/exportcenter/applications/v2"
     xmlns:dt="http://api.vetrf.ru/schema/cdm/dictionary/v2"
     xmlns:bs="http://api.vetrf.ru/schema/cdm/base"
     xmlns:vd="http://api.vetrf.ru/schema/cdm/mercury/vet-document/v2"
     xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID>
      <exc:seqNumber>1</exc:seqNumber>
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID>
      <exc:documentNumber>0123456789</exc:documentNumber>
      <exc:documentStatus>CONTRACT_RECEIVED</exc:documentStatus> <!-- enum: CONTRACT_RECEIVED, ACT_RECEIVED -->
      <exc:documentStatusDate>2022-06-09T22:15:04+07:00</exc:documentStatusDate>
   </exc:metadata>
</exc:attachAccountingDocumentsResponse>