Check a Stripe promo code for a user

Checks a Stripe promo code for the logged in user. The promo code is checked for validity of the current user based on first time order restriction, specific customer restriction, max allowed redemptions and expiration. The payment form payment options are checked to match the minimum payment amount requirements of the promo code.

SecurityCookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Request
query Parameters
code
required
string

The ID of the Stripe promo code to check.

paymentForm
required
string

The slug of the Stripe payment form the promo code relates to.

Responses
200

OK

get/zephr/payment/stripe/promo-code
Response samples
application/json
{
  • "code": "string",
  • "discount": "string",
  • "paymentOptions": [
    ]
}