Regional Pricing
Get Product Pricing Regions
GEThttps://api.paynow.gg/v1/stores/{storeId}/products/{productId}/pricing/regions
Headers
AuthorizationAPI KeyRequired
Authentication token for this request, sent as
Authorization: APIKey TOKEN.Path parameters
storeIdFlakeIdRequired
productIdFlakeIdRequired
Response
200OKProductPricingRegionDto[]
Show fieldsHide fields
blended_vat_ratenumberRequired
country_codesstring[]Required
enabledbooleanRequired
group_idstringRequired
idstringRequired
local_currencystringRequired
local_currency_fx_ratenumberRequired
namestringRequired
currencystringOptional
default_price_multiplierintegerOptional
priceintegerOptional
tax_inclusivebooleanOptional
updated_atstringOptional
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/products/{productId}/pricing/regions" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.regionalPricing.getProductPricingRegions("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/products/{productId}/pricing/regions", headers=headers)Response200
[
{
"blended_vat_rate": 0,
"country_codes": [
"string"
],
"enabled": true,
"group_id": "string",
"id": "string",
"local_currency": "string",
"local_currency_fx_rate": 0,
"name": "string",
"price": 0,
"default_price_multiplier": 0,
"currency": "string",
"tax_inclusive": true,
"updated_at": "2024-01-01T00:00:00Z"
}
]Set Product Pricing Region Override
PATCHhttps://api.paynow.gg/v1/stores/{storeId}/products/{productId}/pricing/regions/{regionId}
Headers
AuthorizationAPI KeyRequired
Authentication token for this request, sent as
Authorization: APIKey TOKEN.Path parameters
storeIdFlakeIdRequired
productIdFlakeIdRequired
regionIdstringRequired
Request body
currencystringOptional
enabledbooleanOptional
priceintegerOptional
tax_inclusivebooleanOptional
curl -X PATCH "https://api.paynow.gg/v1/stores/{storeId}/products/{productId}/pricing/regions/{regionId}" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"price": 0,
"enabled": true,
"currency": "string",
"tax_inclusive": true
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.regionalPricing.setProductPricingRegionOverride("411486491630370816", "string", {
price: 0,
enabled: true,
currency: "string",
tax_inclusive: true,
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"price": 0,
"enabled": True,
"currency": "string",
"tax_inclusive": True,
}
response = requests.patch("https://api.paynow.gg/v1/stores/{storeId}/products/{productId}/pricing/regions/{regionId}", headers=headers, json=payload)Headers
AuthorizationAPI KeyRequired
Authentication token for this request, sent as
Authorization: APIKey TOKEN.Path parameters
storeIdFlakeIdRequired
Response
200OKProductPricingRegionDto[]
Show fieldsHide fields
blended_vat_ratenumberRequired
country_codesstring[]Required
enabledbooleanRequired
group_idstringRequired
idstringRequired
local_currencystringRequired
local_currency_fx_ratenumberRequired
namestringRequired
currencystringOptional
default_price_multiplierintegerOptional
priceintegerOptional
tax_inclusivebooleanOptional
updated_atstringOptional
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/products/pricing/regions" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.regionalPricing.getStorePricingRegions();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/products/pricing/regions", headers=headers)Response200
[
{
"blended_vat_rate": 0,
"country_codes": [
"string"
],
"enabled": true,
"group_id": "string",
"id": "string",
"local_currency": "string",
"local_currency_fx_rate": 0,
"name": "string",
"price": 0,
"default_price_multiplier": 0,
"currency": "string",
"tax_inclusive": true,
"updated_at": "2024-01-01T00:00:00Z"
}
]Set Store Pricing Region Override
PATCHhttps://api.paynow.gg/v1/stores/{storeId}/products/pricing/regions/{regionId}
Headers
AuthorizationAPI KeyRequired
Authentication token for this request, sent as
Authorization: APIKey TOKEN.Path parameters
storeIdFlakeIdRequired
regionIdstringRequired
Request body
currencystringOptional
default_price_multiplierintegerOptional
enabledbooleanOptional
tax_inclusivebooleanOptional
curl -X PATCH "https://api.paynow.gg/v1/stores/{storeId}/products/pricing/regions/{regionId}" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"default_price_multiplier": 0,
"enabled": true,
"currency": "string",
"tax_inclusive": true
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.regionalPricing.setStorePricingRegionOverride("string", {
default_price_multiplier: 0,
enabled: true,
currency: "string",
tax_inclusive: true,
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"default_price_multiplier": 0,
"enabled": True,
"currency": "string",
"tax_inclusive": True,
}
response = requests.patch("https://api.paynow.gg/v1/stores/{storeId}/products/pricing/regions/{regionId}", headers=headers, json=payload)Get Store Pricing Region Groups
GEThttps://api.paynow.gg/v1/stores/{storeId}/products/pricing/region-groups
Headers
AuthorizationAPI KeyRequired
Authentication token for this request, sent as
Authorization: APIKey TOKEN.Path parameters
storeIdFlakeIdRequired
Response
200OKProductPricingRegionGroupDto[]
Show fieldsHide fields
descriptionstringRequired
idstringRequired
namestringRequired
recommended_base_price_multiplierintegerRequired
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/products/pricing/region-groups" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.regionalPricing.getStorePricingRegionGroups();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/products/pricing/region-groups", headers=headers)Response200
[
{
"description": "string",
"id": "string",
"name": "string",
"recommended_base_price_multiplier": 0
}
]