Accept payments
Payment Links
Reusable links for fixed prices, open amounts or donations. They do not expire unless you set them to.
Base URL
https://api.paysasa.com/api/v1Authx-api-keyFormatJSONPayment links are reusable and do not expire by default. Use them for fixed charges, donations, or open-amount collection.
Authentication: Payment Links require a signed-in dashboard session. Business API key auth is implemented for checkout, invoices, checkout pay, and reconciliation integration flows.
const res = await fetch("https://api.paysasa.com/api/v1/payment-links", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
business_id: "biz_xxxxxxxxxxxxxxxx",
title: "Webinar Ticket",
amount: 50000, // KES 500
currency: "KES",
description: "Workshop ticket",
}),
});
const { paymentLink } = await res.json();
// Share: paymentLink.url{
"paymentLink": {
"id": "lnk_01hx...",
"title": "Webinar Ticket",
"url": "https://app.paysasa.com/pay/link/lnk_01hx...",
"amount": 50000,
"currency": "KES",
"status": "active"
}
}