Create Approval Rule
POST/api/v1/approvals/rules
Create a new approval rule.
Rule Types:
amount_threshold: Invoice amount exceeds thresholdcustomer_new: First invoice to a customercustomer_list: Customer in specific listinvoice_type: Credit notes, correctionsall_invoices: All invoices require approval
Config Examples:
- amount_threshold:
{"threshold": 10000.00, "currency": "EUR"} - customer_list:
{"customer_ids": ["buyer-1", "buyer-2"]} - invoice_type:
{"types": ["credit_note"]}
Requestโ
Responsesโ
- 201
- 422
Successful Response
Validation Error