Documentation

Documentation/Guides/

Payments

POST /v1/transactions records a payment, monitors it in real time and answers its decision. Send it before the payment settles. Every field is described in the API reference.

What happens to a payment

Within a budget of 12 seconds the payment is evaluated by your institution's own monitoring rules and screened against the sanctions lists. A customer's PEP status is your own KYC determination, sent with the customer's record (Customer data). Then:

AnswerMeaningWhat your system does
200, status: RELEASEDNothing found.Settle.
202, status: BLOCKEDRejected, and final (a monitoring rule that rejects payments, or a country restriction). rejection_action says what to do with the funds.Do not settle. REJECT: reject the payment, and return money that came in under your own procedure. FREEZE: a sanctions match was confirmed or not yet cleared; keep the funds where they are, return nothing and handle them under your sanctions procedure.
202, any other statusYour institution's monitoring is still deciding: a person, or your decision policy on the AI triage's recommendation.Do not settle. Wait for the decision webhook or poll the decision: it ends RELEASED or BLOCKED.
200, duplicate: trueA repeat of a payment already received: its current decision.Read status.
409The reference or the key of an earlier payment with another customer, amount, currency, direction or channel, or a key and a reference of two different payments. Nothing was stored.Retry with the first body; a new payment needs a new reference and key (Idempotency and retries).
202, status: POST_EVENTA payment sent after an outage (Payments sent after an outage).Nothing: it is checked after the event.
4xxRefused; nothing stored.Correct the request (Errors, section 2).

If screening does not finish in time the payment is held for a person (HUMAN_REVIEW, screening_timeout: true): it is never released unscreened. It is screened again in the background within minutes, and released if nothing is found.

Every status a decision can have, and what it means for the money:

StatusMeaningThe money
RELEASEDNothing stops it. Final.Settle.
BLOCKEDRejected. Final. It always carries rejection_action (REJECT or FREEZE).As rejection_action says.
RECEIVEDRecorded, not yet screened; it normally changes within the same request.Hold.
SCREENINGBeing screened; it normally changes within the same request. When screening did not finish (screening_timeout), the scheduled sweep holds it within minutes.Hold.
HOLDHeld until what stopped it (a rule, a screening match, a country restriction) is decided.Hold.
AI_INVESTIGATIONThe AI triage is queued; your decision policy acts on its recommendation, or a person decides.Hold.
HUMAN_REVIEWWith a person.Hold.
ESCALATEDTaken into a case; a person decides it there.Hold.
EXPIREDThe hold period of your decision policy ran out while a person had it; it stays with a person.Hold.
FAILEDNo path sets it today.Hold, and quote the decision_ref to Underlayer.

A status this table does not list is treated the same way: not released, hold the money (Versioning and changelog).

Required fields

For every payment: external_transaction_id, customer_ref, channel, direction, amount, currency. SEPA also needs counterparty; SWIFT also origin_country and destination_country. Fields not in the schema are ignored.

{
  "external_transaction_id": "EXAMPLE-TX-0003",
  "source_system": "CORE-BANKING",
  "customer_ref": "EXAMPLE-C-0001",
  "channel": "SWIFT",
  "direction": "OUTGOING",
  "amount": "18000.00",
  "currency": "USD",
  "origin_country": "LT",
  "destination_country": "AE",
  "beneficiary": "Example Trading LLC",
  "beneficiary_bic": "EXAMPLEAEXXX",
  "counterparty_type": "LEGAL_ENTITY",
  "payment_reference": "Order 4471",
  "data_classification": "TEST"
}

Reading the decision later

GET /v1/transactions/{id}/decision, where {id} is the transaction_id, the decision_id, the decision_ref or your own external_transaction_id. Poll every few seconds at first, then less often: a person may take hours. Better, set a decision webhook.

{
  "decision_id": "00000000-0000-4000-8000-000000000012",
  "decision_ref": "DEC-2026-000124",
  "transaction_id": "00000000-0000-4000-8000-000000000011",
  "status": "HUMAN_REVIEW",
  "rejection_action": null,
  "decision_reason": "AI outcome uncertain (confidence 62%) - human review required",
  "channel": "SWIFT",
  "direction": "OUTGOING",
  "instant": false,
  "correlation_id": "6f1c2f9e-0000-4000-8000-000000000013",
  "triggered_rules": ["TM-003 v4"],
  "ai_decision": "UNCERTAIN",
  "ai_confidence": 62,
  "mandatory_review": true,
  "mandatory_review_reasons": ["AI confidence below threshold"],
  "policy_version": "decision-policy-v1.6",
  "decision_engine_version": "decision-engine-v1.0",
  "received_at": "2026-09-01T09:20:00.000000+00:00",
  "held_at": "2026-09-01T09:20:00.120000+00:00",
  "ai_started_at": "2026-09-01T09:20:01.000000+00:00",
  "ai_completed_at": "2026-09-01T09:20:09.000000+00:00",
  "decided_at": null,
  "released_at": null,
  "expires_at": null,
  "tm_latency_ms": 55,
  "total_latency_ms": null
}

The AI's recommendation (ai_decision, ai_confidence) is never a decision by itself: it takes effect only through your institution's review gates or a person, and the payment is decided from every domain together.

Instant transfers

Send "instant": true with a SEPA Instant credit transfer (SCT Inst), which must be executed within ten seconds of the order; leave it out, or false, for a regular SEPA transfer. Only a SEPA payment can be an instant transfer. Your institution's rules can then treat instant transfers on their own (the rule builder's field "Instant transfer").

An instant transfer is screened like any payment, except for the EU's sanctions list. When it is in euro and the counterparty's bank is in the EU or the EEA (by the country of its IBAN and of its BIC), the EU list is applied through the daily screening of your customers rather than to the transfer itself; every other list is applied to the transfer. When the bank's country is not known or is outside the EU and the EEA, or the transfer is not in euro, the EU list is applied to the transfer as well.

A rejected payment

BLOCKED is final, and it carries rejection_action: REJECT when the payment must not be executed (money that came in goes back under your own procedure), FREEZE when it had a sanctions match that was confirmed, or not yet cleared as a false positive, when it was rejected (the funds stay where they are and nothing is returned; handle them under your sanctions procedure, which reports a confirmed match). A person's decision on a held payment ends the same way, and the decision webhook carries the same field. Every other status has rejection_action: null.

A FREEZE is lifted once every sanctions alert of the payment is cleared as a false positive: the payment stays BLOCKED, its rejection_action becomes REJECT, the decision look-up's freeze_lifted_at says when, and decision.freeze_lifted is sent once (a freeze lifted). From then on, handle the funds as for any rejected payment.

The customer

customer_ref links the payment to the customer's file. Send the customer's CDD data first (Customer data). An unknown reference opens a provisional customer (KYC incomplete, risk High) unless your decision policy forbids it; then the payment is refused (unknown customer_ref <your reference>). The answer does not say that a provisional customer was opened: it shows on the Customers screen with its KYC incomplete. So a mistyped reference does not fail. Send every customer's CDD record before their payments, and check in the sandbox that no provisional customer appears; to have an unknown reference refused instead, forbid provisional customers in your decision policy.

Optional context

A payment can carry the customer's session, device and payee context, which rules can read (a new device, an IP country that differs from the customer's, a payment sent although the payee check said no match): see Session and device data.

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