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.
assetoptional stringA string of the formatassetType,productIddescribing the asset whereassetTypeis the type of asset to filter the merchants by andproductIdis the asset's collectionId for centrapay.token and centrapay.ledger asset types. Can be repeated to match merchants accepting any of several assets.
loyaltyProgramsarray of objectsArray of Loyalty Programs that the merchant supports. If auth is provided, we will also compute whether the caller is a member of each loyalty program.
errorstringThe name of the HTTP status. AlwaysBad Request.messageenumThe error code, or for a 400 a description of what's wrong with the request.Bad RequestThe request is malformed or missing required fields. The message says what's wrong, egamount is required. See 400 Malformed Request.
statusCodeintegerThe HTTP status code. Always400.
errorstringThe name of the HTTP status. AlwaysUnauthorized.messageenumThe error code, or for a 400 a description of what's wrong with the request.Missing authenticationAPI key or JWT is missing, expired or invalid. See Auth.
statusCodeintegerThe HTTP status code. Always401.
errorstringThe name of the HTTP status. AlwaysForbidden.messageenumThe error code, or for a 400 a description of what's wrong with the request.ForbiddenThe resource doesn't exist, or your user or API key doesn't have permission to access it. See 403 Forbidden.
statusCodeintegerThe HTTP status code. Always403.
errorstringThe name of the HTTP status. AlwaysNot Found.messageenumThe error code, or for a 400 a description of what's wrong with the request.Not FoundThe route doesn't exist. Check the URL and HTTP method against the examples. See 404 Route Not Found.
statusCodeintegerThe HTTP status code. Always404.
errorstringThe name of the HTTP status. AlwaysToo Many Requests.messageenumThe error code, or for a 400 a description of what's wrong with the request.RATE_LIMIT_EXCEEDEDCentrapay API rate limits have been exceeded. See Rate Limits.
statusCodeintegerThe HTTP status code. Always429.
errorstringThe name of the HTTP status. AlwaysInternal Server Error.messageenumThe error code, or for a 400 a description of what's wrong with the request.An internal server error occurredSomething went wrong on our end. Retrying should solve the issue. See 5xx Server Error.
statusCodeintegerThe HTTP status code. Always500.
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>'{ "items": [ { "acceptedAssets": [ { "assetType": "centrapay.token.main", "products": [ { "id": "Xv990BzkgfoDS7bBls50pd" } ] }, { "assetType": "centrapay.nzd.main" }, { "assetType": "epay.main" } ], "accountId": "Jaim1Cu1Q55uooxSens6yk", "categoryCode": "5812", "id": "Ksh5Gx8dvVTq4yJpHn3ZeR", "location": { "city": "Auckland", "country": "NZ", "lat": "-36.8483579", "lng": "174.7725834", "postCode": "1010", "state": "Auckland", "street": "125 Queen Street", "suburb": "Auckland Central" }, "loyaltyPrograms": [ { "id": "5f6bf6ff81552101f8ff6122", "isMember": true }, { "id": "5f6bf6ff81552101f8ff6123", "isMember": false } ], "name": "Centrapay Café" } ], "nextPageKey": 20, "totalItems": 100}{ "error": "Bad Request", "message": "amount is required", "statusCode": 400}{ "error": "Unauthorized", "message": "Missing authentication", "statusCode": 401}{ "error": "Forbidden", "message": "Forbidden", "statusCode": 403}{ "error": "Not Found", "message": "Not Found", "statusCode": 404}{ "error": "Too Many Requests", "message": "RATE_LIMIT_EXCEEDED", "statusCode": 429}{ "error": "Internal Server Error", "message": "An internal server error occurred", "statusCode": 500}