sgrAlterarStatusDoc
Allows you to change the status of the document
PARAMETERS
Field | Type | Req. | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListaPASUsuario method |
cdcliente | integer | Yes | Customer code, returned by the sgrListaEmpresasPASUsuario method |
cdtravel | integer | Yes | Boarding authorization number |
nrdoc | string | Yes | Number of the document you want to change the status of |
cdsituacaodoc | integer | Yes | Enter status code: 1 - Delivered 5 - Arrived at Customer 7 - Pending 8 - Canceled |
vllat | real | Yes | Address latitude |
vllong | real | Yes | address longitude |
dtbaixa | datetime | No* | Date/Time low |
dtarrival | datetime | No* | Date/Time arrived at customer |
dtiniciodoc | datetime | No* | Loading/unloading start date/time |
dtfimdoc | datetime | No* | Loading/unloading end date/time |
dtsaida | datetime | No* | Customer checkout date/time |
justification | string | Yes | Inform reason for change |
METHOD RETURN:
ReturnDataset: If the document status change is successfully executed, the ReturnID field will return the value 0 (zero).
Field | Type | Description |
---|---|---|
ReturnID | int | value 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>