Developers / API Reference / Demo / Rule Engine API
Models
The ApiErrorResponse object
summary: Api error response model
Field
Type
Required
Description
status
string
No
Default: error.
code
integer
Yes
Duplicates the HTTP status; use `error_code`. Removed in v3.
message
string
Yes
—
error_code
string | null
No
Stable, machine-readable error code, e.g. `auth.unauthenticated`. Additive-only.
data
any | null
No
—
The ApiFailResponse object
summary: Api fail response model
Field
Type
Required
Description
status
string
No
Default: fail.
message
string
Yes
—
error_code
string | null
No
Stable, machine-readable error code, e.g. `auth.unauthenticated`. Additive-only.
data
any | null
No
—
The RuleEvalRequest object
Field
Type
Required
Description
transaction
TransactionRequest
Yes
—
rule_codes
array<string>
Yes
List of rule codes to evaluate. An empty list evaluates all of the business’s active rules. A listed code with no active configuration is reported in `data.results` with `status: “error”` rather than omitted.
The TransactionRequest object
Field
Type
Required
Description
transaction_id
string
Yes
Unique transaction identifier
originator_address
string | null
No
Wallet involved in the transaction
originator_name
string | null
No
Sender identifier
originator_account_reference_id
string | null
No
Sender account identifier
beneficiary_address
string | null
No
Recepient wallet involved in the transaction
beneficiary_name
string | null
No
Recipient identifier
beneficiary_account_reference_id
string | null
No
Recepient account identifier
amount
number
Yes
Amount transferred
currency
string
Yes
Currency code (e.g., AED, USD) Max length 5.
country_code
string
Yes
Country to verify the threshold (use ISO 3166-1 alpha-2 country code, e.g. AE for United Arab Emirates).
metadata
object | null
No
Additional transaction metadata