Create a payment link
Creates a reusable hosted payment page. Requires the links:write scope. Provide either a fixed amount, or minAmount/maxAmount bounds for a customer-entered amount.
Authorizations
Your PayBridgeNP API key. Obtain one from the dashboard under Settings → API Keys. Prefix: sk_test_ for testing, sk_live_ for production.
Headers
A unique key to safely retry the request without creating duplicate links.
Body
Shown on the payment page.
100"Donation"
500Fixed amount in paisa. Omit to let the customer enter an amount (then use minAmount/maxAmount).
10000
Minimum customer-entered amount in paisa.
Maximum customer-entered amount in paisa (max NPR 100,000).
NPR Lock to a provider, or omit to let the customer pick.
esewa, khalti, fonepay Usage cap. Omit for unlimited.
1 <= x <= 10000ISO date; must be in the future and within 1 year.
https:// URL the customer is sent to after a successful payment.
300Arbitrary key-value data (max 4 KB).
10020Your internal identifier.
100Collect a billing address on the checkout page.
Response
Payment link created.
"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"