Create a Lithic virtual card and handle transaction webhooks

domain: docs.lithic.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate all requests with the API key in the Authorization header as 'YOUR_KEY'
  2. Create a card: POST /v1/cards with type: 'VIRTUAL', spend_limit (in cents), spend_limit_duration ('TRANSACTION', 'MONTHLY', or 'ANNUALLY'), and state: 'OPEN'; receive a card token, pan, cvv, and exp_month/exp_year in the response
  3. Register a webhook endpoint in the Lithic dashboard or via POST /v1/webhooks; Lithic sends events for transaction.created, transaction.updated, and card state changes
  4. On receiving a webhook, validate the Lithic-Signature header using your webhook secret and HMAC-SHA256 to confirm authenticity before processing
  5. Parse the transaction event payload: inspect status (PENDING, SETTLING, SETTLED, DECLINED), amount, merchant.descriptor, and result to update your internal records

Known gotchas

Related routes

Build a Lithic virtual card program with per-transaction spend controls and real-time authorization webhooks
ledger/Lithic · 6 steps · unrated
Create a Lithic virtual card with spend controls and retrieve authorization events
lithic.com · 6 steps · unrated
Issue a Lithic virtual card, configure authorization rules, and simulate a transaction via the sandbox
docs.lithic.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans