JohnStarich / sage

💸 Download from your banks and credit cards straight to your computer
GNU General Public License v3.0
65 stars 8 forks source link

Venmo support #7

Open JohnStarich opened 4 years ago

JohnStarich commented 4 years ago

Venmo supports a relatively simple JSON API for downloading transactions that include unique IDs. Ideally, they'd support OFX/QFX but this should be sufficient for unique ID imports.

Example:

➜ ~ curl -H 'Accept: application/json' -H 'Cookie: ...' 'https://api.venmo.com/v1/transaction-history?start_date=2019-12-01&end_date=2019-12-31'
{
  "data": {
    "start_balance": 0,
    "year_to_date_fees": 0,
    "end_balance": 0,
    "statement_period_fees": 0,
    "transactions": [
      {
        "refund": null,
        "capture": null,
        "direct_deposit": null,
        "disbursement": null,
        "internal_balance_transfer": null,
        "transfer": null,
        "datetime_created": "2019-12-02T23:55:40",
        "payment": {
          "status": "settled",
          "id": "2890403437596377250",
          "date_authorized": null,
          "date_completed": "2019-12-02T23:55:40",
          ...