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."
}
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.
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
List of base prices in USD.
50[699, 4550, 9999]
Two-letter country code in ISO-3166 alpha-2 format. Required if playerIp is not provided. Example: US.
"DE"
Response
Localized price points retrieved successfully.
ISO 4217 currency code of the resolved local currency. Pass this value as priceDetails.currency when creating a checkout session. Empty string when no local price is configured for any of the requested price points.
"EUR"
Map of requested USD price points, as JSON string keys, to localized price objects. The value is null when no local price is configured for that price point.
Show child attributes
Show child attributes
Was this page helpful?
