Payment Flows
Multi-step automation on reconciled deposits: a trigger + conditions run an ordered list of actions (hold / release / notify / flag), with an audit trail.
Programmable, multi-step automation on reconciled deposits — the evolution of Money Rules. A flow is a trigger (deposit / overpaid / underpaid / fully-paid / high-risk) plus optional conditions (min amount, min risk) that runs an ordered list of actions (hold → release → notify → flag). Every run is recorded so you can audit exactly what fired and why.
Runs after reconciliation commits
Actions are idempotent
Build them in the dashboard
/api/v1/flowsList the tenant's flows (with their ordered actions).
Responses
curl -X GET "https://api.xental.online/api/v1/flows" \
-H "Authorization: Bearer <API_TOKEN>"/api/v1/flowsCreate a flow.
Creates a flow. actions is an ordered array run top-to-bottom; priority orders flows against each other. minAmountKobo and minRiskScore are optional gates.
Body parameters
namestringoptionaltriggerstringoptionalactionsstring[]optionalminAmountKobointegeroptionalminRiskScoreintegeroptionalpriorityintegeroptionalResponses
curl -X POST "https://api.xental.online/api/v1/flows" \
-H "Authorization: Bearer <API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "Ada Lovelace",
"priority": 0
}'{
"name": "Ada Lovelace",
"priority": 0
}/api/v1/flows/runsThe most recent flow-run audit entries.
The audit trail — one row per flow that fired for a deposit, with a human-readable outcome per action.
Query parameters
takeintegeroptionalResponses
curl -X GET "https://api.xental.online/api/v1/flows/runs" \
-H "Authorization: Bearer <API_TOKEN>"/api/v1/flows/{id}Get a single flow by id.
Path parameters
idstringrequiredResponses
curl -X GET "https://api.xental.online/api/v1/flows/:id" \
-H "Authorization: Bearer <API_TOKEN>"/api/v1/flows/{id}Replace a flow's configuration.
Path parameters
idstringrequiredBody parameters
namestringoptionaltriggerstringoptionalactionsstring[]optionalminAmountKobointegeroptionalminRiskScoreintegeroptionalpriorityintegeroptionalResponses
curl -X PUT "https://api.xental.online/api/v1/flows/:id" \
-H "Authorization: Bearer <API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "Ada Lovelace",
"priority": 0
}'{
"name": "Ada Lovelace",
"priority": 0
}/api/v1/flows/{id}Delete a flow.
Path parameters
idstringrequiredResponses
curl -X DELETE "https://api.xental.online/api/v1/flows/:id" \
-H "Authorization: Bearer <API_TOKEN>"/api/v1/flows/{id}/enabledEnable or disable a flow.
Path parameters
idstringrequiredBody parameters
enabledbooleanoptionalResponses
curl -X POST "https://api.xental.online/api/v1/flows/:id/enabled" \
-H "Authorization: Bearer <API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"enabled": false
}'{
"enabled": false
}