Update a split
curl --request PATCH \
--url https://api.globalstack.io/v1/splits/{splitId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"active": true,
"fee_bearer": "merchant",
"shares": [
{
"wallet_id": "<string>",
"percentage": "<string>",
"amount": "<string>"
}
]
}
'import requests
url = "https://api.globalstack.io/v1/splits/{splitId}"
payload = {
"name": "<string>",
"active": True,
"fee_bearer": "merchant",
"shares": [
{
"wallet_id": "<string>",
"percentage": "<string>",
"amount": "<string>"
}
]
}
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>',
active: true,
fee_bearer: 'merchant',
shares: [{wallet_id: '<string>', percentage: '<string>', amount: '<string>'}]
})
};
fetch('https://api.globalstack.io/v1/splits/{splitId}', 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.globalstack.io/v1/splits/{splitId}",
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>',
'active' => true,
'fee_bearer' => 'merchant',
'shares' => [
[
'wallet_id' => '<string>',
'percentage' => '<string>',
'amount' => '<string>'
]
]
]),
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.globalstack.io/v1/splits/{splitId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"active\": true,\n \"fee_bearer\": \"merchant\",\n \"shares\": [\n {\n \"wallet_id\": \"<string>\",\n \"percentage\": \"<string>\",\n \"amount\": \"<string>\"\n }\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.globalstack.io/v1/splits/{splitId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"active\": true,\n \"fee_bearer\": \"merchant\",\n \"shares\": [\n {\n \"wallet_id\": \"<string>\",\n \"percentage\": \"<string>\",\n \"amount\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/splits/{splitId}")
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 \"active\": true,\n \"fee_bearer\": \"merchant\",\n \"shares\": [\n {\n \"wallet_id\": \"<string>\",\n \"percentage\": \"<string>\",\n \"amount\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Split updated successfully",
"code": "ok",
"data": {
"id": "spl_01HXYZABC1234567890ABCDEFG",
"name": "Marketplace sellers",
"type": "percentage",
"fee_bearer": "merchant",
"currency": "USDC",
"active": true,
"shares": [
{
"wallet_id": "wal_01HXYZ",
"percentage": "60.00",
"amount": "10.000000"
}
],
"created_at": "2026-11-06T10:00:00.000Z",
"updated_at": "2026-11-06T10:00:00.000Z"
},
"meta": {
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}Splits
Update a split
Update a split’s name, active flag, shares or fee_bearer. Send at least one field.
sharesreplaces the whole list and is validated exactly as on create. The new wallets must hold the split’s currency.typeand the currency cannot be changed — create a new split instead.- Changes never affect quotes already created with this split: a quote keeps a copy of the split as it was when the quote was created.
PATCH
/
v1
/
splits
/
{splitId}
Update a split
curl --request PATCH \
--url https://api.globalstack.io/v1/splits/{splitId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"active": true,
"fee_bearer": "merchant",
"shares": [
{
"wallet_id": "<string>",
"percentage": "<string>",
"amount": "<string>"
}
]
}
'import requests
url = "https://api.globalstack.io/v1/splits/{splitId}"
payload = {
"name": "<string>",
"active": True,
"fee_bearer": "merchant",
"shares": [
{
"wallet_id": "<string>",
"percentage": "<string>",
"amount": "<string>"
}
]
}
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>',
active: true,
fee_bearer: 'merchant',
shares: [{wallet_id: '<string>', percentage: '<string>', amount: '<string>'}]
})
};
fetch('https://api.globalstack.io/v1/splits/{splitId}', 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.globalstack.io/v1/splits/{splitId}",
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>',
'active' => true,
'fee_bearer' => 'merchant',
'shares' => [
[
'wallet_id' => '<string>',
'percentage' => '<string>',
'amount' => '<string>'
]
]
]),
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.globalstack.io/v1/splits/{splitId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"active\": true,\n \"fee_bearer\": \"merchant\",\n \"shares\": [\n {\n \"wallet_id\": \"<string>\",\n \"percentage\": \"<string>\",\n \"amount\": \"<string>\"\n }\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.globalstack.io/v1/splits/{splitId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"active\": true,\n \"fee_bearer\": \"merchant\",\n \"shares\": [\n {\n \"wallet_id\": \"<string>\",\n \"percentage\": \"<string>\",\n \"amount\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/splits/{splitId}")
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 \"active\": true,\n \"fee_bearer\": \"merchant\",\n \"shares\": [\n {\n \"wallet_id\": \"<string>\",\n \"percentage\": \"<string>\",\n \"amount\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Split updated successfully",
"code": "ok",
"data": {
"id": "spl_01HXYZABC1234567890ABCDEFG",
"name": "Marketplace sellers",
"type": "percentage",
"fee_bearer": "merchant",
"currency": "USDC",
"active": true,
"shares": [
{
"wallet_id": "wal_01HXYZ",
"percentage": "60.00",
"amount": "10.000000"
}
],
"created_at": "2026-11-06T10:00:00.000Z",
"updated_at": "2026-11-06T10:00:00.000Z"
},
"meta": {
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}Body
application/json
UpdateSplitDto
Response
Split updated successfully