Skip to content

Check a Stripe promo code for a user

Request

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 supplied payment payment options are checked to match the minimum payment amount requirements of the promo code.

Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Bodyapplication/json
paymentOptionsobject
promoCodestring

The promo code ID that must be checked.

{ "paymentOptions": { "currency": "string", "description": "string", "label": "string", "order": 0, "price": 0, "pricePointId": "string", "productId": "string", "recommended": true, "slug": "string", "subTenantId": "string", "tenantId": "string", "type": "PRICE_POINT" }, "promoCode": "string" }

Responses

OK

Headers
any
Bodyapplication/json
codestring

Same code supplied as a query parameter in the request

discountstring

The discount offered by this promo code

paymentOptionsArray of objects

The payment options (either from the supplied payment form or from the request body) filtered for promo code validity

Response
{ "code": "string", "discount": "string", "paymentOptions": [ { … } ] }