v1

latestOpenAPI 3.0.02026-08-0610682246.0 KB
Stripe Payments

Preview the Stripe subscription price

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.

post/zephr/payment/stripe/create-subscription-previews

Request body

product_idstring required

The ID of the new Zephr product.

plan_idstring required

The new Stripe price plan ID.

promo_codestring

The Stripe promo code that will be attached to the subscription.

billing_countrystring

The user's billing country, for tax calculation purposes.

billing_post_codestring

The user's billing postal code, for tax calculation purposes.

Example request

{
  "product_id": "zephr-prod-1",
  "plan_id": "price_H8eIeMFwMawg6w",
  "promo_code": "discount15",
  "billing_country": "US",
  "billing_post_code": "90210"
}

Response

OK