curl -X POST \
'https://api.appcharge.com/v1/price-points/localized/lookup' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"pricesInUsdCents": [699, 4550, 9999],
"countryCode2": "DE"
}'
{
"currencyCode": "EUR",
"pricePoints": {
"699": {
"price": 664,
"displayPrice": "6,64 €"
},
"4550": {
"price": 4323,
"displayPrice": "43,23 €"
},
"9999": {
"price": 9499,
"displayPrice": "94,99 €"
}
}
}
{
"message": "Invalid countryCode2: must be ISO 3166-1 alpha-2."
}
{
"message": "Unauthorized."
}
{
"message": "Rate limit exceeded."
}
Price Localization
Get Price Points for a Country
Retrieves price points localized for a specific country.
Pass price points in USD cents and a country code. The API returns each requested price point with its localized price in the currency for that country.
POST
/
v1
/
price-points
/
localized
/
lookup
curl -X POST \
'https://api.appcharge.com/v1/price-points/localized/lookup' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"pricesInUsdCents": [699, 4550, 9999],
"countryCode2": "DE"
}'
{
"currencyCode": "EUR",
"pricePoints": {
"699": {
"price": 664,
"displayPrice": "6,64 €"
},
"4550": {
"price": 4323,
"displayPrice": "43,23 €"
},
"9999": {
"price": 9499,
"displayPrice": "94,99 €"
}
}
}
{
"message": "Invalid countryCode2: must be ISO 3166-1 alpha-2."
}
{
"message": "Unauthorized."
}
{
"message": "Rate limit exceeded."
}
curl -X POST \
'https://api.appcharge.com/v1/price-points/localized/lookup' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"pricesInUsdCents": [699, 4550, 9999],
"countryCode2": "DE"
}'
{
"currencyCode": "EUR",
"pricePoints": {
"699": {
"price": 664,
"displayPrice": "6,64 €"
},
"4550": {
"price": 4323,
"displayPrice": "43,23 €"
},
"9999": {
"price": 9499,
"displayPrice": "94,99 €"
}
}
}
{
"message": "Invalid countryCode2: must be ISO 3166-1 alpha-2."
}
{
"message": "Unauthorized."
}
{
"message": "Rate limit exceeded."
}
Body
application/json
Two-letter country code in ISO-3166 alpha-2 format. Required if playerIp is not provided. Example: US.
Example:
"DE"
Player IP address in IPv4 format. Required if countryCode2 is not provided. Example: 192.0.2.1.
Response
Localized price points retrieved successfully.
Was this page helpful?
