Make payment via API from credits for all pending invoices

Is it possible to make a single payment via API from credits for all pending invoices for a single client? I am trying to integrate a mobile money payment (M-PESA), it is usually client initiated via USSD on phone, so it can even be done from a dumb phone (think Nokia 3310).
I know credit added to an account cannot be applied to a future invoice (should be a feature), so I am trying to use two API calls. One to apply the credit to a client’s account, one to make a payment to said client’s pending invoices via credit.

Sorry, it isn’t supported. You’d need to make multiple API requests.

1 Like