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"
}
}
'{
"message": "Payment record status is marked as completed"
}Receives payment status updates from VertoFX payment processor.
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"
}
}
'{
"message": "Payment record status is marked as completed"
}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);
Verto transaction ID
"verto_txn_abc123xyz"
Royalti Payment record UUID
"p1234567-89ab-cdef-0123-456789abcdef"
Payment status
pending, processing, completed, failed, cancelled "completed"
Payment state (must be 'completed' for processing)
"completed"
Transaction type (must be 'account_to_wallet')
"account_to_wallet"
Payment amount
1250.75
Currency code
"USD"
Payment reference number
"REF-2024-001234"
Account details
Show child attributes
Webhook processed successfully
"Payment record status is marked as completed"