Create Payment Link
When creating a payment link via API, you'll need your API keys which can be retrieved from the dashboard. Once initiated, vella will return a link to the response body in JSON format.
Sample Request
curl --location --request POST 'https://sandbox.vella.finance/api/v1/payment-links/create' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount":"",
"photo_url":"",
"title":"",
"description":"",
"currency":"NGNT",
"redirect_url":"",
"payment_type":"SINGLE"
}'
Response
{
"status": "success",
"data": {
"id":"plink_1L7H6T2eZvKYlo2CzhTKBEZ8",
"title": "test link",
"description": null,
"amount": 0,
"payment_type": "SINGLE",
"redirect_url": null,
"currency": "NGNT",
"link": "test-link",
"photo_url": null,
"status": "Active",
"payment_url": "https://me.vella.finance/link/test-link"
}
}
Using the Payment link
When customers click on the payment link, the Vella payment modal will be displayed to proceed with making payments.
API reference
For more detailed information, head to our API reference to test it out
https://docs.vella.finance/reference/create-payment-link
Updated over 1 year ago