{
  "opencollection": "1.0.0",
  "info": {
    "name": "Campfire Developer APIs Accounts Payable Cash Management API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Cash Management",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Bank Accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.meetcampfire.com/ca/api/account",
            "params": [
              {
                "name": "chart_of_accounts_account",
                "value": "",
                "type": "query",
                "description": "Filter bank accounts by their linked chart of accounts account ID"
              },
              {
                "name": "include_deleted",
                "value": "",
                "type": "query",
                "description": "When set to 'true', returns ONLY deleted records instead of active records. Deleted records contain minimal data: 'id', 'is_deleted=true', 'deleted_at' timestamp, and 'last_modified_at'. When 'false' or omitted, returns ONLY active records. This provides clean separation between active and deleted data."
              },
              {
                "name": "last_modified_at__gte",
                "value": "",
                "type": "query",
                "description": "Filter for records modified on or after this timestamp. Format: ISO 8601 (e.g., '2024-01-01T00:00:00Z' or '2024-01-01'). Works with both active records and deleted records (filters by deletion time for deleted records)."
              },
              {
                "name": "last_modified_at__lte",
                "value": "",
                "type": "query",
                "description": "Filter for records modified on or before this timestamp. Format: ISO 8601 (e.g., '2024-12-31T23:59:59Z' or '2024-12-31'). Works with both active records and deleted records (filters by deletion time for deleted records)."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of results to return per page."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The initial index from which to return the results."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "\n        Retrieve a paginated list of bank accounts.\n\n        Supports including soft-deleted records for audit and recovery purposes.\n        When include_deleted=true, deleted records will have is_deleted=true\n        and include deletion metadata (deleted_at timestamp).\n\n        Supports sorting by all returned fields:\n        - name, -name (account name)\n        - nickname, -nickname (account nickname)\n        - type, -type (account type)\n        - status, -status (account status)\n        - "
        },
        {
          "info": {
            "name": "Create Bank Account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.meetcampfire.com/ca/api/account",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Create a new bank account"
        },
        {
          "info": {
            "name": "Retrieve Bank Account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.meetcampfire.com/ca/api/account/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Retrieve Bank Account"
        },
        {
          "info": {
            "name": "Update Bank Account",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.meetcampfire.com/ca/api/account/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Update Bank Account"
        },
        {
          "info": {
            "name": "Partial Update Bank Account",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.meetcampfire.com/ca/api/account/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Partial Update Bank Account"
        },
        {
          "info": {
            "name": "Delete Bank Account",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.meetcampfire.com/ca/api/account/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "new_account",
                "value": "",
                "type": "query",
                "description": "ID of the bank account to reassign transactions to before deletion"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Delete Bank Account"
        },
        {
          "info": {
            "name": "Post Bank Feed",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.meetcampfire.com/ca/api/bank-feed/:account_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Ingest bank feed data for a specific bank account. Creates bank transactions with corresponding journal entries, updates account balances, and triggers auto-categorization."
        },
        {
          "info": {
            "name": "List Bank Transactions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.meetcampfire.com/ca/api/transaction",
            "params": [
              {
                "name": "exclude_drafts",
                "value": "",
                "type": "query",
                "description": "If true, hide bank transactions that have a pending cash-application DraftQueue attached (match drafts or categorize drafts). Default false."
              },
              {
                "name": "include_deleted",
                "value": "",
                "type": "query",
                "description": "When set to 'true', returns ONLY deleted records instead of active records. Deleted records contain minimal data: 'id', 'is_deleted=true', 'deleted_at' timestamp, and 'last_modified_at'. When 'false' or omitted, returns ONLY active records. This provides clean separation between active and deleted data."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of results to return per page."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The initial index from which to return the results."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "\n        Retrieve a paginated list of bank transactions with optional filtering.\n\n        Supports including soft-deleted records for audit and recovery purposes.\n        When include_deleted=true, deleted records will have is_deleted=true\n        and include deletion metadata (deleted_at timestamp).\n        "
        },
        {
          "info": {
            "name": "Create Bank Transaction",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.meetcampfire.com/ca/api/transaction",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Create a new bank transaction"
        },
        {
          "info": {
            "name": "Retrieve Bank Transaction",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.meetcampfire.com/ca/api/transaction/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Retrieve Bank Transaction"
        },
        {
          "info": {
            "name": "Update Bank Transaction",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.meetcampfire.com/ca/api/transaction/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Update Bank Transaction"
        },
        {
          "info": {
            "name": "Partial Update Bank Transaction",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.meetcampfire.com/ca/api/transaction/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Partial Update Bank Transaction"
        },
        {
          "info": {
            "name": "Delete Bank Transaction",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.meetcampfire.com/ca/api/transaction/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Delete Bank Transaction"
        }
      ]
    }
  ],
  "bundled": true
}