Get Services
In order to send requests for getting the list of active services 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 Services
Send GET request as it is described below:
https://api.centili.com/management/v2/services
Example
https://api.centili.com/management/v2/services
Content-Type: application/json
Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJHdl9MM0NFZDBMczZ5aGR1WGNnUmViWUlhek50VVJuaW9VZUxYYzRCczR3In0.eyJqdGkiOiIyNGYxMGMwZS04YWIxLTQ2ZjctYTQ1OS04OGI0NjE2ZDkwZGIiLCJleHAiOjE1OTg1MzQ0NjEsIm5iZiI6MCwiaWF0IjoxNTk4NTM0MTYxLCJpc3MiOiJodHRwczovL3N0YWdlLmNlbnRpbGkuY29tL2F1dGgvcmVhbG1zL2FwaSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIyNDhhMmU1Ny1hMTJhLTQ1YjUtODNkMS0zMGI4ZDJjYWY5NGUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGktcGF5bWVudHMiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiJiYTA1MWUxZi1kYTdkLTQyODctOTgzNi1jNjQ5ODI2YzE0ZjkiLCJhY3IiOiIxIiwiYWxsb3dlZC1vcmlnaW5zIjpbImh0dHBzOi8vc3RhZ2UuY2VudGlsaS5jb20iXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImNlbnRpbGkuYXBpLmdhdGV3YXkuYWRtaW4iLCJjZW50aWxpLmFwaS5hZG1pbiIsIm9mZmxpbmVfYWNjZXNzIiwidW1hX2F1dGhvcml6YXRpb24iLCJjZW50aWxpLmFwaS51c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJwcm9maWxlIGVtYWlsIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInByZWZlcnJlZF91c2VybmFtZSI6ImthaW9zX3Rlc3QiLCJtZXJjaGFudF9pZCI6IjE1Nzc5In0.AV72Bb3hI5NiySwWGO_-m8A5cR3Zy-e3PZrO2mzEn9OfLHrJN02RYtQChqCy62T3Yg7m-PCfa7Z1MpGpbenJmwXy5H0b0uf2hjXk-4kwODN-1RN0WXiTo7DW4Ea5ojTtjmNFbPthU5NLrAEKQpioEdkDJpvYuBdmmHckzCAyigNAW_Wyj_s1zOg4XeoKR3N4poT5MMm4xYnFZpOE4GdI6hqyHMJbAjxHNKr4KDUpPUcD_GgitC7gCAfvhBhdFb1epwAcjsuDCMZPwsVvx9ZYmF_OipYq1cPhsYncBsB--QrKrkS-UEJJp5QpyYxYYeZ7UhFcziNMLluoIfWEkylPZA
Example
Responses example
200
{
"serviceType": null,
"dateCreated": "2021-01-11 12:28:29",
"merchantId": 1000190,
"name": "Test service 1",
"active": true,
"merchant": "Demo Merchant",
"serviceKey": "c2922724128c9d2e12204d3ec6299385",
"contentType": "OTHER",
"ownedBy": "Demo merchant"
},
{
"serviceType": null,
"dateCreated": "2021-01-11 12:28:29",
"merchantId": 1000190,
"name": "Test service 2",
"active": true,
"merchant": "Demo Merchant",
"serviceKey": "c2922724128c9d2e12204d3ec6299255",
"contentType": "OTHER",
"ownedBy": "Demo merchant"
},
{
"serviceType": null,
"dateCreated": "2021-01-11 12:28:29",
"merchantId": 1000190,
"name": "Test service 3",
"active": true,
"merchant": "Demo Merchant",
"serviceKey": "c2922724128c9d2e12204d3ec6299378",
"contentType": "OTHER",
"ownedBy": "Demo merchant"
}
]
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