Documentation

Documentation/Guides/

Cards

If your institution issues cards, register each card with Underlayer before its card events are sent, and keep its status in step: POST /v1/cards takes one card a call, created or updated by its card_token; the Cards tab of the Data imports screen takes the same six columns as a file. Every field is described in the API reference.

Registering a card

{
  "card_token": "EXAMPLE-CARD-0001",
  "customer_ref": "EXAMPLE-CUST-0001",
  "masked_pan": "411111******1111",
  "card_type": "VIRTUAL_CARD",
  "status": "ACTIVE",
  "data_classification": "TEST"
}

References beginning EXAMPLE- are refused: send your own. The answer is 201 for a new card, 200 for an existing one:

{
  "created": true,
  "changed": true,
  "warnings": [],
  "card": {
    "card_id": "00000000-0000-4000-8000-000000000051",
    "card_token": "tok_7Hf2kQ9",
    "customer_ref": "C-1001",
    "masked_pan": "411111******1111",
    "card_type": "VIRTUAL_CARD",
    "status": "ACTIVE",
    "data_classification": "TEST",
    "updated_at": "2026-10-29T12:40:25.118402+00:00"
  }
}

Whose status it is

Who changes the statusWhat Underlayer does
You, in your own system (send status here)Records and audits it. Your card events are answered by it: an authorisation on a suspended or terminated card is declined. No webhook is sent: you made the change. If a monitoring alert that suspended the card is still open when you make it active, the answer warns you (OPEN_ALERT_SUSPENDED_CARD); the card is active by your decision. A status you set stays yours: if you suspend a card yourself, Underlayer never reinstates it, even when a rule had suspended it before and that rule's alert is later cleared.
A monitoring rule of yours, on a card eventSuspends or terminates the card and posts card.suspended or card.terminated to your webhook, seconds after the card event is answered.
A person of yours reinstates it, or clears the last alert that suspended itReinstates the card and posts card.reinstated (PERSON, PERSON_CLEARING).
The AI triage closes that alert as a false positive, and your decision policy lets such a closure reinstate a cardReinstates the card and posts card.reinstated (AI_CLOSURE).

Apply what the webhook says in your card processor. When in doubt, keep the card suspended and ask your team.

The card status webhook

Set your webhook address and its secret on the API and webhooks screen, as for decision webhooks: a card delivery is signed, retried and verified the same way. Its X-Underlayer-Idempotency-Key is card:<id of the card action>.

{
  "event_type": "card.suspended",
  "delivery_id": "00000000-0000-4000-8000-000000000061",
  "attempt": 1,
  "card_id": "00000000-0000-4000-8000-000000000051",
  "card_token": "tok_7Hf2kQ9",
  "status": "SUSPENDED",
  "previous_status": "ACTIVE",
  "action": "SUSPEND_CARD",
  "reason_code": "RULE",
  "rule_code": "RR-12",
  "card_event_ref": "CAE-2026-000311",
  "correlation_id": "6f1c2f9e-0000-4000-8000-000000000071",
  "occurred_at": "2026-10-29T12:41:02.530917+00:00"
}

A delivery never carries a card number. A delivery can arrive more than once and out of order: de-duplicate by the idempotency key and order by occurred_at.

Errors

The refusals are in Errors, section 4b; the card file gives the same refusals as a reason code per row, never quoting a value.

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