Skip to main content
POST
Get the price for a selected variant

Authorizations

Authorization
string
header
required

Bearer token authentication

Path Parameters

product_id
string
required

Body

application/json
country_id
integer
required

Country to price the variant in.

option_value_ids
integer[] | null

Selected option value IDs, one per product option.

Response

Success

variant_id
integer

ID of the variant matching the selected options.

buyable
boolean

Whether the variant can be bought in the country.

option_value_ids
integer[]

The variant's option value IDs.

price
string | null

Formatted one-time price for the caller's pricing tier, or an empty string when no price is set.

subscription_price
string | null

Formatted subscription price for the caller's pricing tier.

normal_price
string | null

Formatted retail one-time price.

normal_subscription_price
string | null

Formatted retail subscription price.

wholesale_cv
string

Commission volume for the caller's tier, as a decimal string.

wholesale_qv
string

Qualifying volume for the caller's tier, as a decimal string.

meta
object

Request metadata.