Set the developer fee schedule
curl --request PUT \
--url https://api.sandbox.rails.wayex.com/v1/developer-fees \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"transfer": {
"flatAud": "<string>",
"bps": 5000
}
}
'import requests
url = "https://api.sandbox.rails.wayex.com/v1/developer-fees"
payload = { "transfer": {
"flatAud": "<string>",
"bps": 5000
} }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({transfer: {flatAud: '<string>', bps: 5000}})
};
fetch('https://api.sandbox.rails.wayex.com/v1/developer-fees', 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.rails.wayex.com/v1/developer-fees",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'transfer' => [
'flatAud' => '<string>',
'bps' => 5000
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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.sandbox.rails.wayex.com/v1/developer-fees"
payload := strings.NewReader("{\n \"transfer\": {\n \"flatAud\": \"<string>\",\n \"bps\": 5000\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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.put("https://api.sandbox.rails.wayex.com/v1/developer-fees")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transfer\": {\n \"flatAud\": \"<string>\",\n \"bps\": 5000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.rails.wayex.com/v1/developer-fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transfer\": {\n \"flatAud\": \"<string>\",\n \"bps\": 5000\n }\n}"
response = http.request(request)
puts response.read_body{
"counterpartyId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "<string>",
"transfer": {
"flatAud": "<string>",
"bps": 5000
}
}Webhooks and account administration
Set the developer fee schedule
Replaces the developer fee schedule used for eligible future direct-route conversions.
PUT
/
v1
/
developer-fees
Set the developer fee schedule
curl --request PUT \
--url https://api.sandbox.rails.wayex.com/v1/developer-fees \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"transfer": {
"flatAud": "<string>",
"bps": 5000
}
}
'import requests
url = "https://api.sandbox.rails.wayex.com/v1/developer-fees"
payload = { "transfer": {
"flatAud": "<string>",
"bps": 5000
} }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({transfer: {flatAud: '<string>', bps: 5000}})
};
fetch('https://api.sandbox.rails.wayex.com/v1/developer-fees', 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.rails.wayex.com/v1/developer-fees",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'transfer' => [
'flatAud' => '<string>',
'bps' => 5000
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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.sandbox.rails.wayex.com/v1/developer-fees"
payload := strings.NewReader("{\n \"transfer\": {\n \"flatAud\": \"<string>\",\n \"bps\": 5000\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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.put("https://api.sandbox.rails.wayex.com/v1/developer-fees")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transfer\": {\n \"flatAud\": \"<string>\",\n \"bps\": 5000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.rails.wayex.com/v1/developer-fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transfer\": {\n \"flatAud\": \"<string>\",\n \"bps\": 5000\n }\n}"
response = http.request(request)
puts response.read_body{
"counterpartyId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "<string>",
"transfer": {
"flatAud": "<string>",
"bps": 5000
}
}What this endpoint does
Replaces the developer fee schedule used for eligible future direct-route conversions.When to use it
Use it when changing the flat amount, basis-point amount, or removing the schedule.Before you call
Requires a secret API key plus a recent second-factor (MFA) confirmation from the signed-in user — a request authenticated only with an API key is refused with403 step_up_required. In practice, change the schedule from a console session and send the complete desired schedule.
Money and balance effect
This does not debit a wallet immediately. The new schedule affects eligible conversions created after the change.States and completion
A successful response confirms the saved schedule. In-flight transfers keep the pricing captured for them.Safe retries
Send a uniqueIdempotency-Key for the logical action. If the response is lost, retry the same payload with the same key; never create a new key merely because the first response timed out.
Read Developer settings for the complete workflow.Authorizations
BearerApiKey
Send the same Wayex API key as Authorization: Bearer <key>.
Headers
A unique key for this logical action. Reuse the same key and identical payload when retrying after an unknown response.
Required string length:
8 - 255Body
application/json
Show child attributes
Show child attributes

