Payment Links
Payment links are reusable URLs that open a checkout page. Unlike one-time checkouts, a payment link can be shared and used by multiple customers.
Create a payment link
POST /api/v1/linkscurl -X POST https://api.inzilink.com/api/v1/links \
-H "Authorization: Bearer sk_live_xxxxx" \
-H "Content-Type: application/json" \
-d '{
"title": "Pro Plan — Monthly",
"amount": "29.00",
"currency": "USD",
"type": "subscription",
"metadata": { "plan": "pro" }
}'Link types
| Type | Use case |
|---|---|
invoice | One-time payment for a specific amount |
donation | Flexible amount (user chooses) |
subscription | Recurring billing (manual re-payment) |
custom | General purpose |
List payment links
GET /api/v1/links?limit=20&offset=0Get payment link
GET /api/v1/links/{id}Update link status
PATCH /api/v1/links/{id}/status{ "status": "paused" }Available statuses: active, paused, archived.
Payment links use the Checkout API under the hood. Each time someone pays via a payment link, a new checkout session is created. You receive the same checkout.completed webhook.