Legacy (v0)
Get the price for a selected variant
Resolve the variant that matches a set of selected option values and return its display prices for a country. Send country_id and, for products with options, option_value_ids. price and subscription_price are resolved for the caller’s pricing tier; normal_price and normal_subscription_price always carry the retail price. Prices are preformatted strings that include the currency ISO code. Returns 422 with Variant Unavailable when no variant matches. Used by the mobile app; admin users, company API tokens, and partner tokens need the products view permission.
POST
/
api
/
products
/
{product_id}
/
selected_variant_price
Get the price for a selected variant
curl --request POST \
--url https://api.fluid.app/api/products/{product_id}/selected_variant_price \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country_id": 214,
"option_value_ids": [
5512,
5530
]
}
'import requests
url = "https://api.fluid.app/api/products/{product_id}/selected_variant_price"
payload = {
"country_id": 214,
"option_value_ids": [5512, 5530]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({country_id: 214, option_value_ids: [5512, 5530]})
};
fetch('https://api.fluid.app/api/products/{product_id}/selected_variant_price', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/products/{product_id}/selected_variant_price",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'country_id' => 214,
'option_value_ids' => [
5512,
5530
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/products/{product_id}/selected_variant_price"
payload := strings.NewReader("{\n \"country_id\": 214,\n \"option_value_ids\": [\n 5512,\n 5530\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fluid.app/api/products/{product_id}/selected_variant_price")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country_id\": 214,\n \"option_value_ids\": [\n 5512,\n 5530\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/products/{product_id}/selected_variant_price")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country_id\": 214,\n \"option_value_ids\": [\n 5512,\n 5530\n ]\n}"
response = http.request(request)
puts response.read_body{
"variant_id": 90431,
"buyable": true,
"option_value_ids": [
5512,
5530
],
"price": "$46.99 (USD)",
"subscription_price": "$44.99 (USD)",
"normal_price": "$54.99 (USD)",
"normal_subscription_price": "$49.99 (USD)",
"wholesale_cv": "40.00",
"wholesale_qv": "40.00",
"meta": {
"request_id": "5b0f7e2c-3d41-4a8e-9c6b-7f21d8e4a913",
"timestamp": "2026-09-14T15:32:08Z"
}
}{
"message": "<string>"
}Body
application/json
Response
Success
⌘I
Get the price for a selected variant
curl --request POST \
--url https://api.fluid.app/api/products/{product_id}/selected_variant_price \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country_id": 214,
"option_value_ids": [
5512,
5530
]
}
'import requests
url = "https://api.fluid.app/api/products/{product_id}/selected_variant_price"
payload = {
"country_id": 214,
"option_value_ids": [5512, 5530]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({country_id: 214, option_value_ids: [5512, 5530]})
};
fetch('https://api.fluid.app/api/products/{product_id}/selected_variant_price', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/products/{product_id}/selected_variant_price",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'country_id' => 214,
'option_value_ids' => [
5512,
5530
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/products/{product_id}/selected_variant_price"
payload := strings.NewReader("{\n \"country_id\": 214,\n \"option_value_ids\": [\n 5512,\n 5530\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fluid.app/api/products/{product_id}/selected_variant_price")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country_id\": 214,\n \"option_value_ids\": [\n 5512,\n 5530\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/products/{product_id}/selected_variant_price")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country_id\": 214,\n \"option_value_ids\": [\n 5512,\n 5530\n ]\n}"
response = http.request(request)
puts response.read_body{
"variant_id": 90431,
"buyable": true,
"option_value_ids": [
5512,
5530
],
"price": "$46.99 (USD)",
"subscription_price": "$44.99 (USD)",
"normal_price": "$54.99 (USD)",
"normal_subscription_price": "$49.99 (USD)",
"wholesale_cv": "40.00",
"wholesale_qv": "40.00",
"meta": {
"request_id": "5b0f7e2c-3d41-4a8e-9c6b-7f21d8e4a913",
"timestamp": "2026-09-14T15:32:08Z"
}
}{
"message": "<string>"
}