laso

← All agent guides

How do I check if a store will accept my AI agent’s card before buying?

Last reviewed: August 2026

The short answer

Have the agent call GET /search-merchants?q=<store> before it orders a card. Each matching store comes back as accepted, not_accepted, or unknown, based on purchases Laso cardholders have already tried there, for the U.S., international, or reloadable card. The call is free with a Bearer token, so the agent can check every store before it spends anything.

Why check first

A prepaid card works at most online stores, but a store can still decline it: some block prepaid cards outright, and banking and money-transfer merchants refuse them as a transfer of value. A person finds out at checkout and tries another card. An agent that ordered a card for the exact checkout total has already spent the money by then, so the check belongs before the order.

What the lookup returns

The status field on each merchant in the GET /search-merchants response.
statusMeaningWhat the agent should do
acceptedThe card type has worked at this store beforeOrder the card and check out
not_acceptedThe card type has failed at this store, or the store is restricted (see restriction_note)Do not order a card for this store. Use a fallback below
unknownNobody has tried this card type at this store yetUsually fine. Order for the exact total, or ask the human first if the purchase is large
Not listedNo Laso cardholder has attempted a purchase thereSame as unknown

The database only holds stores where someone has already tried a card, so a missing store has simply not been tried yet. A not_accepted result is the one answer that should stop the agent.

Step 1: Look the store up

Sign in with GET /auth to get an id_token, then search by store name. card_type defaults to the U.S. prepaid card. Pass Non-Reloadable International or Reloadable to check the other cards.

curl "https://laso.finance/search-merchants?q=bestbuy" \
  -H "Authorization: Bearer $LASO_ID_TOKEN"
# {
#   "merchants": [
#     { "name": "Best Buy", "url": "bestbuy.com", "status": "accepted",
#       "restriction_note": null, "description": "...", "notes": null }
#   ],
#   "query": "bestbuy",
#   "count": 1,
#   "card_type": "Non-Reloadable U.S.",
#   "note": "This database only contains merchants where Laso users have previously attempted a transaction."
# }

Step 2: Turn the answer into a decision

A search can match several stores, so match on the domain the agent is about to check out on. This function returns one of three decisions the agent can act on.

async function canPayAt(storeName, checkoutDomain, cardType = "Non-Reloadable U.S.") {
  const url = new URL("https://laso.finance/search-merchants");
  url.searchParams.set("q", storeName);
  url.searchParams.set("card_type", cardType);

  const res = await fetch(url, {
    headers: { Authorization: `Bearer ${process.env.LASO_ID_TOKEN}` },
  });
  const { merchants } = await res.json();

  const match = merchants.find((m) => checkoutDomain.endsWith(m.url));
  if (!match || match.status === "unknown") {
    return { decision: "untested" };
  }
  if (match.status === "not_accepted") {
    return { decision: "declines", reason: match.restriction_note ?? match.notes };
  }
  return { decision: "accepted" };
}

const check = await canPayAt("best buy", "bestbuy.com");
// { decision: "accepted" }

Step 3: Order the card, or fall back

On accepted or untested, order a U.S. prepaid card for the exact checkout total with GET /get-card?amount=<total> over x402, then poll GET /get-card-data?card_id=<card_id> until status is ready. Cards cost $5 to $1,000 with no fee, and any balance left after a failed checkout stays spendable at another U.S. store until the card expires.

On declines, the agent has three honest options:

Stores outside the U.S.

U.S. searches leave out stores on non-U.S. country domains. For a store abroad, search with card_type=Non-Reloadable International before ordering an international card with GET /order-intl-card. See how an agent buys from a store outside the US.

Limits of the check

Full reference: GET /search-merchants and the USA prepaid card guide.

Frequently asked questions

How can my AI agent tell if a website takes prepaid cards?

Call GET /search-merchants with the store name. A status of accepted means the card has worked there before, and not_accepted means it has failed or the store is restricted.

What should my agent do if a store is not in the merchant database?

Treat it as untested. The database only lists stores where someone has already tried a card, so a missing store usually still accepts it.

Does checking a store cost anything?

No. GET /search-merchants is free and only needs the Bearer token from GET /auth.

What happens to the money if the card is declined at checkout?

The balance stays on the card. The agent can spend it at another U.S. store until the card expires.

Why does a bank or money-transfer site always show not_accepted?

Spending there counts as a transfer of value, which no Laso card supports, so those merchants carry a restriction_note and are always returned as not_accepted.

More guides

Try it: connect a wallet at laso.finance and you'll have a card, gift card, or payout in minutes.

Building an agent? Point it at laso.finance/SKILL.md — it can set itself up.