Skip to main content
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 €"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.appcharge.com/llms.txt

Use this file to discover all available pages before exploring further.

  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 €"
    }
  }
}

Body

application/json
pricesInUsdCents
number[]
required

List of base prices in USD.

Maximum array length: 50
Example:
[699, 4550, 9999]
countryCode2
string
required

Country code in ISO 3166-1 alpha-2.

Example:

"DE"

Response

Localized price points retrieved successfully.

currencyCode
string

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.

Example:

"EUR"

pricePoints
object

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.