Payezydevelopers
Sandbox

Guides

Require approvals

Payments and withdrawals at or above a threshold wait for one or more approvers before they are sent.

  1. Set the policy with PUTSet the approval policy: threshold_amount, required_approvers (0 to 5) and whether the creator may approve their own (allow_self_approval). You need settings:manage; only the organization's own members can change it.
  2. Create payments as usual. At or above the threshold they return pending_approval, with the amount plus fee already reserved.
  3. Approve or reject with POSTApprove a payment or POSTReject a payment. When enough approvals arrive the payment is sent. Rejection releases the funds.
PUT/v1/orgs/{orgId}/approval-policy

Set the approval policy

Reference

The creator can't approve their own payment (self_approval) unless the policy allows it. An approver acting by API needs a key with payments:approve; on platform-minted keys that scope is opt-in, and should be granted only if the customer agreed.