{
  "service": "Creditcrest Capacity",
  "version": "1.0.0",
  "stores": "nothing",
  "endpoints": {
    "POST /v1/capacity": {
      "what": "Serviceability and borrowing power for a loan, on a statement sent in the body.",
      "body": "the CSV export as text/csv with the loan in the query, or JSON {statement, loan, rate, years, …}",
      "query": {
        "loan": "the amount applied for, dollars",
        "rate": "the annual rate, per cent",
        "years": "the term, years",
        "benchmark": "the lender’s own monthly expense benchmark, dollars",
        "declared": "monthly expenses the applicant declared, dollars",
        "minimum": "the lender’s surplus floor, dollars a month",
        "gross": "gross annual income, dollars",
        "debts": "other debts the lender counts, dollars",
        "cards": "credit card limits, dollars",
        "retiring": "commitments that end before the loan starts, by description"
      }
    },
    "GET /v1/capacity": {
      "what": "The same on the invented ordinary statement, for any loan in the query.",
      "query": {
        "loan": "the amount applied for, dollars",
        "rate": "the annual rate, per cent",
        "years": "the term, years",
        "benchmark": "the lender’s own monthly expense benchmark, dollars",
        "declared": "monthly expenses the applicant declared, dollars",
        "minimum": "the lender’s surplus floor, dollars a month",
        "gross": "gross annual income, dollars",
        "debts": "other debts the lender counts, dollars",
        "cards": "credit card limits, dollars",
        "retiring": "commitments that end before the loan starts, by description"
      }
    }
  }
}