latestSwagger 2.02026-08-2181213270.0 KB

0a9c1f8784f2

Invoice

Get your invoices

get/invoices

Query parameters

buyerstring[]

Business buying a product or service from the seller.

cursorstring

Pagination cursor from the previous response's next_page field. Omit to get the first page.

invoice_idstring[]
linked_to_loanboolean

If false, the invoice is not linked to any loan and has not been submitted for a loan.

linked_to_loan_paid_afterstring date-time

Filters invoices linked to a loan that was paid after the specified date (based on the loan's paid_at field). This filter is only effective when linked_to_loan is set to true.

linked_to_loan_paid_beforestring date-time

Filters invoices linked to a loan that was paid before the specified date (based on the loan's paid_at field). This filter is only effective when linked_to_loan is set to true.

page_sizeinteger

Maximum number of items to return per page.

querystring

Query to filter invoices

sellerstring[]

Business selling a product or service to the buyer.

statusstring[]

<b>TO_SUBMIT, SUBMITTED, TO_EDIT or VERIFIED</b><ul><li>TO_SUBMIT: the invoice is a draft, you can correct it and submit it when correct</li><li>SUBMITTED: the invoice has been submitted and Defacto is verifying it</li><li>TO_EDIT: the invoice has not been validated by Defacto. It should be edited before you can submit it again</li><li>VERIFIED: the invoice has been verified by Defacto. A loan can now be requested for the invoice.</li></ul>

Response

OK