---
updatedAt: 2026-05-05T22:03:38.000Z
agentTools:
  projectIndex: https://developer.bill.com/llms.txt
---

# Create a bill approval policy

Create a new bill approval policy.

In your request, set `rules` and `approvers` in the specified format. For example, to create a bill approval policy for all bills greater than or equal to `$1000`, set `rules` for `BILL_AMOUNT`.
```
{
  "policyName": "Approval policy for bills >= $1000",
  "rules": [
    {
      "key": "BILL_AMOUNT",
      "op": "gte",
      "values": [
        "1000"
      ]
    }
  ],
  "approvers": [
    "{approver_user_id}"
  ]
}
```

# OpenAPI definition

````json
{
  "openapi": "3.0.1",
  "info": {
    "title": "BILL v3 API",
    "description": "BILL is a cloud-based financial operations platform for an organization's accounts payable (AP), accounts receivable (AR), and spend & expense (S&E) automation.\n\nThe BILL v3 API gives you access to the same infrastructure that powers the AP, AR, and S&E products. In addition, you can receive real-time event notifications with webhooks.\n\nThe BILL Developer Documentation is available at [developer.bill.com](https://developer.bill.com/docs/home).\n\n## Quickstart\nSign-up and generate a developer key for working with the BILL v3 API. With this key, you can build with the AP, AR, BILL network, and webhook workflows. See [Sandbox API sign up](https://developer.bill.com/docs/api-sandbox-sign-up) for more information.\n\n### Spend & Expense API\nAn API token is required for working with the Spend & Expense API. See [Authentication with Spend & Expense API token](https://developer.bill.com/docs/authentication-with-api-token) for more information.\n\n### BILL v3 API in Postman\nWith this collection, you have access to the BILL v3 API in Postman. When you save your sandbox API credentials as environment variables in Postman, you can simply refer to the variables when you are testing with the BILL v3 API. See [BILL v3 API in Postman](https://developer.bill.com/docs/bill-v3-api-in-postman) for more information.",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://gateway.stage.bill.com/connect",
      "description": "sandbox"
    }
  ],
  "paths": {
    "/v3/bill-approvals/policies": {
      "post": {
        "tags": [
          "bill-approvals"
        ],
        "summary": "Create a bill approval policy",
        "description": "Create a new bill approval policy.\n\nIn your request, set `rules` and `approvers` in the specified format. For example, to create a bill approval policy for all bills greater than or equal to `$1000`, set `rules` for `BILL_AMOUNT`.\n```\n{\n  \"policyName\": \"Approval policy for bills >= $1000\",\n  \"rules\": [\n    {\n      \"key\": \"BILL_AMOUNT\",\n      \"op\": \"gte\",\n      \"values\": [\n        \"1000\"\n      ]\n    }\n  ],\n  \"approvers\": [\n    \"{approver_user_id}\"\n  ]\n}\n```",
        "operationId": "createBillApprovalPolicy",
        "parameters": [
          {
            "name": "sessionId",
            "in": "header",
            "schema": {
              "type": "string",
              "description": "API session ID generated with `/v3/login`",
              "nullable": true,
              "example": "{{session_id}}"
            }
          },
          {
            "name": "devKey",
            "in": "header",
            "schema": {
              "type": "string",
              "description": "Developer key generated with your BILL developer account",
              "nullable": true,
              "example": "{{developer_key}}"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillApprovalPolicyRequestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Create a bill approval policy response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillApprovalPolicyResponseDto"
                }
              }
            }
          },
          "4XX": {
            "description": "List of errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BdcError"
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "List of errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BdcError"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "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": "#/components/schemas/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."
      },
      "BdcError": {
        "required": [
          "category",
          "code",
          "severity",
          "timestamp"
        ],
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "code": {
            "type": "string"
          },
          "severity": {
            "$ref": "#/components/schemas/Severity"
          },
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "message": {
            "type": "string"
          },
          "params": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Param"
            }
          },
          "detail": {
            "type": "string"
          },
          "help": {
            "type": "string"
          }
        }
      },
      "BillApprovalPolicyCreateRuleDto": {
        "type": "object",
        "properties": {
          "key": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RuleKeyCreateDto"
              },
              {
                "description": "Rule key.\n\n**Note**: Currently, only `BILL_AMOUNT` is supported with the API."
              }
            ]
          },
          "op": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RuleOperatorCreateDto"
              },
              {
                "description": "Rule operator.\n* `lt`: Less than\n* `gte`: Greater than or equal to\n* `in`: Any value in a list\n"
              }
            ]
          },
          "values": {
            "type": "array",
            "description": "Rule values",
            "items": {
              "type": "string"
            }
          }
        },
        "description": "Rules for a bill approval policy."
      },
      "BillApprovalPolicyRequestDto": {
        "required": [
          "approvers",
          "policyName",
          "rules"
        ],
        "type": "object",
        "properties": {
          "policyName": {
            "type": "string",
            "description": "Bill approval policy name"
          },
          "rules": {
            "type": "array",
            "description": "Bill approval policy rules. You can set multiple rules for a policy.\n\n**Note**: Policy rules are applied in the specified order.",
            "items": {
              "$ref": "#/components/schemas/BillApprovalPolicyCreateRuleDto"
            }
          },
          "approvers": {
            "type": "array",
            "description": "List of approvers. For each approver, set the BILL-generated ID of the user. The value begins with `006`.\n\n**Note**: BILL requests approvals in the specified order.",
            "items": {
              "type": "string"
            }
          }
        },
        "description": "Create a bill approval policy",
        "example": {
          "policyName": "Approval policy for bills >= $1000",
          "rules": [
            {
              "key": "BILL_AMOUNT",
              "op": "gte",
              "values": [
                "1000"
              ]
            }
          ],
          "approvers": [
            "{{bill_approver_user_id}}"
          ]
        }
      },
      "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": "#/components/schemas/BillApprovalPolicyRuleResponseDto"
            }
          },
          "approvers": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillApproversDto"
              },
              {
                "description": "List of approvers"
              }
            ]
          }
        },
        "description": "Response DTO for bill approval policy."
      },
      "BillApprovalPolicyRuleResponseDto": {
        "type": "object",
        "properties": {
          "key": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RuleKeyResponse"
              },
              {
                "description": "Rule key"
              }
            ]
          },
          "op": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillApprovalRuleOperatorResponse"
              },
              {
                "description": "Rule operator"
              }
            ]
          },
          "values": {
            "type": "array",
            "description": "Rule values",
            "items": {
              "$ref": "#/components/schemas/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": "#/components/schemas/ApproverUserDto"
            }
          },
          "groups": {
            "type": "array",
            "description": "List of approval groups",
            "items": {
              "$ref": "#/components/schemas/ApproverGroupDto"
            }
          }
        },
        "description": "Approvers for a bill approval policy."
      },
      "Category": {
        "type": "string",
        "enum": [
          "REQUEST",
          "APPLICATION",
          "SERVER",
          "DOWNSTREAM"
        ]
      },
      "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."
      },
      "Param": {
        "required": [
          "name",
          "value"
        ],
        "type": "object",
        "properties": {
          "additional": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "minLength": 1,
            "type": "string"
          }
        }
      },
      "RuleKeyCreateDto": {
        "type": "string",
        "description": "Keys for approval rules.",
        "enum": [
          "BILL_AMOUNT",
          "BILL_LINE_ITEM_AMOUNT",
          "CHART_OF_ACCOUNT_ID",
          "VENDOR_ID"
        ]
      },
      "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"
        ]
      },
      "RuleOperatorCreateDto": {
        "type": "string",
        "description": "Operators for approval rules.",
        "enum": [
          "lt",
          "gte",
          "in"
        ]
      },
      "RuleValueDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "description": "Value"
          },
          "displayName": {
            "type": "string",
            "description": "Display name"
          }
        },
        "description": "Rule value DTO."
      },
      "Severity": {
        "type": "string",
        "enum": [
          "ERROR",
          "WARNING",
          "INFORMATION"
        ]
      }
    }
  }
}
````