Skip to navigation

List all merchants

Finds merchants to name in a card’s policy.merchants or policy.blockedMerchants. The id of one is what those controls take, and the same id a transaction’s merchant.id carries, so a merchant you have already paid can be blocked straight from its transaction without searching.

The search reads the merchant directory and, where it holds few matches, asks the card network for more and records what it learns, so a merchant you have never paid is still findable. It answers with the matches it has rather than a page of a list: pageInfo.hasNextPage is always false, there is no cursor to follow, and the order of data is not specified. Narrow the text instead of paging, and read each merchant’s name rather than relying on the first entry.

search must hold at least two characters that are not space.

Merchant controls bind cards this platform issues. On an EXTERNAL card, added from an account at another bank, a control is recorded and read back but nothing is sent to that bank, which continues to decide its own authorizations. Where an issuer enforces no merchant controls at all, a policy naming merchants is refused when the card is created or changed, not here.

Authentication

AuthorizationBearer

Access token from POST /access-token. Valid for at most 30 minutes.

Headers

Account-HolderstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.

X-Request-IdstringOptionalformat: "^[A-Za-z0-9._:-]+$"1-128 characters

Your own correlation ID for this request. It is recorded with the request. The X-Request-Id response header is always generated by the server.

Query parameters

searchstringRequired2-128 characters
The merchant to find, by name. Matched loosely, so a trade name is enough. Surrounding space is ignored and does not count towards the two characters the search needs.
limitintegerOptional1-100Defaults to 25
The most items to return, from 1 to 100.

Response headers

X-Request-Idstringformat: "uuid"
Unique ID of this request. Quote it when you contact support.
RateLimitstringOptional

Remaining budget for each rate limit policy, for example "burst"; r=57; t=6 (requests remaining and seconds until the window resets).

RateLimit-PolicystringOptional

The rate limit policies applied to this request, for example "burst"; q=60; w=10 (requests allowed per window of seconds).

Response

The merchants that match.
datalist of objects
The merchants that matched, in no specified order.
pageInfoobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error