Definition

You are using Aria to pay Users (suppliers) really fast. To make these payments, we will always need two types of information, related to:

  1. One Invoice
  2. Multiple Loans, linked to this Invoice

The Invoice we are talking about is a sales invoice (the one sent to a debtor/client). This is the main piece of evidence Aria needs to validate your payments.

To proceed a payment with Aria, you will always be asked to create an Invoice by uploading and filling some information. That is the first step that will allow you to create Loans afterwards.

📘

If you already used our API V1, you noticed that you were already able to fill some information about invoices in Advance endpoints. This new separated Invoice concept provides more flexibility as it allows you to create the exact number of Loans linked to an Invoice. It also fits more with the way Aria is financing clients.

Debtor contact

Each uploaded invoice must be associated with a corresponding Debtor. For the purpose of financial recovery, we need you to provide the Debtor's contact information through our API. This can be done either by creating a Debtor before uploading the invoice, or by providing their contact information at the time of invoice creation.

In the first solution, all of your contact information would be stored within the Debtor object, which can be associated with multiple invoices. On the other hand, the second solution involves storing all the necessary information for each invoice within the invoice object itself.

Rules

  • An Invoice has an unique invoiceNumber, so you will not be able to upload two Invoices with the same invoiceNumber. If you create an Invoice using an invoice number that already exists, the existing Invoice will be updated with the new information you provide.
  • An Invoice may be updated if it has no Loan linked to it or if Loans are in CREATED or REFUSED status.
  • An Invoice may be deleted if it has no Loan linked to it.
  • An Invoice and its Loans must be repaid before the dueDate. For more details, see Repayment.