Get All Packages by Key and Country

In order to send requests for getting packages list by service key and country, first you 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 All Packages by Key and Country

Send GET request as it is described below:

https://api.centili.com/management/v2/services/{serviceKey}/countries/{countryCode}/packages

Parameters which have to be sent are:

ParameterDescriptionExample
serviceKeyCentili issued service key, unique for every payment service. Consists of alphanumeric characters and counts up to 32 characters.f31a355df6dad07e49ba474db7ff9b07
CountryCode2 letters country parameter. We are using "ISO 3166-1 alpha-2" standard. Here is full list of 2 letter country codesng

Example

https://api.centili.com/management/v2/services/164a32383e39572ac93553f987093bd0f/countries/ng/packages

Content-Type: application/json
Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJHdl9MM0NFZDBMczZ5aGR1WGNnUmViWUlhek50VVJuaW9VZUxYYzRCczR3In0.eyJqdGkiOiIyNGYxMGMwZS04YWIxLTQ2ZjctYTQ1OS04OGI0NjE2ZDkwZGIiLCJleHAiOjE1OTg1MzQ0NjEsIm5iZiI6MCwiaWF0IjoxNTk4NTM0MTYxLCJpc3MiOiJodHRwczovL3N0YWdlLmNlbnRpbGkuY29tL2F1dGgvcmVhbG1zL2FwaSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIyNDhhMmU1Ny1hMTJhLTQ1YjUtODNkMS0zMGI4ZDJjYWY5NGUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGktcGF5bWVudHMiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiJiYTA1MWUxZi1kYTdkLTQyODctOTgzNi1jNjQ5ODI2YzE0ZjkiLCJhY3IiOiIxIiwiYWxsb3dlZC1vcmlnaW5zIjpbImh0dHBzOi8vc3RhZ2UuY2VudGlsaS5jb20iXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImNlbnRpbGkuYXBpLmdhdGV3YXkuYWRtaW4iLCJjZW50aWxpLmFwaS5hZG1pbiIsIm9mZmxpbmVfYWNjZXNzIiwidW1hX2F1dGhvcml6YXRpb24iLCJjZW50aWxpLmFwaS51c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJwcm9maWxlIGVtYWlsIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInByZWZlcnJlZF91c2VybmFtZSI6ImthaW9zX3Rlc3QiLCJtZXJjaGFudF9pZCI6IjE1Nzc5In0.AV72Bb3hI5NiySwWGO_-m8A5cR3Zy-e3PZrO2mzEn9OfLHrJN02RYtQChqCy62T3Yg7m-PCfa7Z1MpGpbenJmwXy5H0b0uf2hjXk-4kwODN-1RN0WXiTo7DW4Ea5ojTtjmNFbPthU5NLrAEKQpioEdkDJpvYuBdmmHckzCAyigNAW_Wyj_s1zOg4XeoKR3N4poT5MMm4xYnFZpOE4GdI6hqyHMJbAjxHNKr4KDUpPUcD_GgitC7gCAfvhBhdFb1epwAcjsuDCMZPwsVvx9ZYmF_OipYq1cPhsYncBsB--QrKrkS-UEJJp5QpyYxYYeZ7UhFcziNMLluoIfWEkylPZA

Responses example

👍

200

[
{
"amount": 2,
"unit": "item",
"countryCode": "NGN",
"price": 30,
"currency": "NGN",
"paymentType": "MOBILE"
},
{
"amount": 3,
"unit": "item",
"countryCode": "NGN",
"price": 50,
"currency": "NGN",
"paymentType": "MOBILE"
},
{
"amount": 1,
"unit": "item",
"countryCode": "NGN",
"price": 100,
"currency": "NGN",
"paymentType": "MOBILE"
}
]

❗️

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