V2 - Retrieve a draft invoice
by Integrations SquadDeprecation Notice
Retrieve a draft invoice is now deprecated in favor of Retrieve a customer invoice.
For more details on this initiative, please refer to our documentation.
Retrieve a draft invoice is now deprecated in favor of Retrieve a customer invoice.
For more details on this initiative, please refer to our documentation.
The account_id
filter on the List transactions endpoint has been renamed into bank_account_id
for consistency with the rest of the wording used on the API.
On the List transactions endpoint, it's now possible to filter transactions by date using the date
filter.
The data structure of responses related to transactions has been unified and now contains more attributes.
currency
of the transaction and a journal
object containing the id
of the journal.outstanding_balance
, archived_at
and fee
attributes of a transaction. A journal
object containing the id
of the journal was added. Abank_account
object containing theid
of the bank account as well as theurl
of the API to fetch that bank account was added. Acategories
array containing the categories of a transaction was added.🎉 We are happy to announce that part of the Merge Project, it is now possible to list and upload appendices for credit notes. For more details on this initiative, please refer to our documentation.
List appendices for a customer invoice and Upload an appendix for a customer invoice endpoints previously returned a 404
response when the invoice was a credit note. There are now able to list and create appendices for credit notes, draft invoices and finalized invoices.
The List invoice lines for a credit note and List invoice line sections for a credit note endpoints are now deprecated as part of the Merge Project. For more details on this initiative, please refer to our documentation.
List invoice lines for a customer invoice and List invoice line sections endpoints previously returned a 404
response when the invoice was a credit note. They are now able to request associated resources for credit notes, draft invoices and finalized invoices.
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"
}
Few changes on status code rendered due to the Merge Project for Customer Invoices Matched Transactions endpoints. For more details on this initiative, please refer to our documentation.
As a reminder it is not possible to match a transaction to a draft invoice.
Before, when the requested invoice was a draft, the response status code was 404
.
Now this endpoint returns a 200
with an empty array.
Before, when the requested invoice was a draft, the response status code was 404
.
Now this endpoint returns a 422
with following error message: "This endpoint is not applicable for draft invoices"
Before, when the requested invoice was a draft, the response status code was 404
.
Now this endpoint returns a 422
with following error message: "This endpoint is not applicable for draft invoices"
Turn the draft invoice into a finalized invoice is now deprecated in favor of the new endpoint on the customer invoices resource.
For more details on this initiative, please refer to our documentation.
The Update a draft invoice and Update a finalized invoice endpoints are now deprecated as part of the Merge Project. For more details on this initiative, please refer to our documentation.
The 2 deprecated endpoints mentioned above will be replaced by a single update endpoint that works for both draft and finalized customer invoices.
The Retrieve a customer invoice endpoint is now able to retrieve both draft and finalized customer invoices.