企业债务发行
使用债务发行 API,可以为法人申请发行债务。无需提前注册借款人,只需在申请时提供注册数据即可。
注意!
债务 API 设计为只需执行一次请求即可完成,需在提前上传文件(文档上传)之后执行。 请求头和请求体的签名格式详情请参见此处。
请求
ENDPOINT
/debtMÉTODO
POST请求体
{
"borrower": {
"name": "RAZAO SOCIAL EMPRESA",
"email": "emailempresa@email.com",
"phone": {
"number": "991112222",
"area_code": "11",
"country_code": "055"
},
"address": {
"city": "São Paulo",
"state": "SP",
"number": "215",
"street": "Rua Gilberto Sabino",
"complement": "3 andar",
"postal_code": "05425020",
"neighborhood": "Pinheiros"
},
"cnae_code": "6822-6/00",
"role_type": "issuer",
"person_type": "legal",
"company_type": "ltda",
"trading_name": "NOME FANTASIA DA EMPRESA",
"foundation_date": "2019-07-05",
"attached_documents_list": [],
"company_document_number": "80282008000127",
"company_statute": "aa28e598-55e2-40f1-8884-671772c541a1",
"company_representatives": [
{
"name": "NOME DO REPRESENTANTE",
"email": "nomedorepresentante@email.com",
"phone": {
"number": "990121234",
"area_code": "11",
"country_code": "055"
},
"is_pep": false,
"final_beneficiary": true,
"address": {
"city": "São Paulo",
"state": "SP",
"number": "215",
"street": "Rua Gilberto Sabino",
"complement": "3 andar",
"postal_code": "05425020",
"neighborhood": "Pinheiros"
},
"role_type": "company_representative",
"birth_date": "1993-09-10",
"profession": "DIRETOR",
"mother_name": "NOME DA MAE DO REPRESENTANTE",
"nationality": "BRASILEIRO",
"person_type": "natural",
"marital_status": "married",
"property_system": "partial_communion_of_goods",
"attached_documents_list": [],
"individual_document_number": "31057466093",
"document_identification_number": "20202020200"
}
]
},
"financial": {
"disbursed_amount": 10000,
"interest_type": "pre_price_days",
"credit_operation_type": "ccb",
"monthly_interest_rate": 0.03,
"disbursement_date": "2023-05-04",
"first_due_date": "2023-06-03",
"interest_grace_period": 0,
"principal_grace_period": 0,
"number_of_installments": 1,
"fine_configuration": {
"contract_fine_rate": 0.02,
"interest_base": "calendar_days",
"monthly_rate": 0.01
}
},
"disbursement_bank_account": {
"name": "RAZAO SOCIAL EMPRESA",
"document_number": "80282008000127",
"bank_code": "341",
"branch_number": "8615",
"account_number": "22110",
"account_digit": "2",
"account_type": "checking_account"
},
"purchaser_document_number": "32402502000135"
}
响应
此次债务请求的响应将返回还款计划以及 DEBT-KEY,即债务在 QI SCD 中的标识符。
STATUS
200响应体
{
"data": {},
"event_datetime": "2023-05-04 12:28:35",
"key": "feceb7fe-1305-45eb-899d-c87d36bcc534",
"status": "waiting_signature",
"webhook_type": "debt"
}
请求体对象
| 字段 | 类型 | 描述 | 最大字符数 |
|---|---|---|---|
| borrower * | object | Borrower 对象 - 信贷操作的债务人 | - |
| guarantor | object | Guarantor 对象 - 信贷操作的担保人 | - |
| disbursement_bank_account * | object | Disbursement Bank Account 对象 - 操作放款的银行账户数据 | - |
| financial * | object | Financial 对象 - 操作放款的银行账户数据,标识所发送的对象为自然人。borrower PF 时必须始终包含 "natural" 值 | - |
| purchaser_document_number * | string | 信贷操作受让人(买方)的 CNPJ | - |
Borrower 对象
| 字段 | 类型 | 描述 | 最大字符数 |
|---|---|---|---|
| name * | string | 公司法定名称 | 100 |
| trading_name * | string | 商业名称 | |
| email * | string | 公司机构电子邮件 | 254 |
| phone * | object | Phone 对象 - 公司电话 | - |
| is_pep * | boolean | PEP 指示器(http://www.portaldatransparencia.gov.br/download-de-dados/pep) | - |
| address * | object | Address 对象 - 债务人地址 | - |
| role_type * | enum | 默认值:issuer | - |
| person_type * | string | 法人标识 - 默认值:legal | - |
| company_document_number * | string | CNPJ(仅数字) | - |
| cnae_code * | string | 国家经济活动分类代码 | |
| company_representatives * | array of objects | 公司法定代表人列表 | Company Representatives 对象 |
| company_type * | enum | 公司类型:"ltda"、"sa"、"micro_enterprise" 或 "freelancer" | - |
| company_statute * | string | 公司章程 PDF 的 document_key | |
| directors_election_minute | string | 公司董事选举会议记录 PDF 的 document_key(仅对 company_type 为 "sa" 的公司必填) | |
| foundation_date * | date | 公司成立日期(格式 "YYYY-MM-DD") |
如上所示,"borrower" 字段和 "guarantors" 字段均可由 PF 对象或 PJ 对象填充。PJ 对象是 QI Tech 中法人实体的描述。
Company Representatives 对象
| 字段 | 描述 | 示例 | 最大字符数 |
|---|---|---|---|
| person_type * | string | 标识所发送对象为自然人或法人。 | natural |
| name * | string | 法人操作时为公司法定名称,自然人操作时为个人姓名。限 100 个字符。 | |
| mother_name * | string | 自然人时为客户母亲姓名。限 100 个字符。 | |
| birth_date * | string | 人员出生日期(格式 "YYYY-MM-DD") | - |
| profession * | string | 客户职业。限 64 个字符。 | 64 |
| nationality * | string | 客户国籍。 | 50 |
| marital_status * | string | 客户婚姻状况。 | |
| property_system * | string | 财产分隔制度(仅 marital_status 为 "married" 时必填)。 | property_system 枚举值 |
| wedding_certificate * | string | 结婚证 PDF 的 DOCUMENT_KEY(预先上传)。若 marital_status 为 "single",该字段值应为 NULL。 | |
| spouse * | string | Spouse 对象(仅当 "compulsory_separation_of_goods" 为 "total_communion_of_goods"、"partial_communion_of_goods"、"final_participation_of_acquisitions" 或 "compulsory_separation_of_goods" 时必填)。若 marital_status 为 "single",该字段值应为 NULL。 | Spouse 对象 |
| is_pep * | boolean | 声明该人是否为 PEP(http://www.portaldatransparencia.gov.br/download-de-dados/pep)。 | true/false |
| final_beneficiary | boolean | 声明该人是否为公司的最终受益人。 | true/false |
| individual_document_number * | string | 人员 CPF(仅数字)。 | 10 |
| document_identification * | string | 带照片的身份证明文件 PDF 的 DOCUMENT_KEY(身份证或驾驶证)(预先上传) | |
| document_identification_back | string | 带照片的身份证明文件背面 PDF 的 DOCUMENT_KEY(身份证或驾驶证)(预先上传)。 | |
| document_identification_type * | string | 所提交身份证明文件的类型。 | |
| document_identification_number * | string | "document_identification" 中提交的身份证明文件号码。 | 16 |
| email * | string | 客户电子邮件。 | 254 |
| phone * | object | 客户电话 | Phone 对象 |
| address | object | 客户地址。 | Address 对象 |
| proof_of_residence | string | 所提供地址的居住证明 PDF 的 DOCUMENT_KEY(预先上传)。 | - |
Spouse 对象
| 字段 | 描述 | 示例 | 最大字符数 |
|---|---|---|---|
| person_type * | string | 标识所发送对象为自然人或法人。 | natural |
| name * | string | 法人操作时为公司法定名称,自然人操作时为个人姓名。限 100 个字符。 | |
| mother_name * | string | 自然人时为客户母亲姓名。限 100 个字符。 | |
| birth_date * | string | 人员出生日期(格式 "YYYY-MM-DD") | - |
| profession * | string | 客户职业。限 64 个字符。 | 64 |
| is_pep * | boolean | 声明该人是否为 PEP(http://www.portaldatransparencia.gov.br/download-de-dados/pep)。 | true/false |
| individual_document_number * | string | 人员 CPF(仅数 字)。 | 10 |
| document_identification_number * | string | "document_identification" 中提交的身份证明文件号码。 | 16 |
| email * | string | 客户电子邮件。 | 254 |
| phone * | object | 客户电话 | phone 对象 |
| address | object | 客户地址。 | address 对象 |
Address 对象
| 字段 | 类型 | 描述 | 最大字符数 |
|---|---|---|---|
| city * | string | 地址所在城市 | 100 |
| state * | string | 地址所在州(两位大写字母) | 2 |
| number * | string | 门牌号 | 10 |
| street * | string | 街道名称 | 100 |
| complement * | string | 地址补充信息(自由文本) | 100 |
| postal_code * | string | 邮政编码(http://www.buscacep.correios.com.br/sistemas/buscacep/) | 8 |
| neighborhood * | string | 社区/街区名称 | 100 |