VertoFX payment status webhook
curl --request POST \
--url https://api.royalti.io/webhook/verto/payment-outward/webhook \
--header 'Content-Type: application/json' \
--data '
{
"id": "verto_txn_abc123xyz",
"paymentId": "p1234567-89ab-cdef-0123-456789abcdef",
"status": "completed",
"state": "completed",
"type": "account_to_wallet",
"amount": 1250.75,
"currency": "USD",
"reference": "REF-2024-001234",
"account": {
"name": "John Doe",
"number": "****5678"
}
}
'import requests
url = "https://api.royalti.io/webhook/verto/payment-outward/webhook"
payload = {
"id": "verto_txn_abc123xyz",
"paymentId": "p1234567-89ab-cdef-0123-456789abcdef",
"status": "completed",
"state": "completed",
"type": "account_to_wallet",
"amount": 1250.75,
"currency": "USD",
"reference": "REF-2024-001234",
"account": {
"name": "John Doe",
"number": "****5678"
}
}
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({
id: 'verto_txn_abc123xyz',
paymentId: 'p1234567-89ab-cdef-0123-456789abcdef',
status: 'completed',
state: 'completed',
type: 'account_to_wallet',
amount: 1250.75,
currency: 'USD',
reference: 'REF-2024-001234',
account: {name: 'John Doe', number: '****5678'}
})
};
fetch('https://api.royalti.io/webhook/verto/payment-outward/webhook', 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/verto/payment-outward/webhook",
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([
'id' => 'verto_txn_abc123xyz',
'paymentId' => 'p1234567-89ab-cdef-0123-456789abcdef',
'status' => 'completed',
'state' => 'completed',
'type' => 'account_to_wallet',
'amount' => 1250.75,
'currency' => 'USD',
'reference' => 'REF-2024-001234',
'account' => [
'name' => 'John Doe',
'number' => '****5678'
]
]),
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/verto/payment-outward/webhook"
payload := strings.NewReader("{\n \"id\": \"verto_txn_abc123xyz\",\n \"paymentId\": \"p1234567-89ab-cdef-0123-456789abcdef\",\n \"status\": \"completed\",\n \"state\": \"completed\",\n \"type\": \"account_to_wallet\",\n \"amount\": 1250.75,\n \"currency\": \"USD\",\n \"reference\": \"REF-2024-001234\",\n \"account\": {\n \"name\": \"John Doe\",\n \"number\": \"****5678\"\n }\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/verto/payment-outward/webhook")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"verto_txn_abc123xyz\",\n \"paymentId\": \"p1234567-89ab-cdef-0123-456789abcdef\",\n \"status\": \"completed\",\n \"state\": \"completed\",\n \"type\": \"account_to_wallet\",\n \"amount\": 1250.75,\n \"currency\": \"USD\",\n \"reference\": \"REF-2024-001234\",\n \"account\": {\n \"name\": \"John Doe\",\n \"number\": \"****5678\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.royalti.io/webhook/verto/payment-outward/webhook")
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 \"id\": \"verto_txn_abc123xyz\",\n \"paymentId\": \"p1234567-89ab-cdef-0123-456789abcdef\",\n \"status\": \"completed\",\n \"state\": \"completed\",\n \"type\": \"account_to_wallet\",\n \"amount\": 1250.75,\n \"currency\": \"USD\",\n \"reference\": \"REF-2024-001234\",\n \"account\": {\n \"name\": \"John Doe\",\n \"number\": \"****5678\"\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "Payment record status is marked as completed"
}{
"status": "error",
"message": "<string>",
"code": "<string>",
"details": {}
}{
"status": "error",
"message": "<string>",
"code": "<string>",
"details": {}
}{
"status": "error",
"message": "Payment Record not found"
}Webhooks
VertoFX payment status webhook
Receives payment status updates from VertoFX payment processor.
POST
/
webhook
/
verto
/
payment-outward
/
webhook
VertoFX payment status webhook
curl --request POST \
--url https://api.royalti.io/webhook/verto/payment-outward/webhook \
--header 'Content-Type: application/json' \
--data '
{
"id": "verto_txn_abc123xyz",
"paymentId": "p1234567-89ab-cdef-0123-456789abcdef",
"status": "completed",
"state": "completed",
"type": "account_to_wallet",
"amount": 1250.75,
"currency": "USD",
"reference": "REF-2024-001234",
"account": {
"name": "John Doe",
"number": "****5678"
}
}
'import requests
url = "https://api.royalti.io/webhook/verto/payment-outward/webhook"
payload = {
"id": "verto_txn_abc123xyz",
"paymentId": "p1234567-89ab-cdef-0123-456789abcdef",
"status": "completed",
"state": "completed",
"type": "account_to_wallet",
"amount": 1250.75,
"currency": "USD",
"reference": "REF-2024-001234",
"account": {
"name": "John Doe",
"number": "****5678"
}
}
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({
id: 'verto_txn_abc123xyz',
paymentId: 'p1234567-89ab-cdef-0123-456789abcdef',
status: 'completed',
state: 'completed',
type: 'account_to_wallet',
amount: 1250.75,
currency: 'USD',
reference: 'REF-2024-001234',
account: {name: 'John Doe', number: '****5678'}
})
};
fetch('https://api.royalti.io/webhook/verto/payment-outward/webhook', 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/verto/payment-outward/webhook",
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([
'id' => 'verto_txn_abc123xyz',
'paymentId' => 'p1234567-89ab-cdef-0123-456789abcdef',
'status' => 'completed',
'state' => 'completed',
'type' => 'account_to_wallet',
'amount' => 1250.75,
'currency' => 'USD',
'reference' => 'REF-2024-001234',
'account' => [
'name' => 'John Doe',
'number' => '****5678'
]
]),
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/verto/payment-outward/webhook"
payload := strings.NewReader("{\n \"id\": \"verto_txn_abc123xyz\",\n \"paymentId\": \"p1234567-89ab-cdef-0123-456789abcdef\",\n \"status\": \"completed\",\n \"state\": \"completed\",\n \"type\": \"account_to_wallet\",\n \"amount\": 1250.75,\n \"currency\": \"USD\",\n \"reference\": \"REF-2024-001234\",\n \"account\": {\n \"name\": \"John Doe\",\n \"number\": \"****5678\"\n }\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/verto/payment-outward/webhook")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"verto_txn_abc123xyz\",\n \"paymentId\": \"p1234567-89ab-cdef-0123-456789abcdef\",\n \"status\": \"completed\",\n \"state\": \"completed\",\n \"type\": \"account_to_wallet\",\n \"amount\": 1250.75,\n \"currency\": \"USD\",\n \"reference\": \"REF-2024-001234\",\n \"account\": {\n \"name\": \"John Doe\",\n \"number\": \"****5678\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.royalti.io/webhook/verto/payment-outward/webhook")
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 \"id\": \"verto_txn_abc123xyz\",\n \"paymentId\": \"p1234567-89ab-cdef-0123-456789abcdef\",\n \"status\": \"completed\",\n \"state\": \"completed\",\n \"type\": \"account_to_wallet\",\n \"amount\": 1250.75,\n \"currency\": \"USD\",\n \"reference\": \"REF-2024-001234\",\n \"account\": {\n \"name\": \"John Doe\",\n \"number\": \"****5678\"\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "Payment record status is marked as completed"
}{
"status": "error",
"message": "<string>",
"code": "<string>",
"details": {}
}{
"status": "error",
"message": "<string>",
"code": "<string>",
"details": {}
}{
"status": "error",
"message": "Payment Record not found"
}This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
Authentication: Uses IP whitelist validation (no headers required). Workflow:- Validates payment state is ‘completed’
- Validates payment type is ‘account_to_wallet’
- Updates Payment record status to ‘completed’
Code Examples
const response = await fetch('https://api.royalti.io/webhook/verto/payment-outward/webhook', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"id": "verto_txn_abc123xyz",
"paymentId": "p1234567-89ab-cdef-0123-456789abcdef",
"status": "completed",
"state": "completed",
"type": "account_to_wallet",
"amount": 1250.75,
"currency": "USD",
"reference": "REF-2024-001234",
"account": {
"name": "John Doe",
"number": "****5678"
}
})
});
const data = await response.json();
console.log(data);
import requests
response = requests.post(
'https://api.royalti.io/webhook/verto/payment-outward/webhook',
headers={
'Authorization': f'Bearer {token}'
},
json={"id":"verto_txn_abc123xyz","paymentId":"p1234567-89ab-cdef-0123-456789abcdef","status":"completed","state":"completed","type":"account_to_wallet","amount":1250.75,"currency":"USD","reference":"REF-2024-001234","account":{"name":"John Doe","number":"****5678"}}
)
data = response.json()
print(data)
curl -X POST https://api.royalti.io/webhook/verto/payment-outward/webhook \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id":"verto_txn_abc123xyz","paymentId":"p1234567-89ab-cdef-0123-456789abcdef","status":"completed","state":"completed","type":"account_to_wallet","amount":1250.75,"currency":"USD","reference":"REF-2024-001234","account":{"name":"John Doe","number":"****5678"}}'
Body
application/json
Verto transaction ID
Example:
"verto_txn_abc123xyz"
Royalti Payment record UUID
Example:
"p1234567-89ab-cdef-0123-456789abcdef"
Payment status
Available options:
pending, processing, completed, failed, cancelled Example:
"completed"
Payment state (must be 'completed' for processing)
Example:
"completed"
Transaction type (must be 'account_to_wallet')
Example:
"account_to_wallet"
Payment amount
Example:
1250.75
Currency code
Example:
"USD"
Payment reference number
Example:
"REF-2024-001234"
Account details
Show child attributes
Show child attributes
Response
Webhook processed successfully
Example:
"Payment record status is marked as completed"
⌘I