Referências
- Empréstimos
- Empresas
- Políticas de crédito
- Esteira
- Clientes
- Funcionários
- Fundos
- Eventos
- Produtos
- Ofertas
- Assinaturas
- Grupos de empresas
- Operadores
- Permissões
- Itens da fatura
- Intenções de pagamento
- Métodos de pagamento
- Parcelas
- Webhooks externos
- Links de arquivos
- Arquivos
- Faturas
- Temas
- Chaves da API
- Configurações
- Entidade de dados
- Documentos
- Workflows
- Notificações
- Modelos
Políticas de crédito
Obter política de crédito
GET
/
v1
/
credit-policies
/
{id}
curl --request GET \
--url https://api.base39.io/v1/credit-policies/{id} \
--header 'Authorization: Bearer <token>'
{
"id": "crpl_5f92f01728e009f403d8502e",
"status": "active",
"name": "Consignado",
"model": "EMPLOYMENT_LENGTH_SALARY_MULTIPLIER",
"product": "prod_5f92f01728e009f403d8502e",
"options": {
"interestType": "pre_price_days",
"creditOperationType": "ccb",
"rebates": [
{
"feeType": "registration",
"amountType": "absolute",
"amount": 200,
"description": "Tarifa de cadastro"
}
],
"fine": {
"fineRate": 0.02,
"interestBase": "calendar_days",
"monthlyRate": 0.02
},
"rules": [
{
"workingMonthsRangeStart": 6,
"workingMonthsRangeEnd": 12,
"salaryMultiples": 2,
"minimumDisbursementAmount": 200,
"fund": "fund_5f92f01728e009f403d8502e",
"monthlyFee": [
{
"installmentsRangeStart": 12,
"installmentsRangeEnd": 36,
"amount": 0.02,
"insurance": {
"fee": 123,
"type": "uninsured",
"number": "<string>",
"insurer": "<string>"
}
}
]
}
]
},
"metadata": {},
"createdAt": "2023-08-25T22:38:41.134Z",
"updatedAt": "2023-08-25T22:38:41.134Z",
"deleted": false
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
- O ID do object
Response
200 - application/json
Retorna o objeto CreditPolicy
para um ID válido.
Este objeto representa uma política de crédito.
curl --request GET \
--url https://api.base39.io/v1/credit-policies/{id} \
--header 'Authorization: Bearer <token>'
{
"id": "crpl_5f92f01728e009f403d8502e",
"status": "active",
"name": "Consignado",
"model": "EMPLOYMENT_LENGTH_SALARY_MULTIPLIER",
"product": "prod_5f92f01728e009f403d8502e",
"options": {
"interestType": "pre_price_days",
"creditOperationType": "ccb",
"rebates": [
{
"feeType": "registration",
"amountType": "absolute",
"amount": 200,
"description": "Tarifa de cadastro"
}
],
"fine": {
"fineRate": 0.02,
"interestBase": "calendar_days",
"monthlyRate": 0.02
},
"rules": [
{
"workingMonthsRangeStart": 6,
"workingMonthsRangeEnd": 12,
"salaryMultiples": 2,
"minimumDisbursementAmount": 200,
"fund": "fund_5f92f01728e009f403d8502e",
"monthlyFee": [
{
"installmentsRangeStart": 12,
"installmentsRangeEnd": 36,
"amount": 0.02,
"insurance": {
"fee": 123,
"type": "uninsured",
"number": "<string>",
"insurer": "<string>"
}
}
]
}
]
},
"metadata": {},
"createdAt": "2023-08-25T22:38:41.134Z",
"updatedAt": "2023-08-25T22:38:41.134Z",
"deleted": false
}
Assistant
Responses are generated using AI and may contain mistakes.