Stripe Payments

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.

get/zephr/payment/stripe/promo-code

Request

  • Base URL: https://demo-site
  • URL: https://demo-site/zephr/payment/stripe/promo-code
  • Auth: one of:
    • API key in cookie blaize_session
    • API key in query parameter jwt
    • API key in header x-blaize-jwt
    • API key in header x-zephr-jwt
    • HTTP bearer
    • API key in cookie blaize_jwt

Query parameters

codestring required

The ID of the Stripe promo code to check.

paymentFormstring required

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

Response

OK

codestring

Same code supplied as a query parameter in the request

discountstring

The discount offered by this promo code

Changes

No recorded changes to this operation across all 2 revisions of this API.