Skip to main content

sgrRetornaPJ

Returns the data of the Legal Entity.

SoapAction

PARAMETERS

FieldTypeReqDescription
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdCountryOriginintegerYesCountry of origin code, returned by the sgrListCountry method
nrDocumentstringYesDocument number for search (CPF or CNPJ).

METHOD RETURN:

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

FieldTypeDescription
CDPFJintegerPerson code
FLTIPOPESSOAintegerType of Person
NRCGCCPFstringCNPJ number
DSNOMEstringName
DSStreetstringAddress
DSBAIRROstringAddress Neighborhood
NRStREETstringAddress number
DSCOMPLRUAstringAddress Complement
NRCEPstringZip Code
CDCIDintegerCity code
NRFONE1stringPhone number 1
NRFONE2stringPhone number 2
NRFAXstringFax number
DSEMAILstringE-mail
VLLATfloatLatitude of address
VLLONGfloatLongitude of address
CIDADEENDERECOstringCity/state of residence
NRRNTRCstringANTT registration number
DTVALIDADERNTRCdateANTT registration validity date
nrDD1stringDDD of phone 1 (NRFONE1)
nrDD2stringDDD of phone 2 (NRFONE2)
nrDDDFaxstringDDD of FAX (NRFAX)

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

ErrorDescription
The CPF or CNPJ entered is invalid The document format entered is invalid.You must enter it again.
CNPJ Not RegisteredThe CNPJ entered was not found, you must check the data entered and try again.