Skip to main content
POST
Validate a promotion code

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.

Body

application/json
code
string
required
Example:

"LAUNCH50"

customerId
string | null
planId
string | null
amount
integer | null

Order amount in paisa, to compute the discount preview.

Response

Validation result. On invalid codes the API still returns 200 with valid: false and a reason.

valid
enum<boolean>
required
Available options:
true
coupon
object
required
discount_preview
object
required
promotion_code
object | null