Public API reference
/v4 API
/- Preview the Stripe subscription price
Retrieve the Stripe public key
Create a Stripe setup intent secret
Start the Stripe subscription confirmation
Update the Stripe subscription
Create a Stripe one-off payment
Receive a webhook from Stripe for when a user is charged for a subscription.
Preview the Stripe subscription change
Check a Stripe promo code for a user
Check a Stripe promo code for a user
Start the Stripe subscription (Deprecated)
List the user's Stripe subscriptions
Cancel a user's Stripe subscription
Preview the Stripe subscr...
Generates a preview of the total price and tax amount that Stripe will charge the customer if they create a new subscription for the specified plan.
Note: This method does not create any entities in Stripe and does not result in any payments being made.
Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
The Stripe promo code that will be attached to the subscription.
Example:"discount15"
- https://demo-sitehttps://demo-site/zephr/payment/stripe/create-subscription-previews
{ "product_id": "zephr-prod-1", "plan_id": "price_H8eIeMFwMawg6w", "promo_code": "discount15", "billing_country": "US", "billing_post_code": "90210" }
OK
The total amount the user will be initially charged for the subscription in the relevant currency's lowest denomination (e.g. pence), i.e. for a monthly subscription, the first month's cost.
Example:5000
The total amount minus tax for the initial charge in the relevant currency's lowest denomination (e.g. pence).
Example:4500
The tax amount for the initial charge in the relevant currency's lowest denomination (e.g. pence).
Example:500
Response
{
"total": 5000,
"sub_total": 4500,
"tax": 500,
"discount": 0
}