Skip to main content

sgrGeraAeProgramacao

Generate the trip from a schedule.

SoapAction

PARAMETERS:

FieldTypeDescription
keyaccessstringKey returned by the sgrLogin method.
cdpasintegerAccess PAS code.
cdclienteintegerClient code, returned by the sgrListaEmpresasUuario method.
cdProgrammingintegerProgramming code that will generate the AE.
nrPlacaCavalostringHorse license plate.
nrPlacaCarreta1stringCarreta license plate. Send '' (blank) when there is none.
nrPlacaCarreta2stringPlate of the second trailer. Send '' (blank) when there isn't one.
nrDocDriver1stringDriver's document number.
dtPrevInistringEstimated date and time for the start of the trip. Send the date in “YYYY-MM-DD HH:MM” format.
dtPrevEndstringEstimated date and time of end of trip. Send the date in the format “YYYY-MM-DD HH:MM”.
cdCidOriginintegerOrigin city code, returned by the sgrListCities method.
cdCidDestinationintegerDestination city code, returned by the sgrListCities method.
cdRouteintegerCode of the route to be used on the trip. This code is returned by the sgrListRoutes method, and will be mandatory depending on the risk management rule configured. Send -1 when it doesn't exist.
cdTranspintegerCarrier company code, returned by the sgrListCarriers method. If it doesn't exist, send the customer's own code [cdclient].
dscontroleviag( 1 to 10)stringProgramming controls. Send “” (blank) when it doesn't exist.