{
  "opencollection": "1.0.0",
  "info": {
    "name": "BNY Mellon Treasury Services API",
    "version": "4.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api.bnymellon.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bnymellon.com/treasury/v4/accounts",
            "params": [
              {
                "name": "currency",
                "value": "",
                "type": "query",
                "description": "Filter accounts by currency (ISO 4217)"
              },
              {
                "name": "accountType",
                "value": "",
                "type": "query",
                "description": "Filter by account type"
              }
            ]
          },
          "docs": "Retrieve a list of accounts accessible to the authenticated client."
        },
        {
          "info": {
            "name": "Get Account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bnymellon.com/treasury/v4/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account identifier"
              }
            ]
          },
          "docs": "Retrieve details for a specific account."
        }
      ]
    },
    {
      "info": {
        "name": "Balances",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Account Balances",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bnymellon.com/treasury/v4/accounts/:accountId/balances",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account identifier"
              },
              {
                "name": "balanceType",
                "value": "",
                "type": "query",
                "description": "Balance type filter (current, available, intraday)"
              }
            ]
          },
          "docs": "Retrieve current, available, and intraday balances for an account."
        }
      ]
    },
    {
      "info": {
        "name": "Transactions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Transactions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bnymellon.com/treasury/v4/accounts/:accountId/transactions",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account identifier"
              },
              {
                "name": "fromDate",
                "value": "",
                "type": "query",
                "description": "Start date (ISO 8601)"
              },
              {
                "name": "toDate",
                "value": "",
                "type": "query",
                "description": "End date (ISO 8601)"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Page size"
              }
            ]
          },
          "docs": "Retrieve transaction history for a specific account."
        }
      ]
    },
    {
      "info": {
        "name": "Payments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Payments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bnymellon.com/treasury/v4/payments",
            "params": [
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Payment status filter"
              },
              {
                "name": "fromDate",
                "value": "",
                "type": "query",
                "description": "Start date filter"
              },
              {
                "name": "toDate",
                "value": "",
                "type": "query",
                "description": "End date filter"
              }
            ]
          },
          "docs": "Retrieve a list of payments with optional status and date filters."
        },
        {
          "info": {
            "name": "Initiate Payment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.bnymellon.com/treasury/v4/payments",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Initiate a payment including wire transfers, ACH, SWIFT, and international payments."
        },
        {
          "info": {
            "name": "Get Payment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bnymellon.com/treasury/v4/payments/:paymentId",
            "params": [
              {
                "name": "paymentId",
                "value": "",
                "type": "path",
                "description": "Payment identifier"
              }
            ]
          },
          "docs": "Retrieve the status and details of a specific payment."
        }
      ]
    },
    {
      "info": {
        "name": "Funds Transfers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Initiate Funds Transfer",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.bnymellon.com/treasury/v4/funds-transfers",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Initiate a domestic or international funds transfer between accounts."
        },
        {
          "info": {
            "name": "Get Funds Transfer",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bnymellon.com/treasury/v4/funds-transfers/:transferId",
            "params": [
              {
                "name": "transferId",
                "value": "",
                "type": "path",
                "description": "Funds transfer identifier"
              }
            ]
          },
          "docs": "Retrieve status and details of a specific funds transfer."
        }
      ]
    }
  ],
  "bundled": true
}