Top

Statement

Get last imported statement
GET /bankaccounts/:account_id/statement/lastimported
Get the details of previously imported statement for the account.
Delete last imported statement
DELETE /bankaccounts/:account_id/statement/:statement_id
Delete the statement that was previously imported.

Get last imported statement

GET  /bankaccounts/:account_id/statement/lastimported

Get the details of previously imported statement for the account.

Sample Response

Status: 200 OK
Content Type: application/json;charset=UTF-8
{
  "code": 0,
  "message": "success",
  "statement": {
    "statement_id": "460000000049013",
    "from_date": "2012-01-12",
    "to_date": "2012-01-19",
    "source": "csv",
    "transactions": [
      {
        "transaction_id": "460000000049023",
        "debit_or_credit": "credit",
        "date": "2012-01-14",
        "customer_id": "460000000026049",
        "payee": "Bowman and Co",
        "reference_number": "Ref-2134",
        "transaction_type": "expense",
        "amount": 7500.00,
        "status": "categorized"
      },
      {
        "transaction_id": "460000000049015",
        "debit_or_credit": "debit",
        "date": "2012-01-12",
        "customer_id": "",
        "payee": "John Roberts",
        "reference_number": "Ref-1900",
        "transaction_type": "uncategorized",
        "amount": 5000.00,
        "status": "uncategorized"
      },
      {
        "transaction_id": "460000000049019",
        "debit_or_credit": "credit",
        "date": "2012-01-19",
        "customer_id": "",
        "payee": "Joseph",
        "reference_number": "Ref-9872",
        "transaction_type": "uncategorized",
        "amount": 4000.00,
        "status": "uncategorized"
      }
    ]
  },
  "page_context": {
    "page": 1,
    "per_page": 200,
    "has_more_page": false,
    "sort_column": "date",
    "sort_order": "A"
  }
}

Delete last imported statement

DELETE  /bankaccounts/:account_id/statement/:statement_id

Delete the statement that was previously imported.

Sample Response

Status: 200 OK
Content Type: application/json;charset=UTF-8
{
  "code": 0,
  "message": "You have successfully deleted the last imported statement."
}