sgrRetornaPJ
Returns the data of the Legal Entity.
PARAMETERS
Field | Type | Req | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListaPASUsuario method |
cdCountryOrigin | integer | Yes | Country of origin code, returned by the sgrListCountry method |
nrDocument | string | Yes | Document number for search (CPF or CNPJ). |
METHOD RETURN:
ReturnDataset: If the parameters are correct, the property will display:
Field | Type | Description |
---|---|---|
CDPFJ | integer | Person code |
FLTIPOPESSOA | integer | Type of Person |
NRCGCCPF | string | CNPJ number |
DSNOME | string | Name |
DSStreet | string | Address |
DSBAIRRO | string | Address Neighborhood |
NRStREET | string | Address number |
DSCOMPLRUA | string | Address Complement |
NRCEP | string | Zip Code |
CDCID | integer | City code |
NRFONE1 | string | Phone number 1 |
NRFONE2 | string | Phone number 2 |
NRFAX | string | Fax number |
DSEMAIL | string | |
VLLAT | float | Latitude of address |
VLLONG | float | Longitude of address |
CIDADEENDERECO | string | City/state of residence |
NRRNTRC | string | ANTT registration number |
DTVALIDADERNTRC | date | ANTT registration validity date |
nrDD1 | string | DDD of phone 1 (NRFONE1) |
nrDD2 | string | DDD of phone 2 (NRFONE2) |
nrDDDFax | string | DDD of FAX (NRFAX) |
ReturnDescription: If there is an error when executing the method, the property will display:
Error | Description |
---|---|
The CPF or CNPJ entered is invalid The document format entered is invalid. | You must enter it again. |
CNPJ Not Registered | The CNPJ entered was not found, you must check the data entered and try again. |