Skip to main content

sgrRetornaPosEntrega

Returns the position of a delivery.

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
AEintegerNo*Shipment authorization number.
nrDocumentstringNo*Document number.
nrCNPJstringNo*CNPJ of the company linked to the document.
cdCliintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method.
nrContCargastringNoField for free use by the customer (20 characters).

(*) To perform the search, it is mandatory to enter AE, nrDocument or nrCNPJ.

METHOD RETURN:

ReturnDataset: If the parameters are correct, the property will display:

FieldTypeDescription
CDVIAGintegerShipment authorization number
NRPLACACAVALOchar(7)Horse license plate
NRCPFMOT1char[11]Driver's CPF
DSNOMEstringDriver's name
CDDOCintegerDocument code
DTPREVISTAdatetimeEstimated delivery date
DTREALIZEDdatetimeRealized delivery date
CDPFJintegerCustomer code
CDMONITintegerMonitoring code
FLSITUATIONsmallintTrip status (0-New; 1-In progress; 2-Ended; 3-Canceled)
VLULTPOSLATrealLatitude of last position
VLULTPOSLONGrealLongitude of last position
V.DTINIdatetimeTrip start date
DTFIMdatetimeTrip end date
NRCONTROLECARGOstringField for free use by the customer (20 characters).
NRDOCstringDocument number

ReturnDescription: If there is an error when executing the method, the property will display:

ErrorDescription
No record found.