Skip to main content

sgrListaAEporData

Returns a list of Shipment Authorizations by date.

SoapAction

PARAMETERS

FieldTypeReq.?Description
accesskeystringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesClient code, returned by the sgrListaEmpresasPASUsuario method.
initialdatadatetimeYesStart date for the search.
finaldatadatetimeYesEnd date for the search.
typeintegerYesEnter 1 for the expected date, and 2 for the actual date.
platestringNoVehicle plate number.
cdDestintegerNoRecipient code, returned by the sgrListaDestinatarios method.

METHOD RETURN:

ReturnDataset: If the parameters are valid, the dataset will display:

FieldTypeDescription
CDVIAGintegerBoarding authorization number
NRPLACACAVALOchar(7)Horse license plate
NRPLACACARRETAchar(7)Trailer license plate
DESTINATARIOstringRecipient
DTPREVINIdatetimeTrip start date
DTPREVFIMdatetimeTrip end date
DTINIdatetimeTrip start date
DTFIMdatetimeTrip end date
DSCIDORIGEMstringName of the city of origin
ESTADOORIchar(2)State of origin (acronym)
DSCIDDESTINOstringName of the city of destination
ESTADODESchar(2)Destination state (acronym)
NRCONTROLECARGAstringField for free use by the customer (20 characters).
FLSITUACAOsmallintTrip status (code)
SITUACAOstringTrip status description
NRCPFMOT1char(11)Driver's CPF
MOTORISTA1stringDriver's name
CDOPEMISSORintegerAE issuing user code
OPEMISSORchar(10)AE issuing user

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

ErrorDescription
Invalid type!Must be '1' to list by estimated start date or '2' for actual start date.
There are no Authorizations for the period entered!