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>
field | type | description |
---|---|---|
id | number | unique identifier |
pid | number | id of the corresponding plan |
string | email of the user that is the plan owner | |
due | string | ISO 8601 date to be paid by (YYYY-MM-DD) |
amnt_due | number | (total - amount already paid) |
total | number | amount to be paid this term |
fulfilled | boolean | if this invoice has been paid |