Markets

Every planFree keys read every live market; Starter and Pro include one market and sell the others as add-ons; Enterprise includes every market.

A market is a group of countries CardAPI sells together. NA is the one live market today: the United States and Canada. A market that is not live is not listed anywhere, and asking for one by market is a 400.

Free keys read every live market, at Free depth. Starter and Pro include one market (every key that existed before markets reads NA) and sell each further live market as an add-on: $15 a month ($144 a year) on Starter, $29 a month ($279 a year) on Pro. Enterprise includes every market.

Asking for a market

  • country

    One country: US, CA, in either case. The list endpoints that take it (cards, search, best, issuers, offers and transfer bonuses) return only that country. Any other value matches nothing: an empty list, as it always has (transfer bonuses answer 400).

  • market

    One market: NA. The same endpoints return every country of that market your key reads. A country and a market that disagree are a 400.

  • neither

    The list covers every market your key reads, and the response carries meta (below). GET /v1/cards/best is the exception: it ranks inside one market, the first your key reads, because reward rates are in each market's own currency.

What you get back

A market that is not live, and a market that does not exist, get the same 400 when asked for by market: the answer never says which. By country they get the empty list a country that does not exist always got. A live market your plan does not include is a 403 (code forbidden) whose message names the market and its add-on price, whose upgrade_url opens the portal on that market and whose docs_url is this page. A key an administrator has restricted to some markets gets a 403 with a docs_url and no upgrade_url, because buying a plan would not lift the restriction.

A card or issuer slug that belongs to a live market your plan does not include is the same 403, not a 404. A slug of a market that is not live is the 404 an unknown slug gets. GraphQL and webhooks follow the same rule: Enterprise reads every live market, and an event is delivered only for a card the key may read.

A market your plan does not include

HTTP/1.1 403 Forbidden

{
  "error": {
    "code": "forbidden",
    "message": "<MARKET> card data needs the <MARKET> market add-on (+$15/mo on Starter): https://cardapi.dev/portal?add_market=<MARKET>",
    "upgrade_url": "https://cardapi.dev/portal?add_market=<MARKET>&utm_source=api&utm_medium=error&utm_campaign=forbidden_market",
    "docs_url": "https://cardapi.dev/docs/markets"
  }
}

A market that is not available

HTTP/1.1 400 Bad Request

{
  "error": {
    "code": "bad_request",
    "message": "Query parameter 'market' must be NA"
  }
}

meta on list responses

The cards, search, best, issuers, offers and transfer-bonuses lists carry meta after their other keys when neither country nor market was sent. markets are the markets the list covers; markets_available are the live markets your key does not read. Nothing else in the body changes, and a client that ignores unknown keys is unaffected.

{
  "data": [],
  "total": 0,
  "limit": 20,
  "offset": 0,
  "meta": {
    "markets": [
      "NA"
    ],
    "markets_available": []
  }
}

When a change applies

A market you add or remove applies within 30 seconds (the API keeps each key for that long). A market going live applies within a minute. Responses are cached per plan and per set of markets, so a market your key may not read is never served from an entry another key filled.

Plans and market add-ons →

Related

Re-checked against issuer sites every Friday · last change Dec 6