curl --request PATCH \
--url https://api-sandbox.finogates.com/v1/platform/wallets/{wallet_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"is_primary": true
}
'import requests
url = "https://api-sandbox.finogates.com/v1/platform/wallets/{wallet_id}"
payload = {
"name": "<string>",
"is_primary": True
}
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({name: '<string>', is_primary: true})
};
fetch('https://api-sandbox.finogates.com/v1/platform/wallets/{wallet_id}', 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-sandbox.finogates.com/v1/platform/wallets/{wallet_id}",
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([
'name' => '<string>',
'is_primary' => true
]),
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-sandbox.finogates.com/v1/platform/wallets/{wallet_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"is_primary\": true\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-sandbox.finogates.com/v1/platform/wallets/{wallet_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"is_primary\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.finogates.com/v1/platform/wallets/{wallet_id}")
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 \"name\": \"<string>\",\n \"is_primary\": true\n}"
response = http.request(request)
puts response.read_body{
"status_code": 200,
"data": {
"wallet_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"user_id": "b3a9b622-cc63-4d3c-aad6-2d8e29e6f9d4",
"name": "Spending USD",
"is_primary": true,
"currency": "USD",
"status": "active",
"is_frozen": false,
"available": "1000.00",
"current": "1200.00",
"as_of": "2026-06-02T10:30:00Z",
"created_at": "2026-04-01T10:30:00Z"
},
"query_generated_time": 1712847600000
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Rename or Promote a Wallet
Rename a wallet and/or promote it to the user’s primary for its currency.
To change which wallet is primary, PATCH the wallet you want to
promote with is_primary=true — the previous primary is demoted
automatically in the same transaction. Sending is_primary=false is
rejected; every (user, currency) must have exactly one primary.
Master wallets cannot be renamed or re-prioritized.
curl --request PATCH \
--url https://api-sandbox.finogates.com/v1/platform/wallets/{wallet_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"is_primary": true
}
'import requests
url = "https://api-sandbox.finogates.com/v1/platform/wallets/{wallet_id}"
payload = {
"name": "<string>",
"is_primary": True
}
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({name: '<string>', is_primary: true})
};
fetch('https://api-sandbox.finogates.com/v1/platform/wallets/{wallet_id}', 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-sandbox.finogates.com/v1/platform/wallets/{wallet_id}",
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([
'name' => '<string>',
'is_primary' => true
]),
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-sandbox.finogates.com/v1/platform/wallets/{wallet_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"is_primary\": true\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-sandbox.finogates.com/v1/platform/wallets/{wallet_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"is_primary\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.finogates.com/v1/platform/wallets/{wallet_id}")
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 \"name\": \"<string>\",\n \"is_primary\": true\n}"
response = http.request(request)
puts response.read_body{
"status_code": 200,
"data": {
"wallet_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"user_id": "b3a9b622-cc63-4d3c-aad6-2d8e29e6f9d4",
"name": "Spending USD",
"is_primary": true,
"currency": "USD",
"status": "active",
"is_frozen": false,
"available": "1000.00",
"current": "1200.00",
"as_of": "2026-06-02T10:30:00Z",
"created_at": "2026-04-01T10:30:00Z"
},
"query_generated_time": 1712847600000
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
The wallet UUID.
Body
Rename and/or promote-to-primary in a single PATCH.
Both fields are optional; at least one must be present.
Response
The wallet with its updated name / primary flag.
Standard response wrapper for single-object responses and errors.
Generic over the payload type. A route that declares
CommonResponse[SomeModel] gets the real data schema rendered in
OpenAPI/Swagger; a bare CommonResponse leaves data untyped.

