Cpf Sync (Individual)
This is an exclusive service for consulting Brazilian people. This feature queries basic personal information using the CPF and date of birth provided and returns the data received in the same request.
Both cpf and birthDate are required. The birthDate parameter accepts the formats DD/MM/YYYY or YYYY-MM-DD.
The cpf sync service returns whether the provided CPF is valid, as well some basic information about the holder.
Permission required: Create Services
If necessary, the source may also return the mother's name. To retrieve this information, the parameter origin=2 must be included in the query URL
https://api.us.prd.caf.io/v1/services?origin=2Your access token. See more in the 'Authentication' topic of this section.
The name of the requested service, for Basic Data Sync (Individual) need be "cpf_sync"
cpf_syncExample: cpf_syncAll fields passed to the metadata will be returned in the response, this field is useful to bring an internal identifier of the request for example
Success
Invalid provided body
Invalid token
The token does not have permission to access this resource
Internal server error
POST /v1/services/ HTTP/1.1
Host: api.us.prd.caf.io
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 89
{
"service": "cpf_sync",
"parameters": {
"cpf": "text",
"birthDate": "14/02/1990"
},
"metadata": {}
}{
"requestId": "text",
"message": "text",
"data": {
"service": "cpf_sync",
"serviceData": {
"taxIdNumber": "44443333333",
"name": "Holder name",
"taxIdStatus": "REGULAR",
"birthDate": "2021-01-11",
"issueDate": "14/02/2013",
"fallback": false
},
"metadata": {}
}
}Last updated

