Get

The Invoice Get method retrieves an array of invoices (one for each month of repayment) either by plan id (pid) or the email of the plan owner.

Endpoints
GET /api/invoice/plan/:pid
GET /api/invoice/email/:email

Response Object <array>

fieldtypedescription
idnumberunique identifier
pidnumberid of the corresponding plan
emailstringemail of the user that is the plan owner
duestringISO 8601 date to be paid by (YYYY-MM-DD)
amnt_duenumber(total - amount already paid)
totalnumberamount to be paid this term
fulfilledbooleanif this invoice has been paid