GET
/
v1
/
loans
/
search
curl --request GET \
  --url https://api.base39.io/v1/loans/search \
  --header 'Authorization: Bearer <token>'
{
  "hasMore": true,
  "data": [
    {
      "id": "loan_5f92f01728e009f403d8502e",
      "status": "draft",
      "externalId": "4eeb7525-40c6-45fe-8236-2b731d740fad",
      "employment": "<string>",
      "customer": "<string>",
      "company": "<string>",
      "contractNumber": "AB123456789",
      "cashout": [
        {
          "amount": 123,
          "paymentMethod": "<string>",
          "type": "payment_method"
        }
      ],
      "offer": {
        "id": "offr_5f92f01728e009f403d8502e",
        "customer": "cust_5f92f01728e009f403d8502e",
        "employment": "empl_5f92f01728e009f403d8502e",
        "company": "comp_5f92f01728e009f403d8502e",
        "disbursementAmount": 123,
        "installmentAmount": 123,
        "totalAmount": 123,
        "interestAmount": 123,
        "iofAmount": 123,
        "iofAdditionalAmount": 123,
        "monthlyCET": 0.02,
        "yearlyCET": 0.12,
        "monthlyFee": 0.02,
        "yearlyFee": 0.12,
        "insurance": {
          "amount": 123,
          "fee": 0.02,
          "type": "required",
          "number": "<string>",
          "insurer": "<string>"
        },
        "interestType": "<string>",
        "creditOperationType": "<string>",
        "expectedDisbursementDate": "2023-12-25",
        "interestGracePeriod": 123,
        "principalGracePeriod": 123,
        "numberOfInstallments": 123,
        "firstDueDate": "2023-12-25",
        "fund": "fund_637b85aaa8e91c82fd053aac",
        "product": "prod_637cf14e316408250c0bd067",
        "description": "<string>",
        "rebates": [
          {
            "feeType": "first_loan",
            "amountType": "absolute",
            "amount": 0.2,
            "description": "Tarifa de cadastro"
          }
        ],
        "fine": {
          "fineRate": 0.02,
          "interestBase": "calendar_days",
          "monthlyRate": 0.02
        },
        "cashout": [
          {
            "amount": 123,
            "paymentMethod": "<string>",
            "type": "<string>"
          }
        ],
        "creditPolicy": "crpl_637b85aaa8e91c82fd053aac",
        "metadata": {},
        "createdAt": "2023-08-25T22:38:41.134Z"
      },
      "transactions": [
        {
          "amount": 123,
          "description": "<string>",
          "createdAt": "2023-12-25"
        }
      ],
      "attachments": [
        {
          "file": "file_6307b6c39f5d3d917009b631",
          "linkedAt": "2023-11-07T05:31:56Z"
        }
      ],
      "context": {
        "ip": "<string>",
        "headers": {},
        "fingerprint": "<string>",
        "geolocation": [
          "<string>"
        ]
      },
      "history": [
        {
          "description": "<string>",
          "status": "draft",
          "metadata": {},
          "createdAt": "2023-08-25T22:38:41.134Z"
        }
      ],
      "signatures": [
        {
          "signer": "<string>",
          "context": {
            "id": "sign_5f92f01728e009f403d8502e",
            "signedAt": "2023-12-25",
            "metadata": {},
            "context": {
              "ip": "<string>",
              "headers": {},
              "fingerprint": "<string>",
              "geolocation": [
                "<string>"
              ]
            }
          }
        }
      ],
      "insurance": {
        "proposalId": "<string>",
        "saleId": "<string>",
        "cancellationId": "<string>"
      },
      "amountRemaining": 1500,
      "amountForPayment": 1487.9,
      "isRefinancing": false,
      "metadata": {},
      "createdAt": "2023-08-25T22:38:41.134Z",
      "updatedAt": "2023-08-25T22:38:41.134Z",
      "deleted": false,
      "createdBy": {
        "clientId": "client_identifier",
        "externalClientId": "<string>",
        "app": "backoffice"
      },
      "updatedBy": {
        "clientId": "client_identifier",
        "externalClientId": "<string>",
        "app": "backoffice"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

query
string

Uma string de busca permite filtros personalizados com campos como customer.id, company.id, status, e steps.type. Use : para strings e =, >, <, >=, <= para datas e números. Combine com AND e OR (com AND tendo prioridade) e use parênteses para definir agrupamentos.

expand
string

Expande as referências.

Pode ser um valor único ou uma lista separada por vírgula (csv) de referências retornadas neste endpoint.

starting_after
string

Um cursor para uso na paginação. starting_after é um ID de objeto que define seu lugar na lista. Por exemplo, se você fizer uma solicitação de lista e receber 100 objetos, terminando com obj_foo, sua chamada subsequente poderá incluir starting_after=obj_foo para buscar a próxima página da lista.

ending_before
string

Um cursor para uso na paginação. starting_after é um ID de objeto que define seu lugar na lista. Por exemplo, se você fizer uma solicitação de lista e receber 100 objetos, terminando com obj_foo, sua chamada subsequente poderá incluir starting_after=obj_foo para buscar a próxima página da lista.

limit
integer
default:10

Um limite no número de objetos a serem retornados. O limite pode variar entre 1 e 100, e o padrão é 10.

Response

200 - application/json
Um objeto com a propriedade `data` contendo um array de itens `Loan` que começa após `starting_after`. Se não houver mais itens, o array estará vazio. A solicitação nunca deve retornar erro.

Uma lista de empréstimos.

hasMore
boolean

Informa se existem mais itens. Os próximos itens podem ser obtidos informando o ID do último item no startingAfter.

Example:

true

data
object[]

Uma lista de empréstimos

Este objeto representa um empréstimo.