Payment links & invoices

Payment links let you collect a payment without writing any checkout code — share a URL, and the customer pays on a hosted page. Ideal for invoices, social selling, and one-off charges.

Create a link

POST /links
curl https://api.paykh.cambobia.com/links \
  -H "Authorization: Bearer bk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": "25.00",
    "currency": "USD",
    "title": "Invoice #1042",
    "type": "invoice"
  }'
Response
{
  "id": "lnk_8Q2b...",
  "url": "https://checkout.paykh.cambobia.com/l/lnk_8Q2b...",
  "amount": "25.00",
  "currency": "USD",
  "status": "active"
}

Share it

Send the url to your customer. When they open it, PayKH mints a payment and shows the KHQR. Single-use links close automatically after they’re paid.

ℹ️ No-code option
You can also create links visually in the dashboard under Payment links — no API call required.

Receipts

When a linked (or any) payment completes, the customer can view a hosted receipt at /r/{payment_id}, and an email receipt is sent if you’ve configured email.