{
  "opencollection": "1.0.0",
  "info": {
    "name": "End Close Bank Account Balances API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-API-KEY",
      "value": "{{X-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Bank Account Balances",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List bank account balances",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.endclose.com/v1/bank_account_balances",
            "params": [
              {
                "name": "bank_account_id",
                "value": "",
                "type": "query",
                "description": "The bank account to list balances for"
              }
            ]
          },
          "docs": "Returns all balances for a bank account, ordered by date descending."
        },
        {
          "info": {
            "name": "Create or update a bank account balance",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.endclose.com/v1/bank_account_balances",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a balance for the specified bank account. If a balance already exists for the same date and balance type, it will be updated with the new amount (upsert behavior)."
        },
        {
          "info": {
            "name": "Bulk create or update bank account balances",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.endclose.com/v1/bank_account_balances/bulk",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Submit up to 1,000 balances for a bank account in a single request. Each balance is upserted — if a balance already exists for the same date and balance type, it will be updated with the new amount. All balances are processed in a single transaction."
        }
      ]
    }
  ],
  "bundled": true
}