Mar 30, 2023

A lista de alterações na API inclui atualizações nos endpoints de parcelas (installments) e métodos de pagamento (PaymentMethod), e a adição de um novo endpoint em empréstimos (Loans).

Para os endpoints de parcelas, a propriedade amountRemaining foi adicionada ao corpo da resposta e da solicitação em POST /v1/installments/{installment}/mark-uncollectible, POST /v1/installments/{installment}/void, GET /v1/installments/{installment}, GET /v1/installments e POST /v1/installments.

Um novo endpoint foi adicionado aos empréstimos: POST /v1/loans/{loan}/open.

Por fim, a descrição do parâmetro de consulta expand foi alterada em vários endpoints de métodos de pagamento, incluindo POST /v1/payment-methods/{id}/link, POST /v1/payment-methods/{id}/verify, POST /v1/payment-methods/{id}/void, GET /v1/payment-methods/{id}, GET /v1/payment-methods e POST /v1/payment-methods.

Installments
  • POST /v1/installments/{installment}/mark-uncollectible:
    • 200 response: added support for amountRemaining property
  • POST /v1/installments/{installment}/void:
    • 200 response: added support for amountRemaining property
  • GET /v1/installments/{installment}:
    • 200 response: added support for amountRemaining property
  • GET /v1/installments:
    • 200 response: added support for data.items.amountRemaining property
  • POST /v1/installments:
    • 200 response: added support for amountRemaining property
    • requestBody: added support for amountRemaining property
Loans
  • POST /v1/loans/{loan}/open: added
PaymentMethod
  • POST /v1/payment-methods/{id}/link:
    • expand query parameter: changed description
  • POST /v1/payment-methods/{id}/verify:
    • expand query parameter: changed description
  • POST /v1/payment-methods/{id}/void:
    • expand query parameter: changed description
  • GET /v1/payment-methods/{id}:
    • expand query parameter: changed description
  • GET /v1/payment-methods:
    • expand query parameter: changed description
  • POST /v1/payment-methods:
    • expand query parameter: changed description