Skip to main content
POST
Convert prices

Authorizations

x-stash-hmac-signature
string
header
required

Versioned HMAC-SHA256 signature authenticating server-to-server SDK requests (your backend calling Stash), as opposed to client-side SDK operations. Recommended over the deprecated X-Stash-Api-Key for the best security. Header format: v1;{appId};{unixMillisTimestamp};{base64Signature} (semicolon-delimited). {base64Signature} is the base64-encoded HMAC-SHA256 of the string {unixMillisTimestamp}.{requestBody} using your app ingress secret (the ingress secret is shown base64-encoded in Studio; base64-decode it to the raw bytes used as the HMAC key), where {requestBody} is the request body exactly as you send it for POST and PUT requests (the compact canonical request JSON is also accepted) and empty for GET requests. A signature over the exact bytes verifies for bodies of up to 18 KiB (18,432 bytes); a larger body may be refused with 401 even when correctly signed. The timestamp must be within 5 minutes of Stash server time. Your appId is your immutable app identifier, shown in Stash Studio under Project Settings > App details; your ingress secret is under Project Settings > API Secrets.

Body

application/json

ConvertPricesRequest fetches pre-converted prices from the uploaded price sheet for a given destination country, applies tax, and optionally applies custom rounding.

The destination_amount and pre_rounding_amount in the response use "minor units" (the smallest denomination of a currency as defined by ISO 4217). The decimal_places field tells callers how to interpret amounts: divide by 10^decimal_places to get the human-readable value.

ConvertPricesRequest fetches pre-converted prices from the uploaded price sheet for a given destination country, applies tax, and optionally applies custom rounding.

The destination_amount and pre_rounding_amount in the response use "minor units" (the smallest denomination of a currency as defined by ISO 4217). The decimal_places field tells callers how to interpret amounts: divide by 10^decimal_places to get the human-readable value.

sourceCurrency
string
required

ISO-4217 source currency code (e.g., 'USD'). Currently only 'USD' is supported.

destinationCountry
string
required

ISO-3166-1 alpha-2 destination country code (e.g., 'DE', 'JP', 'PL'). Used to resolve the destination currency via CLDR.

priceIds
string[]
required

Price IDs (price point identifiers) to look up. Must match the priceId values in the uploaded price sheet.

rounding
string

Optional rounding strategy to apply. Use 'hg' for Huuuge Games charm pricing rounding. Omit for no rounding.

Response

A successful response.

sourceCurrency
string

ISO-4217 source currency code (echoed from request)

destinationCurrency
string

ISO-4217 destination currency code resolved from the destination country

destinationCountry
string

ISO-3166-1 alpha-2 destination country code (echoed from request)

conversions
object[]

Converted price points in the same order as the input price_ids (excluding missing ones)

missingPriceIds
string[]

Price IDs from the request that were not found in the price sheet for the destination country

taxRate
string

Tax rate applied to the destination country (e.g., '19%', '0%')

taxInclusive
boolean

Whether the destination_amount includes tax. True for most regions; false for US, Canada, Mexico where tax is added at checkout.