3.2.1 - Create Proposal By Product
POST - /v2.1/proposal/:id
Collects and validates the necessary data for the creation of proposals according to the types of products selected
Path Params:
id: Pipeline id (string)
CURL Request Example
curl --request POST \
--url https://demo-api.easycredito.com.br/api/external/v2.1/process/proposal/rag53ar1f1asdf165sdf51dsf1sad3f1ds3a5f13dsa1f32sd1af231sd23a1f32s1af231d2s31f321sdf32ds1f2a132f132sd \
--header 'accept: application/json' \
--header 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRfaWQiOjc1LCJ0YWdfbmFtZSI6ImQ3ZDI5ZWViLTNiMDctNDFiZC05MDQ4LWM1MWIxZjNkYmNlYyIsInNjb3BlIjpbImFwaS1leHRlcm5hbCJdLCJpYXQiOjE2NjY2NDQ5NTcsImV4cCI6MTY2NjczMTM1N30.NAKwoqT22Gdq8JgF5E3O_xP6hP89LHs1m_SaWkgcKJDQc72qFMCGEdCbQ0QAYmaTnX2d-Lelm8wNEO4wk6OPp-6ZkGaenZljTB-as7fhTwl4QwKPy8qGVFUS3dDnq30k1XmJ4sV_TBVuRfiI_QCELOdOigMc4QJtM5KqZBQ1ZelunYnsu84mhlealQsiKT5KrNQ1GSLEiMo-ImsghHNT-WFULZ-nr0gjQert6CYokXnIW9hPm3iPFKjk3kM1st7ZeFcHkcJCJ0zUpZlZV0vzLXsQ2o6xCAf1U7z_wd-9aLgFshVgfqdynZnfUfv-n8acHbCL8wDTjkhb9eZ3ZVi9QBYh_bGtJ0AHMoMmksRYi7Doiv05P_eNo4rgfZ5YjguRWMMPO0kEJZC6HXGOcAMjoStsrb7P_ACx58M_NCrkmBox3iRYPjy6EX4Ev8STu0gVgSUBbWoNc52d9sYtqHfU8_Xvi4Td5e_ykuu2tkjrjNxb22C6lvJQxjxPE10r9o2mLuSeChESv8datNhnyNvUBwtdX2SwIk9XjOyMIdroEHl0Wvptj58DvjGqJn7R3TXU7PI2fAAW8AV761o9cLbhL_gk5UDJBqk8ikV7XPlfY7b5t8GE6inZA6CWG4VdrCog42bnacwx0bD9ANuNzYXDPiFG8CaLDH7X-6gySEBZ0Ek' \
--header 'content-type: application/json' \
--data '
{
"mother": "Fulana Mãe",
"gender": "MASCULINO",
"nationality": "BRASILEIRO",
"hometownState": "GO",
"hometown": "Goiânia",
"education": "POS_GRADUACAO",
"relationshipStatus": "CASADO",
"phoneLandline": "6232345678",
"identity": {
"type": "RG",
"number": "123456",
"issuer": "SSP",
"state": "GO",
"issuingDate": "2010-01-01"
},
"address": {
"zipCode": "74000000",
"address": "Cidade de Goiânia",
"number": 0,
"complement": "toda a cidade",
"district": "geral",
"state": "GO",
"city": "Goiânia",
"homeType": "ALUGADA",
"homeSince": "MAIOR_2_ANOS"
},
"vehicle": {
"licensePlate": "XXX0000"
},
"consumerUnit": {
"number": "000000000"
},
"business": {
"occupation": "ASSALARIADO",
"profession": "ADMINISTRADOR",
"companyName": "Abobrinha",
"phone": "6239413142",
"income": 1500,
"payday": 1,
"employmentSince": "BETWEEN_ONE_AND_TWO_YEARS",
"benefitNumber": "",
"zipCode": "74000000",
"address": "Cidade de Goiânia",
"number": 1,
"complement": "toda a cidade",
"district": "geral",
"state": "GO",
"city": "Goiânia"
},
"bank": {
"bank": "001",
"type": "CONTA_CORRENTE_INDIVIDUAL",
"agency": "0001",
"account": "564789-1"
},
"reference": [
{
"name": "Joana Maria",
"phone": "11987654321"
}
],
"products": [
{
"type": "LOAN",
"value": "7000",
"installments": 12
},
{
"type": "CARD",
"network": "MASTERCARD",
"payDay": 15
},
{
"type": "WORKING_CAPITAL",
"installments": 12,
"value": 7000.65,
"cnpj": "12.000.256/0001-88",
"businessProfession": "ADMINISTRADOR_DIRETOR",
"employeesCount": "MAIS_DE_10",
"businessIncomeCnpj": 15000,
"loanObjectives": "EXPANSAO_DE_NEGOCIOS",
"bank": "001",
"accountType": "CONTA_CORRENTE_INDIVIDUAL",
"agency": "0001",
"account": "1234657-8"
},
{
"type": "REFINANCING_AUTO",
"value": "30000",
"vehicleBrand": "Fiat",
"vehicleModel": "Mobi",
"installments": 12,
"vehicleModelYear": "2010",
"codeFipe": "038003-2",
"vehicleFipeValue": "28000"
},
{
"type": "REFINANCING_HOME",
"value": "150000",
"installments": 12,
"realEstateType": "house",
"realEstateValue": "148000",
"outstandingBalance": "50000"
}
]
}
'
Response Example
{
"id": "20190805062216",
"status": "PROPOSAL_ANALISIS",
"cpf": 191,
"name": "Fulano d'Tal",
"dateCreated": "2020-10-28T13:50:21.024Z",
"lastUpdated": "2020-10-28T13:50:21.024Z"
}
Callback Example
{
"id": "20190805062216",
"status": "PROPOSAL_CREATED",
"cpf": 191,
"name": "Fulano d'Tal",
"dateCreated": "2020-10-28T13:50:21.024Z",
"lastUpdated": "2020-10-28T13:50:21.024Z",
"proposals": [
{
"customerServiceNumber": "20190805062216",
"type": "loan",
"product": "EMPRÉSTIMO PESSOAL",
"productId": 6215423,
"hasDocuments": false,
"hasContracts": true,
"logo": "url",
"lastStatus": "PRE_PROCESSAMENTO",
"dateCreated": "2019-08-05T21:22:19Z",
"lastUpdated": "2019-08-05T21:22:22Z",
"value": 50000,
"installments": 36,
"pendentDocuments": [
"SELF",
"IDENTITY_FRONT",
"IDENTITY_BACK",
"ADDRESS_PROOF",
"INCOME_PROOF"
],
"monthlyTax": 0.059,
"installmentsValue": 3490.77,
"iofValue": 1652.59988,
"grossValue": 51652.6,
"firstPaymentDate": "2019-09-04T21:22:16Z",
"cet": 1.052660058382551,
"releasedDate": "2019-08-05T21:22:16Z"
},
{
"customerServiceNumber": "20190805062221",
"type": "card",
"product": "Cartão de Crédito - Visa Platinum",
"productId": 3412351,
"hasDocuments": false,
"hasContracts": false,
"logo": "url",
"lastStatus": "PRE_PROCESSAMENTO",
"dateCreated": "2019-08-05T21:22:21Z",
"lastUpdated": "2019-08-05T21:22:22Z",
"international": false,
"pendentDocuments": [
"SELF",
"IDENTITY_FRONT",
"IDENTITY_BACK",
"ADDRESS_PROOF",
"INCOME_PROOF"
],
"annuity": 499.92,
"network": "VISA",
"prepaid": false,
"digitalAccount": false
},
{
"customerServiceNumber": "30190805062217",
"type": "REFINANCING_AUTO",
"product": "REFINANCIAMENTO DE VEICULOS",
"productId": 1354658,
"hasDocuments": false,
"hasContracts": false,
"logo": "url",
"lastStatus": "PRE_PROCESSAMENTO",
"dateCreated": "2019-08-05T21:22:19Z",
"lastUpdated": "2019-08-05T21:22:22Z",
"value": 50000,
"installments": 36,
"pendentDocuments": [
"SELF",
"IDENTITY_FRONT",
"IDENTITY_BACK",
"ADDRESS_PROOF",
"INCOME_PROOF"
],
"monthlyTax": 0.059,
"installmentsValue": 3490.77,
"iofValue": 1652.59988,
"grossValue": 51652.6,
"firstPaymentDate": "2019-09-04T21:22:16Z",
"cet": 1.052660058382551,
"releasedDate": "2019-08-05T21:22:16Z"
},
{
"customerServiceNumber": "50190805062219",
"type": "REFINANCING_HOME",
"product": "REFINANCIAMENTO DE CASA",
"productId": 532234,
"hasDocuments": false,
"hasContracts": false,
"logo": "url",
"lastStatus": "PRE_PROCESSAMENTO",
"dateCreated": "2019-08-05T21:22:19Z",
"lastUpdated": "2019-08-05T21:22:22Z",
"value": 150000,
"installments": 36,
"pendentDocuments": [
"SELF",
"IDENTITY_FRONT",
"IDENTITY_BACK",
"ADDRESS_PROOF",
"INCOME_PROOF"
],
"monthlyTax": 0.059,
"installmentsValue": 3490.77,
"iofValue": 1652.59988,
"grossValue": 51652.6,
"firstPaymentDate": "2019-09-04T21:22:16Z",
"cet": 1.052660058382551,
"releasedDate": "2019-08-05T21:22:16Z"
},
{
"customerServiceNumber": "50190805063355",
"type": "loan",
"product": "EMPRÉSTIMO PESSOAL",
"productId": 22314124,
"hasDocuments": false,
"hasContracts": false,
"logo": "url",
"lastStatus": "PRE_PROCESSAMENTO",
"dateCreated": "2019-08-05T21:22:19Z",
"lastUpdated": "2019-08-05T21:22:22Z",
"value": 50000,
"installments": 36,
"pendentDocuments": [
"SELF",
"IDENTITY_FRONT",
"IDENTITY_BACK",
"ADDRESS_PROOF",
"INCOME_PROOF"
],
"monthlyTax": 0.059,
"installmentsValue": 3490.77,
"iofValue": 1652.59988,
"grossValue": 51652.6,
"firstPaymentDate": "2019-09-04T21:22:16Z",
"cet": 1.052660058382551,
"releasedDate": "2019-08-05T21:22:16Z"
}
]
}
Updated 3 months ago