Skip to content
Merchants

Search Merchants

GET/api/merchants/search

Returns a paginated response of Merchant Search Results that match the search query. This endpoint does not require Auth; if auth is provided, each loyalty program in the results also includes isMember.

Query parameters

  • accountIdoptional string
    The ID of the Account that owns the merchant.
  • assetoptional string
    A string of the format assetType, productId describing the asset where assetType is the type of asset to filter the merchants by and productId is the asset's collectionId for centrapay.token and centrapay.ledger asset types. Can be repeated to match merchants accepting any of several assets.
  • categoryCodeoptional string
    The category code assigned to the Merchant by Centrapay. Must be 4 digits. Multiple codes can be provided as a comma-separated list.
  • distanceoptional number
    The distance from the origin to be searched around in km. Required if origin is provided.
  • hasLoyaltyProgramoptional boolean
    Set to true to only return merchants with public loyalty programs.
  • nameoptional string
    Name of the merchant
  • originoptional string
    The point to be searched around, formatted as a latitude,longitude. Required if distance is provided.
  • pageKeyoptional integer
    The nextPageKey from a previous response, used to fetch the next page of merchants.
  • paginationLimitoptional integer
    Maximum amount of merchants to return. Required if pageKey is provided.
  • testoptional boolean
    Set to true to search for test merchants.

Responses

Request
curl -X GET 'https://service.centrapay.com/api/merchants/search?asset=centrapay.token.main%2CXv990BzkgfoDS7bBls50pd&categoryCode=5812&distance=100&hasLoyaltyProgram=true&origin=-36.8484%2C174.7633&pageKey=10&paginationLimit=10' \
-H 'x-api-key: <TOKEN>'