sgrGeraAeProgramacao
Generate the trip from a schedule.
PARAMETERS:
| Field | Type | Description |
|---|---|---|
| keyaccess | string | Key returned by the sgrLogin method. |
| cdpas | integer | Access PAS code. |
| cdcliente | integer | Client code, returned by the sgrListaEmpresasUuario method. |
| cdProgramming | integer | Programming code that will generate the AE. |
| nrPlacaCavalo | string | Horse license plate. |
| nrPlacaCarreta1 | string | Carreta license plate. Send '' (blank) when there is none. |
| nrPlacaCarreta2 | string | Plate of the second trailer. Send '' (blank) when there isn't one. |
| nrDocDriver1 | string | Driver's document number. |
| dtPrevIni | string | Estimated date and time for the start of the trip. Send the date in “YYYY-MM-DD HH:MM” format. |
| dtPrevEnd | string | Estimated date and time of end of trip. Send the date in the format “YYYY-MM-DD HH:MM”. |
| cdCidOrigin | integer | Origin city code, returned by the sgrListCities method. |
| cdCidDestination | integer | Destination city code, returned by the sgrListCities method. |
| cdRoute | integer | Code 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. |
| cdTransp | integer | Carrier company code, returned by the sgrListCarriers method. If it doesn't exist, send the customer's own code [cdclient]. |
| dscontroleviag( 1 to 10) | string | Programming controls. Send “” (blank) when it doesn't exist. |