Documentation

Documentation/Guides/

Card events

POST /v1/card-authorizations decides a card authorisation or an ATM withdrawal in real time, and records a refund or a reversal. Every field is described in the API reference.

Event types

event_typeAnswerCan be declined?
CARD_AUTHORIZATIONAPPROVED or DECLINEDYes: the card's status, cvv_result or pin_result NO_MATCH, a rule that rejects, or a rule error under your decision policy.
ATM_WITHDRAWALAPPROVED or DECLINEDYes, as an authorisation. Without card_presence it is card-present; without mcc it is 6011.
CARD_REFUNDREFUNDEDNever. original_event_ref optional.
CARD_REVERSALREVERSEDNever. original_event_ref required.

A decline is a 200 answer, not an error: its reason is in decline_reason (Errors, "Card declines").

An authorisation

{
  "event_type": "CARD_AUTHORIZATION",
  "card_token": "EXAMPLE-CARD-0001",
  "amount": 49.90,
  "currency": "EUR",
  "event_time": "2026-09-02T18:04:11Z",
  "merchant_name": "Example Shop UAB",
  "merchant_id": "EXAMPLE-MERCHANT-01",
  "mcc": "5732",
  "merchant_country": "LT",
  "entry_mode": "ECOMMERCE",
  "three_ds_result": "AUTHENTICATED",
  "data_classification": "TEST"
}

A reversal

original_event_ref is the event_ref answered for the authorisation it reverses.

{
  "event_type": "CARD_REVERSAL",
  "card_token": "EXAMPLE-CARD-0001",
  "amount": 49.90,
  "currency": "EUR",
  "original_event_ref": "CAE-2026-000321",
  "data_classification": "TEST"
}

What is refunded and reversed against one event never exceeds its amount, in its currency.

When a rule cannot be evaluated

The event is still answered. The rule is listed in rule_errors, rule_error_handling says what the error did (APPROVE_AND_ALERT by default, DECLINE if your decision policy says so, ALERT_ONLY for a refund or a reversal), and a person reviews the event.

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