post https://api-sandbox.getdefacto.com/loans
Request a new loan. You can request a loan for only one invoice. At the moment, we don't support multiple-invoices financing.
- You can either request a loan for an existing invoice, in which case you should set invoice_ids
.
- Or you can create the invoice and request a loan with a single call to this API.
- If you pass an invoice in invoices
, the base64-encoded value of the PDF of the invoice is required under the document
property. You can for example use base64guru.