ICP-Brasil Certificate Endpoints
Define ICP-Brasil Certificate
ImportantDon’t forget to include your
tokenAPIandcryptKeyin the request.Ex.: <https://secure.d4sign.com.br/api/v1/safes?tokenAPI=
\{YOUR-TOKEN}&cryptKey=\{YOUR-CRYPT-KEY}>
List Defined Certificate
POST/certificate/{UUID-DOCUMENTO}/list
POST/certificate/{UUID-DOCUMENTO}/listThis method lists the digital certificate (ICP-Brasil) that has been defined for the signer.
{
"Content-Type": "application/json"
}{
"key_signer":"NDcwMzE2Nw=="
}{
"key_signer": "NDcwMzE2Nw==",
"uuid_document": "DOCUMENT-UUID",
"type": "2",
"pades": "",
"cpf": "CPF",
"cnpj": "CNPJ"
}| Parameter | Description |
|---|---|
| key_signer (required ) | Signer's key |
Add Certificate to Signer
POST/certificate/{UUID-DOCUMENTO}/add
POST/certificate/{UUID-DOCUMENTO}/addThis method will assign a digital certificate type to the signer.
{
"Content-Type": "application/json"
}{
"key_signer": "NDcwMzE2Nw==",
"document_type": "2",
"pades": "0",
"document_number": "CPF or CNPJ"
}{
"message": "Success"
}| Parameter | Description |
|---|---|
| key_signer (required ) | The signer’s unique key |
| document_type (required) | Defines the type of digital certificate required for signing. |
| 1 = Any certificate | |
| 2 = e-CPF 3 = e-CNPJ | |
| pades (optional) | Defines whether the signature should follow the PAdES standard. 1 = PAdES e CAdES 0 = CAdES |
| document_number (optional) | Provide the signer's CPF or CNPJ. Leave blank to accept any e-CPF or e-CNPJ certificate. |
Updated 9 months ago
