Skip to main content

sgrAlterarStatusDoc

Allows you to change the status of the document

SoapAction

PARAMETERS

FieldTypeReq.Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method
cdtravelintegerYesBoarding authorization number
nrdocstringYesNumber of the document you want to change the status of
cdsituacaodocintegerYesEnter status code: 1 - Delivered 5 - Arrived at Customer 7 - Pending 8 - Canceled
vllatrealYesAddress latitude
vllongrealYesaddress longitude
dtbaixadatetimeNo*Date/Time low
dtarrivaldatetimeNo*Date/Time arrived at customer
dtiniciodocdatetimeNo*Loading/unloading start date/time
dtfimdocdatetimeNo*Loading/unloading end date/time
dtsaidadatetimeNo*Customer checkout date/time
justificationstringYesInform reason for change

METHOD RETURN:

ReturnDataset: If the document status change is successfully executed, the ReturnID field will return the value 0 (zero).

FieldTypeDescription
ReturnIDintvalue 0 (zero)
XML example

This is an example of XML GenerateAEv12, you can copy it to the right

<sgrAlterarStatusDoc xmlns="https://tempuri.org/">
<chaveacesso>SUA CHAVE DE ACESSO</chaveacesso>
<cdpas>23133</cdpas>
<cdclienteopentech>876321</cdclienteopentech>
<cdviagem>3883721</cdviagem>
<nrdoc>TESTE WS</nrdoc>
<cdsituacaodoc>1</cdsituacaodoc>
<vllat>0</vllat>
<vllong>0</vllong>
<dtbaixa>2023-03-21 08:30</dtbaixa>
<dtchegada>2023-03-21 08:30</dtchegada>
<dtiniciodoc>2023-03-18 08:30</dtiniciodoc>
<dtfimdoc>2023-03-21 08:30</dtfimdoc>
<dtsaida>2023-03-18 08:30</dtsaida>
<justificativa>JUSTIFICATIVA TESTE</justificativa>
</sgrAlterarStatusDoc>