3.2.3 - Create Bank Account Proposals

POST - /v2.1/process/simple_proposal/:id

Collects and validates the data necessary for the creation of digital account proposals

Path Params:

id: Pipeline id (string)

CURL Request Example

curl --request POST \
     --url https://demo-api.easycredito.com.br/api/external/v2.1/process/simple_proposal/gfdsbnhgsasnbdfjhbdnsfkjansdjkfnkjfnjkf6s5df%2B5sda6%2Bf5ad \
     --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",
     "relationshipStatus": "CASADO",
     "identity": {
          "type": "RG",
          "number": "123456"
     },
     "address": {
          "zipCode": "74000000",
          "address": "Cidade de Goiânia",
          "number": 0,
          "complement": "toda a cidade",
          "district": "geral",
          "state": "GO",
          "city": "Goiânia"
     },
     "business": {
          "occupation": "ASSALARIADO",
          "income": 1500
     },
     "products": [
          {
               "type": "BANK_ACCOUNT"
          }
     ]
}
'

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

{
  "lastUpdated": "2020-10-28T13:50:21.024Z",
  "dateCreated": "2020-10-28T13:50:21.024Z",
  "cpf": 191,
  "name": "Fulano d'Tal",
  "id": "20190805062216",
  "proposals": {
    "lastUpdated": "2020-10-28T13:50:21.024Z",
    "product": "Conta Digital | FitBank",
    "dateCreated": "2019-08-05T21:22:19Z",
    "productId": 22314124,
    "customerServiceNumber": "50190805063355",
    "hasContracts": false,
    "hasDocuments": false,
    "lastStatus": "PRE_APROVADO"
  },
  "status": "PROPOSAL_CREATED"
}