Request
Your public API key from the dashboard. Starts with
ep_live_, ep_test_ or ep_sbx_ and selects that Stripe environment.Comma-separated Stripe Price IDs, 1 to 50. Base or sibling IDs both work.
price= is accepted for a single ID.GET and OPTIONS only, no headers. Responses are JSON with Access-Control-Allow-Origin: * and Cache-Control: no-store.
Response
data has one entry per requested ID, in the order you sent them.
The Stripe Price ID to charge. A sibling when the visitor is localized, otherwise the base Price.
ISO 3166-1 alpha-2 code of the visitor’s country, or
null when unknown. No more precise location is returned.Percentage of the base price this visitor pays.
100 when not localized. Above 100 in premium markets.Currency of
amount and display: the visitor’s currency when a rate is available, otherwise the Price’s own currency.Amount in the smallest unit of
currency, following Stripe’s convention (no decimals for JPY and KRW, three for KWD and BHD, two for most others). Prefer display.amount formatted with a currency symbol and the correct number of decimals, for example $49.00, CA$66.15, ¥4,900.true when amount was converted from the Price’s currency, at the rate from rates_as_of. Display only.What Stripe charges for
price, in the smallest unit of base_currency. Absent for unknown IDs.true when localized pricing is paused: by you, because no card is on file, or because Stripe was disconnected. Every entry then holds the base Price.A visitor who is not localized
The same fields, pointing at the base Price.display is the base price in the visitor’s currency when a rate is known.
country: null, amount in the base currency), visitors on a VPN or proxy with the guard on, and everyone while the account is paused. The response does not say which.
An ID EasyPPP does not know
Errors
Errors are JSON with a singleerror field.
On any error, show your base price and charge your base Price ID.