Skip to main content

sgrFinalizarViagem

Finalizes the Shipment Authorization.

SoapAction

PARAMETERS

FieldTypeRequired?Description
accessKeystringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesClient code, returned by the sgrListaEmpresasPASUsuario method.
cdviagemintegerYesBoarding authorization number.

METHOD RETURN:

When the trip is completed, the ReturnID field will return the value 0 (zero).

ReturnDescription: If there is an error in the execution of the method, the property will display:

ErrorDescription
Unable to complete the trip. Error in the execution of the SPFor this error, the method may contain the details listed in Table 8.