Divvy · Schema

BillApprovalPolicyResponseDto

Response DTO for bill approval policy.

CompanyPaymentsSpend ManagementCorporate CardsExpense ManagementFintechBills

Properties

Name Type Description
id string BILL-generated ID of the approval policy. The value is in the `{organization_id}-{unique_id}` format.
policyName string Bill approval policy name
status string Bill approval policy status
rules array Bill approval policy rules
approvers object
View JSON Schema on GitHub

JSON Schema

divvy-bill-approval-policy-response-dto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-bill-approval-policy-response-dto-schema.json",
  "title": "BillApprovalPolicyResponseDto",
  "description": "Response DTO for bill approval policy.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-bill-approvals-api-openapi.yml#/components/schemas/BillApprovalPolicyResponseDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "BILL-generated ID of the approval policy. The value is in the `{organization_id}-{unique_id}` format."
    },
    "policyName": {
      "type": "string",
      "description": "Bill approval policy name"
    },
    "status": {
      "type": "string",
      "description": "Bill approval policy status"
    },
    "rules": {
      "type": "array",
      "description": "Bill approval policy rules",
      "items": {
        "$ref": "#/$defs/BillApprovalPolicyRuleResponseDto"
      }
    },
    "approvers": {
      "allOf": [
        {
          "$ref": "#/$defs/BillApproversDto"
        },
        {
          "description": "List of approvers"
        }
      ]
    }
  },
  "$defs": {
    "ApproverGroupDto": {
      "type": "object",
      "properties": {
        "groupName": {
          "type": "string",
          "description": "Approval group name"
        },
        "groupId": {
          "type": "string",
          "description": "BILL-generated ID of the approval group. The value begins with `agp`."
        },
        "users": {
          "type": "array",
          "description": "Approval group user information",
          "items": {
            "$ref": "#/$defs/GroupUsers"
          }
        }
      },
      "description": "Groups containing users."
    },
    "ApproverUserDto": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "string",
          "description": "BILL-generated ID of the user. The value begins with `006`."
        },
        "fullName": {
          "type": "string",
          "description": "User full name"
        }
      },
      "description": "User Approvers for a bill approval policy."
    },
    "BillApprovalPolicyRuleResponseDto": {
      "type": "object",
      "properties": {
        "key": {
          "allOf": [
            {
              "$ref": "#/$defs/RuleKeyResponse"
            },
            {
              "description": "Rule key"
            }
          ]
        },
        "op": {
          "allOf": [
            {
              "$ref": "#/$defs/BillApprovalRuleOperatorResponse"
            },
            {
              "description": "Rule operator"
            }
          ]
        },
        "values": {
          "type": "array",
          "description": "Rule values",
          "items": {
            "$ref": "#/$defs/RuleValueDto"
          }
        }
      },
      "description": "Rules for a bill approval policy."
    },
    "BillApprovalRuleOperatorResponse": {
      "type": "string",
      "description": "Response enum of operators supported for bill policy approval rules.",
      "enum": [
        "lt",
        "gte",
        "in",
        "nin",
        "UNDEFINED"
      ]
    },
    "BillApproversDto": {
      "type": "object",
      "properties": {
        "users": {
          "type": "array",
          "description": "List of approver users",
          "items": {
            "$ref": "#/$defs/ApproverUserDto"
          }
        },
        "groups": {
          "type": "array",
          "description": "List of approval groups",
          "items": {
            "$ref": "#/$defs/ApproverGroupDto"
          }
        }
      },
      "description": "Approvers for a bill approval policy."
    },
    "GroupUsers": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "BILL-generated ID of the user. The value begins with `006`."
        },
        "fullName": {
          "type": "string",
          "description": "User full name"
        }
      },
      "description": "Users that are part of an approval group."
    },
    "RuleKeyResponse": {
      "type": "string",
      "description": "Response enum of allowed keys for bill policy approval.",
      "enum": [
        "BILL_AMOUNT",
        "BILL_LINE_ITEM_AMOUNT",
        "ACCOUNTING_CLASS_ID",
        "CHART_OF_ACCOUNT_ID",
        "CUSTOMER_ID",
        "DEPARTMENT_ID",
        "EMPLOYEE_ID",
        "JOB_ID",
        "LOCATION_ID",
        "VENDOR_ID",
        "UNDEFINED"
      ]
    },
    "RuleValueDto": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Value"
        },
        "displayName": {
          "type": "string",
          "description": "Display name"
        }
      },
      "description": "Rule value DTO."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/divvy-bill-approval-policy-response-dto"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.