improved

V2 - Mark a customer invoice as paid

Breaking changes Notice

Before, when the requested invoice was a draft the response status was 404.

Now, the following response is returned

{
  status: 422,
  error: "This endpoint is not applicable for draft invoices"
}

Before, when the requested invoice was a credit note the response status was 404.

Now, the following response is returned

{
  status: 422,
  error: "This endpoint is not applicable for credit notes"
}