API Reference
Payment Links
Payment links are reusable URLs that collect one-off or recurring payments without any backend work. Create one, share it over WhatsApp, Instagram bio, or print it as a QR code.
Two types: SINGLE (expires after one successful payment) and MULTI (stays active until you disable it). Multi links track view count, payment count, and running total, and support source attribution (`DIRECT`, `EMBED`, `WHATSAPP`, `QR`) for analytics.
The payment_link object
idstringUnique identifier, prefixed with `pl_`.
objectstringAlways `"payment_link"`.
livemodebooleanTrue if created with a live-mode key.
typestringSINGLE expires after one payment; MULTI is reusable.
Values: SINGLE MULTI
namestringnullableInternal name for the dashboard.
slugstringnullableURL slug used for the pretty link path.
urlstringPublic checkout URL — share this.
statusstringLink lifecycle state.
Values: ACTIVE COMPLETED CANCELLED
amount_centsintegerAmount charged per successful payment.
currencystringLowercase 3-letter ISO 4217 code.
descriptionstringnullableShown to the customer on the payment page.
customer_idstringnullableAttached customer, if any.
collect_namebooleanWhether to collect the customer's name on the payment page.
collect_emailbooleanWhether to collect email.
collect_phonebooleanWhether to collect phone number.
installment_enabledbooleanWhether the link offers installment payment.
quantity_limitintegernullableHard cap on total successful payments. When reached, the link flips to COMPLETED.
view_countintegerHow many times the hosted page has been loaded.
payment_countintegerTotal successful payments through this link.
total_collected_centsintegerRunning total in the link currency.
expires_atintegernullableUnix timestamp after which the link stops accepting payments.
metadataobjectnullableUp to 20 arbitrary key/value pairs.
createdintegerCreation timestamp (unix).
updatedintegerLast-updated timestamp (unix).
{
"id": "pl_01JRZKB6SDE2HVKX8WCTNY4FRG",
"object": "payment_link",
"livemode": false,
"type": "MULTI",
"name": "April 2026 donation drive",
"slug": "april-drive",
"url": "https://lunipay.io/p/rentelio/april-drive",
"status": "ACTIVE",
"amount_cents": 2500,
"currency": "usd",
"description": "Suggested donation — every bit helps.",
"customer_id": null,
"collect_name": true,
"collect_email": true,
"collect_phone": false,
"installment_enabled": false,
"quantity_limit": null,
"view_count": 318,
"payment_count": 42,
"total_collected_cents": 105000,
"expires_at": null,
"metadata": null,
"created": 1713100800,
"updated": 1713100800
}Endpoints
- POST
/v1/payment-linksCreate a payment linkCreates a reusable or one-time payment link.
- GET
/v1/payment-links/:idRetrieve a payment linkFetches a payment link by id.
- PATCH
/v1/payment-links/:idUpdate a payment linkEdits an existing payment link.
- GET
/v1/payment-linksList payment linksReturns a cursor-paginated list of payment links.