Provision AP approval workflow for firm

POST /api/v1/ap-approval/provision

Create or retrieve the AP approval workflow for the firm associated with this business.

Operation ID: provision_ap_approval_workflow_api_v1_ap_approval_provision_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Query

auto_approve_max_cents integer default: 50000

Max amount in cents for auto-approval (default: $500)

ops_approve_max_cents integer default: 500000

Max amount in cents for ops approval (default: $5,000)

Responses

201 Successful Response

workflow_id string required

Provisioned workflow UUID.

name string required

Workflow name.

is_published boolean required

Whether the workflow is published.

version integer required

Workflow version.

graph WorkflowGraphSchema-Output requiredWorkflowGraphSchema-Output

Workflow graph.

2 fields
nodes array · object
edges array · object
auto_approve_max_cents integer required

Auto-approve threshold in cents.

ops_approve_max_cents integer required

Ops approval threshold in cents.

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object