Create a coupon
Creates a reusable discount. Requires a Growth or Pro plan. Discount parameters are immutable after creation (only active can change via PATCH).
Authorizations
Your PayBridgeNP API key. Obtain one from the dashboard under Settings → API Keys. Prefix: sk_test_ for testing, sk_live_ for production.
Body
"WELCOME10"
"Welcome 10%"
percent, amount once, repeating, forever Required when discountType is percent (1–100).
10
Required when discountType is amount (paisa).
Required when duration is repeating.
Response
Coupon created.
"cpn_01j9x2k3m4n5p6q7r8s9t0u1v2"
coupon "WELCOME10"
"Welcome 10%"
percent, amount Percent discount (1–100), when discount_type is percent.
10
Fixed discount in paisa, when discount_type is amount.
"NPR"
once, repeating, forever Billing cycles the discount applies, when duration is repeating.
0
Restrict to specific plan IDs, or null for all plans.
true when created with a live key, false for sandbox.