apyhub
E-COMMERCE QUICK TOOLS · FINANCE

Global Pricing Recommendations API

What it does

Global Pricing Recommendations helps you generate market-specific subscription prices from a single home-market price. Send a basePrice, baseCurrency, and homeCountry, and you get back a list of recommended prices for international markets.

Each recommendation includes the target countryCode, countryName, a recommendedPrice formatted in the local currency, and a justification explaining how the figure was derived. The request can also include billingFrequency (monthly, weekly, or annually) and an annualDiscountPercent for annual plans.

Use Global Pricing Recommendations when you need to localize pricing for different countries without maintaining separate pricing logic in your app. It is useful for subscription products, regional launch planning, and pricing experiments where you want a consistent method for translating a base price into local market recommendations.

The response is structured for easy downstream use in dashboards, internal tools, or pricing workflows that need to compare countries and present the rationale alongside each suggested price.

POST
Generate Global Pricing Recommendations
http://localhost:8080/namastesumalya/generate-global-pricing-recommendations
QUICKSTARTGUIDE

Quickstart

Generate pricing recommendations for a subscription using your base price, currency, and home country.

curl -X POST "http://localhost:8080/namastesumalya/generate-global-pricing-recommendations" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "basePrice": 29.99,
    "baseCurrency": "USD",
    "homeCountry": "USA"
  }'

What you'll get back

Returns a JSON object with a recommendations array. Each item in the array is an object with countryCode, countryName, justification, and recommendedPrice fields.

{
  "recommendations": [
    {
      "countryCode": "IND",
      "countryName": "India",
      "justification": "Adjusted from your base price using Purchasing Power Parity (PPP), local wage data, and currency conversion for a monthly billing cycle.",
      "recommendedPrice": "₹499"
    }
  ]
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
Request body for generating global pricing recommendations.
Base subscription price in the home market.
ISO 3166-1 alpha-3 three-letter country code representing the home market (e.g., USA, IND, GBR).
ISO 4217 currency code for the base price (e.g., USD, EUR, INR).
Billing cycle for the subscription. Defaults to monthly if not provided.
Discount percentage applied for annual billing plans. Must be between 0 and 100.

About this endpoint

What it does

Generates pricing recommendations for multiple international markets based on a base subscription price, base currency, and home country. The response returns a list of country-level recommendations with the recommended price, country name, country code, and justification.

Request Body

ParameterTypeMandatoryDescription
basePriceNumberYesBase subscription price in the home market.
homeCountryStringYesISO 3166-1 alpha-3 three-letter country code representing the home market (e.g., USA, IND, GBR).
baseCurrencyStringYesISO 4217 currency code for the base price (e.g., USD, EUR, INR).
billingFrequencyENUMNoBilling cycle for the subscription. Allowed values: monthly, weekly, annually. Defaults to monthly if not provided.
annualDiscountPercentNumberNoDiscount percentage applied for annual billing plans. Must be between 0 and 100.

Response

Returns a JSON object with a recommendations array field. Each item in recommendations is an object with countryCode, countryName, justification, and recommendedPrice fields.

ParameterTypeMandatoryDescription
recommendationsObject ArrayNoList of pricing recommendations, one per country.
recommendations[].countryCodeStringNoISO 3166-1 alpha-2 two-letter country code.
recommendations[].countryNameStringNoFull name of the country.
recommendations[].justificationStringNoExplanation of how the recommended price was derived for this market.
recommendations[].recommendedPriceStringNoRecommended price formatted with the local currency symbol and amount.

Body

Name
Type
Description
bodyREQUIRED
object
Request body for generating global pricing recommendations.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.