API Reference
Log In

Key Creation

This endpoint is exclusive to indirect participants. In the case you're a BaaS client, check the endpoint in this collection.

Request

POST 'https://apisandbox.delbank.com.br/indirect-pix/api/v1/dict/entries'
curl --request POST \
     --url https://apisandbox.delbank.com.br/indirect-pix/api/v1/dict/claims \
     --header 'IdempotencyKey: 9d16ea35-8a85-49ea-a41e-bcf56c677129' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'x-delbank-api-key: {{apiKey}}' \
     --data '
{
    "type": "DOCUMENT",
    "account": {
        "type": "CURRENT",
        "number": "2000",
        "branch": "0001",
        "createdAt": "2023-05-07T16:36:08.111Z",
        "holder": {
            "document": "06130856555",
            "name": "NATURAL PERSON LOREN IPSUN LOREN",
            "type": "NATURAL"
        }
    }
}
'
curl --request POST \
     --url https://apisandbox.delbank.com.br/indirect-pix/api/v1/dict/claims \
     --header 'IdempotencyKey: 9d16ea35-8a85-49ea-a41e-bcf56c677129' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'x-delbank-api-key: {{apiKey}}' \
     --data '
{
    "key": "+5579999999999",
    "type": "PHONE",
    "account": {
        "type": "CURRENT",
        "number": "2000",
        "branch": "0001",
        "createdAt": "2023-05-07T16:36:08.111Z",
        "holder": {
            "document": "06130856555",
            "name": "NATURAL PERSON LOREN IPSUN LOREN",
            "type": "NATURAL"
        }
    }
}
'

Headers

NameDescription
x-delbank-api-keyRequired. API key
IdempotencyKeyRequired. Request's idempotency key. Provide a GUID, being a new one for each request.

Body

NameTypeDescription
typestringRequired. Key type. Domains:
DOCUMENT - CPF or CNPJ (This field will be utilized in the account.holder.document as Pix key to create a revindication);
EMAIL - Inform in the case where a key being the e-mail type.
PHONE - Inform in the case where a key being the phone type.
accountobjectRequired. Object containing the bank account information of the client that’s creating the revindication.
account.numberstringClient bank account number
Required
Min length: 1
Max length: 20
account.branchstringClient bank account branch
Required
Length: 4
account.typeenumRequired. Client bank account type.
Domains:
CURRENT - Current account
PAYMENT - Payment account
SAVING - Savings account
SALARY - Salary account
account.createdAtdatetimeRequired. Bank account creation date.
Format: yyyy-MM-dd'T'HH:mm:ss:sssZ
account.holderobjectRequired. Object containing the bank account holder information
account.holder.documentstringRequired. Hoder name
account.holder.namestringRequired. Holder’s document (CPF or CNPJ)
account.holder.typeenumRequired.Holder’s bank account type. Domains:
NATURAL - Natural Person
LEGAL - Legal Person
{
    "type": "EVP",
    "account": {
        "type": "CURRENT",
        "number": "10110",
        "branch": "0001",
        "createdAt": "2023-05-07T16:36:08.123Z",
        "holder": {
            "document": "15879803040",
            "name": "NATURAL PERSON LOREN IPSUN LOREN",
            "type": "NATURAL"
        }
    }
}
{
    "type": "EMAIL",
    "key": "[email protected]",
    "account": {
        "type": "CURRENT",
        "number": "1011",
        "branch": "0001",
        "createdAt": "2023-05-07T16:36:08.789Z",
        "holder": {
            "document": "96814572001",
            "name": "NATURAL PERSON LOREN IPSUN LOREN",
            "type": "NATURAL"
        }
    }
}
{
    "type": "PHONE",
    "key": "+5555991000025",
    "account": {
        "type": "PAYMENT",
        "number": "10001",
        "branch": "0001",
        "createdAt": "2023-07-20T23:00:00.000Z",
        "holder": {
            "name": "TESTE DICT OK",
            "document": "60680955097",
            "type": "NATURAL"
        }
    }
}
{
    "type": "DOCUMENT",
    "account": {
        "type": "CURRENT",
        "number": "1002",
        "branch": "0001",
        "createdAt": "2023-05-07T16:36:08.999Z",
        "holder": {
            "document": "49862900024",
            "name": "LOREM IPSUM DOLOR SIT",
            "type": "NATURAL"
        }
    }
}
{
    "type": "DOCUMENT",
    "account": {
        "type": "CURRENT",
        "number": "1001",
        "branch": "0001",
        "createdAt": "2023-05-07T16:36:08.876Z",
        "holder": {
            "document": "15060996000106",
            "name": "LEGAL PERSON LOREN IPSUN LOREN",
            "type": "LEGAL"
        }
    }
}

Response

The `status code 200`` will indicate success in the transaction.

Being well-succeeded, the return will have the following fields:

{
    "id": "7fa3dc4a-f45e-4c39-8999-da49c76c1174",
    "key": "15060996000106",
    "type": "DOCUMENT",
    "createdAt": "2023-11-08T03:18:43.853Z",
    "account": {
        "number": "1001",
        "branch": "0001",
        "type": "CURRENT",
        "createdAt": "2023-05-07T16:36:08.876Z",
        "participant": {
            "name": "PARTICIPANT NAME",
            "ispb": "99999999"
        },
        "holder": {
            "name": "LEGAL PERSON LOREN IPSUN LOREN",
            "document": "15060996000106",
            "type": "LEGAL"
        }
    }
}

Body

NameTypeDescription
typestringKey type
keystringKey value (IF the key is an EVP, then the returned value will be a GUID)
accountobjectInformation about a client bank account that is creating a key
account.numberstringClient’s bank account number
account.branchstringClient’s bank account branch
account.typeenumClient’s bank account type
account.createdAtdatetimeBank account opening date
Format: yyyy-MM-dd'T’HH:mm:ss.sssZ
participantobjectInformation about the key’s participant holder
participant.namestringParticipant’s name
participant.ispbstringParticipant’s ISPB
account.holderobjectInformation about the bank account holder
account.holder.documentstringHolder’s name
account.holder.namestringHolder’s document
account.holder.typeenumType of the holder’s document. Domains:
NATURAL - Natural Person
LEGAL - Legal Person