{
  "opencollection": "1.0.0",
  "info": {
    "name": "Consents Account On File Account Controls (New) Account Controls (New) Raw Data API",
    "version": "v0.2.3"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Raw Data",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/data/v2/accounts",
            "headers": [
              {
                "name": "customer-ip",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "async",
                "value": "",
                "type": "query",
                "description": "When `true` the API will only return a `results_id` which can be fetched from the `/results` endpoint when ready."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page you're requesting - returns page 0 of a response if not specified."
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "The number of objects you want to return as a page size."
              },
              {
                "name": "entity_id",
                "value": "",
                "type": "query",
                "description": "The `entity_id` you're querying for."
              },
              {
                "name": "meta",
                "value": "",
                "type": "query",
                "description": "Additional data you would like to store against the request. Example: {\"foo\": \"val\"}"
              },
              {
                "name": "force_refresh",
                "value": "",
                "type": "query",
                "description": "Ignore Lean's caching and force a call to the bank. This may have unwanted performance issues. "
              },
              {
                "name": "verbose",
                "value": "",
                "type": "query",
                "description": "Shows `regional_data` values in responses when true. Defaults to `false`."
              }
            ]
          },
          "docs": "Retrieve the accounts for an Entity ID"
        },
        {
          "info": {
            "name": "Get Balances",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/data/v2/accounts/:account_id/balances",
            "headers": [
              {
                "name": "customer-ip",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The `account_id` to fetch balance(s) for "
              },
              {
                "name": "async",
                "value": "",
                "type": "query",
                "description": "When `true` the API will only return a `results_id` which can be fetched from the `/results` endpoint when ready."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page you're requesting - returns page 0 of a response if not specified."
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "The number of objects you want to return as a page size."
              },
              {
                "name": "entity_id",
                "value": "",
                "type": "query",
                "description": "The `entity_id` you're querying for."
              },
              {
                "name": "meta",
                "value": "",
                "type": "query",
                "description": "Additional data you would like to store against the request. Example: {\"foo\": \"val\"}"
              },
              {
                "name": "force_refresh",
                "value": "",
                "type": "query",
                "description": "Ignore Lean's caching and force a call to the bank. This may have unwanted performance issues. "
              },
              {
                "name": "verbose",
                "value": "",
                "type": "query",
                "description": "Shows `regional_data` values in responses when true. Defaults to `false`."
              }
            ]
          },
          "docs": "Get the balances for a specific account given an accountId. The accountId can be found by making a call to the /accounts endpoint.\n\nRequires an active entity with the `balances` permission to use."
        },
        {
          "info": {
            "name": "Get Transactions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/data/v2/accounts/:account_id/transactions",
            "headers": [
              {
                "name": "customer-ip",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "async",
                "value": "",
                "type": "query",
                "description": "When `true` the API will only return a `results_id` which can be fetched from the `/results` endpoint when ready."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page you're requesting - returns page 0 of a response if not specified."
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "The number of objects you want to return as a page size."
              },
              {
                "name": "entity_id",
                "value": "",
                "type": "query",
                "description": "The `entity_id` you're querying for."
              },
              {
                "name": "meta",
                "value": "",
                "type": "query",
                "description": "Additional data you would like to store against the request. Example: {\"foo\": \"val\"}"
              },
              {
                "name": "verbose",
                "value": "",
                "type": "query",
                "description": "Shows `regional_data` values in responses when true. Defaults to `false`."
              },
              {
                "name": "start_date",
                "value": "",
                "type": "query",
                "description": "The start date in UTC (in the format YYYY-MM-DD) you want to query transactions for."
              },
              {
                "name": "end_date",
                "value": "",
                "type": "query",
                "description": "The end date in UTC (in the format YYYY-MM-DD) you want to query transactions for."
              }
            ]
          },
          "docs": "Get the transactions for a specific account given an accountId. The accountId can be found by making a call to the /accounts endpoint."
        },
        {
          "info": {
            "name": "Retrieve Identity",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/data/v2/identity",
            "headers": [
              {
                "name": "customer-ip",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "async",
                "value": "",
                "type": "query",
                "description": "When `true` the API will only return a `results_id` which can be fetched from the `/results` endpoint when ready."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page you're requesting - returns page 0 of a response if not specified."
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "The number of objects you want to return as a page size."
              },
              {
                "name": "entity_id",
                "value": "",
                "type": "query",
                "description": "The `entity_id` you're querying for."
              },
              {
                "name": "meta",
                "value": "",
                "type": "query",
                "description": "Additional data you would like to store against the request. Example: {\"foo\": \"val\"}"
              },
              {
                "name": "force_refresh",
                "value": "",
                "type": "query",
                "description": "Ignore Lean's caching and force a call to the bank. This may have unwanted performance issues. "
              },
              {
                "name": "verbose",
                "value": "",
                "type": "query",
                "description": "Shows `regional_data` values in responses when true. Defaults to `false`."
              }
            ]
          },
          "docs": "Get the identity details of the account holder stored at the bank."
        },
        {
          "info": {
            "name": "Get identities",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/data/v2/accounts/:account_id/identities",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The account_id used to fetch requested data"
              },
              {
                "name": "async",
                "value": "",
                "type": "query",
                "description": "When true the API will return a results_id which can be fetched from the /data/v2/results endpoint when ready. **Note: it's recommended to use the sync flow (async=false) for all requests by adapting the [data workflow](https://docs.leantech.me/docs/data-workflow) for connected entities.**"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page you're requesting - returns page 0 of a response if not specified."
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "The number of objects you want to return as a page size."
              },
              {
                "name": "entity_id",
                "value": "",
                "type": "query",
                "description": "The entity_id you're querying for, which is created by LinkSDK `.connect()` function."
              },
              {
                "name": "meta",
                "value": "",
                "type": "query",
                "description": "Additional data you would like to store against the request. Example: {\"foo\": \"val\"}"
              }
            ]
          },
          "docs": "Get the identities of all the people associated to an account given an accountId. \nThe accountId can be found by making a call to the /accounts endpoint.\nRequires the following permissions: `identities`\n"
        },
        {
          "info": {
            "name": "Get Beneficiaries",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/data/v2/accounts/:account_id/beneficiaries",
            "headers": [
              {
                "name": "customer-ip",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "async",
                "value": "",
                "type": "query",
                "description": "When `true` the API will only return a `results_id` which can be fetched from the `/results` endpoint when ready."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page you're requesting - returns page 0 of a response if not specified."
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "The number of objects you want to return as a page size."
              },
              {
                "name": "entity_id",
                "value": "",
                "type": "query",
                "description": "The `entity_id` you're querying for."
              },
              {
                "name": "meta",
                "value": "",
                "type": "query",
                "description": "Additional data you would like to store against the request. Example: {\"foo\": \"val\"}"
              },
              {
                "name": "force_refresh",
                "value": "",
                "type": "query",
                "description": "Ignore Lean's caching and force a call to the bank. This may have unwanted performance issues. "
              },
              {
                "name": "verbose",
                "value": "",
                "type": "query",
                "description": "Shows `regional_data` values in responses when true. Defaults to `false`."
              }
            ]
          },
          "docs": "Get the beneficiaries for a specific account given an accountId. The accountId can be found by making a call to the /accounts endpoint."
        },
        {
          "info": {
            "name": "Get Direct Debits",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/data/v2/accounts/:account_id/direct-debits",
            "headers": [
              {
                "name": "customer-ip",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "async",
                "value": "",
                "type": "query",
                "description": "When `true` the API will only return a `results_id` which can be fetched from the `/results` endpoint when ready."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page you're requesting - returns page 0 of a response if not specified."
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "The number of objects you want to return as a page size."
              },
              {
                "name": "entity_id",
                "value": "",
                "type": "query",
                "description": "The `entity_id` you're querying for."
              },
              {
                "name": "meta",
                "value": "",
                "type": "query",
                "description": "Additional data you would like to store against the request. Example: {\"foo\": \"val\"}"
              },
              {
                "name": "force_refresh",
                "value": "",
                "type": "query",
                "description": "Ignore Lean's caching and force a call to the bank. This may have unwanted performance issues. "
              },
              {
                "name": "verbose",
                "value": "",
                "type": "query",
                "description": "Shows `regional_data` values in responses when true. Defaults to `false`."
              }
            ]
          },
          "docs": "Get the direct debits for a specific account given an accountId. The accountId can be found by making a call to the /accounts endpoint."
        },
        {
          "info": {
            "name": "Get Scheduled Payments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/data/v2/accounts/:account_id/scheduled-payments",
            "headers": [
              {
                "name": "customer-ip",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "async",
                "value": "",
                "type": "query",
                "description": "When `true` the API will only return a `results_id` which can be fetched from the `/results` endpoint when ready."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page you're requesting - returns page 0 of a response if not specified."
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "The number of objects you want to return as a page size."
              },
              {
                "name": "entity_id",
                "value": "",
                "type": "query",
                "description": "The `entity_id` you're querying for."
              },
              {
                "name": "meta",
                "value": "",
                "type": "query",
                "description": "Additional data you would like to store against the request. Example: {\"foo\": \"val\"}"
              },
              {
                "name": "force_refresh",
                "value": "",
                "type": "query",
                "description": "Ignore Lean's caching and force a call to the bank. This may have unwanted performance issues. "
              },
              {
                "name": "verbose",
                "value": "",
                "type": "query",
                "description": "Shows `regional_data` values in responses when true. Defaults to `false`."
              }
            ]
          },
          "docs": "Get the scheduled payments for a specific account given an accountId. The accountId can be found by making a call to the /accounts endpoint."
        },
        {
          "info": {
            "name": "Get Standing Orders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/data/v2/accounts/:account_id/standing-orders",
            "headers": [
              {
                "name": "customer-ip",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "async",
                "value": "",
                "type": "query",
                "description": "When `true` the API will only return a `results_id` which can be fetched from the `/results` endpoint when ready."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page you're requesting - returns page 0 of a response if not specified."
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "The number of objects you want to return as a page size."
              },
              {
                "name": "entity_id",
                "value": "",
                "type": "query",
                "description": "The `entity_id` you're querying for."
              },
              {
                "name": "meta",
                "value": "",
                "type": "query",
                "description": "Additional data you would like to store against the request. Example: {\"foo\": \"val\"}"
              },
              {
                "name": "force_refresh",
                "value": "",
                "type": "query",
                "description": "Ignore Lean's caching and force a call to the bank. This may have unwanted performance issues. "
              },
              {
                "name": "verbose",
                "value": "",
                "type": "query",
                "description": "Shows `regional_data` values in responses when true. Defaults to `false`."
              }
            ]
          },
          "docs": "Get the standing orders for a specific account given an accountId. The accountId can be found by making a call to the /accounts endpoint."
        }
      ]
    }
  ],
  "bundled": true
}