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 \
  --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://server26-dot-royalti-project.uc.r.appspot.com/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"
  }
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/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}"