issue a card with Marqeta and handle JIT funding gateway requests

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

Steps

  1. Create a card product in the Marqeta dashboard or via POST /cardproducts, defining the funding source, JIT funding configuration (including your gateway URL), and card program settings.
  2. Create a user by POSTing to /users with identifying details; receive a user_token.
  3. Issue a card by POSTing to /cards with the user_token and card_product_token; for virtual cards the card is ready immediately, for physical cards it enters a fulfillment queue.
  4. Implement your JIT funding webhook endpoint — Marqeta will POST an authorization request to your gateway_url for every transaction; respond within the required timeout (typically under 5 seconds) with a JSON body containing amount and a jit_funding object indicating approval or decline.
  5. In your JIT gateway handler, check the user's available balance in your ledger, deduct the amount if sufficient, and return a 200 response with jit_funding.method=pgfs.authorization and the approved amount; return a decline code if insufficient.
  6. Reconcile final transaction amounts using Marqeta's clearing webhooks, which may differ from the authorization amount (e.g., for tips or fuel holds).

Known gotchas

Related routes

Implement a Marqeta JIT (Just-In-Time) funding gateway to approve or decline card authorizations in real time
docs.marqeta.com · 5 steps · unrated
Create a virtual card via the Marqeta Core API with Just-in-Time (JIT) Gateway Funding and configure spend controls
www.marqeta.com · 6 steps · unrated
Configure Marqeta JIT (Just-in-Time) funding for a debit card program with real-time authorization decisions
banking-general · 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