Jul 4, 2023

Foram feitas várias atualizações nos endpoints da API relacionados aos empréstimos. Agora, as respostas 200 de vários endpoints incluem um item adicional do tipo object nos valores anyOf de cashout.items. Essas mudanças afetam os endpoints de pesquisa, anexar, cancelar, desembolsar, marcar como expirado, pendente ou aberto, transações e invalidar empréstimos. Além disso, o endpoint GET /v1/loans agora inclui um parâmetro de consulta id. No endpoint POST /v1/loans, o requestBody agora inclui um novo item nos valores oneOf de cashout.items.

Loans
  • POST /v1/loans/search:
    • 200 response: added an item of type object to data.items.cashout.items anyOf values
  • POST /v1/loans/{loan}/attach:
    • 200 response: added an item of type object to cashout.items anyOf values
  • POST /v1/loans/{loan}/cancel:
    • 200 response: added an item of type object to cashout.items anyOf values
  • POST /v1/loans/{loan}/disburse:
    • 200 response: added an item of type object to cashout.items anyOf values
  • POST /v1/loans/{loan}/mark-expired:
    • 200 response: added an item of type object to cashout.items anyOf values
  • POST /v1/loans/{loan}/mark-pending:
    • 200 response: added an item of type object to cashout.items anyOf values
  • POST /v1/loans/{loan}/open:
    • 200 response: added an item of type object to cashout.items anyOf values
  • POST /v1/loans/{loan}/transactions:
    • 200 response: added an item of type object to cashout.items anyOf values
  • POST /v1/loans/{loan}/void:
    • 200 response: added an item of type object to cashout.items anyOf values
  • GET /v1/loans/{loan}:
    • 200 response: added an item of type object to cashout.items anyOf values
  • POST /v1/loans/{loan}:
    • 200 response: added an item of type object to cashout.items anyOf values
    • requestBody: added an item to cashout.items anyOf values
  • GET /v1/loans:
    • 200 response: added an item of type object to data.items.cashout.items anyOf values
    • added id query parameter
  • POST /v1/loans:
    • 201 response: added an item of type object to cashout.items anyOf values
    • requestBody: added an item to cashout.items oneOf values