POST /dict/entries
keys.ind.writeRequest
- Natural Person
- Legal Person
{
"entry": {
"account": {
"accountNumber": "0007654321",
"accountType": "cacc",
"branch": "0001",
"openingDate": "2010-01-10T03:00:00Z",
"participant": "12345678"
},
"key": "+5561988880000",
"keyType": "phone",
"owner": {
"name": "João Silva",
"taxIdNumber": "11122233300",
"type": "natural_person"
}
},
"reason": "user_requested",
"requestId": "a946d533-7f22-42a5-9a9b-e87cd55c0f4d"
}
{
"entry": {
"account": {
"accountNumber": "0007654321",
"accountType": "cacc",
"branch": "0001",
"openingDate": "2010-01-10T03:00:00Z",
"participant": "12345678"
},
"key": "+5561988880000",
"keyType": "phone",
"owner": {
"name": "João Silva LTDA.",
"tradeName": "João Silva",
"taxIdNumber": "11122233344400",
"type": "legal_person"
}
},
"reason": "user_requested",
"requestId": "a946d533-7f22-42a5-9a9b-e87cd55c0f4d"
}
Responses
The responses below represent Success(201) from the consumption.
- 🟢 201
- 🟢 201
- 🔴 400
- 🔴 401
- 🔴 403
- 🔴 500
- 🔴 503
- 🔴 504
// Natural Person Owner
{
"responseTime": 0,
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"entry": {
"key": "11122233300",
"keyType": "CPF",
"account": {
"participant": "12345678",
"branch": "0001",
"accountNumber": "0007654321",
"accountType": "CACC",
"openingDate": "2010-01-10T03:00:00.000Z"
},
"owner": {
"type": "NATURAL_PERSON",
"taxIdNumber": "11122233300",
"name": "João Silva"
},
"creationDate": "2019-11-18T03:00:00.000Z",
"keyOwnershipDate": "2019-11-18T03:00:00.000Z"
}
}
// Legal Person Owner
{
"responseTime": 0,
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"entry": {
"key": "11122233344400",
"keyType": "CNPJ",
"account": {
"participant": "12345678",
"branch": "0001",
"accountNumber": "0007654321",
"accountType": "CACC",
"openingDate": "2010-01-10T03:00:00.000Z"
},
"owner": {
"type": "LEGAL_PERSON",
"taxIdNumber": "11122233344400",
"name": "João Silva LTDA.",
"tradeName": "João Silva"
},
"creationDate": "2019-11-18T03:00:00.000Z",
"keyOwnershipDate": "2019-11-18T03:00:00.000Z"
}
}
// Claim ownership
{
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Entry owned by different person",
"status": 400,
"title": "Bad Request",
"type": "https://dict.pi.rsfn.net.br/api/v2/error/EntryKeyOwnedByDifferentPerson"
},
"responseTime": 0
}
OU
// Claim portability
{
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Entry in custody of different participant: 08561701",
"status": 400,
"title": "Bad Request",
"type": "https://dict.pi.rsfn.net.br/api/v2/error/EntryKeyInCustodyOfDifferentParticipant"
},
"responseTime": 0
}
OU
// Invalid key
{
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Entry has invalid fields",
"status": 400,
"title": "Entry is invalid",
"type": "https://dict.pi.rsfn.net.br/api/v2/error/EntryInvalid",
"violations": [
{
"property": "entry.key",
"reason": "Value does not match regex '^\\+[1-9]\\d{1,14}$'",
"value": "61988887777"
}
]
},
"responseTime": 0
}
{
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Participant is not authenticated",
"status": 401,
"title": "Unauthorized"
},
"responseTime": 0
}
{
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Participant is not allowed to access this resource",
"status": 403,
"title": "Forbidden"
},
"responseTime": 0
}
{
"responseTime": 0,
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Our service is currently experiencing an issue. We apologize for the inconvenience and are working to resolve it as soon as possible.",
"status": 500,
"title": "Internal Server Error"
}
}
{
"responseTime": 0,
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Service is under scheduled maintenance",
"status": 503,
"title": "Service Unavailable",
"type": "https://dict.pi.rsfn.net.br/api/v2/error/ServiceUnavailable"
}
}
{
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Service took to ong to respond",
"status": 504,
"title": "Timeout Error"
},
"responseTime": 0
}