API reference / Payments and approvals
Set the approval policy
PUT/v1/orgs/{orgId}/approval-policy
Sets the approval threshold and number of approvers (maker-checker).
Before you call it
- Permission
settings:manage - Second factorRequired for browser sessions. An API key with the scope replaces it.
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list. |
Request body
| Field | What it does |
|---|---|
threshold_amountstringrequired | No description in the spec yet. |
required_approversintegerrequired | No description in the spec yet. |
allow_self_approvalbooleanrequired | No description in the spec yet. |
Response 200
Updated policy
| Field | What it does |
|---|---|
threshold_amountstringrequired | Payments at or above this USD amount need approval |
required_approversintegerrequired | No description in the spec yet. |
allow_self_approvalbooleanrequired | No description in the spec yet. |
updated_atstring (date-time) | No description in the spec yet. |
Errors to handle
| Code | What it means and what to do |
|---|---|
invalid_policy422 | threshold must be ≥ 0 and approvers between 0 and 5 |
Every error is a Problem document. Branch on code; quote request_id to support.