curl
Plans
Update a billing plan
Updates plan metadata, active status, or dunning settings. Amount and interval cannot be changed.
PATCH
curl
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
Body
application/json
Deactivating a plan prevents new subscriptions but doesn't affect existing ones.
Available options:
esewa, khalti, fonepay Required range:
0 <= x <= 365Required range:
0 <= x <= 30Required range:
0 <= x <= 30Available options:
keep_active, mark_past_due, pause, cancel Response
Updated plan.
Example:
"bpl_01j9x2k3m4n5p6q7r8s9t0u1v2"
Available options:
plan Example:
"Pro Monthly"
Recurring amount in paisa.
Example:
99900
Example:
"NPR"
Available options:
day, week, month, quarter, year Example:
1
Example:
3
Example:
14
Available options:
esewa, khalti, fonepay metered plans bill on reported usage.
Available options:
per_unit, metered Usage aggregation for metered plans.
Available options:
sum, max, last_ever, null true when created with a live key, false for sandbox.