sgrRetornaEnderecosLocalEntrega
Returns alternative addresses for a delivery location.
PARAMETERS
| Field | Type | Required? | Description |
|---|---|---|---|
| keyaccess | string | Yes | Key returned by the sgrLogin method. |
| cdpas | integer | Yes | PAS code, returned by the sgrListaPASUsuario method |
| cdcliente | integer | Yes | Customer code, returned by the sgrListaEmpresasPASUsuario method. |
| nrcnpjcpf | string | Yes | CNPJ of the delivery location. |
METHOD RETURN:
ReturnDataset: If the parameters are correct, the property will display:
| Field | Type | Description |
|---|---|---|
| NRCGCCPF | string | recipient's CNPJ |
| DSRUA | string | Street of the delivery location |
| NRRUA | char(6) | Location address number |
| DSCOMPLRUA | string | Delivery location address complement |
| DSBAIRRO | string | Neighborhood |
| DSNOMECID | string | City - State |
| VLSEQCLI | string | Address sequence |
| CDCID | integer | City code |
| NRFONE1 | char(12) | Phone 1 of the delivery location |
| NRFONE2 | char(12) | Phone 2 of delivery location |
| NRCEP | char(8) | Zip code of delivery location |
| VLLAT | real | Latitude of delivery location |
| VLLONG | real | Longitude of delivery location |
ReturnDescription: If there is an error when executing the method, the property will display:
| Error | Description |
|---|---|
| There was an error performing the search. | This error may be caused by an incorrect parameter, the field to be corrected will be indicated in the returnDataset property. This means you need to check the parameters and run the method again. It may also indicate a timeout or a dropped connection to the database. It is necessary to pass on the data entered, as well as the name of the method, the issue time and the customer code to the following e-mail address: [email protected] so that the error can be validated. |