Set your markup
curl --request POST \
--url https://api.rach.finance/api/v1/vas/markup \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"is_enabled": true,
"fee_percent": "0.02",
"fee_cap_usd": "3",
"flat_fee_usd": "0.50"
}
'import requests
url = "https://api.rach.finance/api/v1/vas/markup"
payload = {
"is_enabled": True,
"fee_percent": "0.02",
"fee_cap_usd": "3",
"flat_fee_usd": "0.50"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({is_enabled: true, fee_percent: '0.02', fee_cap_usd: '3', flat_fee_usd: '0.50'})
};
fetch('https://api.rach.finance/api/v1/vas/markup', 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.rach.finance/api/v1/vas/markup",
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([
'is_enabled' => true,
'fee_percent' => '0.02',
'fee_cap_usd' => '3',
'flat_fee_usd' => '0.50'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.rach.finance/api/v1/vas/markup"
payload := strings.NewReader("{\n \"is_enabled\": true,\n \"fee_percent\": \"0.02\",\n \"fee_cap_usd\": \"3\",\n \"flat_fee_usd\": \"0.50\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.rach.finance/api/v1/vas/markup")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"is_enabled\": true,\n \"fee_percent\": \"0.02\",\n \"fee_cap_usd\": \"3\",\n \"flat_fee_usd\": \"0.50\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rach.finance/api/v1/vas/markup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_enabled\": true,\n \"fee_percent\": \"0.02\",\n \"fee_cap_usd\": \"3\",\n \"flat_fee_usd\": \"0.50\"\n}"
response = http.request(request)
puts response.read_bodyValue-Added Services
Set your markup
Your own margin, charged to YOUR customer on top of what Rach bills you. Rach never takes any part of it.
fee_percentis a FRACTION, not a percent —"0.02"means 2%. A value above 1 is rejected, because"2"would mean 200% and price your customers out.
Set applies_to to limit the markup to one product, or leave it empty for all.
POST
/
api
/
v1
/
vas
/
markup
Set your markup
curl --request POST \
--url https://api.rach.finance/api/v1/vas/markup \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"is_enabled": true,
"fee_percent": "0.02",
"fee_cap_usd": "3",
"flat_fee_usd": "0.50"
}
'import requests
url = "https://api.rach.finance/api/v1/vas/markup"
payload = {
"is_enabled": True,
"fee_percent": "0.02",
"fee_cap_usd": "3",
"flat_fee_usd": "0.50"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({is_enabled: true, fee_percent: '0.02', fee_cap_usd: '3', flat_fee_usd: '0.50'})
};
fetch('https://api.rach.finance/api/v1/vas/markup', 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.rach.finance/api/v1/vas/markup",
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([
'is_enabled' => true,
'fee_percent' => '0.02',
'fee_cap_usd' => '3',
'flat_fee_usd' => '0.50'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.rach.finance/api/v1/vas/markup"
payload := strings.NewReader("{\n \"is_enabled\": true,\n \"fee_percent\": \"0.02\",\n \"fee_cap_usd\": \"3\",\n \"flat_fee_usd\": \"0.50\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.rach.finance/api/v1/vas/markup")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"is_enabled\": true,\n \"fee_percent\": \"0.02\",\n \"fee_cap_usd\": \"3\",\n \"flat_fee_usd\": \"0.50\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rach.finance/api/v1/vas/markup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_enabled\": true,\n \"fee_percent\": \"0.02\",\n \"fee_cap_usd\": \"3\",\n \"flat_fee_usd\": \"0.50\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Business API key for server-to-server integrations.
Key prefix determines the environment — no separate flag needed:
test_sk_* = sandbox/testnet, live_sk_* = production/mainnet.
Body
application/json
Response
Markup saved

