Payment links
A shareable page where customers pay a fixed amount, without any code on your side.
Share the link's url in a chat, an email or as a QR on an invoice. Each time a customer presses Pay, a new payment is created with payment_link set to the link's id, and you get the usual payment.succeeded webhook. You can also create links in the dashboard.
The payment link object
idstring- Starts with
plink_. objectstring- Always
payment_link. livemodeboolean- Test or live mode.
activeboolean- Inactive links can't be paid.
urlstring- The page to share.
amountinteger- Fixed amount in the smallest currency unit.
currencystring- e.g.
MMK. descriptionstring- What the customer pays for; shown on the page.
single_useboolean- If true, the link stops working after one successful payment.
payments_countinteger- Payments made through the link.
metadataobject- Your own key–value data.
created_attimestamp- When it was created.
A payment link
{
"id": "plink_3Mn5Op7Qr9St1Uv3Wx5Yz7",
"object": "payment_link",
"livemode": false,
"active": true,
"url": "https://checkout.klinkpay.net/l/plink_3Mn5Op7Qr9St1Uv3Wx5Yz7",
"amount": 25000,
"currency": "MMK",
"description": "Monthly membership",
"single_use": false,
"payments_count": 0,
"metadata": {},
"created_at": "2026-11-27T09:00:00Z"
}Create a payment link
POST/v1/payment_links
Body
amountintegerrequired- In the smallest currency unit.
descriptionstringrequired- Shown to the customer.
single_useboolean- Default
false. metadataobject- Your own data.
Request
curl https://sandbox-api.klinkpay.net/v1/payment_links \
-X POST \
-H "Authorization: Bearer kp_test_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"amount": 25000,
"description": "Monthly membership"
}'Response
{
"id": "plink_3Mn5Op7Qr9St1Uv3Wx5Yz7",
"object": "payment_link",
"livemode": false,
"active": true,
"url": "https://checkout.klinkpay.net/l/plink_3Mn5Op7Qr9St1Uv3Wx5Yz7",
"amount": 25000,
"currency": "MMK",
"description": "Monthly membership",
"single_use": false,
"payments_count": 0,
"metadata": {},
"created_at": "2026-11-27T09:00:00Z"
}Retrieve a payment link
GET/v1/payment_links/:id
Requires payment_links:read on restricted keys.
Request
curl https://sandbox-api.klinkpay.net/v1/payment_links/plink_3Mn5Op7Qr9St1Uv3Wx5Yz7 \
-H "Authorization: Bearer kp_test_…"List payment links
GET/v1/payment_links
Newest first, with the usual pagination.
Request
curl https://sandbox-api.klinkpay.net/v1/payment_links \
-H "Authorization: Bearer kp_test_…"Response
{
"object": "list",
"data": [
{
"id": "plink_3Mn5Op7Qr9St1Uv3Wx5Yz7",
"object": "payment_link",
"livemode": false,
"active": true,
"url": "https://checkout.klinkpay.net/l/plink_3Mn5Op7Qr9St1Uv3Wx5Yz7",
"amount": 25000,
"currency": "MMK",
"description": "Monthly membership",
"single_use": false,
"payments_count": 0,
"metadata": {},
"created_at": "2026-11-27T09:00:00Z"
}
],
"has_more": false
}Deactivate a payment link
POST/v1/payment_links/:id/deactivate
Stops the link from taking new payments. Returns the link with active: false. Payments already made are not affected.
Request
curl https://sandbox-api.klinkpay.net/v1/payment_links/plink_3Mn5Op7Qr9St1Uv3Wx5Yz7/deactivate \
-X POST \
-H "Authorization: Bearer kp_test_…"