curl --request POST \
--url https://api.royalti.io/integrations/vertofx/payment-requests/v2 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000,
"currency": "USD",
"beneficiary": "beneficiary_123",
"purposeCode": "INV"
}
'{
"id": "req_123456",
"status": "pending",
"amount": 1000,
"currency": "USD"
}Creates a new payment request in VertoFx (v2 API).
curl --request POST \
--url https://api.royalti.io/integrations/vertofx/payment-requests/v2 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000,
"currency": "USD",
"beneficiary": "beneficiary_123",
"purposeCode": "INV"
}
'{
"id": "req_123456",
"status": "pending",
"amount": 1000,
"currency": "USD"
}const response = await fetch('https://api.royalti.io/integrations/vertofx/payment-requests/v2', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"amount": 1000,
"currency": "USD",
"beneficiary": "beneficiary_123",
"purposeCode": "INV"
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"