Skip to main content

Contract retrieval


Contract Retrieval​

Returns an assignment contract, with its documents and products. It is the way to check the status of each product and the assignment_configuration_key generated after signature.

Available on
ProfileHostRequired permission
Managermanager-apiRead
Consultantconsultant-apiView assignment contracts

Base URL for each host: Environments (Hosts).

Request​

ENDPOINT
/assignment_contract/assignment_contract/ASSIGNMENT_CONTRACT_KEY
METHOD
GET

Response​

STATUS
200
Response Body
{
"assignment_contract_key": "UUID",
"fund_class": {
"fund_class_key": "UUID",
"name": "SAMPLE FUND NAME",
"document_number": "22.233.344/0001-83",
"manager": {
"manager_key": "UUID",
"document_number": "33.344.455/0001-83",
"manager_name": "SAMPLE MANAGER NAME"
}
},
"assignor": {
"assignor_key": "UUID",
"document_number": "55.666.777/0001-81",
"name": "SAMPLE ASSIGNOR NAME"
},
"assignment_contract_template": {
"assignment_contract_template_key": "UUID",
"document_template_key": "UUID",
"name": "TEMPLATE NAME",
"borrower_agreement": null
},
"attached_documents": [
{
"document_key": "UUID",
"document_type": "assignment_contract",
"status": "pending_generate",
"document_template_key": "UUID",
"required_parties": ["manager", "assignor", "consultant"]
}
],
"proposal_agent": "consultant",
"status": "pending_document",
"credit_limit": 1000000.0,
"external_id": "EXTERNAL ID",
"case_number": "CASE NUMBER",
"denial_reason": null,
"observation": "OBSERVATION",
"disbursement_account_key": null,
"creation_datetime": "YYYY-MM-DDTHH:MM:SSZ",
"products": [
{
"product_key": "UUID",
"assignment_configuration_key": null,
"fund_class_configuration_key": "UUID",
"product_type": "assignment_term",
"asset_type": "ccb",
"status": "pending_contract_signature",
"has_coobligation": true
}
],
"signature_batch_key": "UUID"
}

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 numberUp to 50
case_numberstringCase number. Unique per fund--
denial_reasonstringDetails of the manager's rejection.Up to 500
observationstringObservations submitted.Up to 1000
disbursement_account_keystringDisbursement account fixed in the contract, when the template requires one.36
signature_batch_keystringIdentifier of the signature batch.36
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_keystringKey identifying the assignment configuration. Required in the asset purchase pipeline. null until the product becomes active.36
fund_class_configuration_key *stringFund configuration that originated the product.36
product_type *stringProduct type (for example, assignment_term, assignment_repurchase).--
asset_type *stringAsset type.--
has_coobligation *booleanWhether there is co-obligation by the assignor.--
status *stringProduct status. See Product Status.--

Errors​

StatusCodeWhen it happens
404ACT000023assignment_contract_key not found.
403ACT000024The contract exists, but the authenticated agent is not a party to it.

Authentication, permission and host errors: see API errors.


Assignment Contract Listing​

Lists the assignment contracts visible to the authenticated agent, with pagination.

Available on
ProfileHostRequired permission
Managermanager-apiRead
Consultantconsultant-apiView assignment contracts

Base URL for each host: Environments (Hosts).

Request​

ENDPOINT
/assignment_contract/assignment_contracts
METHOD
GET

Query Params​

ParameterDescription
assignor_document_numberAssignor's document
fund_class_document_numberFund's document
fund_class_keyUnique identifier of the fund (UUID)
statusContract status. Accepts several values, comma-separated
proposal_agent_typeWho proposed the contract: manager or consultant
case_numberCase number
start_dateStart date (YYYY-MM-DD)
end_dateEnd date (YYYY-MM-DD)
pagePage, starting at 0. Default 0
limitItems per page. Default 20, maximum 100

Use is_last_page from the response to know when to stop paginating.

Response​

STATUS
200
Response Body
{
"data": [
{
"assignment_contract_key": "UUID",
"fund_class": {
"fund_class_key": "UUID",
"name": "SAMPLE FUND NAME",
"document_number": "22.233.344/0001-83",
"manager": {
"manager_key": "UUID",
"document_number": "33.344.455/0001-83",
"manager_name": "SAMPLE MANAGER NAME"
}
},
"assignor": {
"assignor_key": "UUID",
"document_number": "55.666.777/0001-81",
"name": "SAMPLE ASSIGNOR NAME"
},
"assignment_contract_template": {
"assignment_contract_template_key": "UUID",
"document_template_key": "UUID",
"name": "TEMPLATE NAME",
"borrower_agreement": null
},
"attached_documents": [
{
"document_key": "UUID",
"document_type": "assignment_contract",
"status": "pending_generate",
"document_template_key": "UUID",
"required_parties": ["manager", "assignor", "consultant"]
}
],
"proposal_agent": "consultant",
"status": "pending_document",
"credit_limit": 1000000.0,
"external_id": "EXTERNAL ID",
"case_number": "CASE NUMBER",
"denial_reason": null,
"observation": "OBSERVATION",
"disbursement_account_key": null,
"creation_datetime": "YYYY-MM-DDTHH:MM:SSZ",
"products": [
{
"product_key": "UUID",
"assignment_configuration_key": null,
"fund_class_configuration_key": "UUID",
"product_type": "assignment_term",
"asset_type": "ccb",
"status": "pending_contract_signature",
"has_coobligation": true
}
],
"signature_batch_key": "UUID"
}
],
"limit": 20,
"page": 0,
"is_last_page": true
}

Errors​

StatusCodeWhen it happens
400—limit above 100 or negative page.

Authentication, permission and host errors: see API errors.

Enumerators​

The contract, product and document statuses are in Contract Creation › Enumerators.