curl --request POST \
--url https://api.globalstack.io/v1/splits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"shares": [
{
"wallet_id": "<string>",
"percentage": "<string>",
"amount": "<string>"
}
],
"fee_bearer": "merchant"
}
'import requests
url = "https://api.globalstack.io/v1/splits"
payload = {
"name": "<string>",
"shares": [
{
"wallet_id": "<string>",
"percentage": "<string>",
"amount": "<string>"
}
],
"fee_bearer": "merchant"
}
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({
name: '<string>',
shares: [{wallet_id: '<string>', percentage: '<string>', amount: '<string>'}],
fee_bearer: 'merchant'
})
};
fetch('https://api.globalstack.io/v1/splits', 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",
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([
'name' => '<string>',
'shares' => [
[
'wallet_id' => '<string>',
'percentage' => '<string>',
'amount' => '<string>'
]
],
'fee_bearer' => 'merchant'
]),
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"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"shares\": [\n {\n \"wallet_id\": \"<string>\",\n \"percentage\": \"<string>\",\n \"amount\": \"<string>\"\n }\n ],\n \"fee_bearer\": \"merchant\"\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.globalstack.io/v1/splits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"shares\": [\n {\n \"wallet_id\": \"<string>\",\n \"percentage\": \"<string>\",\n \"amount\": \"<string>\"\n }\n ],\n \"fee_bearer\": \"merchant\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/splits")
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 \"name\": \"<string>\",\n \"shares\": [\n {\n \"wallet_id\": \"<string>\",\n \"percentage\": \"<string>\",\n \"amount\": \"<string>\"\n }\n ],\n \"fee_bearer\": \"merchant\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Split created 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"
}
}{
"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"
}
}Create a split
Create a reusable split: a list of wallets and the share each receives when a payment settles.
A split does nothing on its own: pass its id as split_code when you create an onramp or conversion quote.
All share wallets must belong to your integration, be custodial, and hold the same currency.
Whatever the shares do not assign stays in the quote’s destination wallet.
Body
| Field | Required | Description |
|---|---|---|
name | Yes | A label, up to 128 characters. Not unique. |
type | Yes | percentage or flat. Cannot be changed later. |
fee_bearer | No | Who absorbs a provider fee when the split settles a fiat payment: merchant (default; the destination wallet’s remainder) or all_proportional (every share in proportion to its size). Shares are worked out before the fee; each wallet is credited net of its part. No effect on crypto, which carries no fee. |
shares | Yes | 1–20 entries of { wallet_id, percentage } (percentage splits) or { wallet_id, amount } (flat splits). |
percentage: decimal string, greater than 0, at most 2 decimal places; all percentages add up to 100 or less.amount: decimal string, greater than 0, at most the currency’s decimal places.
Send an Idempotency-Key header so retries are safe.
curl --request POST \
--url https://api.globalstack.io/v1/splits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"shares": [
{
"wallet_id": "<string>",
"percentage": "<string>",
"amount": "<string>"
}
],
"fee_bearer": "merchant"
}
'import requests
url = "https://api.globalstack.io/v1/splits"
payload = {
"name": "<string>",
"shares": [
{
"wallet_id": "<string>",
"percentage": "<string>",
"amount": "<string>"
}
],
"fee_bearer": "merchant"
}
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({
name: '<string>',
shares: [{wallet_id: '<string>', percentage: '<string>', amount: '<string>'}],
fee_bearer: 'merchant'
})
};
fetch('https://api.globalstack.io/v1/splits', 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",
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([
'name' => '<string>',
'shares' => [
[
'wallet_id' => '<string>',
'percentage' => '<string>',
'amount' => '<string>'
]
],
'fee_bearer' => 'merchant'
]),
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"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"shares\": [\n {\n \"wallet_id\": \"<string>\",\n \"percentage\": \"<string>\",\n \"amount\": \"<string>\"\n }\n ],\n \"fee_bearer\": \"merchant\"\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.globalstack.io/v1/splits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"shares\": [\n {\n \"wallet_id\": \"<string>\",\n \"percentage\": \"<string>\",\n \"amount\": \"<string>\"\n }\n ],\n \"fee_bearer\": \"merchant\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/splits")
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 \"name\": \"<string>\",\n \"shares\": [\n {\n \"wallet_id\": \"<string>\",\n \"percentage\": \"<string>\",\n \"amount\": \"<string>\"\n }\n ],\n \"fee_bearer\": \"merchant\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Split created 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"
}
}{
"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"
}
}Headers
Optional client-supplied key. Identical key + identical body within 24h replays the original response. Identical key + different body returns 409 idempotency_conflict. The hash is over raw bytes — clients retrying must send the byte-identical body; a re-serialised JSON payload will produce a different hash and a 409. Strongly recommended for retry-safe clients.
^[A-Za-z0-9_\-]{8,255}$Body
CreateSplitDto
Response
Split created successfully