curl --request GET \
--url https://api.royalti.io/integrations/vertofx/purpose-codes \
--header 'Authorization: Bearer <token>'[
{
"code": "INV",
"description": "Invoice Payment"
},
{
"code": "SAL",
"description": "Salary Payment"
}
]Retrieves the list of available purpose codes from VertoFx for cross-border payments.
curl --request GET \
--url https://api.royalti.io/integrations/vertofx/purpose-codes \
--header 'Authorization: Bearer <token>'[
{
"code": "INV",
"description": "Invoice Payment"
},
{
"code": "SAL",
"description": "Salary Payment"
}
]const response = await fetch('https://api.royalti.io/integrations/vertofx/purpose-codes', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);