Documentation

Documentation/API reference/

Schemas

Every object the API takes or answers, with each field, its type and what it means.

ErrorBody

FieldTypeDescription
error requiredstring

Words for a person (listed on the Errors page), or the text of a database VALIDATION: refusal without its prefix.

error_code requiredstring

The kind of refusal, for your program to match on together with the HTTP status (the error_code column of the Errors page). It keeps its meaning within v1; a new one may be added (treat one you do not know by its status).

pattern ^[A-Z][A-Z0-9_]{2,63}$

codestring or null

The database's error code for a server-side refusal (an SQLSTATE or a PostgREST code); never its message.

pattern ^(?:[0-9A-Z]{5}|PGRST[0-9]{3})$

IsoDate

A calendar date written YYYY-MM-DD. Other shapes are refused (01.09.2026 would otherwise be read as 9 January).

string pattern ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$

IsoDateTime

A date YYYY-MM-DD or a date-time YYYY-MM-DDThh:mm[:ss[.ffffff]] with an optional zone Z, +hh:mm or -hh:mm. No zone means UTC. Refused: a space instead of T, a lower-case t or z, 24:00, second 60, +0300 or +03, an impossible day.

string pattern ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(T([01][0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9]([.][0-9]{1,6})?)?(Z|[+-](0[0-9]|1[0-4]):[0-5][0-9])?)?$

Amount

A JSON number (1250.00), or a string of digits with a dot as the decimal separator ("1250.00"), at most 40 characters. At most two decimals (more are refused, never rounded); below 1000000000000 (the largest is 999999999999.99). In a string: no exponent, comma, NaN or Infinity. Greater than zero, except where the field may be zero or negative (available_balance). Anything else is refused with a 400 naming the field: "% is required", "% must be a number", "% must be a decimal number such as 125.50 (no exponent, NaN or Infinity)", "% may have at most two decimals", "% exceeds the largest supported amount, 999999999999.99" or "% must be greater than zero".

number or string

Currency

An ISO 4217 code such as EUR: three letters, upper-cased on arrival, that name a currency on the platform's ISO 4217 list. Anything else, three letters that name no currency (QZQ) included, is refused with a 400, "% must be a three-letter ISO 4217 currency code such as EUR".

string pattern ^[A-Za-z]{3}$

Country

An ISO 3166-1 alpha-2 code such as LT, upper-cased on arrival. It must be on the platform's country list (every ISO 3166-1 alpha-2 code and XK; XX is not), otherwise the answer is a 400, "% must be a two-letter ISO 3166-1 alpha-2 country code such as LT". An empty value counts as absent.

string pattern ^[A-Za-z]{2}$

DataClassification

What kind of data this is. Your key must allow it (403 otherwise), and a production institution takes PRODUCTION only (400 CLASSIFICATION_NOT_ACCEPTED). Only PRODUCTION data is triaged by the AI. TEST and DEMO, which only a sandbox takes, call no AI model, so a held payment goes to a person (HUMAN_REVIEW) and never waits in AI_INVESTIGATION; SCALE_TEST has no AI triage.

string one of PRODUCTION, TEST, SCALE_TEST, DEMO; default PRODUCTION

DecisionStatus

Only RELEASED means the payment may settle. RELEASED and BLOCKED are final; every other status changes later. A BLOCKED payment always carries rejection_action, which says what to do with its funds (a rejected payment is never stored without one). RECEIVED: recorded, not yet screened; it normally changes within the same request. SCREENING: being screened; it normally changes within the same request, and when screening did not finish (screening_timeout) the sweep holds it within minutes. HOLD: held until what stopped it (a rule, a screening match, a country restriction) is decided. AI_INVESTIGATION: the AI triage is queued; your decision policy acts on its recommendation, or a person decides. HUMAN_REVIEW: with a person. ESCALATED: taken into a case; a person decides it there. EXPIRED: the hold period of your decision policy ran out while a person had the payment; it stays with a person. FAILED: no path sets it today; treat it as not released and quote the decision_ref to Underlayer.

string one of RECEIVED, SCREENING, RELEASED, HOLD, AI_INVESTIGATION, HUMAN_REVIEW, BLOCKED, ESCALATED, FAILED, EXPIRED

RejectionAction

What to do with the funds of a rejected payment, set when status is BLOCKED and only then (null otherwise): a BLOCKED payment always has one. REJECT: do not execute it; money that came in goes back under your own procedure. FREEZE: the payment had a sanctions match that was confirmed, or not yet cleared as a false positive, when it was rejected; do not execute it and do not return the money: keep the funds where they are and handle them under your sanctions procedure, which reports a confirmed match. A FREEZE becomes REJECT once every sanctions alert of the payment is cleared as a false positive: the payment stays BLOCKED, decision.freeze_lifted is sent once and the decision's freeze_lifted_at says when.

string or null one of REJECT, FREEZE

PaymentRequest

Required for every payment: external_transaction_id, customer_ref, channel, direction, amount, currency. Required by channel: SEPA also counterparty; SWIFT also origin_country and destination_country. Every amount, currency, country and card_present is checked before anything is stored, and a value of the wrong type is refused with a 400 naming the field. Codes are upper-cased: a currency must be three letters (Currency), a country a code of the platform's country list (Country). An external_transaction_id or customer_ref beginning EXAMPLE- (in any case) is refused. The session and device fields (ip_address, ip_country, device_id, device_timezone, device_utc_offset, session_id, initiation_channel, initiation, device_os, vpn_or_proxy, remote_access_detected) are optional and never refuse the payment: a malformed one is stored as nothing and named in the answer's warnings, a field left out says nothing. The payee fields (counterparty_account, counterparty_relationship, payee_verification, available_balance, balance_currency) are optional and refused (400) when malformed, like every other field.

FieldTypeDescription
external_transaction_id requiredstring

Your unique id for this payment within source_system. Sending it again returns the payment's current decision (duplicate). One beginning EXAMPLE- is refused (400).

at least 1 characters

source_systemstring

Which of your systems sent the payment. Part of the payment's identity together with external_transaction_id.

default API

customer_ref requiredstring

Your customer reference, as in the CDD intake. An unknown one opens a provisional customer (KYC incomplete, risk High) unless your decision policy forbids it or today's limit is reached; then the answer is 400 unknown customer_ref. One beginning EXAMPLE- is refused (400).

customer_namestring

Used only when the payment opens a provisional customer.

customer_typestring

Used only when the payment opens a provisional customer (default Individual; another value counts as Individual).

one of Business, Individual

customer_countryCountry

Used only when the payment opens a provisional customer (default XX, unknown). A code you send must be on the platform's country list, so XX itself is refused.

account_numberstring

The customer's account the payment was booked on; linked when it belongs to that customer, otherwise ignored.

channel requiredstring

The payment rail (case-insensitive). Decides which fields are required.

one of SEPA, SWIFT, CARD, ATM

direction requiredstring

Incoming or outgoing for your customer (case-insensitive).

one of INCOMING, OUTGOING

amount requiredAmount

Greater than zero, in currency, at most two decimals. Missing: 400 amount is required. Zero or negative: 400 amount must be greater than zero. Not a decimal number: 400 amount must be a decimal number such as 125.50 (no exponent, NaN or Infinity).

currency requiredCurrency

ISO 4217 code, for example EUR. Missing or not three letters - 400 currency must be a three-letter ISO 4217 currency code such as EUR.

transaction_timestampIsoDateTime

When the payment happened. Default the time of receipt.

payment_typestring

Your own payment type label. Default "<CHANNEL> <Direction>", for example "SEPA Outgoing".

origin_countryCountry

The country the money comes from. Required for SWIFT.

destination_countryCountry

The country the money goes to. Required for SWIFT.

counterpartystring

Name of the other party. Required for SEPA. Screened against the sanctions lists.

counterparty_countryCountry

The other party's country.

counterparty_typestring

Case-insensitive.

one of INDIVIDUAL, LEGAL_ENTITY, FINANCIAL_INSTITUTION, GOVERNMENT, MERCHANT, OTHER

counterparty_sector_codestring

A sector code from the platform's list (active codes only). Leave it out unless you were given the list.

payment_referencestring

Free text of the payment (purpose). Rules can compare and group by it.

originatorstring

Sender's name (wires). Screened.

originator_bicstring
beneficiarystring

Recipient's name (wires). Screened.

beneficiary_bicstring
intermediary_bankstring
card_referencestring

Your card reference for a card payment.

card_presentboolean or string

true or false (or the strings "true" / "false" in any case); anything else, yes, no, 1 and 0 included, answers 400 card_present must be true or false.

instantboolean or string

true for a SEPA Instant credit transfer (SCT Inst), which must be executed within ten seconds of the order; default false. Read like card_present (anything else answers 400 instant must be true or false). Only a SEPA payment can be one: true with another channel answers 400 instant is only for SEPA payments.

merchant_namestring
merchant_countryCountry
mccstring

Four-digit merchant category code.

atm_idstring
atm_locationstring
correlation_idstring

Your own trace id, echoed in answers and webhooks. Default a random UUID.

data_classificationDataClassification
executed_during_outageboolean or string

true for a payment your system already executed while Underlayer could not be reached and sends afterwards; read like card_present (true, false, "true", "false"; anything else 400 executed_during_outage must be true or false). It then needs transaction_timestamp, the time it was executed (not later than five minutes after it is sent), and your institution's policy SKIP_AND_CHECK_LATER; the answer is 202 POST_EVENT, with no decision. Leave it out, or false, for every payment you send before it moves.

counterparty_accountstring

The other party's account: the payee's on an outgoing payment, the payer's on an incoming one. Spaces are taken out and letters upper-cased; 1 to 34 letters and digits. A value shaped as an IBAN must begin with a known country code and pass the IBAN check (ISO 13616, mod 97). Anything else is refused (400 "% must be 1 to 34 letters and digits (spaces are taken out)", "% looks like an IBAN but does not begin with a known country code" or "% looks like an IBAN but its check digits are wrong").

at most 64 characters

counterparty_relationshipstring

The other party's relationship to your customer, as you know it (SELF, the customer's own account elsewhere). Upper-cased on arrival; another value is refused (400 "% must be one of %").

one of SELF, RELATED_PARTY, UNRELATED

payee_verificationstring

The Verification of Payee result your system got for this payment (Regulation (EU) 2024/886). Upper-cased on arrival; another value is refused (400 "% must be one of %").

one of MATCH, CLOSE_MATCH, NO_MATCH, NOT_POSSIBLE

available_balanceAmount

The customer's available balance before this payment, in balance_currency. May be zero or negative. Stamped in EUR at the reference rate.

balance_currencyCurrency

The currency of available_balance (default the payment's currency); not stored without available_balance.

ip_addressstring

The IP address the customer used, one IPv4 or IPv6 host address (203.0.113.10, 2001:db8::10; no prefix). Never refuses the payment: a malformed one is a warning. Our own IP-to-country lookup (DB-IP Lite) checks ip_country and fills it in when you send none.

ip_countrystring

The IP's country as your own geolocation found it, a code of the platform's country list. Yours wins; when ours disagrees the payment is marked ("IP country sent differs from our lookup"). Never refuses the payment.

device_idstring

Your stable identifier of the customer's device (your device SDK's): 8 to 128 letters, digits or . _ : + / = -. Never refuses the payment.

device_timezonestring

The device's IANA time zone, such as Europe/Vilnius. Its UTC offset at the payment's time is stored with it. Never refuses the payment.

device_utc_offsetstring

The device's UTC offset, +hh:mm or -hh:mm, -12:00 to +14:00 in quarter hours. With device_timezone, the zone's own offset is stored and a different one is a warning. Never refuses the payment.

session_idstring

Your session id, 1 to 128 printable characters without spaces. Only its SHA-256 (with your institution) is stored, so rules can tell payments of one session apart from others. Never refuses the payment.

initiation_channelstring

How the customer initiated the payment. Upper-cased on arrival. Never refuses the payment.

one of MOBILE_APP, WEB_BROWSER, API, BRANCH, PHONE, OTHER

initiationstring

Who or what started the payment. Upper-cased on arrival. Never refuses the payment.

one of CUSTOMER_INITIATED, STANDING_ORDER, SCHEDULED, DIRECT_DEBIT, MERCHANT_INITIATED, BULK_UPLOAD, STAFF_INITIATED, OTHER

device_osstring

The device's operating system. No user agent is taken. Never refuses the payment.

one of ANDROID, IOS, WINDOWS, MACOS, LINUX, OTHER

vpn_or_proxyboolean or string

true when your tools saw a VPN, proxy or anonymiser (true, false, "true", "false"). Never refuses the payment.

remote_access_detectedboolean or string

true when your tools saw remote-access software on the device during the session. Never refuses the payment.

PostEventPayment

The answer to a payment sent with executed_during_outage true, and to its repeat. It has no decision: nothing holds, releases or rejects it. It is screened and evaluated by your monitoring rules after the event; any alert goes to your team. A repeat carries duplicate, post_event, status, transaction_id, transaction_ref, correlation_id, received_at, executed_at and, when the first request had any, warnings.

FieldTypeDescription
duplicate requiredboolean
post_event requiredboolean

always true

status requiredstring

Not a decision status: the payment is checked after the event, never decided.

always POST_EVENT

transaction_id requiredstring

format uuid

transaction_refstring

RTX-<year>-<number>.

correlation_idstring
received_atstring

format date-time

executed_atstring

The time your system executed it (transaction_timestamp).

format date-time

outage_payment_policystring

Your institution's policy it was accepted under.

one of SKIP_AND_CHECK_LATER

checksobject

What was queued: sanctions_screening QUEUED, and monitoring_rules_queued, the number of your rules it is evaluated by after the event (batch-only rules read it in their nightly run).

messagestring

The same in words.

warningsarray of ContextWarning

Present only when a session or device field was malformed and not stored: which field and why, in fixed words that never quote your value. The payment is decided as if the field had not been sent.

PostEventView

The look-up of a payment sent after an outage; it has no decision.

FieldTypeDescription
post_eventboolean

always true

statusstring

always POST_EVENT

transaction_idstring

format uuid

transaction_refstring
executed_atstring

format date-time

received_atstring

format date-time

PaymentDecision

The answer to a payment. A duplicate replay carries only duplicate, transaction_id, decision_id, decision_ref, status, rejection_action, correlation_id, received_at, policy_version and, when the first request had any, warnings.

FieldTypeDescription
duplicate requiredboolean

true when this payment had already been received.

transaction_idstring

format uuid

decision_id requiredstring

format uuid

decision_ref requiredstring

DEC-<year>-<number>; quote it to the institution's analysts.

status requiredDecisionStatus
rejection_actionRejectionAction
decision_reasonstring or null

Why the decision is in this status, in fixed words of the engine.

correlation_idstring
received_atstring

format date-time

policy_versionstring

The label of your institution's decision policy that applies to this payment, as the policy was named when it was put in force (for example decision-policy-v1.6; a policy changed later may carry a note after its label). Free text: show or log it, never parse it.

alert_idstring or null

The alert a rule hit raised, if any.

format uuid

triggered_rulesarray of string

The monitoring rule versions that fired.

rules_evaluatedinteger
rules_deferredinteger

Rules evaluated later by batch monitoring, not in real time: rules that need a longer history than the real-time check reads. On a payment already RELEASED (or otherwise final) what they find is an alert for your team; it never changes the payment's decision.

tm_latency_msinteger or null
total_latency_msinteger or null

Set once the decision is final.

estimated_next_statestring

What can happen next, in words.

screening_timeoutboolean

Present and true when screening did not finish within its budget or failed; the payment is held for a person (with status SCREENING when the server had no capacity left to hold it at once: the scheduled sweep holds it within minutes). Never settle it until its decision is RELEASED: it is screened again in the background and released if nothing is found.

warningsarray of ContextWarning

Present only when a session or device field was malformed and not stored: which field and why, in fixed words that never quote your value. The payment is decided as if the field had not been sent.

ContextWarning

FieldTypeDescription
field requiredstring

one of ip_address, ip_country, device_id, device_timezone, device_utc_offset, session_id, initiation_channel, initiation, device_os, vpn_or_proxy, remote_access_detected

message requiredstring

Our own words, ending ': not stored' (or, for an offset that disagrees with the time zone, saying the zone's own offset is stored). Listed on the Errors page, 'Session and device warnings'.

DecisionView

FieldTypeDescription
decision_idstring

format uuid

decision_refstring
transaction_idstring

format uuid

statusDecisionStatus
rejection_actionRejectionAction
freeze_lifted_atstring or null

When the freeze of a payment rejected with FREEZE was lifted (every sanctions alert of the payment cleared as a false positive; rejection_action is then REJECT and decision.freeze_lifted was sent). null otherwise.

format date-time

decision_reasonstring or null
channelstring or null

SEPA, SWIFT, CARD or ATM, as received.

directionstring or null

INCOMING or OUTGOING, as received.

instantboolean

true when the payment was sent as an instant transfer (instant true).

correlation_idstring
triggered_rulesarray of string
ai_decisionstring or null

The AI triage's recommendation, as a risk view. Never a decision by itself.

one of LOW_RISK, UNCERTAIN, HIGH_RISK, AI_FAILURE, AI_TIMEOUT, AI_CANCELLED, AI_INVALID_RESULT, AI_MAX_RETRIES_EXCEEDED

ai_confidenceinteger or null

0..100.

mandatory_reviewboolean

true when a person must decide; such a payment is never released automatically.

mandatory_review_reasonsarray of string
policy_versionstring

The label of your institution's decision policy that applies to this payment (see PaymentDecision). Free text: never parse it.

decision_engine_versionstring
received_atstring

format date-time

held_atstring or null

format date-time

ai_started_atstring or null

format date-time

ai_completed_atstring or null

format date-time

decided_atstring or null

format date-time

released_atstring or null

format date-time

expires_atstring or null

When a hold expires under your decision policy (the payment then goes to a person, EXPIRED then HUMAN_REVIEW). It is set from the policy's hold period when the payment is received, whatever its status, and acts only while the payment is HOLD or HUMAN_REVIEW and no open case holds it: on any other status ignore it.

format date-time

tm_latency_msinteger or null
total_latency_msinteger or null

CardAuthorizationRequest

Checked before anything is stored. The currencies (currency, billing_currency, card_currency, balance_currency), merchant_country and the card codes (entry_mode, card_presence, card_txn_type, authorization_mode, terminal_capability, three_ds_result, cvv_result, pin_result) are upper-cased on arrival and stored upper-cased: a currency must be three letters (Currency), merchant_country a code of the platform's country list (Country), and a card code one of the values of its enum, the rule builder's values for the field (otherwise 400 "% must be one of %", naming the field and its values). event_type and data_classification are compared exactly as sent: send them in upper case. A card_token beginning EXAMPLE- (in any case) is refused. Fields not listed are ignored.

FieldTypeDescription
event_type requiredstring

Compared exactly as sent, so card_authorization is refused. A CARD_REFUND is answered REFUNDED and a CARD_REVERSAL REVERSED; neither is ever declined, and the institution's real-time card rules are evaluated on both.

one of CARD_AUTHORIZATION, ATM_WITHDRAWAL, CARD_REFUND, CARD_REVERSAL

card_token requiredstring

The card's token as Underlayer holds it for your institution and this data classification. Missing or blank - 400 card_token is required. One beginning EXAMPLE- is refused (400).

at least 1 characters

amount requiredAmount

The transaction amount in currency, greater than zero, at most two decimals. Missing: 400 amount is required. Zero or negative: 400 amount must be greater than zero. Not a decimal number: 400 amount must be a decimal number such as 125.50 (no exponent, NaN or Infinity).

currencyCurrency

ISO 4217 code of the transaction; upper-cased. Left out or empty - EUR.

default EUR

event_timeIsoDateTime

When the event happened. Default the time of receipt.

billing_amountAmount

The amount in the billing currency (what the card is charged), greater than zero. Default amount when the billing currency is the transaction currency, else amount converted at the euro reference rates of the event date (none without a rate). Stored with its EUR value at the reference rate, which the card rule templates compare.

billing_currencyCurrency

Upper-cased. Default card_currency, else EUR. A transaction currency other than the billing currency is a foreign-currency transaction.

card_currencyCurrency

The card's own currency; upper-cased.

default EUR

merchant_namestring
merchant_idstring
mccstring

Four-digit merchant category code. Default 6011 for an ATM withdrawal; what you send is kept.

merchant_countryCountry

Upper-cased; must be on the platform's country list.

terminal_idstring
atm_idstring
entry_modestring

Upper-cased on arrival. CHIP, MAGSTRIPE or CONTACTLESS make the card present; ECOMMERCE, MANUAL, TOKEN or MOTO not present.

one of CHIP, MAGSTRIPE, CONTACTLESS, ECOMMERCE, MANUAL, TOKEN, MOTO, UNKNOWN

card_presencestring

Upper-cased on arrival. Default derived from entry_mode; with no entry_mode that says otherwise an ATM withdrawal is CARD_PRESENT, anything else UNKNOWN. What you send is kept.

one of CARD_PRESENT, CARD_NOT_PRESENT, UNKNOWN

card_txn_typestring

Upper-cased on arrival. Default REFUND for a refund (any other value is refused for a refund), the original's for a reversal, ATM for an ATM withdrawal, ECOMMERCE for entry_mode ECOMMERCE, else POS. A CREDIT event is money in (stored Incoming, as a refund); a reversal takes the opposite direction of the event it reverses.

one of POS, ATM, REFUND, CREDIT, ECOMMERCE, QUASI_CASH

authorization_modestring

Upper-cased on arrival.

one of ONLINE, OFFLINE; default ONLINE

terminal_capabilitystring

Upper-cased on arrival.

one of CHIP_AND_PIN, MAGSTRIPE_ONLY, CONTACTLESS, UNKNOWN; default UNKNOWN

cvv_resultstring

Upper-cased on arrival. NO_MATCH declines the event (INVALID_CVV); MATCH and NOT_PROVIDED do not. Any other value, FAIL included, is refused (400 cvv_result must be one of MATCH, NO_MATCH, NOT_PROVIDED).

one of MATCH, NO_MATCH, NOT_PROVIDED

pin_resultstring

Upper-cased on arrival. NO_MATCH declines the event (INVALID_PIN); MATCH and NOT_PROVIDED do not. Any other value, FAIL included, is refused (400 pin_result must be one of MATCH, NO_MATCH, NOT_PROVIDED).

one of MATCH, NO_MATCH, NOT_PROVIDED

three_ds_resultstring

Upper-cased on arrival.

one of AUTHENTICATED, NOT_AUTHENTICATED, ATTEMPTED, NOT_APPLICABLE

acquirerstring
issuer_responsestring
available_balanceAmount

The card's available balance at authorisation, in balance_currency. May be zero or negative (-12.50). The balance rule templates compare it in EUR at the reference rate of the event's date.

balance_currencyCurrency

The currency of available_balance (ISO 4217); upper-cased. Default card_currency. Not stored without available_balance.

correlation_idstring

Default a random UUID.

original_event_refstring

The event_ref answered for an approved authorisation or withdrawal of the same card that this refund or reversal undoes. Required for a CARD_REVERSAL, optional for a CARD_REFUND. Same currency, not dated before it; what is refunded and reversed against one event never exceeds its amount. Fields left out (merchant, terminal, entry_mode, card_presence, authorization_mode, terminal_capability, card_currency, billing_currency; for a reversal card_txn_type) are taken from it. Without billing_amount the billing amount is the original's in proportion to the amount, when the billing currency is the original's.

data_classificationstring

PRODUCTION, TEST, SCALE_TEST or DEMO, allowed by your key; compared exactly as sent. The card must have the same classification.

default PRODUCTION

RuleFired

FieldTypeDescription
rule_codestring
version_idstring

format uuid

transaction_actionstring

ALERT_ONLY or REJECT. REJECT declines the event (RULE_DECLINE).

card_actionstring or null

NONE, SUSPEND_CARD or TERMINATE_CARD; carried out in the background.

CardAuthorizationResult

A duplicate replay carries only duplicate, event_id, event_ref, authorization_result, decline_reason and correlation_id.

FieldTypeDescription
duplicate requiredboolean
event_id requiredstring

format uuid

event_ref requiredstring

CAE-<year>-<number>.

authorization_result requiredstring

REFUNDED for a refund and REVERSED for a reversal; neither is ever declined.

one of APPROVED, DECLINED, REFUNDED, REVERSED

decline_reasonstring or null

RULE_EVALUATION_ERROR: a real-time card rule could not be evaluated and your decision policy declines the event for it (card_rule_error_action DECLINE, or no decision policy in force). The order: a refund or a reversal is never declined; then the card's status, cvv_result, pin_result, a REJECT rule; then a rule error.

one of CARD_TERMINATED, CARD_SUSPENDED, INVALID_CVV, INVALID_PIN, RULE_DECLINE, RULE_EVALUATION_ERROR

flaggedboolean

Always false: no card rule approves an event and flags it. Read rules_fired and alerts_generated.

rules_firedarray of RuleFired
alerts_generatedinteger

The alerts the rules that fired raised for the event. The alert raised for a rule that could not be evaluated is not counted here; rule_errors names that rule.

rule_errorsarray of object

Every real-time card rule that could not be evaluated for the event, or that fired but whose alert could not be recorded. Empty when every rule ran. The event is answered all the same, and an alert for a person is raised on it.

rule_error_handlingstring or null

What a rule error did to the event; null when rule_errors is empty. APPROVE_AND_ALERT: your decision policy does not decline the event for it (the platform's default). DECLINE: your decision policy declines an approved authorisation or withdrawal for it (RULE_EVALUATION_ERROR), or no decision policy is in force. ALERT_ONLY: a refund or a reversal, never declined. A person reviews the event in every case.

one of APPROVE_AND_ALERT, DECLINE, ALERT_ONLY

correlation_idstring
latency_msinteger

CustomerEventRequest

One customer event. Codes are upper-cased on arrival. A field that belongs to one kind of event only (the payee fields, the card confirmation's fields, card_token, changed_by) is refused on another (400). The session and device fields are those of a payment, read the same way: a malformed one is not stored and named in warnings, never a refusal.

FieldTypeDescription
external_event_id requiredstring

Your reference of the event, unique with source_system: a repeat answers the first answer. Not blank; one beginning EXAMPLE- (in any case) is refused.

at most 128 characters

source_systemstring

Your system that recorded the event. Default API.

at most 64 characters

customer_ref requiredstring

Your customer's reference, a customer of your institution already on file (an event never creates one). One beginning EXAMPLE- is refused.

event_type requiredstring

What happened. Upper-cased on arrival.

one of LOGIN_SUCCESS, LOGIN_FAILED, DEVICE_ADDED, PASSWORD_CHANGED, PASSWORD_RESET, MFA_CHANGED, EMAIL_CHANGED, PHONE_CHANGED, ADDRESS_CHANGED, PAYEE_ADDED, PAYEE_CHANGED, CARD_ADDED, LIMIT_CHANGED, CARD_PAYMENT_CONFIRMATION

event_timeIsoDateTime

When the customer did it. Default the time of receipt. Not later than five minutes after it is sent, and not more than 400 days before.

changed_bystring

Who made a change (a change event only: not a sign-in or a card payment confirmation). A change your staff made is not a sign of account takeover.

one of CUSTOMER, STAFF, SYSTEM

outcomestring

CARD_PAYMENT_CONFIRMATION only, and required there: what the customer answered in your app.

one of APPROVED, DECLINED

confirmation_methodstring

CARD_PAYMENT_CONFIRMATION only. How the customer confirmed the card payment.

one of THREE_DS_CHALLENGE, IN_APP_APPROVAL, OTHER

merchant_countrystring

CARD_PAYMENT_CONFIRMATION only. The merchant's country, a code of the platform's country list.

card_event_refstring

CARD_PAYMENT_CONFIRMATION only. The event_ref Underlayer answered for the card event this confirmation belongs to, when it was already sent. One the customer does not hold is not linked (a warning).

card_tokenstring

CARD_ADDED and CARD_PAYMENT_CONFIRMATION only. The card on file the event is about. A token of no card of this customer is not linked (a warning); the token itself is not stored.

payee_namestring

PAYEE_ADDED and PAYEE_CHANGED only. The payee's name as the customer entered it.

at most 200 characters

payee_accountstring

PAYEE_ADDED and PAYEE_CHANGED only. The payee's account, read as a payment's counterparty_account (an IBAN must pass its check; anything else is refused, 400).

at most 64 characters

payee_countrystring

PAYEE_ADDED and PAYEE_CHANGED only. The payee's country, a code of the platform's country list.

payee_typestring

PAYEE_ADDED and PAYEE_CHANGED only.

one of INDIVIDUAL, LEGAL_ENTITY, FINANCIAL_INSTITUTION, GOVERNMENT, MERCHANT, OTHER

ip_addressstring

The IP address of the customer's session, one IPv4 or IPv6 host address. Our own IP-to-country lookup fills ip_country in when you send none. Never refuses the event.

ip_countrystring

The IP's country as your own geolocation found it. Yours wins. Never refuses the event.

device_idstring

Your stable identifier of the customer's device: 8 to 128 letters, digits or . _ : + / = -. Keeps the customer's device ledger. Never refuses the event.

device_timezonestring

The device's IANA time zone, such as Europe/Vilnius. Never refuses the event.

device_utc_offsetstring

The device's UTC offset, +hh:mm or -hh:mm, -12:00 to +14:00 in quarter hours (with a time zone they must agree). Never refuses the event.

session_idstring

Your session id; only its SHA-256 (with your institution) is stored, so a later payment can be tied to its sign-in. Never refuses the event.

initiation_channelstring

Where the event happened. Never refuses the event.

one of MOBILE_APP, WEB_BROWSER, API, BRANCH, PHONE, OTHER

device_osstring

The device's operating system. Never refuses the event.

one of ANDROID, IOS, WINDOWS, MACOS, LINUX, OTHER

vpn_or_proxyboolean or string

true when your tools saw a VPN, proxy or anonymiser. Never refuses the event.

remote_access_detectedboolean or string

true when your tools saw remote-access software on the device. Never refuses the event.

correlation_idstring

Your own trace id.

at most 128 characters

data_classificationDataClassification

CustomerEventResult

FieldTypeDescription
duplicate requiredboolean

true for a repeat of a recorded event: the first answer, nothing more stored.

event_id requiredstring

format uuid

event_ref requiredstring

CEV-<year>-<number>.

event_type requiredstring
received_at requiredstring

When Underlayer recorded the event (the first time, for a repeat).

format date-time

warningsarray of CustomerEventWarning

Present only when a session, device or card field was not used; a field left out says nothing.

CustomerEventWarning

FieldTypeDescription
field requiredstring

one of ip_address, ip_country, device_id, device_timezone, device_utc_offset, session_id, initiation_channel, device_os, vpn_or_proxy, remote_access_detected, card_token, card_event_ref

message requiredstring

Our own words. Listed on the Errors page, 'Customer event warnings'.

CddIngestRequest

FieldTypeDescription
source_system requiredstring

Which of your systems the data comes from; recorded on every version.

at least 1 characters

source_filestring or null

A file name to show with the import.

classificationstring

Note the name (not data_classification). Your key must allow it (403); SCALE_TEST is allowed on keys but refused by the CDD intake (400 classification must be PRODUCTION, TEST or DEMO).

one of PRODUCTION, TEST, DEMO; default PRODUCTION

rows requiredarray of CddRow

at most 50000 items

CddRow

One customer. A field outside this list (at any depth) refuses the row (UNKNOWN_FIELD). Required for a new customer: full_name, country_of_residence, account_opening_date.

FieldTypeDescription
customer_ref requiredstring

Your unique customer reference. One beginning EXAMPLE- is refused (EXAMPLE_ROW).

full_namestring
customer_typestring

Case-insensitive. A new customer without it is Business.

one of Business, Individual

country_of_residencestring

A code of the platform's country list (every ISO 3166-1 alpha-2 code and XK; XX is not), any case, upper-cased on arrival. Any other value rejects the row (INVALID_COUNTRY).

pattern ^[A-Za-z]{2}$

account_opening_dateIsoDate
risk_ratingstring

Case-insensitive. Any other value rejects the row (INVALID_RISK_RATING). A new customer without it is Not assessed, never Medium; a later row without it keeps the rating in force; a customer the payment feed created (High until its CDD record) becomes Not assessed when that record names none. Every monitoring alert of a Critical customer goes to an L2 case; your institution may send every AI result of a High customer to a person (its own review gate).

one of Low, Medium, High, Critical

pep_determinationstring

Your own KYC determination of whether the customer is a politically exposed person. Case-insensitive; spaces or hyphens may stand for the underscores. Any other value rejects the row (INVALID_PEP_STATUS). A new customer without it is NOT_ASSESSED, never NOT_PEP. PEP, PEP_FAMILY_OR_CLOSE_ASSOCIATE and FORMER_PEP are treated as a PEP: an EDD signal (your PEP review gate sends the AI's closure of the customer's alerts to a person); it never holds a payment. Each change is a CDD version.

one of NOT_PEP, PEP, PEP_FAMILY_OR_CLOSE_ASSOCIATE, FORMER_PEP, NOT_ASSESSED

pep_categorystring

Only with PEP, PEP_FAMILY_OR_CLOSE_ASSOCIATE or FORMER_PEP: the public function. Case-insensitive. Otherwise, or another value, rejects the row (INVALID_PEP_DETAILS).

one of HEAD_OF_STATE_OR_GOVERNMENT, MINISTER, PARLIAMENT, POLITICAL_PARTY, SUPREME_COURT, AUDIT_OR_CENTRAL_BANK, AMBASSADOR, ARMED_FORCES, STATE_OWNED_ENTERPRISE, INTERNATIONAL_ORGANISATION, REGIONAL_OR_LOCAL_GOVERNMENT, OTHER

pep_countrystring

Only with PEP, PEP_FAMILY_OR_CLOSE_ASSOCIATE or FORMER_PEP (else INVALID_PEP_DETAILS): the country of the public function, a code of the platform's country list, any case. Any other value rejects the row (INVALID_COUNTRY).

pattern ^[A-Za-z]{2}$

pep_sinceIsoDate
pep_untilIsoDate
pep_sourcestring

Where the determination came from (INVALID_PEP_DETAILS over 100 characters or with NOT_ASSESSED). Left out, the import's source_system is recorded whenever the row states a determination.

at most 100 characters

pep_statusboolean or string

Older form of pep_determination: true is PEP, false is NOT_PEP. Sent with pep_determination, the two must agree (else INVALID_PEP_STATUS).

sanctions_statusstring

The result of your own sanctions screening. Case-insensitive; spaces or hyphens may stand for the underscores. Any other value rejects the row (INVALID_SANCTIONS_STATUS). A new customer without it is NOT_SCREENED. Only CLEAR clears the customer: the other three are a sanctions concern for the AI review gates and QC sampling.

one of CLEAR, POTENTIAL_MATCH, CONFIRMED_MATCH, NOT_SCREENED

legal_formstring
registration_numberstring
registration_countrystring

A code of the platform's country list (every ISO 3166-1 alpha-2 code and XK; XX is not), any case, upper-cased on arrival. Any other value rejects the row (INVALID_COUNTRY).

pattern ^[A-Za-z]{2}$

registration_dateIsoDate
tax_numberstring
national_idstring
date_of_birthIsoDate
place_of_birthstring
nationalitystring

A code of the platform's country list (every ISO 3166-1 alpha-2 code and XK; XX is not), any case, upper-cased on arrival. Any other value rejects the row (INVALID_COUNTRY).

pattern ^[A-Za-z]{2}$

id_document_typestring
id_document_numberstring
id_document_countrystring

A code of the platform's country list (every ISO 3166-1 alpha-2 code and XK; XX is not), any case, upper-cased on arrival. Any other value rejects the row (INVALID_COUNTRY).

pattern ^[A-Za-z]{2}$

id_document_expiryIsoDate
addressstring or CddAddress
emailstring
phonestring
websitestring
business_sectorstring
industry_categorystring
industry_subcategorystring
nace_codestring

pattern ^[A-Ua-u]([0-9]{2}([.][0-9]{1,2})?)?$

sic_codestring
occupationstring
employerstring
purpose_of_accountstring
source_of_fundsstring
source_of_wealthstring
countries_of_operationarray of string

Codes of the platform's country list, any case; stored once each, upper-cased. Any other code rejects the row (INVALID_COUNTRIES_OF_OPERATION).

number_of_employeesinteger or string
annual_turnovernumber or string
annual_incomenumber or string
expected_monthly_turnovernumber or string
actual_monthly_turnovernumber or string
expected_monthly_tx_countinteger or string
max_single_paymentnumber or string
relationship_statusstring
relationship_end_dateIsoDate
effective_fromIsoDateTime
notestring
related_partiesarray of CddRelatedParty

When present, the complete set of the customer's related parties (the earlier set is replaced).

accountsarray of CddAccount

Accounts added or updated (by account_number); an account left out is kept.

CddAddress

FieldTypeDescription
linestring
line1string
line2string
streetstring
citystring
postal_codestring
postcodestring
regionstring
statestring
countrystring

CddRelatedParty

FieldTypeDescription
full_name requiredstring
role requiredstring

one of UBO, SHAREHOLDER, DIRECTOR, REPRESENTATIVE, AUTHORISED_SIGNATORY, OTHER

typestring

one of NATURAL, LEGAL; default NATURAL

ownership_pctnumber or string
date_of_birthIsoDate
nationalitystring

A code of the platform's country list, any case; upper-cased. Any other value rejects the row (INVALID_RELATED_PARTIES).

pattern ^[A-Za-z]{2}$

countrystring

A code of the platform's country list, any case; upper-cased. Any other value rejects the row (INVALID_RELATED_PARTIES).

pattern ^[A-Za-z]{2}$

national_idstring
registration_numberstring
emailstring
phonestring
addressstring or CddAddress
verified_atIsoDateTime
sourcestring

Default the import's source_system.

CddAccount

A new account needs currency and opened_date. An account held by another of your customers refuses the row.

FieldTypeDescription
account_number requiredstring
currencystring

An ISO 4217 code, any case; upper-cased. A value that is not a code of the platform's ISO 4217 list (QZQ included) rejects the row (INVALID_ACCOUNTS).

pattern ^[A-Za-z]{3}$

opened_dateIsoDate
account_typestring

default Current

statusstring

default Active

balancenumber or string

CddRowError

FieldTypeDescription
rowinteger

1-based position of the row in the request.

customer_refstring or null
reasonstring

See the Errors page, "CDD row reasons".

one of UNKNOWN_FIELD, MISSING_CUSTOMER_REF, EXAMPLE_ROW, MISSING_NAME, MISSING_COUNTRY_OF_RESIDENCE, MISSING_ACCOUNT_OPENING_DATE, INVALID_CUSTOMER_TYPE, INVALID_RISK_RATING, INVALID_SANCTIONS_STATUS, INVALID_PEP_STATUS, INVALID_PEP_DETAILS, INVALID_COUNTRY, INVALID_VALUE, INVALID_NACE_CODE, INVALID_COUNTRIES_OF_OPERATION, INVALID_RELATED_PARTIES, INVALID_ACCOUNTS, ACCOUNT_BELONGS_TO_ANOTHER_CUSTOMER, NEW_ACCOUNT_NEEDS_OPENED_DATE, NEW_ACCOUNT_NEEDS_CURRENCY, ROW_REFUSED

detailstring or null

Which field and what is wrong, in fixed words; never the value you sent (except an account number you sent).

CddIngestResult

FieldTypeDescription
ok requiredboolean

always true

batch_ref requiredstring or null

CDD-<year>-<number>; the import as shown on the CDD import screen.

inserted requiredinteger

New customers.

updated requiredinteger

Existing customers whose CDD record changed (a new CDD version).

unchanged requiredinteger

Rows that changed nothing.

rejected requiredinteger

Rows refused.

errors requiredarray of CddRowError

The first 100 refused rows (rejected counts them all).

at most 100 items

Health

FieldTypeDescription
status requiredstring

always ok

CardRequest

One of your cards. Only these six fields are taken; any other is refused.

FieldTypeDescription
card_token requiredstring

Your card processor's token for the card; never the card number. The same token updates the same card.

pattern ^[A-Za-z0-9._:+/=-]+$; at least 1 characters; at most 128 characters

customer_refstring

Required for a new card: your reference of the customer it belongs to. A card keeps its customer.

masked_panstring

At most the first six or eight digits and the last four, the rest masked with *, • or X, for example 411111******1111. A full card number is refused.

at most 32 characters

card_typestring

A new card without it is PHYSICAL_CARD.

one of PHYSICAL_CARD, VIRTUAL_CARD

statusstring

A new card without it is ACTIVE. A terminated card stays terminated.

one of ACTIVE, SUSPENDED, TERMINATED

data_classificationstring

Your key must allow it (403); a production institution takes PRODUCTION only. A card keeps the label it was registered with.

one of PRODUCTION, TEST, SCALE_TEST, DEMO; default PRODUCTION

CardResult

FieldTypeDescription
created requiredboolean

true when this call registered the card.

changed requiredboolean

true when this call created or changed the card; false for a repeat.

card requiredCard
warnings requiredarray of CardWarning

Card

FieldTypeDescription
card_id requiredstring

Underlayer's id of the card.

format uuid

card_token requiredstring
customer_ref requiredstring
masked_panstring or null
card_type requiredstring

one of PHYSICAL_CARD, VIRTUAL_CARD

status requiredstring

one of ACTIVE, SUSPENDED, TERMINATED

data_classification requiredstring

one of PRODUCTION, TEST, SCALE_TEST, DEMO

updated_at requiredstring

format date-time

CardWarning

FieldTypeDescription
code requiredstring

one of OPEN_ALERT_SUSPENDED_CARD

message requiredstring

Our own words. Listed on the Errors page, 'Card registration warnings'.

CardWebhookEvent

FieldTypeDescription
event_type requiredstring

one of card.suspended, card.terminated, card.reinstated

delivery_id requiredstring

format uuid

attempt requiredinteger
card_id requiredstring

format uuid

card_token requiredstring

Your token of the card.

status requiredstring

The card's new status.

one of ACTIVE, SUSPENDED, TERMINATED

previous_status requiredstring

one of ACTIVE, SUSPENDED

action requiredstring

one of SUSPEND_CARD, TERMINATE_CARD, UNSUSPEND_CARD

reason_code requiredstring

one of RULE, PERSON, PERSON_CLEARING, AI_CLOSURE

rule_codestring

The rule that acted, when a rule did.

alert_refstring

The alert that suspended the card, or whose clearing reinstated it.

card_event_refstring

The card event the rule acted on (the event_ref answered for it).

correlation_idstring
occurred_at requiredstring

format date-time

DecisionWebhookEvent

FieldTypeDescription
event_type requiredstring

decision.<status in lower case>, or decision.freeze_lifted (a rejected payment's freeze lifted: status BLOCKED, rejection_action REJECT)

delivery_id requiredstring

format uuid

attempt requiredinteger
decision_id requiredstring

format uuid

decision_ref requiredstring
transaction_id requiredstring

format uuid

status requiredDecisionStatus
rejection_actionRejectionAction
reasonstring or null
correlation_idstring
occurred_at requiredstring

format date-time

© 2026 Underlayer, Lithuania. info@underlayer.eu System status Privacy notice