{
  "opencollection": "1.0.0",
  "info": {
    "name": "Sage Accounting Bank Accounts API",
    "version": "3.1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://www.sageone.com/oauth2/auth",
      "accessTokenUrl": "https://oauth.accounting.sage.com/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Bank Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Bank Accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.accounting.sage.com/v3.1/bank_accounts"
          },
          "docs": "Returns a list of bank accounts connected to the business."
        },
        {
          "info": {
            "name": "Create Bank Account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.accounting.sage.com/v3.1/bank_accounts",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new bank account record."
        },
        {
          "info": {
            "name": "Get Bank Account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.accounting.sage.com/v3.1/bank_accounts/:key",
            "params": [
              {
                "name": "key",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns details of a specific bank account."
        }
      ]
    }
  ],
  "bundled": true
}