Update a payment link
Updates a payment link’s editable fields. Only the keys you send are changed. Requires the links:write scope. To deactivate a link, set active to false (or use the cancel endpoint).
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_).
Body
100500Set false to deactivate the link.
300ISO date in the future, or null to clear.
Cannot be set below the current use count.
x >= 1https:// URL, or null to clear.
100Response
Updated 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"