FUGA webhook (without tenant ID in URL)
curl --request POST \
--url https://api.royalti.io/webhook/fuga \
--header 'Content-Type: application/json' \
--data '
{
"tenantId": 123,
"type": "product.delivered",
"timestamp": "2025-01-22T14:30:00.000Z",
"organization_id": 12345,
"data": {}
}
'import requests
url = "https://api.royalti.io/webhook/fuga"
payload = {
"tenantId": 123,
"type": "product.delivered",
"timestamp": "2025-01-22T14:30:00.000Z",
"organization_id": 12345,
"data": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
tenantId: 123,
type: 'product.delivered',
timestamp: '2025-01-22T14:30:00.000Z',
organization_id: 12345,
data: {}
})
};
fetch('https://api.royalti.io/webhook/fuga', 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.royalti.io/webhook/fuga",
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([
'tenantId' => 123,
'type' => 'product.delivered',
'timestamp' => '2025-01-22T14:30:00.000Z',
'organization_id' => 12345,
'data' => [
]
]),
CURLOPT_HTTPHEADER => [
"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.royalti.io/webhook/fuga"
payload := strings.NewReader("{\n \"tenantId\": 123,\n \"type\": \"product.delivered\",\n \"timestamp\": \"2025-01-22T14:30:00.000Z\",\n \"organization_id\": 12345,\n \"data\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
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.royalti.io/webhook/fuga")
.header("Content-Type", "application/json")
.body("{\n \"tenantId\": 123,\n \"type\": \"product.delivered\",\n \"timestamp\": \"2025-01-22T14:30:00.000Z\",\n \"organization_id\": 12345,\n \"data\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.royalti.io/webhook/fuga")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"tenantId\": 123,\n \"type\": \"product.delivered\",\n \"timestamp\": \"2025-01-22T14:30:00.000Z\",\n \"organization_id\": 12345,\n \"data\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Webhook processed successfully"
}{
"status": "error",
"message": "<string>",
"code": "<string>",
"details": {}
}{
"status": "error",
"message": "Invalid webhook signature"
}Webhooks
FUGA webhook (without tenant ID in URL)
Alternative FUGA webhook endpoint without tenant ID in the URL path.
POST
/
webhook
/
fuga
FUGA webhook (without tenant ID in URL)
curl --request POST \
--url https://api.royalti.io/webhook/fuga \
--header 'Content-Type: application/json' \
--data '
{
"tenantId": 123,
"type": "product.delivered",
"timestamp": "2025-01-22T14:30:00.000Z",
"organization_id": 12345,
"data": {}
}
'import requests
url = "https://api.royalti.io/webhook/fuga"
payload = {
"tenantId": 123,
"type": "product.delivered",
"timestamp": "2025-01-22T14:30:00.000Z",
"organization_id": 12345,
"data": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
tenantId: 123,
type: 'product.delivered',
timestamp: '2025-01-22T14:30:00.000Z',
organization_id: 12345,
data: {}
})
};
fetch('https://api.royalti.io/webhook/fuga', 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.royalti.io/webhook/fuga",
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([
'tenantId' => 123,
'type' => 'product.delivered',
'timestamp' => '2025-01-22T14:30:00.000Z',
'organization_id' => 12345,
'data' => [
]
]),
CURLOPT_HTTPHEADER => [
"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.royalti.io/webhook/fuga"
payload := strings.NewReader("{\n \"tenantId\": 123,\n \"type\": \"product.delivered\",\n \"timestamp\": \"2025-01-22T14:30:00.000Z\",\n \"organization_id\": 12345,\n \"data\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
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.royalti.io/webhook/fuga")
.header("Content-Type", "application/json")
.body("{\n \"tenantId\": 123,\n \"type\": \"product.delivered\",\n \"timestamp\": \"2025-01-22T14:30:00.000Z\",\n \"organization_id\": 12345,\n \"data\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.royalti.io/webhook/fuga")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"tenantId\": 123,\n \"type\": \"product.delivered\",\n \"timestamp\": \"2025-01-22T14:30:00.000Z\",\n \"organization_id\": 12345,\n \"data\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Webhook processed successfully"
}{
"status": "error",
"message": "<string>",
"code": "<string>",
"details": {}
}{
"status": "error",
"message": "Invalid webhook signature"
}This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
Tenant ID must be provided in the request body. See/webhook/fuga/{tenantId} for complete documentation.
Note: This endpoint has identical functionality to /webhook/fuga/{tenantId}
but expects tenantId in the request body instead of the URL path.
Code Examples
const response = await fetch('https://api.royalti.io/webhook/fuga', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"tenantId": 123,
"type": "product.delivered",
"timestamp": "2025-01-22T14:30:00.000Z",
"organization_id": 12345,
"data": {}
})
});
const data = await response.json();
console.log(data);
import requests
response = requests.post(
'https://api.royalti.io/webhook/fuga',
headers={
'Authorization': f'Bearer {token}'
},
json={"tenantId":123,"type":"product.delivered","timestamp":"2025-01-22T14:30:00.000Z","organization_id":12345,"data":{}}
)
data = response.json()
print(data)
curl -X POST https://api.royalti.io/webhook/fuga \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tenantId":123,"type":"product.delivered","timestamp":"2025-01-22T14:30:00.000Z","organization_id":12345,"data":{}}'
Body
application/json
Tenant ID (required when not in URL)
Example:
123
FUGA event type
Example:
"product.delivered"
Example:
"2025-01-22T14:30:00.000Z"
Example:
12345
Event-specific data (see main FUGA webhook documentation)
⌘I