This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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://server26-dot-royalti-project.uc.r.appspot.com/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://server26-dot-royalti-project.uc.r.appspot.com/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}"