Skip to main content

sgrRetornaEnderecosLocalEntrega

Returns alternative addresses for a delivery location.

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method.
nrcnpjcpfstringYesCNPJ of the delivery location.

METHOD RETURN:

ReturnDataset: If the parameters are correct, the property will display:

FieldTypeDescription
NRCGCCPFstringrecipient's CNPJ
DSRUAstringStreet of the delivery location
NRRUAchar(6)Location address number
DSCOMPLRUAstringDelivery location address complement
DSBAIRROstringNeighborhood
DSNOMECIDstringCity - State
VLSEQCLIstringAddress sequence
CDCIDintegerCity code
NRFONE1char(12)Phone 1 of the delivery location
NRFONE2char(12)Phone 2 of delivery location
NRCEPchar(8)Zip code of delivery location
VLLATrealLatitude of delivery location
VLLONGrealLongitude of delivery location

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

ErrorDescription
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.