Skip to main content

Reprocess credit contract

This endpoint can be used to recalculate a credit operation, either to change the destination account or to change the disbursement date. A new contract is then generated and sent for signing again.

Attention!

The response and subsequent callbacks occur as if a new operation had been created, using the same debt_key.

Request

ENDPOINT
/debt/DEBT-KEY/recalculate_operation
METHOD
POST
Request Body
{
"financial": {"disbursement_date": "2021-09-01"},
"disbursement_bank_account": {
"name": "Pedro Felipe Henrique Alves",
"bank_code": "329",
"account_digit": "1",
"branch_number": "001",
"account_number": "94632180173",
"document_number": "026.923.850-63"
}
}

PATH PARAMS

FieldTypeDescription
debt_key *stringDebt key returned at the moment of credit operation creation.

BODY PARAMS

FieldTypeDescriptionCharacters
financial *stringSimplified financial object that includes the disbursement dateObjeto financial
disbursement_bank_accounts *objectobjectList of bank information for the disbursement
debt_key *stringDebt key returned at the moment of credit operation creation.chave uuid

Object financial

FIELDTypeDescriptionCharacters
disbursement_datedateDisbursement date.10

Object disbursement_bank_accounts

A debt issuance must contain the bank information for disbursement; by default, it is an account of the borrower. This object must be a list with one or more accounts. The disbursement_bank_accounts (Bank Account) object must include:

FieldTypeDescriptionCharacters
namestringAccount owner's name for disbursement - Mandatory only if the transfer method is TED or Pix, and if there is more than one disbursement account.50
bank_codestringFinancial institution's COMPE code (https://www.bcb.gov.br/pom/spb/estatistica/port/ASTR003.pdf)3
account_digitstringAccount check digit (mandatory if available)1
branch_numberstringBranch number - Mandatory only if the transfer method is TED or Pix.4
account_numberstringAccount number. CPF or CNPJ of the account owner for disbursement (mandatory if there is more than one disbursement account).10
document_numberstringCPF or CNPJ of the account owner for disbursement - Mandatory only if the transfer method is TED or Pix, and if there is more than one disbursement account.11 ou 14

Response

STATUS
200
Response Body

{
"data": {
"additional_iof": 38000,
"annual_cet": "253,2642%",
"assignment_amount": 10000000,
"base_iof": 69331,
"borrower": {
"document_number": "89940878025962",
"name": "Parmalat"
},
"cet": "11,0900%",
"collaterals": [],
"contract": {
"external_contract_key": "2f0b8b6e-0b60-47f0-b27f-e291c028549b",
"number": "1907258737/P",
"signature_information": [
{
"signature_url": "https://sign.qitech.com.br/s/hNrwjda",
"signer_document_number": "94632180173",
"signer_email": "pedro.alves@yopmail.com",
"signer_external_key": "07a1c438-43a4-49a9-85a9-29667507453b",
"signer_name": "Pedro Felipe Henrique Alves",
"signer_role": "issuer"
},
{
"signature_url": "https://sign.qitech.com.br/s/EaTajda",
"signer_document_number": "34651104630",
"signer_email": "patricia.tereza@yopmail.com",
"signer_external_key": "61a1ea50-769a-410a-8ef8-09f0ce4611f6",
"signer_name": "Patrícia Tereza Bernardes",
"signer_role": "guarantor"
}
],
"urls": [
"https://storage.googleapis.com/sandbox-doc-api/documents/abedfeab-dcf8-4e13-897b-da02c222cef4/SALGADINHO_SALETE_LTDA-PARMALAT-CCB-1907258737-20220512165254.pdf"
]
},
"contract_fee_amount": 50000,
"contract_fees": [
{
"fee_amount": 50000,
"fee_type": "tac"
}
],
"external_contract_fee_amount": 0,
"external_contract_fees": [],
"installments": [
{
"additional_costs": [],
"advanced_paid_amount": 0,
"bank_slip_key": null,
"business_due_date": "2019-08-26",
"calendar_days": 32,
"digitable_line": null,
"due_date": "2019-08-26",
"due_interest": null,
"due_principal": 10000000,
"fine_amount": null,
"has_interest": true,
"installment_key": "81e4a732-d300-4e39-b6d5-2d9ac8df429b",
"installment_number": 1,
"installment_payment": [],
"installment_status": "created",
"installment_type": "principal",
"original_due_principal": 10000000,
"original_pre_fixed_amount": 1125598.54,
"original_principal_amortization_amount": 1000000,
"original_total_amount": null,
"paid_amount": 0,
"paid_at": null,
"payments": [],
"post_fixed_amount": null,
"pre_fixed_amount": 1125598.54,
"principal_amortization_amount": 1000000,
"tax_amount": 1312,
"total_amount": null,
"total_paid_amount": 0,
"workdays": 22
}, ... x [número de parcelas]
],
"iof_charge_method": "financed",
"issue_amount": 10000000,
"net_external_contract_fee_amount": 0,
"number_of_installments": 10,
"post_fixed_interest_base": "workdays",
"post_fixed_interest_rate": 1,
"prefixed_interest_rate": {
"annual_rate": 2.32,
"created_at": null,
"daily_rate": 0.0033388,
"interest_base": "calendar_days",
"monthly_rate": 0.10516767
},
"requester_identifier_key": "b7ddbcfb-3de0-49d8-8014-07972d8b27f2",
"total_iof": 107331,
"total_pre_fixed_amount": 5935915.16
},
"event_datetime": "2022-05-12 16:53:10",
"key": "b7ddbcfb-3de0-49d8-8014-07972d8b27f2",
"status": "waiting_signature",
"webhook_type": "debt"
}
STATUS
400
Response Body
{
"data": "{\"title\": \"Bad Request\", \"description\": \"Invalid request body.\", \"translation\": \"Corpo da requisição inválido.\", \"extra_fields\": {}, \"code\": \"LEG000069\"}"
}