Create a gist now

Instantly share code, notes, and snippets.

@reddavis /Forecast API.md Secret
Last active Nov 28, 2017

Embed
What would you like to do?

API

Requests

Base URL

https://my.forecast.money

GET - /api/v1/user

CURL

curl -X GET "https://forecast.money/api/v1/user" \
-u "hello@forecast.money":"password"

Security

Response

{
  "assets": [
    {
      "amount": {
        "amount": 99.99,
        "symbol": "£"
      },
      "id": "bank_accounts",
      "name": "Bank Accounts"
    },
    {
      "amount": {
        "amount": 99.99,
        "symbol": "£"
      },
      "id": "unpaid_invoices",
      "name": "Unpaid Invoices"
    },
    {
      "amount": {
        "amount": 99.99,
        "symbol": "£"
      },
      "id": "draft_invoices",
      "name": "Draft Invoices"
    }
  ],
  "clients": [
    {
      "average_days_late": 0,
      "id": "https://api.freeagent.com/v2/contacts/9999",
      "name": "XYZ",
      "total_billed": {
        "amount": 99.99,
        "symbol": "£"
      },
      "total_billed_as_percentage": 0.3086518121789801
    },
    {
      "average_days_late": 8,
      "id": "https://api.freeagent.com/v2/contacts/9998",
      "name": "ABC",
      "total_billed": {
        "amount": 99.99,
        "symbol": "£"
      },
      "total_billed_as_percentage": 0.2548665749675824
    }
  ],
  "company": {
    "name": "Forecast"
  },
  "forecast": {
    "burning_per_month": {
      "amount": 99.99,
      "symbol": "£"
    },
    "remaining_days": 95
  },
  "liabilities": [
    {
      "amount": {
        "amount": 99.99,
        "symbol": "£"
      },
      "id": "corporation_tax",
      "name": "Corporation Tax"
    },
    {
      "amount": {
        "amount": 99.99,
        "symbol": "£"
      },
      "id": "vat",
      "name": "VAT"
    },
    {
      "amount": {
        "amount": 0.0,
        "symbol": "£"
      },
      "id": "unpaid_bills",
      "name": "Unpaid Bills"
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment