{
  "opencollection": "1.0.0",
  "info": {
    "name": "Pennylane Company Account Ledger Accounts API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Ledger Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List ledger accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.pennylane.com/api/external/v2/ledger_accounts",
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Opaque cursor for cursor-based pagination."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Page size."
              }
            ]
          },
          "docs": "Requires scope: ledger_accounts:readonly or ledger_accounts:all."
        },
        {
          "info": {
            "name": "Create a ledger account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.pennylane.com/api/external/v2/ledger_accounts",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Requires scope: ledger_accounts:all."
        },
        {
          "info": {
            "name": "Get a ledger account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.pennylane.com/api/external/v2/ledger_accounts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Internal Pennylane resource id (v2 uses internal ids only, not source_id)."
              }
            ]
          },
          "docs": "Get a ledger account"
        },
        {
          "info": {
            "name": "Update a ledger account",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://app.pennylane.com/api/external/v2/ledger_accounts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Internal Pennylane resource id (v2 uses internal ids only, not source_id)."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Requires scope: ledger_accounts:all."
        }
      ]
    }
  ],
  "bundled": true
}