Update a points value for a currency
Update or create a points value for a specific currency, as points_amount (points per unit of the currency) or as a price pair (points_count points for currency_subunits minor units), never both. A pair is saved as the whole points per unit it comes to; one that does not come to a whole number of points per unit that can be held as a price is refused with 422, and the error names the nearest pair that does under errors.nearest_price. A pair that comes to more than 2147483647 points per unit is refused with 422 too, with no nearest pair, and so is a points_amount above 2147483647, under errors.points_amount. The response reports the stored pair, per one unit of the currency, so 10 points for 1000 USD subunits comes back as 1 point for 100. The authenticated user is recorded as the person who set it; submitting an unchanged value confirms it. A token that names no user is refused with 422 where the company refuses unpriced markets; elsewhere its value is saved with no author, so it reads as configured false.
curl --request PATCH \
--url https://api.fluid.app/api/v202506/points_values \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"points_value": {
"currency_code": "CAD",
"points_amount": 14
}
}
'import requests
url = "https://api.fluid.app/api/v202506/points_values"
payload = { "points_value": {
"currency_code": "CAD",
"points_amount": 14
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({points_value: {currency_code: 'CAD', points_amount: 14}})
};
fetch('https://api.fluid.app/api/v202506/points_values', 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/v202506/points_values",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'points_value' => [
'currency_code' => 'CAD',
'points_amount' => 14
]
]),
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/v202506/points_values"
payload := strings.NewReader("{\n \"points_value\": {\n \"currency_code\": \"CAD\",\n \"points_amount\": 14\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.fluid.app/api/v202506/points_values")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"points_value\": {\n \"currency_code\": \"CAD\",\n \"points_amount\": 14\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v202506/points_values")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"points_value\": {\n \"currency_code\": \"CAD\",\n \"points_amount\": 14\n }\n}"
response = http.request(request)
puts response.read_body{
"points_value": {
"id": 7303,
"currency_code": "CAD",
"points_amount": 14,
"currency_symbol": "$",
"currency_name": "Canadian Dollar",
"configured": true,
"price": {
"points_count": 14,
"currency_subunits": 100
},
"worth_of_100_points": {
"amount": "7.14",
"home_amount": "5.13",
"home_currency_code": "USD",
"unavailable_reason": null
}
},
"meta": {
"request_id": "8c2f4e71-3b9a-4d6e-a1f5-7e0b9c3d2a48",
"timestamp": "2026-09-14T16:05:22Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}Authorizations
Body
curl --request PATCH \
--url https://api.fluid.app/api/v202506/points_values \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"points_value": {
"currency_code": "CAD",
"points_amount": 14
}
}
'import requests
url = "https://api.fluid.app/api/v202506/points_values"
payload = { "points_value": {
"currency_code": "CAD",
"points_amount": 14
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({points_value: {currency_code: 'CAD', points_amount: 14}})
};
fetch('https://api.fluid.app/api/v202506/points_values', 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/v202506/points_values",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'points_value' => [
'currency_code' => 'CAD',
'points_amount' => 14
]
]),
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/v202506/points_values"
payload := strings.NewReader("{\n \"points_value\": {\n \"currency_code\": \"CAD\",\n \"points_amount\": 14\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.fluid.app/api/v202506/points_values")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"points_value\": {\n \"currency_code\": \"CAD\",\n \"points_amount\": 14\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v202506/points_values")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"points_value\": {\n \"currency_code\": \"CAD\",\n \"points_amount\": 14\n }\n}"
response = http.request(request)
puts response.read_body{
"points_value": {
"id": 7303,
"currency_code": "CAD",
"points_amount": 14,
"currency_symbol": "$",
"currency_name": "Canadian Dollar",
"configured": true,
"price": {
"points_count": 14,
"currency_subunits": 100
},
"worth_of_100_points": {
"amount": "7.14",
"home_amount": "5.13",
"home_currency_code": "USD",
"unavailable_reason": null
}
},
"meta": {
"request_id": "8c2f4e71-3b9a-4d6e-a1f5-7e0b9c3d2a48",
"timestamp": "2026-09-14T16:05:22Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}