Documentation/API reference/
Schemas
Every object the API takes or answers, with each field, its type and what it means.
ErrorBody
| Field | Type | Description |
|---|---|---|
error required | string | Words for a person (listed on the Errors page), or the text of a database |
error_code required | string | The kind of refusal, for your program to match on together with the HTTP status (the pattern |
code | string or null | The database's error code for a server-side refusal (an SQLSTATE or a PostgREST code); never its message. pattern |
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.
| Field | Type | Description |
|---|---|---|
external_transaction_id required | string | 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_system | string | Which of your systems sent the payment. Part of the payment's identity together with external_transaction_id. default |
customer_ref required | string | 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_name | string | Used only when the payment opens a provisional customer. |
customer_type | string | Used only when the payment opens a provisional customer (default Individual; another value counts as Individual). one of |
customer_country | Country | 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_number | string | The customer's account the payment was booked on; linked when it belongs to that customer, otherwise ignored. |
channel required | string | The payment rail (case-insensitive). Decides which fields are required. one of |
direction required | string | Incoming or outgoing for your customer (case-insensitive). one of |
amount required | Amount | 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 required | Currency | 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_timestamp | IsoDateTime | When the payment happened. Default the time of receipt. |
payment_type | string | Your own payment type label. Default "<CHANNEL> <Direction>", for example "SEPA Outgoing". |
origin_country | Country | The country the money comes from. Required for SWIFT. |
destination_country | Country | The country the money goes to. Required for SWIFT. |
counterparty | string | Name of the other party. Required for SEPA. Screened against the sanctions lists. |
counterparty_country | Country | The other party's country. |
counterparty_type | string | Case-insensitive. one of |
counterparty_sector_code | string | A sector code from the platform's list (active codes only). Leave it out unless you were given the list. |
payment_reference | string | Free text of the payment (purpose). Rules can compare and group by it. |
originator | string | Sender's name (wires). Screened. |
originator_bic | string | |
beneficiary | string | Recipient's name (wires). Screened. |
beneficiary_bic | string | |
intermediary_bank | string | |
card_reference | string | Your card reference for a card payment. |
card_present | boolean 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. |
instant | boolean 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_name | string | |
merchant_country | Country | |
mcc | string | Four-digit merchant category code. |
atm_id | string | |
atm_location | string | |
correlation_id | string | Your own trace id, echoed in answers and webhooks. Default a random UUID. |
data_classification | DataClassification | |
executed_during_outage | boolean 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_account | string | 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_relationship | string | 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 |
payee_verification | string | 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 |
available_balance | Amount | The customer's available balance before this payment, in balance_currency. May be zero or negative. Stamped in EUR at the reference rate. |
balance_currency | Currency | The currency of available_balance (default the payment's currency); not stored without available_balance. |
ip_address | string | 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_country | string | 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_id | string | Your stable identifier of the customer's device (your device SDK's): 8 to 128 letters, digits or . _ : + / = -. Never refuses the payment. |
device_timezone | string | 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_offset | string | 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_id | string | 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_channel | string | How the customer initiated the payment. Upper-cased on arrival. Never refuses the payment. one of |
initiation | string | Who or what started the payment. Upper-cased on arrival. Never refuses the payment. one of |
device_os | string | The device's operating system. No user agent is taken. Never refuses the payment. one of |
vpn_or_proxy | boolean or string | true when your tools saw a VPN, proxy or anonymiser (true, false, "true", "false"). Never refuses the payment. |
remote_access_detected | boolean 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.
| Field | Type | Description |
|---|---|---|
duplicate required | boolean | |
post_event required | boolean | always |
status required | string | Not a decision status: the payment is checked after the event, never decided. always |
transaction_id required | string | format uuid |
transaction_ref | string | RTX-<year>-<number>. |
correlation_id | string | |
received_at | string | format date-time |
executed_at | string | The time your system executed it (transaction_timestamp). format date-time |
outage_payment_policy | string | Your institution's policy it was accepted under. one of |
checks | object | 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). |
message | string | The same in words. |
warnings | array 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.
| Field | Type | Description |
|---|---|---|
post_event | boolean | always |
status | string | always |
transaction_id | string | format uuid |
transaction_ref | string | |
executed_at | string | format date-time |
received_at | string | 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.
| Field | Type | Description |
|---|---|---|
duplicate required | boolean | true when this payment had already been received. |
transaction_id | string | format uuid |
decision_id required | string | format uuid |
decision_ref required | string | DEC-<year>-<number>; quote it to the institution's analysts. |
status required | DecisionStatus | |
rejection_action | RejectionAction | |
decision_reason | string or null | Why the decision is in this status, in fixed words of the engine. |
correlation_id | string | |
received_at | string | format date-time |
policy_version | string | 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_id | string or null | The alert a rule hit raised, if any. format uuid |
triggered_rules | array of string | The monitoring rule versions that fired. |
rules_evaluated | integer | |
rules_deferred | integer | 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_ms | integer or null | |
total_latency_ms | integer or null | Set once the decision is final. |
estimated_next_state | string | What can happen next, in words. |
screening_timeout | boolean | 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. |
warnings | array 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
| Field | Type | Description |
|---|---|---|
field required | string | one of |
message required | string | 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
| Field | Type | Description |
|---|---|---|
decision_id | string | format uuid |
decision_ref | string | |
transaction_id | string | format uuid |
status | DecisionStatus | |
rejection_action | RejectionAction | |
freeze_lifted_at | string 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_reason | string or null | |
channel | string or null | SEPA, SWIFT, CARD or ATM, as received. |
direction | string or null | INCOMING or OUTGOING, as received. |
instant | boolean | true when the payment was sent as an instant transfer (instant true). |
correlation_id | string | |
triggered_rules | array of string | |
ai_decision | string or null | The AI triage's recommendation, as a risk view. Never a decision by itself. one of |
ai_confidence | integer or null | 0..100. |
mandatory_review | boolean | true when a person must decide; such a payment is never released automatically. |
mandatory_review_reasons | array of string | |
policy_version | string | The label of your institution's decision policy that applies to this payment (see PaymentDecision). Free text: never parse it. |
decision_engine_version | string | |
received_at | string | format date-time |
held_at | string or null | format date-time |
ai_started_at | string or null | format date-time |
ai_completed_at | string or null | format date-time |
decided_at | string or null | format date-time |
released_at | string or null | format date-time |
expires_at | string 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_ms | integer or null | |
total_latency_ms | integer 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.
| Field | Type | Description |
|---|---|---|
event_type required | string | 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_token required | string | 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 required | Amount | 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). |
currency | Currency | ISO 4217 code of the transaction; upper-cased. Left out or empty - EUR. default |
event_time | IsoDateTime | When the event happened. Default the time of receipt. |
billing_amount | Amount | 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_currency | Currency | Upper-cased. Default card_currency, else EUR. A transaction currency other than the billing currency is a foreign-currency transaction. |
card_currency | Currency | The card's own currency; upper-cased. default |
merchant_name | string | |
merchant_id | string | |
mcc | string | Four-digit merchant category code. Default 6011 for an ATM withdrawal; what you send is kept. |
merchant_country | Country | Upper-cased; must be on the platform's country list. |
terminal_id | string | |
atm_id | string | |
entry_mode | string | Upper-cased on arrival. CHIP, MAGSTRIPE or CONTACTLESS make the card present; ECOMMERCE, MANUAL, TOKEN or MOTO not present. one of |
card_presence | string | 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_txn_type | string | 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 |
authorization_mode | string | Upper-cased on arrival. one of |
terminal_capability | string | Upper-cased on arrival. one of |
cvv_result | string | 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 |
pin_result | string | 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 |
three_ds_result | string | Upper-cased on arrival. one of |
acquirer | string | |
issuer_response | string | |
available_balance | Amount | 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_currency | Currency | The currency of available_balance (ISO 4217); upper-cased. Default card_currency. Not stored without available_balance. |
correlation_id | string | Default a random UUID. |
original_event_ref | string | 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_classification | string | PRODUCTION, TEST, SCALE_TEST or DEMO, allowed by your key; compared exactly as sent. The card must have the same classification. default |
RuleFired
| Field | Type | Description |
|---|---|---|
rule_code | string | |
version_id | string | format uuid |
transaction_action | string | ALERT_ONLY or REJECT. REJECT declines the event (RULE_DECLINE). |
card_action | string 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.
| Field | Type | Description |
|---|---|---|
duplicate required | boolean | |
event_id required | string | format uuid |
event_ref required | string | CAE-<year>-<number>. |
authorization_result required | string | REFUNDED for a refund and REVERSED for a reversal; neither is ever declined. one of |
decline_reason | string 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 |
flagged | boolean | Always false: no card rule approves an event and flags it. Read rules_fired and alerts_generated. |
rules_fired | array of RuleFired | |
alerts_generated | integer | 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_errors | array 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_handling | string 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 |
correlation_id | string | |
latency_ms | integer |
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.
| Field | Type | Description |
|---|---|---|
external_event_id required | string | 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_system | string | Your system that recorded the event. Default API. at most 64 characters |
customer_ref required | string | Your customer's reference, a customer of your institution already on file (an event never creates one). One beginning EXAMPLE- is refused. |
event_type required | string | What happened. Upper-cased on arrival. one of |
event_time | IsoDateTime | 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_by | string | 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 |
outcome | string | CARD_PAYMENT_CONFIRMATION only, and required there: what the customer answered in your app. one of |
confirmation_method | string | CARD_PAYMENT_CONFIRMATION only. How the customer confirmed the card payment. one of |
merchant_country | string | CARD_PAYMENT_CONFIRMATION only. The merchant's country, a code of the platform's country list. |
card_event_ref | string | 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_token | string | 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_name | string | PAYEE_ADDED and PAYEE_CHANGED only. The payee's name as the customer entered it. at most 200 characters |
payee_account | string | 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_country | string | PAYEE_ADDED and PAYEE_CHANGED only. The payee's country, a code of the platform's country list. |
payee_type | string | PAYEE_ADDED and PAYEE_CHANGED only. one of |
ip_address | string | 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_country | string | The IP's country as your own geolocation found it. Yours wins. Never refuses the event. |
device_id | string | 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_timezone | string | The device's IANA time zone, such as Europe/Vilnius. Never refuses the event. |
device_utc_offset | string | 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_id | string | 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_channel | string | Where the event happened. Never refuses the event. one of |
device_os | string | The device's operating system. Never refuses the event. one of |
vpn_or_proxy | boolean or string | true when your tools saw a VPN, proxy or anonymiser. Never refuses the event. |
remote_access_detected | boolean or string | true when your tools saw remote-access software on the device. Never refuses the event. |
correlation_id | string | Your own trace id. at most 128 characters |
data_classification | DataClassification |
CustomerEventResult
| Field | Type | Description |
|---|---|---|
duplicate required | boolean | true for a repeat of a recorded event: the first answer, nothing more stored. |
event_id required | string | format uuid |
event_ref required | string | CEV-<year>-<number>. |
event_type required | string | |
received_at required | string | When Underlayer recorded the event (the first time, for a repeat). format date-time |
warnings | array of CustomerEventWarning | Present only when a session, device or card field was not used; a field left out says nothing. |
CustomerEventWarning
| Field | Type | Description |
|---|---|---|
field required | string | one of |
message required | string | Our own words. Listed on the Errors page, 'Customer event warnings'. |
CddIngestRequest
| Field | Type | Description |
|---|---|---|
source_system required | string | Which of your systems the data comes from; recorded on every version. at least 1 characters |
source_file | string or null | A file name to show with the import. |
classification | string | 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 |
rows required | array 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.
| Field | Type | Description |
|---|---|---|
customer_ref required | string | Your unique customer reference. One beginning EXAMPLE- is refused (EXAMPLE_ROW). |
full_name | string | |
customer_type | string | Case-insensitive. A new customer without it is Business. one of |
country_of_residence | string | 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 |
account_opening_date | IsoDate | |
risk_rating | string | 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 |
pep_determination | string | 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 |
pep_category | string | 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 |
pep_country | string | 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 |
pep_since | IsoDate | |
pep_until | IsoDate | |
pep_source | string | 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_status | boolean 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_status | string | 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 |
legal_form | string | |
registration_number | string | |
registration_country | string | 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 |
registration_date | IsoDate | |
tax_number | string | |
national_id | string | |
date_of_birth | IsoDate | |
place_of_birth | string | |
nationality | string | 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 |
id_document_type | string | |
id_document_number | string | |
id_document_country | string | 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 |
id_document_expiry | IsoDate | |
address | string or CddAddress | |
email | string | |
phone | string | |
website | string | |
business_sector | string | |
industry_category | string | |
industry_subcategory | string | |
nace_code | string | pattern |
sic_code | string | |
occupation | string | |
employer | string | |
purpose_of_account | string | |
source_of_funds | string | |
source_of_wealth | string | |
countries_of_operation | array 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_employees | integer or string | |
annual_turnover | number or string | |
annual_income | number or string | |
expected_monthly_turnover | number or string | |
actual_monthly_turnover | number or string | |
expected_monthly_tx_count | integer or string | |
max_single_payment | number or string | |
relationship_status | string | |
relationship_end_date | IsoDate | |
effective_from | IsoDateTime | |
note | string | |
related_parties | array of CddRelatedParty | When present, the complete set of the customer's related parties (the earlier set is replaced). |
accounts | array of CddAccount | Accounts added or updated (by account_number); an account left out is kept. |
CddAddress
| Field | Type | Description |
|---|---|---|
line | string | |
line1 | string | |
line2 | string | |
street | string | |
city | string | |
postal_code | string | |
postcode | string | |
region | string | |
state | string | |
country | string |
CddRelatedParty
| Field | Type | Description |
|---|---|---|
full_name required | string | |
role required | string | one of |
type | string | one of |
ownership_pct | number or string | |
date_of_birth | IsoDate | |
nationality | string | A code of the platform's country list, any case; upper-cased. Any other value rejects the row (INVALID_RELATED_PARTIES). pattern |
country | string | A code of the platform's country list, any case; upper-cased. Any other value rejects the row (INVALID_RELATED_PARTIES). pattern |
national_id | string | |
registration_number | string | |
email | string | |
phone | string | |
address | string or CddAddress | |
verified_at | IsoDateTime | |
source | string | 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.
| Field | Type | Description |
|---|---|---|
account_number required | string | |
currency | string | 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 |
opened_date | IsoDate | |
account_type | string | default |
status | string | default |
balance | number or string |
CddRowError
| Field | Type | Description |
|---|---|---|
row | integer | 1-based position of the row in the request. |
customer_ref | string or null | |
reason | string | See the Errors page, "CDD row reasons". one of |
detail | string or null | Which field and what is wrong, in fixed words; never the value you sent (except an account number you sent). |
CddIngestResult
| Field | Type | Description |
|---|---|---|
ok required | boolean | always |
batch_ref required | string or null | CDD-<year>-<number>; the import as shown on the CDD import screen. |
inserted required | integer | New customers. |
updated required | integer | Existing customers whose CDD record changed (a new CDD version). |
unchanged required | integer | Rows that changed nothing. |
rejected required | integer | Rows refused. |
errors required | array of CddRowError | The first 100 refused rows (rejected counts them all). at most 100 items |
Health
| Field | Type | Description |
|---|---|---|
status required | string | always |
CardRequest
One of your cards. Only these six fields are taken; any other is refused.
| Field | Type | Description |
|---|---|---|
card_token required | string | Your card processor's token for the card; never the card number. The same token updates the same card. pattern |
customer_ref | string | Required for a new card: your reference of the customer it belongs to. A card keeps its customer. |
masked_pan | string | 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_type | string | A new card without it is PHYSICAL_CARD. one of |
status | string | A new card without it is ACTIVE. A terminated card stays terminated. one of |
data_classification | string | Your key must allow it (403); a production institution takes PRODUCTION only. A card keeps the label it was registered with. one of |
CardResult
| Field | Type | Description |
|---|---|---|
created required | boolean | true when this call registered the card. |
changed required | boolean | true when this call created or changed the card; false for a repeat. |
card required | Card | |
warnings required | array of CardWarning |
Card
| Field | Type | Description |
|---|---|---|
card_id required | string | Underlayer's id of the card. format uuid |
card_token required | string | |
customer_ref required | string | |
masked_pan | string or null | |
card_type required | string | one of |
status required | string | one of |
data_classification required | string | one of |
updated_at required | string | format date-time |
CardWarning
| Field | Type | Description |
|---|---|---|
code required | string | one of |
message required | string | Our own words. Listed on the Errors page, 'Card registration warnings'. |
CardWebhookEvent
| Field | Type | Description |
|---|---|---|
event_type required | string | one of |
delivery_id required | string | format uuid |
attempt required | integer | |
card_id required | string | format uuid |
card_token required | string | Your token of the card. |
status required | string | The card's new status. one of |
previous_status required | string | one of |
action required | string | one of |
reason_code required | string | one of |
rule_code | string | The rule that acted, when a rule did. |
alert_ref | string | The alert that suspended the card, or whose clearing reinstated it. |
card_event_ref | string | The card event the rule acted on (the event_ref answered for it). |
correlation_id | string | |
occurred_at required | string | format date-time |
DecisionWebhookEvent
| Field | Type | Description |
|---|---|---|
event_type required | string | decision.<status in lower case>, or decision.freeze_lifted (a rejected payment's freeze lifted: status BLOCKED, rejection_action REJECT) |
delivery_id required | string | format uuid |
attempt required | integer | |
decision_id required | string | format uuid |
decision_ref required | string | |
transaction_id required | string | format uuid |
status required | DecisionStatus | |
rejection_action | RejectionAction | |
reason | string or null | |
correlation_id | string | |
occurred_at required | string | format date-time |
© 2026 Underlayer, Lithuania. info@underlayer.eu System status Privacy notice