Sequence of API calls for the term payment solution

1. Create the customer (debtor) if it does not yet exist.

2. Check if the order is fundable :

a. Create the draft invoice (action required to verify eligibility)

b. Verify eligibility for funding

If the order is eligible for term payment, propose this method of payment.

3. Choice of payment and invoice generation

a. Once the customer has chosen the term payment, trigger the sending of the invoice. 

b. Koala pays the invoice amount to the merchant as soon as the delivery is made.

If the customer has not opted for deferred payment, the draft invoice is deleted via the API.