rule_id to load an existing rule, or an inline ruletransaction_ids{{ transaction.field_name }} to reference fields and Liquid filtersremove, regex_capture, date_add, remove_at, keep_at, etc.)curl --location 'https://api.synci.io/api/v1/rules/preview' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"rule_id": 0,
"rule": {
"trigger_on_any_condition": true,
"conditions": [
{
"field_name": "string",
"operator": "EQUALS",
"value": "string",
"transaction_type": "BANK"
}
],
"actions": [
{
"action_type": "SET_DESTINATION_FIELD",
"field_name": "string",
"value": "string",
"order": 0
}
]
},
"transaction_ids": [
"string"
]
}'{
"results": [
{
"transaction_id": "string",
"conditions_matched": true,
"transaction_summary": {
"payee": "string",
"payee_logo": "string",
"amount": "string",
"currency": "string",
"date": "string",
"description": "string"
},
"changes": [
{
"field": "string",
"before": "string",
"after": "string"
}
],
"error": "string"
}
],
"missing_transaction_ids": [
null
]
}