Get Packages

In order to send requests for getting the packages 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 Package Country

https:///api.centili.com/payments/v3/services/packages

Parameters which have to be sent are:

Parameter

Description

Example

serviceKey

Centili issued service key, unique for every payment service. Consists of alphanumeric characters and counts up to 32 characters.

f31a355df6dad07e49ba474db7ff9b07

country

2 letters country parameter. We are using "ISO 3166-1 alpha-2" standard. Here is full list of 2 letter country codes.

es

Example

https:///api.centili.com/payments/v2/services/packages?serviceKey=b70683f1ccc5fb5aca154b73864caf7a&country=rs

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

Get Package Subscriber

https:///api.centili.com/payments/v2/services/packages/subscribers

Parameters which have to be sent are:

Parameter

Description

Example

serviceKey

Centili issued service key, unique for every payment service. Consists of alphanumeric characters and counts up to 32 characters.

f31a355df6dad07e49ba474db7ff9b07

msisdn

Customer mobile phone number.

4477781234567

Example

https:///api.centili.com/payments/v2/services/packages/subscribers?serviceKey=b70683f1ccc5fb5aca154b73864caf7a&msisdn=381651234567

Content-Type: application/json
Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJHdl9MM0NFZDBMczZ5aGR1WGNnUmViWUlhek50VVJuaW9VZUxYYzRCczR3In0.eyJqdGkiOiIyNGYxMGMwZS04YWIxLTQ2ZjctYTQ1OS04OGI0NjE2ZDkwZGIiLCJleHAiOjE1OTg1MzQ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bAjxHNKr4KDUpPUcD_GgitC7gCAfvhBhdFb1epwAcjsuDCMZPwsVvx9ZYmF_OipYq1cPhsYncBsB--QrKrkS-UEJJp5QpyYxYYeZ7UhFcziNMLluoIfWEkylPZA

Responses example

👍

200

{
"country": "rs",
"mccmnc": "22003",
"currency": "EUR",
"localCurrency": "RSD",
"msisdn": "381653074772",
"operatorCode": "RS_MTS",
"packages":[
{"localPayout": 10.78, "price": 0.09, "payout": 0.09, "localPrice": 11, "flow": "PIN"…},
{"localPayout": 14.7, "price": 0.12, "payout": 0.12, "localPrice": 15, "flow": "PIN"…},
{"localPayout": 19.6, "price": 0.16, "payout": 0.16, "localPrice": 20, "flow": "PIN"…},
{"localPayout": 24.5, "price": 0.2, "payout": 0.2, "localPrice": 25, "flow": "PIN"…},
{"localPayout": 29.4, "price": 0.24, "payout": 0.24, "localPrice": 30, "flow": "PIN"…}
]
}

❗️

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 2 months ago

Get Packages


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.