Skip to main content

Issue Bank Relationship Letter

The bank relationship letter ("Declaração de Relacionamento") is a PDF document digitally signed by QI SCD that confirms the active relationship between the customer and the institution, including account details. Once issued, the signed document is emailed to the recipients informed in the request.

Request

ENDPOINT
/account/ACCOUNT_KEY/ownership_letter
METHOD
POST

Path parameters

FieldTypeDescription
ACCOUNT_KEYUUIDKey of the account the letter will be issued for

Body parameters

FieldTypeDescriptionMax. Characters
emails *array of stringsList of e-mails that will receive the signed PDF. Minimum 1 address.-
Request Body
{
"emails": ["contact@customer.com", "finance@customer.com"]
}

Response

STATUS
200
Response Body
{
"document_key": "f1b8e3a2-c5d4-4e9f-a1b2-3c4d5e6f7a8b",
"account_key": "3e4b8746-da58-4799-bcd0-063326428d3f",
"document_type": "ownership_letter",
"document_status": "pending",
"external_identifier_key": "certifiqi-batch-group-key",
"file_url": "https://api.certifiqi.com.br/events/certifiqi-batch-group-key",
"payload": {
"emails": ["contact@customer.com", "finance@customer.com"]
},
"created_at": "2026-05-28T19:50:47",
"updated_at": "2026-05-28T19:50:47"
}

Response Body parameters

FieldTypeDescriptionMax. Characters
document_keyUUIDInternal QI identifier of the document.36
account_keyUUIDKey of the source account.36
document_typestringDocument type. Always ownership_letter on this route.-
document_statusstringCurrent document status. See Enumerators document_status.-
external_identifier_keystringExternal identifier of the signature batch.300
file_urlstringCurrent document URL. While pending, points to signature tracking; once sent, points to the signed PDF.-
payloadobjectEcho of the request body.-
created_atdatetime ZuluDocument creation date.20
updated_atdatetime ZuluLast document update.20

Enumerators document_status

EnumeratorDescription
pendingDocument created, awaiting signature finalization.
sentDocument signed and e-mails dispatched to recipients.

Once signing is complete (status sent), use this endpoint to obtain an expirable link to download the signed PDF, generated on demand by CertifIQI. While the document is still pending — that is, before the signature webhook has been received — the URL does not yet exist and the endpoint returns an error.

Request

ENDPOINT
/account/ACCOUNT_KEY/document/DOCUMENT_KEY/url
METHOD
GET

Path parameters

FieldTypeDescription
ACCOUNT_KEYUUIDKey of the account the document belongs to.
DOCUMENT_KEYUUIDDocument identifier (document_key) returned when the letter was issued.

Response

STATUS
200
Response Body
{
"document_key": "f1b8e3a2-c5d4-4e9f-a1b2-3c4d5e6f7a8b",
"document_type": "ownership_letter",
"document_status": "sent",
"url": "https://api.certifiqi.com.br/expirable/signed_document.pdf?token=abc123"
}

Response Body parameters

FieldTypeDescriptionMax. Characters
document_keyUUIDInternal document identifier at QI.36
document_typestringDocument type. ownership_letter for the bank letter.-
document_statusstringCurrent document status. The URL is only returned when sent.-
urlstringExpirable link to download the signed PDF. Generated on demand; expires after a short period.-

Possible errors

StatusDescription
404Account or document not found for the given identifiers.
409Document still being signed (pending); the signed URL is not available yet.