Skip to main content

Assignment Contract


This process generates an assignment contract between the Investment Fund and the Assignor and sends it for signature. To generate a contract, you need the fund's fund_class_key, provided by the QI CTVM team, as well as an assignment_contract_template_key, also provided by the team, which defines the contract parameters such as co-obligation, mandatory assignment documents, clauses, and so on.

Within the contract structure there are products, which identify, for example, an assignment configuration for a given asset type, for repurchase, and so forth. Two documents are sent for signature: the contract itself, with all the related parties involved — assignor, manager, guarantors, etc.; and the manager's declaration, which must be signed by the manager alone, attesting that all rules and requirements set out by CVM, Anbima and the Central Bank regarding the assignor's operation have been met, covering everything from risk analysis to AML, among others that can be consulted on the respective portals.

The contract flow is configurable: you can have the documents sent for signature as soon as they are generated, or have them wait for a manual submission. In addition, if the contract is proposed by a consultant, the manager's approval is required before it is sent for signature. Finally, if the assignor's registration has not yet been released, or is being updated, you must wait for the latest analysis to be concluded before sending it for signature. If the analysis is rejected, the contract is canceled as well.

Once both documents are signed by the required parties, the products become pending activation — configuring the assignment pipeline may take a few minutes — and finally you will be able to use the respective product's assignment_configuration_key to carry out the assignment between the fund and the assignor.

Optionally, you may define guarantors for the operation between the assignor and the fund, provided the contract template allows it. Guarantors must be registered beforehand together with the assignor, and are only referenced in the contract by their document number. Note that disbursement accounts are defined in the assignor's registration.

The entire contract signature flow is handled by our certification authority, CertifiQI, for greater convenience and ease. Tracking the signatures and the subsequent activation of the assignor happens automatically thanks to this feature.

Request​

ENDPOINT
/assignment_contract/assignment_contract
METHOD
POST
Request Body
{
"fund_class_key": "813ce253-bae5-4448-8d15-04c48d9991b7",
"assignor_document_number": "18.458.041/0001-91",
"assignment_contract_template_key": "2555f90a-4c6a-4d65-8bda-5d16f827840c",
"credit_limit": 1000000,
"external_id": "Contract 550",
"observation": "Contract regarding the link with the assignor's co-obligation",
"guarantors": [
{
"name": "Operation guarantor",
"document_number": "81.914.413/0001-83"
}
]
}

Body Params​

FieldTypeDescriptionCharacters
fund_class_key *stringUnique key identifying the Fund. Generated when the Fund is created and provided by the QI CTVM team.uuid key
assignment_contract_template_key *stringUnique key identifying the Contract Template. Also provided by the QI CTVM team.uuid key
assignor_document_number *stringAssignor's document number.CPF or CNPJ
credit_limitnumberCredit limit amount for the contract.-
external_idstringExternal identifier of the contract. Usually the contract number.1 to 255
observationstringObservation. Free-form field for any notes.1 to 500
guarantorsarrayGuarantors of the operation.See Guarantor Definition.

*Required fields

Notice

It is very important that guarantors are referenced both in the assignor's registration and at this stage. If a guarantor is referenced only in the registration and not in the contract, they will not sign the document. If referenced only in the contract and not in the registration, an error is returned.


Response​

STATUS
201
Response Body
{
"assignment_contract_key": "41d6ff41-1dac-4df7-9e50-d15210ec57f3",
"status": "pending_document",
"products": [
{
"product_key": "57efbd9f-0917-4c79-9a43-bc8f1039fc78",
"assignment_configuration_key": "372f0449-4043-4523-9f0f-dff70c65b9c9",
"product_type": "assignment_term",
"asset_type": "ccb",
"status": "pending_contract",
"required_documents": [
"ccb"
]
}
]
}
info

It is extremely important to save the assignment_contract_key, as it is used to characterize the assignment configurations generated by the contract later on, especially those originated by the branches flow in topic 5.2.2.6. You can retrieve the generated configurations using the GET described in topic 5.3.1.2.

Treatable Errors​

CodeHTTPCauseHow to resolve
ACT000001404Fund Class not found for the fund_class_key provided.Check whether the fund_class_key is correct and belongs to the authenticated manager.
ACT000016404Contract template not found for the assignment_contract_template_key provided.Check whether the assignment_contract_template_key is correct and linked to the fund_class_key.
ACT000123400The template is inactive and cannot be used to create contracts.Use an active template.
ACT000065404Assignor not registered for the proposing agent.Check whether the assignor_document_number corresponds to a registered assignor.
ACT000096400The assignor has no registered account.Register at least one disbursement account for the assignor before proposing a contract (see Account Maintenance).
ACT000081400The guarantor is not registered with the assignor.Each item in guarantors must correspond to a guarantor previously registered for the assignor, with status registered or pending_registry.
ACT000095409Duplicate case number (case_number) for this fund.Use a unique case_number within the same fund_class_key, or omit the field to have one generated automatically.

Assignment Contract Definition​

FieldTypeDescriptionCharacters
assignment_contract_key *stringUnique key identifying the contract.36
fund_class *objectFund object--
assignor *objectAssignor object.--
consultantobjectConsultant object. Only when the consultant is a party to the contract.--
assignment_contract_template *objectContract template object.--
attached_documents *arrayList of attached documents.See Attached Document Definition.
products *arrayList of products under the contract.See Product Definition.
proposal_agent *stringType of the agent proposing the contract.--
status *stringContract status.See Assignment contract status enumerators.
credit_limitnumberCredit limit submitted.--
external_idstringExternal identifier of the contract. Usually the contract number1 to 255
case_numberstringCase number. Unique per fund--
denial_reasonstringDetails of the manager's rejection.1 to 255
observationstringObservations submitted.1 to 500
creation_datetimestringDatetime the contract was created.--

Attached Document Definition​

FieldTypeDescriptionCharacters
document_key *stringUnique key identifying the document.36
document_type *stringDocument type.--
status *stringDocument status.See Document status enumerators.
document_template_keystringUnique key identifying the template that generated the document36
required_partiesarrayList of parties that sign the document in question--

Product Definition​

FieldTypeDescriptionCharacters
product_key *stringUnique key identifying the product.36
assignment_configuration_key *stringUnique key identifying the Assignment Configuration.36
asset_type *stringAsset type.--
status *stringProduct status.--

Guarantor Definition​

FieldTypeDescriptionCharacters
name *stringGuarantor's name.1 to 255
document_number *stringCPF or CNPJ.14 to 18

*Required fields

Notice

As already noted, the guarantor must be registered beforehand, together with the specific assignor.

Enumerators

Assignment Contract Status​

EnumeratorDescription
pending_documentPending document generation
sending_to_signatureBeing sent for signature
pending_signatureAvailable for the parties to sign
signedSigned
pending_manager_approvalPending manager approval
deniedRejected in the manager's review
pending_signature_submissionPending manual submission for signature
pending_assignor_registry_releasePending release of the linked assignor registration (under registration or update)
canceledCanceled

Attached Document Status​

EnumeratorDescription
pending_generatePending document generation
approvedDocument generated
signedDocument signed