Cancel a payment link
Deactivates a payment link so it can no longer accept payments, while keeping it (and its history) for your records. Idempotent-safe: returns 422 if the link is already inactive. Requires the links:write scope. This is the recommended way to retire a link that has already been used.
Authorizations
Your PayBridgeNP API key. Obtain one from the dashboard under Settings → API Keys. Prefix: sk_test_ for testing, sk_live_ for production.
Path Parameters
Payment link ID (prefix: lnk_).
Response
Cancelled (now inactive) payment link.
"lnk_01j9x2k3m4n5p6q7r8s9t0u1v2"
true when created with a live key, false for sandbox.
sandbox, live Shown on the payment page.
"Donation"
Fixed amount in paisa. null when the customer enters their own amount (see minAmount/maxAmount).
10000
Minimum customer-entered amount in paisa (only when amount is null).
Maximum customer-entered amount in paisa (only when amount is null).
"NPR"
Locked provider, or null if the customer picks.
esewa, khalti, fonepay Usage cap, or null for unlimited.
Number of completed payments through this link.
0
Where the customer is sent after a successful payment.
Shown when the link is not usable.
Pre-filled on the checkout page.
Your internal identifier for this link.
Public hosted payment page for this link.
"https://paybridgenp.com/pay/lnk_01j9x2k3m4n5p6q7r8s9t0u1v2"