Get Merchant List
In order to send requests for getting the list of merchants you first need to get the bearer token
Once you have acquired the bearer token, you can use the following instructions to send a get request.
Get merchant list:
Send GET request as it is described below:
https://api.centili.com/management/v2/merchants
Example
https://api.centili.com/management/v2/merchants
Content-Type: application/json
Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJHdl9MM0NFZDBMczZ5aGR1WGNnUmViWUlhek50VVJuaW9VZUxYYzRCczR3In0.eyJqdGkiOiIyNGYxMGMwZS04YWIxLTQ2ZjctYTQ1OS04OGI0NjE2ZDkwZGIiLCJleHAiOjE1OTg1MzQ0NjEsIm5iZiI6MCwiaWF0IjoxNTk4NTM0MTYxLCJpc3MiOiJodHRwczovL3N0YWdlLmNlbnRpbGkuY29tL2F1dGgvcmVhbG1zL2FwaSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIyNDhhMmU1Ny1hMTJhLTQ1YjUtODNkMS0zMGI4ZDJjYWY5NGUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGktcGF5bWVudHMiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiJiYTA1MWUxZi1kYTdkLTQyODctOTgzNi1jNjQ5ODI2YzE0ZjkiLCJhY3IiOiIxIiwiYWxsb3dlZC1vcmlnaW5zIjpbImh0dHBzOi8vc3RhZ2UuY2VudGlsaS5jb20iXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImNlbnRpbGkuYXBpLmdhdGV3YXkuYWRtaW4iLCJjZW50aWxpLmFwaS5hZG1pbiIsIm9mZmxpbmVfYWNjZXNzIiwidW1hX2F1dGhvcml6YXRpb24iLCJjZW50aWxpLmFwaS51c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJwcm9maWxlIGVtYWlsIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInByZWZlcnJlZF91c2VybmFtZSI6ImthaW9zX3Rlc3QiLCJtZXJjaGFudF9pZCI6IjE1Nzc5In0.AV72Bb3hI5NiySwWGO_-m8A5cR3Zy-e3PZrO2mzEn9OfLHrJN02RYtQChqCy62T3Yg7m-PCfa7Z1MpGpbenJmwXy5H0b0uf2hjXk-4kwODN-1RN0WXiTo7DW4Ea5ojTtjmNFbPthU5NLrAEKQpioEdkDJpvYuBdmmHckzCAyigNAW_Wyj_s1zOg4XeoKR3N4poT5MMm4xYnFZpOE4GdI6hqyHMJbAjxHNKr4KDUpPUcD_GgitC7gCAfvhBhdFb1epwAcjsuDCMZPwsVvx9ZYmF_OipYq1cPhsYncBsB--QrKrkS-UEJJp5QpyYxYYeZ7UhFcziNMLluoIfWEkylPZA
Example
Responses example
200
{
"name": "Demo Merchant 1",
"id": 1000190
},
{
"name": "Demo Merchant 2",
"id": 10001991
},
{
"name": "Demo Merchant 3",
"id": 1000192
}
]
400
Possible error messages:
BIND_PARAMETER_ERROR
INTERNAL_SERVER_ERROR
ENTITY_SERIALIZATION_ERROR
PATH_NOT_FOUND
MEDIA_TYPE_ERROR
UNSUPPORTED_MEDIA_TYPE
UNSUPPORTED_ACCEPT_TYPE
ENTITY_DESERIALIZATION_ERROR
UNSUPPORTED_ENCODING
EXECUTION_EXCEPTION
BAD_REQUEST
Updated almost 4 years ago