{
  "opencollection": "1.0.0",
  "info": {
    "name": "Modern Treasury AccountCapability Ledger API",
    "version": "v1"
  },
  "items": [
    {
      "info": {
        "name": "Ledger",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "list ledgers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:3000/api/ledgers",
            "params": [
              {
                "name": "after_cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "metadata",
                "value": "",
                "type": "query",
                "description": "For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query parameters."
              },
              {
                "name": "id[]",
                "value": "",
                "type": "query",
                "description": "If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example `?id[]=123&id[]=abc`."
              },
              {
                "name": "updated_at",
                "value": "",
                "type": "query",
                "description": "Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the posted at timestamp. For example, for all times after Jan 1 2000 12:00 UTC, use updated_at%5Bgt%5D=2000-01-01T12:00:00Z."
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Get a list of ledgers."
        },
        {
          "info": {
            "name": "create ledger",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:3000/api/ledgers",
            "headers": [
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Create a ledger."
        },
        {
          "info": {
            "name": "get ledger",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:3000/api/ledgers/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Get details on a single ledger."
        },
        {
          "info": {
            "name": "update ledger",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "http://localhost:3000/api/ledgers/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Update the details of a ledger."
        },
        {
          "info": {
            "name": "delete ledger",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "http://localhost:3000/api/ledgers/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Delete a ledger."
        }
      ]
    }
  ],
  "bundled": true
}