Get
The Plan Get method retrieves a plan given either its plan id or retrieves an array of plans given the email associated with the plans.
Endpoints
GET /api/plan/id/:id
GET /api/plan/email/:email
Response Object | Response Object <array>
field | type | description |
---|---|---|
id | number | unique identifier |
string | email of the user that created this plan | |
name | string | name for the plan |
date | string | ISO 8601 date of creation (YYYY-MM-DD) |
principal | number | total amount borrowed at creation |
interest | number | interest to be paid as a percentage (APR) |