Payezydevelopers
Sandbox

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

  • Permissionsettings:manage
  • Second factorRequired for browser sessions. An API key with the scope replaces it.

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe 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

FieldWhat it does
threshold_amountstringrequiredNo description in the spec yet.
required_approversintegerrequiredNo description in the spec yet.
allow_self_approvalbooleanrequiredNo description in the spec yet.

Response 200

Updated policy

FieldWhat it does
threshold_amountstringrequiredPayments at or above this USD amount need approval
required_approversintegerrequiredNo description in the spec yet.
allow_self_approvalbooleanrequiredNo description in the spec yet.
updated_atstring (date-time)No description in the spec yet.

Errors to handle

CodeWhat it means and what to do
invalid_policy422threshold must be ≥ 0 and approvers between 0 and 5

Every error is a Problem document. Branch on code; quote request_id to support.