DocumentationBuy and pay
Approvals & autonomy
Approval flows for purchase orders and invoice payments, the kinds of step, and when Pleaxy may approve by itself.
Each region has one approval flow for purchase orders and one for invoice payments, which you edit under Workflows in Pleaxy. A new region starts with a single step routed to a region administrator. You build a flow from three kinds of step:
- Approver - one person signs off.
- Parallel approvers - several different people each sign off, in any order.
- Conditional approver - runs only when all of its conditions match. Conditions can check the amount (in the region's currency), the supplier or the requester.
Every step names one specific person, and only that person can act on it. Mark a step Only above the high-value threshold and amounts at or below the threshold skip it. A flow needs at least one step with no conditions, so every order and invoice reaches a person. If you raised the document yourself, your step goes to another administrator. You can approve it yourself only when nobody else in the region could, and it is then marked Self-approved.
On the Autonomous plan you can turn on autonomy, also under Workflows. Pleaxy then approves a purchase order or invoice up to your auto-approve amount by itself, as Pleaxy Autonomy, with the same audit trail. It never does so when a conditional or high-value step applies, or when a purchase order goes over its requester's spend limit. For invoices it's stricter: only an invoice matched against an issued AWS invoice can be auto-approved, and never one a buyer entered or one in another currency. Automation rules let you treat one supplier differently: always send its documents to a person or, on the Autonomous plan, auto-approve them up to an amount.
An API key can read approval flows and autonomy settings, but only a person signed in to Pleaxy can change them, and an API key never approves a step.
const flow = await pleaxy.approvalChains.get("purchase_order"); // or "invoice_payment"
const autonomy = await pleaxy.settlement.getAutonomy();
// { enabled, maxAutoApproveAmount, approvalThreshold }
// approvalThreshold is the high-value threshold. Change these in Pleaxy, under Workflows.