Criar um produto
{
"slug": "consignado",
"status": "active",
"name": "Empréstimo consignado",
"description": "<string>",
"settings": {
"steps": {
"title": "<string>",
"type": "signature",
"methodData": {
"schema": {
"type": "operator",
"role": "approver"
}
},
"needs": [
"<string>"
],
"slug": "<string>",
"hooks": {
"onFailure": [
"void_loan"
]
},
"onStart": [
"mark_loan_as_pending"
]
},
"loans": {
"concurrency": [
{
"quantityAllowed": 123,
"status": [
"open"
]
}
],
"conditions": [
{
"title": "<string>",
"content": "<string>"
}
],
"maxAge": 65,
"minAge": 18,
"minimumWage": 2500
},
"invoices": {
"payOff": {
"fine": {
"amount": 0.02,
"daysToStart": 1
},
"interest": {
"amount": 0.01,
"daysToStart": 1
},
"allowOverduePayment": true,
"daysUntilDue": {
"type": "absolute",
"amount": 1
},
"updateInvoiceItemOnInsert": true
}
},
"products": {
"eligibility": {
"type": "static",
"options": {
"url": "<string>",
"headers": {},
"metadata": {}
}
},
"offer": {
"type": "online",
"options": {
"monthlyFee": 1.99,
"numberOfInstallments": [
12,
24
],
"daysUntilDisbursement": 7,
"monthsUntilFirstDueDate": 1,
"creditOperationType": "CCB",
"rebates": [
{
"feeType": "registration",
"amountType": "absolute",
"amount": 250,
"description": "Tarifa de cadastro"
}
],
"insurance": {
"amount": 0,
"fee": 1.73,
"type": "required",
"number": "123456",
"insurer": "Cia de Seguros"
}
}
},
"documents": {
"toCreate": [
{
"purpose": "account_requirement",
"method": "google",
"methodData": {
"template": "<string>"
}
}
],
"toRequest": [
{
"purpose": "account_requirement",
"name": "crédito consignado",
"owner": "customer",
"expireInDays": 30
}
]
},
"disbursement": "custom"
}
},
"metadata": {}
}
Criar um produto
{
"slug": "consignado",
"status": "active",
"name": "Empréstimo consignado",
"description": "<string>",
"settings": {
"steps": {
"title": "<string>",
"type": "signature",
"methodData": {
"schema": {
"type": "operator",
"role": "approver"
}
},
"needs": [
"<string>"
],
"slug": "<string>",
"hooks": {
"onFailure": [
"void_loan"
]
},
"onStart": [
"mark_loan_as_pending"
]
},
"loans": {
"concurrency": [
{
"quantityAllowed": 123,
"status": [
"open"
]
}
],
"conditions": [
{
"title": "<string>",
"content": "<string>"
}
],
"maxAge": 65,
"minAge": 18,
"minimumWage": 2500
},
"invoices": {
"payOff": {
"fine": {
"amount": 0.02,
"daysToStart": 1
},
"interest": {
"amount": 0.01,
"daysToStart": 1
},
"allowOverduePayment": true,
"daysUntilDue": {
"type": "absolute",
"amount": 1
},
"updateInvoiceItemOnInsert": true
}
},
"products": {
"eligibility": {
"type": "static",
"options": {
"url": "<string>",
"headers": {},
"metadata": {}
}
},
"offer": {
"type": "online",
"options": {
"monthlyFee": 1.99,
"numberOfInstallments": [
12,
24
],
"daysUntilDisbursement": 7,
"monthsUntilFirstDueDate": 1,
"creditOperationType": "CCB",
"rebates": [
{
"feeType": "registration",
"amountType": "absolute",
"amount": 250,
"description": "Tarifa de cadastro"
}
],
"insurance": {
"amount": 0,
"fee": 1.73,
"type": "required",
"number": "123456",
"insurer": "Cia de Seguros"
}
}
},
"documents": {
"toCreate": [
{
"purpose": "account_requirement",
"method": "google",
"methodData": {
"template": "<string>"
}
}
],
"toRequest": [
{
"purpose": "account_requirement",
"name": "crédito consignado",
"owner": "customer",
"expireInDays": 30
}
]
},
"disbursement": "custom"
}
},
"metadata": {}
}