Get autonomy settings
Returns the workspace's auto-approval settings.
GET/v1/workspaces/{regionId}/settlement/autonomy
Returns
200 OK with the object shown in the response.
More details
Returns the workspace's autonomous-settlement settings, defaulting to { enabled: false, maxAutoApproveAmount: 300, approvalThreshold: 25000 } if never configured.
Response fields
maxAutoApproveAmountnumberWith autonomy on, a PO or invoice at or below this amount (in the region's currency) is approved as Pleaxy Autonomy with nobody acting, unless a conditional or high-value step applies, a PO went over a spend limit, or the invoice can't be auto-approved (only an invoice matched against an issued AWS invoice can be, never one a buyer entered or one in another currency). For an invoice over the 3% match tolerance, it caps the difference instead.
approvalThresholdnumberThe high-value threshold: approval steps marked highValueOnly run only for amounts above it, and autonomy never approves a document such a step applies to. Applies whether or not autonomy is on.
Errors
- 401 Unauthorized - No credential was presented, or the Bearer token / X-Api-Key value is missing, invalid, expired, or revoked.
- 403 Forbidden - The caller's Bearer token or API key doesn't grant access to this workspace (regionId), or lacks the required role.
curl "$PLEAXY_API_BASE_URL/v1/workspaces/{regionId}/settlement/autonomy" \
-H "X-Api-Key: $PLEAXY_API_KEY"{
"enabled": boolean,
"maxAutoApproveAmount": number,
"approvalThreshold": number
}