bill-approvals
Create a bill approval policy
Changed onCreate 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}"
]
}
post/v3/bill-approvals/policies
Request
- Base URLhttps://gateway.stage.bill.com/connect
- URLhttps://gateway.stage.bill.com/connect/v3/bill-approvals/policies
- Authnone declared
Headers
sessionIdstring nullable
API session ID generated with /v3/login
Example:{{session_id}}
devKeystring nullable
Developer key generated with your BILL developer account
Example:{{developer_key}}
Request body
Example request
{
"policyName": "Approval policy for bills >= $1000",
"rules": [
{
"key": "BILL_AMOUNT",
"op": "gte",
"values": [
"1000"
]
}
],
"approvers": [
"{{bill_approver_user_id}}"
]
}Response
Create a bill approval policy response
Changes
- info
endpoint added
- info