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}"
  ]
}
Body Params
string
required

Bill approval policy name

rules
array of objects
required

Bill approval policy rules. You can set multiple rules for a policy.

Note: Policy rules are applied in the specified order.

rules*
approvers
array of strings
required

List of approvers. For each approver, set the BILL-generated ID of the user. The value begins with 006.

Note: BILL requests approvals in the specified order.

approvers*
Headers
string | null

API session ID generated with /v3/login

string | null

Developer key generated with your BILL developer account

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json