Exportcenter:CheckLabResearchApplication:v2.2

Материал из Справочная система Россельхознадзора
Перейти к навигации Перейти к поиску

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

Операция CheckLabResearchApplication предназначена для получения сведений о результатах проведения лабораторных исследований.

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

# Название XML-элемента Тип Обязат. Описание (нажмите [...] для отображения дополнительного описания)
001 <exc:checkLabResearchApplicationRequest>
002 ···<exc:metadata> exc:ServiceMetadata [1..1] 1. Служебная информация
003 ······<exc:processID>?</exc:processID> bs:Identifier [1..1]

1.1. Идентификатор процесса в ИС Одно окно РЭЦ

  • Максимальная длина 36 символов
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:additionalProperties> exc:ExcAdditionalAttributeList [0..1] 2. Дополнительные опции запроса
012 ······<exc:additionalAttribute> exc:ExcAdditionalAttribute [0..1] 2.1. Дополнительный атрибут
013 ·········<exc:attrID>ATTACH_INVOICE_FILE</exc:attrID> bs:Identifier [1..1] Идентификатор атрибута - Признак возврата файла счета в ответе
014 ·········<exc:attrValue>?</exc:attrValue> bs:Text [1..1]

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

  • true - возвращать файл
  • false - не возвращать файл (значение по умолчанию, если не указано)
015 ······</exc:additionalAttribute>
016 ···</exc:additionalProperties>
017 </exc:checkLabResearchApplicationRequest>

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

# Название XML-элемента Тип Обязат. Описание (нажмите [...] для отображения дополнительного описания)
001 <exc:checkLabResearchApplicationResponse>
002 ···<exc:metadata> exc:ServiceMetadata [1..1] 1. Служебная информация
003 ······<exc:processID>?</exc:processID> bs:Identifier [1..1]

1.6. Идентификатор процесса в ИС Одно окно РЭЦ

  • Максимальная длина 36 символов
004 ······<exc:seqNumber>?</exc:seqNumber> bs:SequenceNumber [1..1] 1.7. Номер входящего запроса
005 ······<exc:documentID>?</exc:documentID> bs:UUID [1..1] 1.1. Идентификатор документа/заявления, зарегистрированного в ВетИС
006 ······<exc:documentNumber>?</exc:documentNumber> xs:token [1..1] 1.2. Зарегистрированный номер заявления
007 ······<exc:documentStatus>?</exc:documentStatus> exc:ApplicationDocumentStatus [1..1]

1.4. Текущий статус заявления

  • UNKNOWN - Неизвестен
  • UNDEFINED - Не определен
  • ACCEPTED - заявка получена
  • DECLINED - заявка отклонена
  • WAITING_DATA_FOR_CONTRACT - ожидание сведений для заключения договора
  • DATA_FOR_CONTRACT_RECEIVED - получены сведения для заключения договора
  • CONTRACT_PREPARING - подготовка договора
  • WAITING_SIGN_CONTRACT - ожидание подписания договора
  • CONTRACT_RECEIVED - договор получен
  • WAITING_SAMPLE - ожидание получения проб
  • SAMPLE_RECEIVED - пробы приняты
  • WAITING_PREPAYMENT - ожидание предоплаты
  • PREPAYMENT_INFO_RECEIVED - получены сведения о предоплате
  • IN_PROGRESS - проведение исследования
  • RESEARCH_FINISHED - исследование завершено
  • WAITING_PAYMENT - ожидание оплаты
  • PAYMENT_INFO_RECEIVED - получены сведения об оплате
  • WAITING_CLOSING_ACT - ожидание подписания акта выполненных работ
  • ACT_RECEIVED - получен акт выполненных работ
  • COMPLETED - заявка закрыта
008 ······<exc:documentStatusDate>?</exc:documentStatusDate> xs:dateTime [1..1] 1.5. Дата установления статуса заявления
009 ···</exc:metadata>
010 ···<exc:laboratoryResearchReportList> vd:LaboratoryResearchReportList [0..1]

2. Результат обработки заявки (список сведений о протоколах испытаний)

  • Обязательно в случае, если сформирован протокол испытаний
  • Статусы: WAITING_CLOSING_ACT, COMPLETED, ACT_RECEIVED
011 ······<vd:laboratoryResearchReport> vd:LaboratoryResearchReport [1..*] 2.1. Сведения о протоколе испытаний
012 ·········<bs:uuid>?</bs:uuid> bs:UUID [1..1] 2.1.1. Идентификатор протокола испытаний в системе ВетИС
013 ·········<vd:issueNumber>?</vd:issueNumber> bs:String255 [1..1] 2.1.2. Номер протокола испытаний
014 ·········<vd:issueDate>?</vd:issueDate> xs:date [1..1] 2.1.3. Дата протокола испытаний
015 ·········<vd:type>33</vd:type> vd:DocumentType [1..1]

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

  • Фиксированное значение: 33 - Протокол лабораторных исследований
016 ·········<vd:issuer> dt:Organization [1..1] 2.1.5. Лаборатория
017 ············<dt:ID>?</dt:ID> bs:Identifier [1..1] 2.1.5.1. Глобальный идентификатор лаборатории
018 ·········</vd:issuer>
019 ·········<vd:samplingReport> vd:LaboratoryResearchReport [1..1] Сведения об акте отбора проб
020 ············<vd:issueNumber>?</vd:issueNumber> bs:String255 [1..1] 2.1.6. Номер акта отбора проб
021 ·········</vd:samplingReport>
022 ······</vd:laboratoryResearchReport>
023 ···</exc:laboratoryResearchReportList>
024 ···<exc:sampleAcceptanceResultList> exc:ExcSampleAcceptanceResultList [0..1]

6. Результат приемки пробы

  • Передается для статусов:
    • SAMPLE_RECEIVED - пробы приняты
    • WAITING_PREPAYMENT - ожидание предоплаты
    • PREPAYMENT_INFO_RECEIVED - получены сведения о предоплате
    • IN_PROGRESS - проведение исследования
    • RESEARCH_FINISHED - исследование завершено
    • Опционально для статуса DECLINED (заявка отклонена), если причина отклонения - не приняты все пробы
025 ······<exc:sampleAcceptanceResult> exc:ExcSampleAcceptanceResult [1..*] 6.1. Проба
026 ·········<exc:laboratoryResearchSample> vd:Sample [1..1] Сведения о пробе
027 ············<vd:sampleCipher>?</vd:sampleCipher> bs:UUID [1..1] 6.1.1. Шифр пробы
028 ·········</exc:laboratoryResearchSample>
029 ·········<exc:resultNotes> bs:FaultInfo [0..1]

6.1.2. Сведения о причинах отказа

  • Обязательно в случае, если проба не принята
030 ············<bs:message>?</bs:message> xs:string [1..1] 6.1.2.2. Описание причины отказа (сообщение об ошибке)
031 ············<bs:error code="?" qualifier="?">?</bs:error> bs:Error [0..*] 6.1.2.1. Код ошибки / текст ошибки
032 ·········</exc:resultNotes>
033 ······</exc:sampleAcceptanceResult>
034 ···</exc:sampleAcceptanceResultList>
035 ···<exc:applicationReport> exc:ApplicationReport [0..1]

3. Результат обработки заявки (мотивированный отказ

  • Обязательно для статуса DECLINED
  • Отказ по всей заявке
036 ······<exc:resultNotes> bs:FaultInfo [1..1] 3.1. Сведения о причинах отказа
037 ·········<bs:message>?</bs:message> xs:string [1..1] 3.1.2. Описание причины отказа (сообщение об ошибке)
038 ·········<bs:error code="?" qualifier="?">?</bs:error> bs:Error [0..*] 3.1.1. Код ошибки / текст ошибки
039 ······</exc:resultNotes>
040 ···</exc:applicationReport>
041 ···<exc:invoice> vd:Invoice [0..1]

4. Сведения для оплаты счета

  • Обязательно при передаче в приложенных документах (п. 5) счета на оплату
042 ······<vd:totalAmount>?</vd:totalAmount> bs:Decimal [1..1] 4.1. Сумма счета
043 ······<vd:subTotalAmount>?</vd:subTotalAmount> bs:Decimal [1..1] 4.2. Общая сумма товаров (работ, услуг)
044 ······<vd:currency>?</vd:currency> dt:Currency [1..1] 4.7. Код валюты суммы
045 ······<vd:vatMode>?</vd:vatMode> dt:VATModet [1..1]

4.4. Признак включения НДС в сумму

  • NOT_INCLUDED - не включен в сумму
  • INCLUDED - включен в сумму
  • WITHOUT_VAT - без НДС
046 ······<vd:vatRate>?</vd:vatRate> dt:VATRate [1..1]

4.5. Ставка НДС (%)

  • 0 - без НДС
  • 10 - НДС 10%
  • 20 - НДС 20%
047 ······<vd:vatAmount>?</vd:vatAmount> bs:Decimal [1..1] 4.6. Сумма НДС
048 ······<vd:paymentPurpose>?</vd:paymentPurpose> dt:PaymentPurpose [1..1]

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

  • Max длина 210 символов
049 ······<vd:paymentRecipient> dt:BankAccountDetails [1..1] Банковские реквизиты получателя платежа
050 ·········<dt:paymentAccountNumber>?</dt:paymentAccountNumber> dt:BankAccountNumber [1..1] 4.10. Номер расчетного счета получателя
051 ·········<dt:correspondentAccountNumber>?</dt:correspondentAccountNumber> dt:BankAccountNumber [0..1] 4.11. Корреспондентский номер счета банка получателя
052 ·········<dt:BIC>?</dt:BIC> dt:BankIdentificationNumber [1..1] 4.8. БИК банка получателя
053 ·········<dt:bankName>?</dt:bankName> bs:String255 [0..1]

4.9. Наименование банка получателя

  • Max длина 140 символов
054 ·········<dt:paymentRecipient> dt:BusinessEntity [1..1] Сведения о получателе платежа
055 ············<dt:inn>?</dt:inn> bs:String255 [1..1] 4.12. ИНН получателя платежа
056 ·········</dt:paymentRecipient>
057 ······</vd:paymentRecipient>
058 ···</exc:invoice>
059 ···<exc:attachedDocument> exc:ExcAttachedDocument [0..*]

5. Приложенные документы

  • Файлы могут передаваться в статусах:
    • WAITING_SIGN_CONTRACT
    • WAITING_PREPAYMENT
    • IN_PROGRESS
    • WAITING_PAYMENT
    • WAITING_CLOSING_ACT
    • RESEARCH_FINISHED
    • COMPLETED
    • ACT_RECEIVED
060 ······<bs:uuid>?</bs:uuid> bs:UUID [0..1]

5.1. Идентификатор протокола испытаний

  • для типа документа 33
061 ······<vd:type>?</vd:type> vd:DocumentType [1..1]

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

  • 46 - Счет на оплату
  • 47 - Договор на оказание услуг
  • 48 - Акт выполненных работ
  • 33 - Протокол лабораторных исследований
  • 50 - Договор с визуализацией подписей УКЭП
062 ······<exc:includedFile> exc:ExcDocumentFile [1..*] 5.3 Бинарное вложение (файл)
063 ·········<exc:fileName>?</exc:fileName> bs:String255 [1..1] 5.3.1 Имя файла
064 ·········<exc:mimeCode>?</exc:mimeCode> xs:token [1..1] 5.3.2 MIME-код файла
065 ·········<exc:binaryData xmime:contentType="?">?</exc:binaryData> exc:ExcDocumentBinaryData [1..1] 5.3.3 Содержимое файла в формате base64
066 ·········<exc:signature>?</exc:signature> exc:ExcDocumentBinaryData [0..*]

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

  • Обязательно для следующих типов документов: 33, 47, 48
067 ······</exc:includedFile>
068 ···</exc:attachedDocument>
069 </exc:checkLabResearchApplicationResponse>

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

13.3.RQ1. Пример запроса проверки статуса заявки.


13.3.Request.Example

<!--Операция 13.3-->
<exc:checkLabResearchApplicationRequest 
   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> <!--type: Identifier--> <!--1.1-->
      <exc:seqNumber>1</exc:seqNumber> <!--type: SequenceNumber--> <!--1.2-->
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID> <!--type: UUID--> <!--1.5-->
      <dt:businessEntity> <!--1.4-->
         <bs:guid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:guid> <!--type: UUID--> <!--1.4.1-->
         <dt:inn>0123456789</dt:inn> <!--type: String255--> <!--1.4.2-->
      </dt:businessEntity>
   </exc:metadata>
   <exc:additionalProperties>
      <exc:additionalAttribute> <!--2.-->
         <exc:attrID>ATTACH_INVOICE_FILE</exc:attrID> <!--type: Identifier-->
         <exc:attrValue>true</exc:attrValue> <!--type: Text--> <!--2.1.-->
      </exc:additionalAttribute>
   </exc:additionalProperties>
</exc:checkLabResearchApplicationRequest>


Ответы на запрос

13.3.RS1. Шаблон ответа для заявок в статусах:

# Статус заявки Комментарии
1 ACCEPTED Заявка принята
2 WAITING_DATA_FOR_CONTRACT Ожидание сведений для заключения договора
3 DATA_FOR_CONTRACT_RECEIVED Получены сведения для заключения договора
4 CONTRACT_PREPARING Подготовка договора
5 CONTRACT_RECEIVED Договор получен
6 PAYMENT_INFO_RECEIVED Получены сведения об оплате
7 WAITING_SAMPLE Ожидание получения проб

13.3.Response.Template_1

<!--Операция 13.3-->
<!--Статус заявки - 
| 1 || ACCEPTED || Заявка принята
| 2 || WAITING_DATA_FOR_CONTRACT || Ожидание сведений для заключения договора
| 3 || DATA_FOR_CONTRACT_RECEIVED || Получены сведения для заключения договора
| 4 || CONTRACT_PREPARING || Подготовка договора
| 5 || CONTRACT_RECEIVED ||  Договор получен
| 6 || PAYMENT_INFO_RECEIVED || Получены сведения об оплате
| 7 || WAITING_SAMPLE || Ожидание получения проб
-->
<exc:checkLabResearchApplicationResponse 
   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> <!--type: Identifier-->  <!--1.6-->
      <exc:seqNumber>2</exc:seqNumber> <!--type: SequenceNumber-->  <!--1.7-->
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID> <!--type: UUID-->  <!--1.1-->
      <exc:documentNumber>1234567890</exc:documentNumber> <!--type: token-->  <!--1.2-->
      <exc:documentStatus>ACCEPTED</exc:documentStatus> <!--type: ApplicationDocumentStatus -->  <!--1.4--> <!--enum: [ACCEPTED, WAITING_DATA_FOR_CONTRACT, DATA_FOR_CONTRACT_RECEIVED, CONTRACT_PREPARING, CONTRACT_RECEIVED, PAYMENT_INFO_RECEIVED, WAITING_SAMPLE]--> 
      <exc:documentStatusDate>2023-02-09T22:15:04+07:00</exc:documentStatusDate> <!--type: -->  <!--1.5-->
   </exc:metadata>
</exc:checkLabResearchApplicationResponse>


13.3.RS2. Шаблон ответа для заявок в статусах:

# Статус заявки Комментарии
1 WAITING_PAYMENT Ожидание оплаты

Структура ответа зависит от параметра запроса ATTACH_INVOICE_FILE (п.2.1) следующим образом:

  • Если в запросе передано значение параметра ATTACH_INVOICE_FILE == true, то:
    • в ответе возвращаются объекты: metadata, invoice и attachedDocument.
  • Если в запросе передано значение параметра ATTACH_INVOICE_FILE == false или параметр ATTACH_INVOICE_FILE не передан, то:
    • в ответе возвращается только объект metadata.


13.3.Response.Template_2

<!--Операция 13.3-->
<!--Статус заявки - 
| 1 || WAITING_PAYMENT || Ожидание оплаты
-->
<exc:checkLabResearchApplicationResponse 
   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#"
   xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID> <!--type: Identifier--> <!--1.6-->
      <exc:seqNumber>2</exc:seqNumber> <!--type: SequenceNumber--> <!--1.7-->
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID> <!--type: UUID--> <!--1.1-->
      <exc:documentNumber>1234567890</exc:documentNumber> <!--type: token--> <!--1.2-->
      <exc:documentStatus>WAITING_PAYMENT</exc:documentStatus> <!--type: ApplicationDocumentStatus--> <!--1.4--> <!-- enum: [WAITING_PAYMENT, IN_PROGRESS, RESEARCH_FINISHED] -->
      <exc:documentStatusDate>2023-02-09T22:15:04+07:00</exc:documentStatusDate> <!--type: dateTime--> <!--1.5-->
   </exc:metadata>
   <!-- Возвращается, если ATTACH_INVOICE_FILE == true-->
   <exc:invoice> <!--type: Invoice--> <!--4--> 
      <vd:totalAmount>10000.00</vd:totalAmount> <!--type: Decimal--> <!--4.1-->
      <vd:subTotalAmount>100000.00</vd:subTotalAmount> <!--type: Decimal--> <!--4.2-->
      <vd:currency>RUB</vd:currency> <!--type: Currency--> <!--4.7-->
      <vd:vatMode>INCLUDED</vd:vatMode> <!--type: VATMode--> <!--4.4--> <!-- enum: [NOT_INCLUDED, INCLUDED , WITHOUT_VAT] -->
      <vd:vatRate>10</vd:vatRate> <!--type: VATRate--> <!--4.5--> <!-- enum: [0, 10 , 20] -->
      <vd:vatAmount>1000.00</vd:vatAmount> <!--type: Decimal--> <!--4.6-->
      <vd:paymentPurpose>string</vd:paymentPurpose> <!--type: PaymentPurpose--> <!--4.3-->
      <vd:paymentRecipient>
         <dt:paymentAccountNumber>40404555600000004657</dt:paymentAccountNumber> <!--type: BankAccountNumber--> <!--4.10-->
         <dt:correspondentAccountNumber>40430662800000007895</dt:correspondentAccountNumber> <!--type: BankAccountNumber--> <!--4.11-->
         <dt:BIC>780821698</dt:BIC> <!--type: BankIdentificationNumber--> <!--4.8-->
         <dt:bankName>string</dt:bankName> <!--type: String255--> <!--4.9-->
         <dt:paymentRecipient>
            <dt:inn>5674235970</dt:inn> <!--type: String255--> <!--4.12-->
         </dt:paymentRecipient>
      </vd:paymentRecipient>
   </exc:invoice>
   <!-- Возвращается, если ATTACH_INVOICE_FILE == true-->   
   <exc:attachedDocument>
      <vd:type>46</vd:type> <!--type: DocumentType--> <!-- 5.2.--> <!-- enum: [46] -->
      <exc:includedFile> <!--type: ExcDocumentFile--> <!-- 5.3.1.-->
         <exc:fileName>string</exc:fileName>
         <exc:mimeCode>application/pdf</exc:mimeCode>
         <exc:binaryData xmime:contentType="application/pdf">0123456789ABCDEF</exc:binaryData>
      </exc:includedFile>
   </exc:attachedDocument>
</exc:checkLabResearchApplicationResponse>


13.3.RS3. Шаблон ответа для заявок в статусах:

# Статус заявки Комментарии
1 COMPLETED Заявка закрыта
2 ACT_RECEIVED Получен акт выполненных работ

13.3.Response.Template_3

<!--Операция 13.3-->
<!--Статус заявки
| 1 || COMPLETED || Заявка закрыта 
| 2 || ACT_RECEIVED || Получен акт выполненных работ
-->
<exc:checkLabResearchApplicationResponse 
   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> <!--type: Identifier-->  <!--1.6-->
      <exc:seqNumber>2</exc:seqNumber> <!--type: SequenceNumber-->  <!--1.7-->
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID> <!--type: UUID-->  <!--1.1-->
      <exc:documentNumber>1234567890</exc:documentNumber> <!--type: token-->  <!--1.2-->
      <exc:documentStatus>COMPLETED</exc:documentStatus> <!--type: ApplicationDocumentStatus-->  <!--1.4--> <!-- enum: [COMPLETED, ACT_RECEIVED] -->
      <exc:documentStatusDate>2023-02-09T22:15:04+07:00</exc:documentStatusDate> <!--type: dateTime-->  <!--1.5-->
   </exc:metadata>
   <exc:laboratoryResearchReportList> <!--2-->
      <vd:laboratoryResearchReport>  <!--2.1-->
         <bs:uuid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:uuid> <!--type: UUID-->  <!--2.1.1-->
         <vd:issueNumber>string</vd:issueNumber> <!--type: String255-->  <!--2.1.2-->
         <vd:issueDate>2023-02-09</vd:issueDate> <!--type: date-->  <!--2.1.3-->
         <vd:type>33</vd:type> <!--type: DocumentType-->  <!--2.1.4-->
         <vd:issuer> <!--type: Organization-->  <!--2.1.5-->
            <dt:ID>2874c443-9060-46a7-89b8-bf4219ac373a</dt:ID> <!--type: Identifier-->  <!--2.1.5.1-->
         </vd:issuer>
         <vd:samplingReport>
            <vd:issueNumber>564</vd:issueNumber> <!--type: String255-->  <!--2.1.6-->
         </vd:samplingReport>
      </vd:laboratoryResearchReport>
   </exc:laboratoryResearchReportList>
   <exc:attachedDocument>
      <bs:uuid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:uuid>  <!--type: UUID--> <!--5.1-->
      <vd:type>33</vd:type> <!--type: DocumentType--> <!-- 5.2.--> <!-- enum: [33] -->
      <exc:includedFile> <!--type: ExcDocumentFile--> <!-- 5.3.1.-->
         <exc:fileName>string</exc:fileName>
         <exc:mimeCode>application/pdf</exc:mimeCode>
         <exc:binaryData xmime:contentType="application/pdf">0123456789ABCDEF</exc:binaryData>
         <exc:signature>0123456789ABCDEF</exc:signature>
      </exc:includedFile>
   </exc:attachedDocument>
</exc:checkLabResearchApplicationResponse>


13.3.RS4. Шаблон ответа для заявок в статусах:

# Статус заявки Комментарии
1 WAITING_SIGN_CONTRACT Ожидание подписания договора

13.3.Response.Template_4

<!--Операция 13.3-->
<!--Статус заявки
| 1 || WAITING_SIGN_CONTRACT || Ожидание подписания договора 
-->
<exc:checkLabResearchApplicationResponse 
   xmlns:exc="http://api.vetrf.ru/schema/cdm/exportcenter/applications/v2" 
   xmlns:dt="http://api.vetrf.ru/schemdictionary/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.w2000/09/xmldsig#"
   xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID> <!--type: Identifier-->  <!--1.6-->
      <exc:seqNumber>2</exc:seqNumber> <!--type: SequenceNumber-->  <!--1.7-->
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID> <!--type: UUID-->  <!--1.1-->
      <exc:documentNumber>1234567890</exc:documentNumber> <!--type: token-->  <!--1.2-->
      <exc:documentStatus>WAITING_SIGN_CONTRACT</exc:documentStatus> <!--type: ApplicationDocumentStatus-->  <!--1.4-->
      <exc:documentStatusDate>2023-02-09T22:15:04+07:00</exc:documentStatusDate> <!--type: dateTime-->  <!--1.5-->
   </exc:metadata>
   <exc:attachedDocument>
      <vd:type>47</vd:type> <!--type: DocumentType--> <!-- 5.2.--> <!-- enum: [47, 50] -->
      <exc:includedFile> <!--type: ExcDocumentFile--> <!-- 5.3.1.-->
         <exc:fileName>string</exc:fileName>
         <exc:mimeCode>application/pdf</exc:mimeCode>
         <exc:binaryData xmime:contentType="application/pdf">0123456789ABCDEF</exc:binaryData>
         <exc:signature>0123456789ABCDEF</exc:signature>
      </exc:includedFile>
   </exc:attachedDocument>
   <exc:attachedDocument>
      <vd:type>50</vd:type> <!--type: DocumentType--> <!-- 5.2.--> <!-- enum: [47, 50] -->
      <exc:includedFile> <!--type: ExcDocumentFile--> <!-- 5.3.1.-->
         <exc:fileName>string</exc:fileName>
         <exc:mimeCode>application/pdf</exc:mimeCode>
         <exc:binaryData xmime:contentType="application/pdf">0123456789ABCDEF</exc:binaryData>
      </exc:includedFile>
   </exc:attachedDocument>
</exc:checkLabResearchApplicationResponse>


13.3.RS5. Шаблон ответа для заявок в статусах:

# Статус заявки Комментарии
1 DECLINED Заявка отклонена

13.3.Response.Template_5.1. Причина отклонения: не принята проба

<!--Операция 13.3-->
<!--Статус заявки
| 1 || DECLINED || Заявка отклонена
-->
<exc:checkLabResearchApplicationResponse 
   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> <!--type: Identifier-->  <!--1.6-->
      <exc:seqNumber>2</exc:seqNumber> <!--type: SequenceNumber-->  <!--1.7-->
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID> <!--type: UUID-->  <!--1.1-->
      <exc:documentNumber>1234567890</exc:documentNumber> <!--type: token-->   <!--1.2-->
      <exc:documentStatus>DECLINED</exc:documentStatus> <!--type: ApplicationDocumentStatus-->  <!--1.4-->
      <exc:documentStatusDate>2023-02-09T22:15:04+07:00</exc:documentStatusDate> <!--type: dateTime-->  <!--1.5-->
   </exc:metadata>
   <exc:sampleAcceptanceResultList> <!--6-->
      <exc:sampleAcceptanceResult> <!--6.1-->
         <exc:laboratoryResearchSample>
            <vd:sampleCipher>2874c443-9060-46a7-89b8-bf4219ac373a</vd:sampleCipher> <!--type: UUID-->  <!--6.1.1-->
         </exc:laboratoryResearchSample>
         <exc:resultNotes> <!--type:FaultInfo -->  <!--6.1.2-->
            <bs:message>Причина отклонения пробы</bs:message> <!--type: String255-->  <!--6.1.2.2-->
         </exc:resultNotes>
      </exc:sampleAcceptanceResult>
   </exc:sampleAcceptanceResultList>
   <exc:applicationReport> <!--3-->
      <exc:resultNotes> <!--type:FaultInfo -->  <!--3.1-->
         <bs:message>Проба не соответствует требованиям, заявка отклонена</bs:message> <!--type: String255-->  <!--3.1.2-->
      </exc:resultNotes>
   </exc:applicationReport>
</exc:checkLabResearchApplicationResponse>


13.3.Response.Template_5.2. Причина отклонения: прочие причины или ошибки по бизнес-процессу

<!--Операция 13.3-->
<!--Статус заявки
| 1 || DECLINED || Заявка отклонена
-->
<exc:checkLabResearchApplicationResponse 
   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> <!--type: Identifier-->  <!--1.6-->
      <exc:seqNumber>2</exc:seqNumber> <!--type: SequenceNumber-->  <!--1.7-->
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID> <!--type: UUID-->  <!--1.1-->
      <exc:documentNumber>1234567890</exc:documentNumber> <!--type: token-->  <!--1.2-->
      <exc:documentStatus>DECLINED</exc:documentStatus> <!--type: ApplicationDocumentStatus-->  <!--1.4-->
      <exc:documentStatusDate>2023-02-09T22:15:04+07:00</exc:documentStatusDate> <!--type: dateTime-->  <!--1.5-->
   </exc:metadata>
   <exc:applicationReport> <!--3-->
      <exc:resultNotes> <!--type:FaultInfo -->  <!--3.1-->
         <bs:message>В рассмотрении заявки отказано</bs:message> <!--type: String255-->  <!--3.1.2-->
         <bs:error code="12345">string</bs:error> <!--type: Error-->  <!--3.1.1-->
      </exc:resultNotes>
   </exc:applicationReport>
</exc:checkLabResearchApplicationResponse>


13.3.RS6. Шаблон ответа для заявок в статусах:

# Статус заявки Комментарии
1 SAMPLE_RECEIVED Пробы приняты
2 PREPAYMENT_INFO_RECEIVED Получены сведения о предоплате

13.3.Response.Template_6

<!--Операция 13.3-->
<!--Статус заявки 
| 1 || SAMPLE_RECEIVED || Пробы приняты
| 2 || PREPAYMENT_INFO_RECEIVED || Получены сведения о предоплате
-->
<exc:checkLabResearchApplicationResponse 
   xmlns:exc="http://api.vetrf.ru/schema/cdm/exportcenter/applications/v2" 
   xmlns:dt="http://api.vetrf.ru/schemdictionary/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.w2000/09/xmldsig#">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID> <!--type: Identifier-->  <!--1.6-->
      <exc:seqNumber>2</exc:seqNumber> <!--type: SequenceNumber-->  <!--1.7-->
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID> <!--type: UUID-->  <!--1.1-->
      <exc:documentNumber>1234567890</exc:documentNumber> <!--type: token-->  <!--1.2-->
      <exc:documentStatus>SAMPLE_RECEIVED</exc:documentStatus> <!--type: ApplicationDocumentStatus-->  <!--1.4--> <!-- enum: [SAMPLE_RECEIVED, PREPAYMENT_INFO_RECEIVED] -->
      <exc:documentStatusDate>2023-02-09T22:15:04+07:00</exc:documentStatusDate> <!--type: dateTime-->  <!--1.5-->
   </exc:metadata>
   <exc:sampleAcceptanceResultList>  <!--6-->
      <exc:sampleAcceptanceResult> <!--6.1.-->
         <exc:laboratoryResearchSample> <!--type: Sample--> 
            <vd:sampleCipher>2874c443-9060-46a7-89b8-bf4219ac373a</vd:sampleCipher> <!--type: UUID-->  <!--6.1.1.-->
         </exc:laboratoryResearchSample>
      </exc:sampleAcceptanceResult>
   </exc:sampleAcceptanceResultList>
</exc:checkLabResearchApplicationResponse>


13.3.RS7. Шаблон ответа для заявок в статусах:

# Статус заявки Комментарии
1 WAITING_CLOSING_ACT Ожидание подписания акта выполненных работ

Структура ответа зависит от параметра запроса ATTACH_INVOICE_FILE (п.2.1) следующим образом:

  • Если в запросе передано значение параметра ATTACH_INVOICE_FILE == true, то:
    • в ответе возвращаются объекты: metadata, laboratoryResearchReportList, invoice и attachedDocument со всеми типами документов [33, 46, 48].
  • Если в запросе передано значение параметра ATTACH_INVOICE_FILE == false или параметр ATTACH_INVOICE_FILE не передан, то:
    • в ответе возвращаются объекты: metadata, laboratoryResearchReportList и attachedDocument с типами документов [33, 48].


13.3.Response.Template_7

<!--Операция 13.3-->
<!--Статус заявки
| 1 || WAITING_CLOSING_ACT || Ожидание подписания акта выполненных работ
-->
<exc:checkLabResearchApplicationResponse 
   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#"
   xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID> <!--type: Identifier-->  <!--1.6-->
      <exc:seqNumber>2</exc:seqNumber> <!--type: SequenceNumber-->  <!--1.7-->
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID> <!--type: UUID-->  <!--1.1-->
      <exc:documentNumber>1234567890</exc:documentNumber> <!--type: token-->  <!--1.2-->
      <exc:documentStatus> WAITING_CLOSING_ACT</exc:documentStatus> <!--type: ApplicationDocumentStatus-->  <!--1.4--> 
      <exc:documentStatusDate>2023-02-09T22:15:04+07:00</exc:documentStatusDate> <!--type: dateTime-->  <!--1.5-->
   </exc:metadata>
   <exc:laboratoryResearchReportList> <!--2-->
      <vd:laboratoryResearchReport>  <!--2.1-->
         <bs:uuid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:uuid> <!--type: UUID-->  <!--2.1.1-->
         <vd:issueNumber>string</vd:issueNumber> <!--type: String255-->  <!--2.1.2-->
         <vd:issueDate>2023-02-09</vd:issueDate> <!--type: date-->  <!--2.1.3-->
         <vd:type>33</vd:type> <!--type: DocumentType-->  <!--2.1.4-->
         <vd:issuer> <!--type: Organization-->  <!--2.1.5-->
            <dt:ID>2874c443-9060-46a7-89b8-bf4219ac373a</dt:ID> <!--type: Identifier-->  <!--2.1.5.1-->
         </vd:issuer>
         <vd:samplingReport>
            <vd:issueNumber>564</vd:issueNumber> <!--type: String255-->  <!--2.1.6-->
         </vd:samplingReport>
      </vd:laboratoryResearchReport>
   </exc:laboratoryResearchReportList>
  <!-- Возвращается, если ATTACH_INVOICE_FILE == true-->
   <exc:invoice> <!--type: Invoice--> <!--4--> 
      <vd:totalAmount>10000.00</vd:totalAmount> <!--type: Decimal--> <!--4.1-->
      <vd:subTotalAmount>100000.00</vd:subTotalAmount> <!--type: Decimal--> <!--4.2-->
      <vd:currency>RUB</vd:currency> <!--type: Currency--> <!--4.7-->
      <vd:vatMode>INCLUDED</vd:vatMode> <!--type: VATMode--> <!--4.4--> <!-- enum: [NOT_INCLUDED, INCLUDED , WITHOUT_VAT] -->
      <vd:vatRate>10</vd:vatRate> <!--type: VATRate--> <!--4.5--> <!-- enum: [0, 10 , 20] -->
      <vd:vatAmount>1000.00</vd:vatAmount> <!--type: Decimal--> <!--4.6-->
      <vd:paymentPurpose>string</vd:paymentPurpose> <!--type: PaymentPurpose--> <!--4.3-->
      <vd:paymentRecipient>
         <dt:paymentAccountNumber>40404555600000004657</dt:paymentAccountNumber> <!--type: BankAccountNumber--> <!--4.10-->
         <dt:correspondentAccountNumber>40430662800000007895</dt:correspondentAccountNumber> <!--type: BankAccountNumber--> <!--4.11-->
         <dt:BIC>780821698</dt:BIC> <!--type: BankIdentificationNumber--> <!--4.8-->
         <dt:bankName>string</dt:bankName> <!--type: String255--> <!--4.9-->
         <dt:paymentRecipient>
            <dt:inn>5674235970</dt:inn> <!--type: String255--> <!--4.12-->
         </dt:paymentRecipient>
      </vd:paymentRecipient>
   </exc:invoice>    
   <exc:attachedDocument> <!-- Возвращается, если ATTACH_INVOICE_FILE == true-->  
      <vd:type>46</vd:type> <!--type: DocumentType--> <!-- 5.2.--> <!-- enum: [33, 46, 48] -->
      <exc:includedFile> <!--type: ExcDocumentFile--> <!-- 5.3.1.-->
         <exc:fileName>string</exc:fileName>
         <exc:mimeCode>application/pdf</exc:mimeCode>
         <exc:binaryData xmime:contentType="application/pdf">0123456789ABCDEF</exc:binaryData>
      </exc:includedFile>
   </exc:attachedDocument>
   <exc:attachedDocument>
      <bs:uuid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:uuid>  <!--type: UUID--> <!--5.1-->
      <vd:type>33</vd:type> <!--type: DocumentType--> <!-- 5.2.--> <!-- enum: [33, 46, 48] -->
      <exc:includedFile> <!--type: ExcDocumentFile--> <!-- 5.3.1.-->
         <exc:fileName>string</exc:fileName>
         <exc:mimeCode>application/pdf</exc:mimeCode>
         <exc:binaryData xmime:contentType="application/pdf">0123456789ABCDEF</exc:binaryData>
         <exc:signature>0123456789ABCDEF</exc:signature>
      </exc:includedFile>
   </exc:attachedDocument>
   <exc:attachedDocument>
      <vd:type>48</vd:type> <!--type: DocumentType--> <!-- 5.2.--> <!-- enum: [33, 46, 48] -->
      <exc:includedFile> <!--type: ExcDocumentFile--> <!-- 5.3.1.-->
         <exc:fileName>string</exc:fileName>
         <exc:mimeCode>application/pdf</exc:mimeCode>
         <exc:binaryData xmime:contentType="application/pdf">0123456789ABCDEF</exc:binaryData>
         <exc:signature>0123456789ABCDEF</exc:signature>
      </exc:includedFile>
   </exc:attachedDocument>
</exc:checkLabResearchApplicationResponse>


13.3.RS8. Шаблон ответа для заявок в статусах:

# Статус заявки Комментарии
1 WAITING_PREPAYMENT Ожидание предоплаты
2 IN_PROGRESS Проведение исследования
3 RESEARCH_FINISHED Исследование завершено

Структура ответа зависит от параметра запроса ATTACH_INVOICE_FILE (п.2.1) следующим образом:

  • Если в запросе передано значение параметра ATTACH_INVOICE_FILE == true, то:
    • в ответе возвращаются объекты: metadata, sampleAcceptanceResultList, invoice и attachedDocument.
  • Если в запросе передано значение параметра ATTACH_INVOICE_FILE == false или параметр ATTACH_INVOICE_FILE не передан, то:
    • в ответе возвращаются только объекты: metadata, sampleAcceptanceResultList.


13.3.Response.Template_8

<!--Операция 13.3-->
<!--Статус заявки - 
| 1 || WAITING_PREPAYMENT || Ожидание предоплаты
| 2 || IN_PROGRESS || Проведение исследования
| 3 || RESEARCH_FINISHED || Исследование завершено-
-->
<exc:checkLabResearchApplicationResponse 
   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#"
   xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
   <exc:metadata>
      <exc:processID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:processID> <!--type: Identifier--> <!--1.6-->
      <exc:seqNumber>2</exc:seqNumber> <!--type: SequenceNumber--> <!--1.7-->
      <exc:documentID>2874c443-9060-46a7-89b8-bf4219ac373a</exc:documentID> <!--type: UUID--> <!--1.1-->
      <exc:documentNumber>1234567890</exc:documentNumber> <!--type: token--> <!--1.2-->
      <exc:documentStatus>WAITING_PREPAYMENT</exc:documentStatus> <!--type: ApplicationDocumentStatus--> <!--1.4--> 
      <exc:documentStatusDate>2023-02-09T22:15:04+07:00</exc:documentStatusDate> <!--type: dateTime--> <!--1.5-->
   </exc:metadata>
   <exc:sampleAcceptanceResultList>  <!--6-->
      <exc:sampleAcceptanceResult> <!--6.1.-->
         <exc:laboratoryResearchSample> <!--type: Sample--> 
            <vd:sampleCipher>2874c443-9060-46a7-89b8-bf4219ac373a</vd:sampleCipher> <!--type: UUID-->  <!--6.1.1.-->
         </exc:laboratoryResearchSample>
      </exc:sampleAcceptanceResult>
   </exc:sampleAcceptanceResultList>
   <!-- Возвращается, если ATTACH_INVOICE_FILE == true, и если бизнес-процесс подразумевает наличие счета-->
   <exc:invoice> <!--type: Invoice--> <!--4--> 
      <vd:totalAmount>10000.00</vd:totalAmount> <!--type: Decimal--> <!--4.1-->
      <vd:subTotalAmount>100000.00</vd:subTotalAmount> <!--type: Decimal--> <!--4.2-->
      <vd:currency>RUB</vd:currency> <!--type: Currency--> <!--4.7-->
      <vd:vatMode>INCLUDED</vd:vatMode> <!--type: VATMode--> <!--4.4--> <!-- enum: [NOT_INCLUDED, INCLUDED , WITHOUT_VAT] -->
      <vd:vatRate>10</vd:vatRate> <!--type: VATRate--> <!--4.5--> <!-- enum: [0, 10 , 20] -->
      <vd:vatAmount>1000.00</vd:vatAmount> <!--type: Decimal--> <!--4.6-->
      <vd:paymentPurpose>string</vd:paymentPurpose> <!--type: PaymentPurpose--> <!--4.3-->
      <vd:paymentRecipient>
         <dt:paymentAccountNumber>40404555600000004657</dt:paymentAccountNumber> <!--type: BankAccountNumber--> <!--4.10-->
         <dt:correspondentAccountNumber>40430662800000007895</dt:correspondentAccountNumber> <!--type: BankAccountNumber--> <!--4.11-->
         <dt:BIC>780821698</dt:BIC> <!--type: BankIdentificationNumber--> <!--4.8-->
         <dt:bankName>string</dt:bankName> <!--type: String255--> <!--4.9-->
         <dt:paymentRecipient>
            <dt:inn>5674235970</dt:inn> <!--type: String255--> <!--4.12-->
         </dt:paymentRecipient>
      </vd:paymentRecipient>
   </exc:invoice>
   <!-- Возвращается, если ATTACH_INVOICE_FILE == true, и если бизнес-процесс подразумевает наличие счета-->   
   <exc:attachedDocument>
      <vd:type>46</vd:type> <!--type: DocumentType--> <!-- 5.2.--> <!-- enum: [46] -->
      <exc:includedFile> <!--type: ExcDocumentFile--> <!-- 5.3.1.-->
         <exc:fileName>string</exc:fileName>
         <exc:mimeCode>application/pdf</exc:mimeCode>
         <exc:binaryData xmime:contentType="application/pdf">0123456789ABCDEF</exc:binaryData>
      </exc:includedFile>
   </exc:attachedDocument>
</exc:checkLabResearchApplicationResponse>