Skip to main content
POST
curl

Authorizations

Authorization
string
header
required

Your PayBridgeNP API key. Obtain one from the dashboard under Settings → API Keys. Prefix: sk_test_ for testing, sk_live_ for production.

Path Parameters

id
string
required

Payment link ID (prefix: lnk_).

Response

Cancelled (now inactive) payment link.

id
string
Example:

"lnk_01j9x2k3m4n5p6q7r8s9t0u1v2"

livemode
boolean

true when created with a live key, false for sandbox.

mode
enum<string>
Available options:
sandbox,
live
title
string

Shown on the payment page.

Example:

"Donation"

description
string | null
amount
integer | null

Fixed amount in paisa. null when the customer enters their own amount (see minAmount/maxAmount).

Example:

10000

minAmount
integer | null

Minimum customer-entered amount in paisa (only when amount is null).

maxAmount
integer | null

Maximum customer-entered amount in paisa (only when amount is null).

currency
string
Example:

"NPR"

provider
enum<string> | null

Locked provider, or null if the customer picks.

Available options:
esewa,
khalti,
fonepay
active
boolean
maxUses
integer | null

Usage cap, or null for unlimited.

usedCount
integer

Number of completed payments through this link.

Example:

0

expiresAt
string<date-time> | null
redirectUrl
string<uri> | null

Where the customer is sent after a successful payment.

inactiveMessage
string | null

Shown when the link is not usable.

customerName
string | null

Pre-filled on the checkout page.

customerEmail
string | null
customerPhone
string | null
collectAddress
boolean
customerLine1
string | null
customerLine2
string | null
customerCity
string | null
customerState
string | null
customerPostalCode
string | null
customerCountry
string | null
referenceId
string | null

Your internal identifier for this link.

metadata
object | null
url
string<uri>

Public hosted payment page for this link.

Example:

"https://paybridgenp.com/pay/lnk_01j9x2k3m4n5p6q7r8s9t0u1v2"

createdAt
string<date-time>
updatedAt
string<date-time>