Jun 27, 2023

A API atualizou vários endpoints, incluindo os de Empresas, Configurações, Esteira, Empréstimos e Produtos. As alterações incluem o suporte para o novo valor custom_request em várias respostas e corpos de solicitação, além da adição de novos itens aos valores oneOf. Novas propriedades como description, metadata e tags foram adicionadas em alguns endpoints. Além disso, foram adicionadas as propriedades amountForPayment e amountRemaining aos endpoints de Empréstimos.

Companies
  • GET /v1/companies/{id}:
    • 200 response: added support for new value custom_request on enum settings.steps.additionalProperties.type
    • 200 response: added an item to settings.steps.additionalProperties.methodData oneOf values
  • POST /v1/companies/{id}:
    • 200 response: added support for new value custom_request on enum settings.steps.additionalProperties.type
    • 200 response: added an item to settings.steps.additionalProperties.methodData oneOf values
    • requestBody: added support for new value custom_request on enum settings.steps.additionalProperties.type
    • requestBody: added an item to settings.steps.additionalProperties.methodData oneOf values
  • GET /v1/companies:
    • 200 response: added support for new value custom_request on enum data.items.settings.steps.additionalProperties.type
    • 200 response: added an item to data.items.settings.steps.additionalProperties.methodData oneOf values
  • POST /v1/companies:
    • 201 response: added support for new value custom_request on enum settings.steps.additionalProperties.type
    • 201 response: added an item to settings.steps.additionalProperties.methodData oneOf values
    • requestBody: added support for new value custom_request on enum settings.steps.additionalProperties.type
    • requestBody: added an item to settings.steps.additionalProperties.methodData oneOf values
Configurações
  • GET /v1/settings:
    • 200 response: added support for new value custom_request on enum steps.additionalProperties.type
    • 200 response: added an item to steps.additionalProperties.methodData oneOf values
  • POST /v1/settings:
    • 200 response: added support for new value custom_request on enum steps.additionalProperties.type
    • 200 response: added an item to steps.additionalProperties.methodData oneOf values
    • requestBody: added support for new value custom_request on enum steps.additionalProperties.type
    • requestBody: added an item to steps.additionalProperties.methodData oneOf values
Esteira
  • POST /v1/steps/{step}:
    • 200 response: added support for description property
    • 200 response: added support for metadata property
    • 200 response: added support for tags property
    • 200 response: added support for new value custom_request on enum type
    • requestBody: added support for description property
    • requestBody: added support for metadata property
    • requestBody: added support for tags property
    • requestBody: removed status.default
  • GET /v1/steps:
    • 200 response: added support for data.items.description property
    • 200 response: added support for data.items.metadata property
    • 200 response: added support for data.items.tags property
    • 200 response: added support for new value custom_request on enum data.items.type
    • added type query parameter
Loans
  • POST /v1/loans/search:
    • 200 response: added support for data.items.amountForPayment property
    • 200 response: added support for data.items.amountRemaining property
  • POST /v1/loans/{loan}/attach:
    • 200 response: added support for amountForPayment property
    • 200 response: added support for amountRemaining property
  • POST /v1/loans/{loan}/cancel:
    • 200 response: added support for amountForPayment property
    • 200 response: added support for amountRemaining property
  • POST /v1/loans/{loan}/disburse:
    • 200 response: added support for amountForPayment property
    • 200 response: added support for amountRemaining property
  • POST /v1/loans/{loan}/mark-expired:
    • 200 response: added support for amountForPayment property
    • 200 response: added support for amountRemaining property
  • POST /v1/loans/{loan}/mark-pending:
    • 200 response: added support for amountForPayment property
    • 200 response: added support for amountRemaining property
  • POST /v1/loans/{loan}/open:
    • 200 response: added support for amountForPayment property
    • 200 response: added support for amountRemaining property
  • GET /v1/loans/{loan}/steps:
    • 200 response: added support for data.items.description property
    • 200 response: added support for data.items.metadata property
    • 200 response: added support for data.items.tags property
    • 200 response: added support for new value custom_request on enum data.items.type
    • added type query parameter
  • POST /v1/loans/{loan}/transactions:
    • 200 response: added support for amountForPayment property
    • 200 response: added support for amountRemaining property
  • POST /v1/loans/{loan}/void:
    • 200 response: added support for amountForPayment property
    • 200 response: added support for amountRemaining property
  • GET /v1/loans/{loan}:
    • 200 response: added support for amountForPayment property
    • 200 response: added support for amountRemaining property
  • POST /v1/loans/{loan}:
    • 200 response: added support for amountForPayment property
    • 200 response: added support for amountRemaining property
  • GET /v1/loans:
    • 200 response: added support for data.items.amountForPayment property
    • 200 response: added support for data.items.amountRemaining property
    • added payment_for query parameter
  • POST /v1/loans:
    • 201 response: added support for amountForPayment property
    • 201 response: added support for amountRemaining property
Products
  • GET /v1/products/{product}:
    • 200 response: added support for new value custom_request on enum settings.steps.additionalProperties.type
    • 200 response: added an item to settings.steps.additionalProperties.methodData oneOf values
  • POST /v1/products/{product}:
    • 200 response: added support for new value custom_request on enum settings.steps.additionalProperties.type
    • 200 response: added an item to settings.steps.additionalProperties.methodData oneOf values
    • requestBody: added support for new value custom_request on enum settings.steps.additionalProperties.type
    • requestBody: added an item to settings.steps.additionalProperties.methodData oneOf values
  • GET /v1/products:
    • 200 response: added support for new value custom_request on enum data.items.settings.steps.additionalProperties.type
    • 200 response: added an item to data.items.settings.steps.additionalProperties.methodData oneOf values
  • POST /v1/products:
    • 200 response: added support for new value custom_request on enum settings.steps.additionalProperties.type
    • 200 response: added an item to settings.steps.additionalProperties.methodData oneOf values
    • requestBody: added support for new value custom_request on enum settings.steps.additionalProperties.type
    • requestBody: added an item to settings.steps.additionalProperties.methodData oneOf values