Skip to main content

sgrListaAE

Returns a list of Shipment Authorizations by date, recipient, type of operation, city of destination or origin, estimated time of arrival, carrier.

SoapAction

PARAMETERS

FieldTypeReq.?Description
accesskeystringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesClient code, returned by the sgrListaEmpresasPASUsuario method.
initialDatedatetimeYesStart date for the search.
finalDatedatetimeYesEnd date for the search.
typeintegerYesEnter 1 for the expected date, and 2 for the actual date.
platestringNoVehicle license plate number.
cdDestintegerNoRecipient code, returned by the sgrListaDestinatarios method.
tipoOperacaointegerNoOperation type code. This code is returned by the sgrListaTiposOperacao method.
cdCidOrigintegerNoOrigin city code, returned by the sgrListaCidades method.
cdCidDestintegerNoDestination city code, returned by the sgrListaCidades method.
dtPrevisaoChegadastringNoEstimated arrival date. Send in “YYYY-MM-DD” format.
cdTranspintegerNoTransport company code. This code is returned by the sgrListaTransportadoras method.

METHOD RETURN:

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

FieldTypeDescription
CDVIAGintegerBoarding authorization number
NRPLACACARRETAchar(7)Truck plate
DESTINATARIOstringRecipient
DTPREVINIdatetimeEstimated start date of the trip
DTPREVFIMdatetimeEstimated end date of the trip
DTINIdatetimeStart date of the trip
DTFIMdatetimeEnd date of the trip
DSCIDORIGEMstringName of the city of origin
ESTADOORIchar(2)State of origin (acronym)
DSCIDDESTINOstringName of the city of destination
ESTADODESchar(2)State of destination (acronym)
NRCONTROLECARGAstringField for free use by the customer (20 characters).
FLSITUACAOsmallintTrip status (code)
SITUACAOstringDescription of the trip status
NRCPFMOT1char(11)Driver's CPF
MOTORISTA1stringDriver's name
CDOPEMISSORintegerAE issuing user code
OPEMISSORchar(10)AE issuing user
CDCIDORIGintegerOrigin city code
CDCIDDESTintegerDestination city code
CDTRANSPintegerTransport company code
CDPRODintegerShipping authorization product code
DTPREVISTAdatetimeEstimated arrival date
DTINCLdatetimeAE inclusion date

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!