curl --request POST \
--url https://api.royalti.io/integrations/vertofx/payment-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"beneficiaryId": "<string>",
"amount": 123,
"currency": "<string>",
"walletId": "<string>",
"reference": "<string>",
"memo": "<string>"
}
'{
"success": true,
"message": "Payment request created successfully",
"data": {
"paymentId": "vfx-payment-123",
"status": "pending"
}
}Create VertoFX Payment Request
curl --request POST \
--url https://api.royalti.io/integrations/vertofx/payment-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"beneficiaryId": "<string>",
"amount": 123,
"currency": "<string>",
"walletId": "<string>",
"reference": "<string>",
"memo": "<string>"
}
'{
"success": true,
"message": "Payment request created successfully",
"data": {
"paymentId": "vfx-payment-123",
"status": "pending"
}
}/integrations/vertofx/payment-requests endpoint allows creation of new payment requests through VertoFX.
Method: POST
Request Payload:
| Parameter | Type | Description |
|---|---|---|
| beneficiaryId | string | ID of the beneficiary to send payment to |
| amount | number | Amount to be sent |
| currency | string | Currency code |
| walletId | string | ID of the wallet to send from |
| reference | string | Payment reference |
| memo | string | Optional memo for the payment |
const response = await fetch('https://api.royalti.io/integrations/vertofx/payment-requests', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"beneficiaryId": "sample-beneficiaryId",
"amount": 1,
"currency": "sample-currency",
"walletId": "sample-walletId",
"reference": "sample-reference",
"memo": "sample-memo"
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"