Kora Gate
AI-generatedSummary
Validates budget availability and submits spend authorization requests to Kora, routing items to different output branches based on approval status.
Inputs
- mandateId (required) — The unique identifier of the Kora mandate to charge.
- amountCents (required) — Amount to authorize in cents (integer).
- currency (required) — Currency code (EUR, USD, GBP, or SEK).
- vendorId (required) — The vendor identifier for the expense.
- preCheckBudget — If true, checks the mandate's daily remaining budget before calling the authorize endpoint. Skips the authorize call if the remaining budget is below the threshold.
- minimumRequired — Minimum required remaining budget in cents to allow authorization. If set to 0, uses the request amount. Only visible when preCheckBudget is enabled.
- category — Expense category (e.g., Compute, API Services, Travel).
- purpose — Free-text description of the expense purpose.
Output shape
A list of three arrays (one for each output connection): Approved items, Denied items, and Insufficient budget items.
The node consumes one input item and produces one item per output branch. Returns metadata about the decision (decision ID, remaining limits, seal, etc.) for approved items; returns reason codes for denied items.
Examples
Example 1: Budget check and approval
Set preCheckBudget to true, amountCents to 5000 (50.00), and minimumRequired to 0. If the mandate has >50.00 remaining, the item flows to the 'Approved' branch.
Example 2: Forceful authorization bypass
Set preCheckBudget to false to skip the budget check entirely and submit the authorization request regardless of remaining funds.
Example 3: Expense categorization
Set category to 'Travel' and purpose to 'Conference registration'. The authorize call includes these details for the financial record.