Skip to content

WS113 - Receive Occurrences of Documents

Click here to see version history
Update date Service publication date Changes
04/13/2021 04/15/2021 Addition of XSD
01/12/2022 01/12/2022 Link validity update - WS502

Objective

Receive information on the status and occurrences of documents as indicated by drivers. Once consumed, an instance will NOT be made available by this method again.

Method description

Método downloadDocumentsHistory
Versão 2
WSDL https://soap.comprovei.com.br/exportQueue/v2/index.php?wsdl
WSDL de contingência https://soapcontingencia.comprovei.com.br/exportQueue/v2/index.php?wsdl
XSD https://soap.comprovei.com.br/exportQueue/schemas/WS113_output.xsd

Important

  1. Our connections are secure using the SSL protocol. For security reasons, our certificates are constantly changed without prior notice. Therefore, it is recommended that you do not develop integrations based on a fixed certificate.
  2. We constantly (and without prior notice) add new fields and structures to both requests and responses from our web services. Anyone who uses our webservices must implement it in such a way that the programs that consume these webservices do not stop working when the mentioned field changes occur.

Version

You are accessing version 2 of our integration system. If you wish to consult the previous version, click here.

Features

  • Calls will be made via SOAP over HTTPS;
  • The origin of the Web Service call will be the client's system;

Authentication

  • Calls will have message-level authentication (SOAP Header);
  • Request the username / password from the account administrator.

Important

  1. The connection to our service must be made to our main server, however we strongly suggest that a connection to our contingency server is also made available, as a guarantee of the availability of our services. The contingency server is only turned on in situations where our main server is unavailable. Making the connection url parameterizable is also a good practice;
  2. Our connections are secure using the SSL protocol. For security reasons, our certificates are constantly changed without prior notice. Therefore, it is recommended that you do not develop integrations based on a fixed certificate.

Request

The request for our Web Service is composed as follows:

Within the <Credentials> TAG:

TAG Type Description
Usuario string User for authentication.
Senha string User password for authentication

Body

Inside the <uploadRoute> TAG:

TAG Type Description
qtdDocumentos integer Maximum number of documents that will be returned in this query.

Request Example

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <Header>
        <Credenciais xmlns="WebServiceComprovei">
            <Usuario>usuario</Usuario>
            <Senha>teste</Senha>
        </Credenciais>
    </Header>
    <Body>
        <downloadDocumentsHistory xmlns="WebServiceComprovei:downloadDocumentsHistory">
            <qtdDocumentos>2</qtdDocumentos>
        </downloadDocumentsHistory>
    </Body>
</Envelope>

Response

Our Web Service responds to you as follows:

TAG Type Description
status string Success or error message for the method call.
protocolo string Protocol for checking the progress of the export request.

Protocol

When an export order is created in our system, a protocol is generated so that this process can be monitored. This can be done using the WS502 method.

Response Example

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:WebServiceComprovei" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
   <SOAP-ENV:Body>
      <ns1:downloadDocumentsHistoryResponse>
         <status xsi:type="xsd:string">Exportação adicionada a fila com sucesso. Acompanhe o processamento utilizando o protocolo fornecido!</status>
         <protocolo xsi:type="xsd:string">20170823599de095e8249</protocolo>
      </ns1:downloadDocumentsHistoryResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

What is generated in this export

Using the protocol generated in method WS502, the user will receive a URL to access the XML file containing all occurrences available in the system at the time of execution, respecting the maximum quantity requested. This XML file is composed as follows:

TAG Type Required Description
Documentos root Yes Root of the xml and composed of Document.

Document

TAG Type Description
Tipo string Document type.
Modelo string Document template.
Numero string Document number.
Serie string Document series.
Emissao string Date of issue of the document. Format: YYYY-MM-DD HH:MM:SS
Cnpj string CNPJ of the recipient of the document.
Chave string Document key.
Peso decimal Note weight.
Status string Code and description of the document status at the time of the query. Format: Code - Description
Ocorrencias element Root element for the list of document occurrences and is composed of one or more Occurrence.
Itens element Root element for the list of document items and is composed of one or more Item.
Danfes element Root element for the list of DANFEs in the document and is composed of one or more Danfe.
Cliente element Root element for customer information. Client.

Occurrence

TAG Type Description
Numero string Occurrence ID. This number is unique and is not repeated as it represents the record key in our database.
Motivo string Occurrence code + occurrence description, in the format: Code - Description.
Data string Date of occurrence in the format: YYYY-MM-DD HH:MM:SS.
Assinatura element Root element for the Signature collected by the driver.
Anotacao string Text inserted in the note made by the driver.
Fotos element Root element for the list of photos taken by the driver. It consists of one or more Photo.
CnpjTransportador string CNPJ of the Carrier responsible for reporting the occurrence.
NomeTransportador string Name of the Carrier responsible for reporting the occurrence.
Romaneio string Mailing Number.
Posicao element Location of capture of the occurrence. More details in Posicao
Subscription
TAG Type Description
Nome string Identification provided by the subscriber. Format: name + comma + space + document. * It is possible to request Comprovei Support for and to be sent separately. (Parameter 613)
Dado string URL to access the signature image collected by the driver.
HashEntrega string Hash (SHA1) in Base64 format resulting from the concatenation: Document access key + Image Base64.

HashEntrega

Field required to meet the CT-e Proof of Delivery event.

Photo
TAG Type Description
Comentario string Comment made by the driver at the time of the photo.
Dado string URL to access the photo taken by the driver.
HashEntrega string Hash (SHA1) in Base64 format resulting from the concatenation: Document access key + Image Base64.

HashEntrega

Field required to meet the CT-e Proof of Delivery event.

Position
TAG Type Description
Latitude decimal Latitude of the occurrence capture location.
Longitude decimal Longitude of the occurrence capture location.

Item

TAG Type Description
Numero string Sequence of the item in the document (always starts with number 1).
Descricao string Item description.
Barcode string Item barcode.
Quantidade string Checked quantity of the item in the format x/y, where x = checked quantity and y = total quantity of the item.
Foto string URL to access the photo of the item taken by the driver.
Motivo string Reason for not delivering an item if the driver provides justification.

Note

The content of the Item TAG is filled in when an occurrence of document completion is detected, that is, the document was Delivered, with or without checking the items, Collected or Returned.

Danfe

TAG Type Description
Numero string DANFE number.
Serie string DANFE series.
Chave string DANFE key.
Emissao string DANFE issue date in the format: YYYY-MM-DD HH:MM:SS.
Cnpj string DANFE CNPJ.
Volume whole Volume collected from DANFE.

Customer

TAG Type Description
Codigo string Code sent with customer code.
CodigoInterno string Code sent with the client's internal code.
Latitude decimal Customer location.
Longitude decimal Customer location.

Example of the generated XML file

<Documentos>
    <Documento>
        <Tipo>mfe</Tipo>
        <Modelo></Modelo>
        <Numero>20201123671945</Numero>
        <Serie>3</Serie>
        <Emissao>2020-11-23 00:00:00</Emissao>
        <Cnpj></Cnpj>
        <Chave>2020112302401520201123671945723920</Chave>
        <Peso></Peso>
        <Status>6 - Não entregue</Status>
        <Ocorrencias>
            <Ocorrencia>
                <Numero>21385</Numero>
                <Motivo>000 - Entrega Replicação</Motivo>
                <Data>2020-11-27 13:43:20</Data>
                <Assinatura></Assinatura>
                <Anotacao></Anotacao>
                <Fotos/>
                <CnpjTransportador>48484848484848</CnpjTransportador>
                <NomeTransportador>TSTT</NomeTransportador>
                <Romaneio></Romaneio>
                <Posicao>
                    <Latitude>0</Latitude>
                    <Longitude>0</Longitude>
                </Posicao>
                <Qualidade>
                <IndicePorcentagem>50.00</IndicePorcentagem>
                <Criterios>
                    <Criterio>
                        <Nome>INICIO_VIAGEM_DENTRO_CERCA_VIAGEM_ANTERIOR</Nome>
                        <PesoMediaPonderada>1</PesoMediaPonderada>
                        <Valor>1</Valor>
                    </Criterio>
                    <Criterio>
                        <Nome>CHEGADA_NA_CERCA_LOCAL_ENTREGA</Nome>
                        <PesoMediaPonderada>0</PesoMediaPonderada>
                        <Valor>0</Valor>
                    </Criterio>
                    <Criterio>
                        <Nome>FINALIZOU_COM_APONTAMENTOS</Nome>
                        <PesoMediaPonderada>0</PesoMediaPonderada>
                        <Valor>1</Valor>
                    </Criterio>
                    <Criterio>
                        <Nome>TEMPO_ENTRE_MARCAR_CHEGADA_E_FINAL_MAIOR_QUE_O_MINIMO</Nome>
                        <PesoMediaPonderada>1</PesoMediaPonderada>
                        <Valor>0</Valor>
                    </Criterio>
                </Criterios>
                </Qualidade>
                <Historico>
                    <Rota>
                        <Data>2020-11-24</Data>
                        <Nome></Nome>
                        <Numero>repl-EX_723_910</Numero>
                        <CodigoMotorista>victord</CodigoMotorista>
                        <Placa>ECI4772</Placa>
                        <Regiao>SPI</Regiao>
                        <CnpjTransportador>48484848484848</CnpjTransportador>
                    </Rota>
                    <Eventos>
                        <Apontamento>
                            <CriadoEm>2020-11-27 13:43:06</CriadoEm>
                            <Localizacao>
                                <Latitude>0</Latitude>
                                <Longitude>0</Longitude>
                            </Localizacao>
                            <Evento>Viagem Iniciada</Evento>
                            <Complemento>FARMAZUL COMERCIO FARMACEUTICO LT (Moto G (5) Plus - 06839cbda94bec18)</Complemento>
                            <CodigoMotorista>victord</CodigoMotorista>
                            <SincronizadoEm>2020-11-27 13:42:50</SincronizadoEm>
                        </Apontamento>
                        <Apontamento>
                            <CriadoEm>2020-11-27 13:43:13</CriadoEm>
                            <Localizacao>
                                <Latitude>0</Latitude>
                                <Longitude>0</Longitude>
                            </Localizacao>
                            <Evento>Chegada no cliente</Evento>
                            <Complemento>FARMAZUL COMERCIO FARMACEUTICO LT (Moto G (5) Plus - 06839cbda94bec18)</Complemento>
                            <CodigoMotorista>victord</CodigoMotorista>
                            <SincronizadoEm>2020-11-27 13:43:07</SincronizadoEm>
                        </Apontamento>
                        <Apontamento>
                            <CriadoEm>2020-11-27 13:43:19</CriadoEm>
                            <Localizacao>
                                <Latitude>0</Latitude>
                                <Longitude>0</Longitude>
                            </Localizacao>
                            <Evento>Itens conferidos</Evento>
                            <Complemento>mfe 20201123671945: 0/65 (Moto G (5) Plus - 06839cbda94bec18)</Complemento>
                            <CodigoMotorista>victord</CodigoMotorista>
                            <SincronizadoEm>2020-11-27 13:43:10</SincronizadoEm>
                        </Apontamento>
                        <Apontamento>
                            <CriadoEm>2020-11-27 13:43:19</CriadoEm>
                            <Localizacao>
                                <Latitude>0</Latitude>
                                <Longitude>0</Longitude>
                            </Localizacao>
                            <Evento>Entrega Finalizada</Evento>
                            <Complemento>FARMAZUL COMERCIO FARMACEUTICO LT (Moto G (5) Plus - 06839cbda94bec18)</Complemento>
                            <CodigoMotorista>victord</CodigoMotorista>
                            <SincronizadoEm>2020-11-27 13:43:11</SincronizadoEm>
                        </Apontamento>
                    </Eventos>
                </Historico>
            </Ocorrencia>
            <Ocorrencia>
                <Numero>22067</Numero>
                <Motivo>052 - Atraso na entrega</Motivo>
                <Data>2021-01-08 15:06:12</Data>
                <Assinatura></Assinatura>
                <Anotacao></Anotacao>
                <Fotos/>
                <CnpjTransportador>48484848484800</CnpjTransportador>
                <NomeTransportador>Comprovei Transportadora</NomeTransportador>
                <Romaneio></Romaneio>
                <Posicao>
                    <Latitude></Latitude>
                    <Longitude></Longitude>
                </Posicao>
                <Qualidade>
                    <IndicePorcentagem>0.00</IndicePorcentagem>
                    <Criterios>
                        <Criterio>
                            <Nome>INICIO_VIAGEM_DENTRO_CERCA_VIAGEM_ANTERIOR</Nome>
                            <PesoMediaPonderada></PesoMediaPonderada>
                            <Valor></Valor>
                        </Criterio>
                        <Criterio>
                            <Nome>CHEGADA_NA_CERCA_LOCAL_ENTREGA</Nome>
                            <PesoMediaPonderada></PesoMediaPonderada>
                            <Valor></Valor>
                        </Criterio>
                        <Criterio>
                            <Nome>FINALIZOU_COM_APONTAMENTOS</Nome>
                            <PesoMediaPonderada></PesoMediaPonderada>
                            <Valor></Valor>
                        </Criterio>
                        <Criterio>
                            <Nome>TEMPO_ENTRE_MARCAR_CHEGADA_E_FINAL_MAIOR_QUE_O_MINIMO</Nome>
                            <PesoMediaPonderada></PesoMediaPonderada>
                            <Valor></Valor>
                        </Criterio>
                    </Criterios>
                </Qualidade>
                <Historico>
                    <Rota>
                        <Data>2020-11-24</Data>
                        <Nome></Nome>
                        <Numero>repl-EX_723_910</Numero>
                        <CodigoMotorista>victord</CodigoMotorista>
                        <Placa>ECI4772</Placa>
                        <Regiao>SPI</Regiao>
                        <CnpjTransportador>48484848484848</CnpjTransportador>
                    </Rota>
                    <Eventos>
                        <Apontamento>
                            <CriadoEm>2021-01-08 15:06:12</CriadoEm>
                            <Localizacao>
                                <Latitude></Latitude>
                                <Longitude></Longitude>
                            </Localizacao>
                            <Evento>Apontamento Manual</Evento>
                            <Complemento></Complemento>
                            <CodigoMotorista>suporte</CodigoMotorista>
                            <SincronizadoEm></SincronizadoEm>
                        </Apontamento>
                    </Eventos>
                </Historico>
            </Ocorrencia>
        </Ocorrencias>
        <Itens>
            <Item>
                <Numero>1</Numero>
                <Descricao>volume 00001 / 00001</Descricao>
                <Barcode>00078999994508177743</Barcode>
                <Quantidade>0/2</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>2</Numero>
                <Descricao>volume 00001 / 00001</Descricao>
                <Barcode>00078999994508227301</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>3</Numero>
                <Descricao>volume 00001 / 00001</Descricao>
                <Barcode>00078999994508006661</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>4</Numero>
                <Descricao>volume 00001 / 00001</Descricao>
                <Barcode>00078999994508756443</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>5</Numero>
                <Descricao>volume 00001 / 00008</Descricao>
                <Barcode>00078999994508399985</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>6</Numero>
                <Descricao>volume 00002 / 00008</Descricao>
                <Barcode>00078999994508399992</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>7</Numero>
                <Descricao>volume 00003 / 00008</Descricao>
                <Barcode>00078999994508400001</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>8</Numero>
                <Descricao>volume 00004 / 00008</Descricao>
                <Barcode>00078999994508400124</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>9</Numero>
                <Descricao>volume 00005 / 00008</Descricao>
                <Barcode>00078999994508400162</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>10</Numero>
                <Descricao>volume 00006 / 00017</Descricao>
                <Barcode>00078999994508400186</Barcode>
                <Quantidade>0/3</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>11</Numero>
                <Descricao>volume 00007 / 00017</Descricao>
                <Barcode>00078999994508400193</Barcode>
                <Quantidade>0/2</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>12</Numero>
                <Descricao>volume 00008 / 00017</Descricao>
                <Barcode>00078999994508400209</Barcode>
                <Quantidade>0/3</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>13</Numero>
                <Descricao>volume 00005 / 00017</Descricao>
                <Barcode>00078999994508400179</Barcode>
                <Quantidade>0/2</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>14</Numero>
                <Descricao>volume 00012 / 00017</Descricao>
                <Barcode>00078999994508400247</Barcode>
                <Quantidade>0/2</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>15</Numero>
                <Descricao>volume 00014 / 00017</Descricao>
                <Barcode>00078999994508400261</Barcode>
                <Quantidade>0/2</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>16</Numero>
                <Descricao>volume 00001 / 00017</Descricao>
                <Barcode>00078999994508400117</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>17</Numero>
                <Descricao>volume 00002 / 00017</Descricao>
                <Barcode>00078999994508400131</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>18</Numero>
                <Descricao>volume 00003 / 00017</Descricao>
                <Barcode>00078999994508400148</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>19</Numero>
                <Descricao>volume 00004 / 00017</Descricao>
                <Barcode>00078999994508400155</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>20</Numero>
                <Descricao>volume 00009 / 00017</Descricao>
                <Barcode>00078999994508400216</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>21</Numero>
                <Descricao>volume 00010 / 00017</Descricao>
                <Barcode>00078999994508400223</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>22</Numero>
                <Descricao>volume 00011 / 00017</Descricao>
                <Barcode>00078999994508400230</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>23</Numero>
                <Descricao>volume 00013 / 00017</Descricao>
                <Barcode>00078999994508400254</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>24</Numero>
                <Descricao>volume 00015 / 00017</Descricao>
                <Barcode>00078999994508400278</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>25</Numero>
                <Descricao>volume 00016 / 00017</Descricao>
                <Barcode>00078999994508400285</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>26</Numero>
                <Descricao>volume 00017 / 00017</Descricao>
                <Barcode>00078999994508400292</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>27</Numero>
                <Descricao>volume 00001 / 00007</Descricao>
                <Barcode>00078999994508738111</Barcode>
                <Quantidade>0/7</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>28</Numero>
                <Descricao>volume 00001 / 00002</Descricao>
                <Barcode>00078999994508737886</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>29</Numero>
                <Descricao>volume 00005 / 00007</Descricao>
                <Barcode>00078999994508738159</Barcode>
                <Quantidade>0/2</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>30</Numero>
                <Descricao>volume 00003 / 00007</Descricao>
                <Barcode>00078999994508738135</Barcode>
                <Quantidade>0/4</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>31</Numero>
                <Descricao>volume 00006 / 00007</Descricao>
                <Barcode>00078999994508738166</Barcode>
                <Quantidade>0/4</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>32</Numero>
                <Descricao>volume 00002 / 00007</Descricao>
                <Barcode>00078999994508738128</Barcode>
                <Quantidade>0/4</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>33</Numero>
                <Descricao>volume 00004 / 00007</Descricao>
                <Barcode>00078999994508738142</Barcode>
                <Quantidade>0/4</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>34</Numero>
                <Descricao>volume 00001 / 00008</Descricao>
                <Barcode>00078999994508737893</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>35</Numero>
                <Descricao>volume 00002 / 00008</Descricao>
                <Barcode>00078999994508737909</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>36</Numero>
                <Descricao>volume 00007 / 00007</Descricao>
                <Barcode>00078999994508738173</Barcode>
                <Quantidade>0/2</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
        </Itens>
        <Danfes>
            <Danfe>
                <Numero></Numero>
                <Serie>0</Serie>
                <Chave></Chave>
                <Emissao></Emissao>
                <Cnpj></Cnpj>
                <Volume>1</Volume>
            </Danfe>
            <Danfe>
                <Numero></Numero>
                <Serie>0</Serie>
                <Chave></Chave>
                <Emissao></Emissao>
                <Cnpj></Cnpj>
                <Volume>1</Volume>
            </Danfe>
        </Danfes>
        <Cliente>
            <Codigo>7867331000172</Codigo>
            <CodigoInterno>TESTE1234</CodigoInterno>
            <Latitude></Latitude>
            <Longitude></Longitude>
        </Cliente>
    </Documento>
</Documentos>

Important

It is possible to ask Support to verify that the "Name" field was sent separately in the "Subscription" tag

Click here to see the example
<Documentos>
    <Documento>
        <Tipo>mfe</Tipo>
        <Modelo></Modelo>
        <Numero>20201123671945</Numero>
        <Serie>3</Serie>
        <Emissao>2020-11-23 00:00:00</Emissao>
        <Cnpj></Cnpj>
        <Chave>2020112302401520201123671945723920</Chave>
        <Status>6 - Não entregue</Status>
        <Ocorrencias>
            <Ocorrencia>
                <Numero>21385</Numero>
                <Motivo>000 - Entrega Replicação</Motivo>
                <Data>2020-11-27 13:43:20</Data>
                <Assinatura>
                    <Nome>ABC</Nome>
                    <Documento>1234</Documento>
                    <Dado>url</Dado>
                </Assinatura>
                <Anotacao></Anotacao>
                <Fotos/>
                <CnpjTransportador>48484848484848</CnpjTransportador>
                <NomeTransportador>TSTT</NomeTransportador>
                <Romaneio></Romaneio>
                <Posicao>
                    <Latitude>0</Latitude>
                    <Longitude>0</Longitude>
                </Posicao>
                <Qualidade>
                <IndicePorcentagem>50.00</IndicePorcentagem>
                <Criterios>
                    <Criterio>
                        <Nome>INICIO_VIAGEM_DENTRO_CERCA_VIAGEM_ANTERIOR</Nome>
                        <PesoMediaPonderada>1</PesoMediaPonderada>
                        <Valor>1</Valor>
                    </Criterio>
                    <Criterio>
                        <Nome>CHEGADA_NA_CERCA_LOCAL_ENTREGA</Nome>
                        <PesoMediaPonderada>0</PesoMediaPonderada>
                        <Valor>0</Valor>
                    </Criterio>
                    <Criterio>
                        <Nome>FINALIZOU_COM_APONTAMENTOS</Nome>
                        <PesoMediaPonderada>0</PesoMediaPonderada>
                        <Valor>1</Valor>
                    </Criterio>
                    <Criterio>
                        <Nome>TEMPO_ENTRE_MARCAR_CHEGADA_E_FINAL_MAIOR_QUE_O_MINIMO</Nome>
                        <PesoMediaPonderada>1</PesoMediaPonderada>
                        <Valor>0</Valor>
                    </Criterio>
                </Criterios>
                </Qualidade>
                <Historico>
                    <Rota>
                        <Data>2020-11-24</Data>
                        <Nome></Nome>
                        <Numero>repl-EX_723_910</Numero>
                        <CodigoMotorista>victord</CodigoMotorista>
                        <Placa>ECI4772</Placa>
                        <Regiao>SPI</Regiao>
                        <CnpjTransportador>48484848484848</CnpjTransportador>
                    </Rota>
                    <Eventos>
                        <Apontamento>
                            <CriadoEm>2020-11-27 13:43:06</CriadoEm>
                            <Localizacao>
                                <Latitude>0</Latitude>
                                <Longitude>0</Longitude>
                            </Localizacao>
                            <Evento>Viagem Iniciada</Evento>
                            <Complemento>FARMAZUL COMERCIO FARMACEUTICO LT (Moto G (5) Plus - 06839cbda94bec18)</Complemento>
                            <CodigoMotorista>victord</CodigoMotorista>
                            <SincronizadoEm>2020-11-27 13:42:50</SincronizadoEm>
                        </Apontamento>
                        <Apontamento>
                            <CriadoEm>2020-11-27 13:43:13</CriadoEm>
                            <Localizacao>
                                <Latitude>0</Latitude>
                                <Longitude>0</Longitude>
                            </Localizacao>
                            <Evento>Chegada no cliente</Evento>
                            <Complemento>FARMAZUL COMERCIO FARMACEUTICO LT (Moto G (5) Plus - 06839cbda94bec18)</Complemento>
                            <CodigoMotorista>victord</CodigoMotorista>
                            <SincronizadoEm>2020-11-27 13:43:07</SincronizadoEm>
                        </Apontamento>
                        <Apontamento>
                            <CriadoEm>2020-11-27 13:43:19</CriadoEm>
                            <Localizacao>
                                <Latitude>0</Latitude>
                                <Longitude>0</Longitude>
                            </Localizacao>
                            <Evento>Itens conferidos</Evento>
                            <Complemento>mfe 20201123671945: 0/65 (Moto G (5) Plus - 06839cbda94bec18)</Complemento>
                            <CodigoMotorista>victord</CodigoMotorista>
                            <SincronizadoEm>2020-11-27 13:43:10</SincronizadoEm>
                        </Apontamento>
                        <Apontamento>
                            <CriadoEm>2020-11-27 13:43:19</CriadoEm>
                            <Localizacao>
                                <Latitude>0</Latitude>
                                <Longitude>0</Longitude>
                            </Localizacao>
                            <Evento>Entrega Finalizada</Evento>
                            <Complemento>FARMAZUL COMERCIO FARMACEUTICO LT (Moto G (5) Plus - 06839cbda94bec18)</Complemento>
                            <CodigoMotorista>victord</CodigoMotorista>
                            <SincronizadoEm>2020-11-27 13:43:11</SincronizadoEm>
                        </Apontamento>
                    </Eventos>
                </Historico>
            </Ocorrencia>
        </Ocorrencias>
        <Itens>
            <Item>
                <Numero>1</Numero>
                <Descricao>volume 00001 / 00001</Descricao>
                <Barcode>00078999994508177743</Barcode>
                <Quantidade>0/2</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
            <Item>
                <Numero>2</Numero>
                <Descricao>volume 00001 / 00001</Descricao>
                <Barcode>00078999994508227301</Barcode>
                <Quantidade>0/1</Quantidade>
                <Foto/>
                <Motivo></Motivo>
            </Item>
        </Itens>
        <Danfes>
            <Danfe>
                <Numero></Numero>
                <Serie>0</Serie>
                <Chave></Chave>
                <Emissao></Emissao>
                <Cnpj></Cnpj>
                <Volume>1</Volume>
            </Danfe>
            <Danfe>
                <Numero></Numero>
                <Serie>0</Serie>
                <Chave></Chave>
                <Emissao></Emissao>
                <Cnpj></Cnpj>
                <Volume>1</Volume>
            </Danfe>
        </Danfes>
        <Cliente>
            <Codigo>7867331000172</Codigo>
            <CodigoInterno>TESTE1234</CodigoInterno>
        </Cliente>
    </Documento>
</Documentos>