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.
- The card must be registered for your institution first, under the same data classification (Cards); otherwise the event is refused with
unknown card_token. - A card a rule suspends or terminates on the event is reported to your webhook (
card.suspended,card.terminated; Cards). - The header
Idempotency-Keyis required: a repeat with the same key and the samecard_token,event_type,amountandcurrencyanswers the first decision; the same key with another of them is refused409(Idempotency and retries). - A card event carries no session or device data:
ip_addressanddevice_idare ignored when sent.
Event types
event_type | Answer | Can be declined? |
|---|---|---|
CARD_AUTHORIZATION | APPROVED or DECLINED | Yes: the card's status, cvv_result or pin_result NO_MATCH, a rule that rejects, or a rule error under your decision policy. |
ATM_WITHDRAWAL | APPROVED or DECLINED | Yes, as an authorisation. Without card_presence it is card-present; without mcc it is 6011. |
CARD_REFUND | REFUNDED | Never. original_event_ref optional. |
CARD_REVERSAL | REVERSED | Never. 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