Skip to main content
POST
Create a Stripe Checkout session for a tier price

Path Parameters

workspaceId
string
required

The publisher workspace the tier price belongs to.

Body

application/json
tierPriceId
string
required

The tier price (plan) the advertiser is subscribing to.

email
string<email>

Pre-fills the advertiser's email on Stripe Checkout.

cancelUrl
string<uri>

Where Stripe returns the visitor on cancel. Must match the publisher's site or Revinel.

metadata
object

Your own key-value pairs, written to both the Stripe Checkout session and the subscription on your connected account, so renewal invoices carry them too. Up to 47 keys, keys up to 40 characters, string values up to 500 characters, no square brackets in keys. The keys workspaceId, tierId and tierPriceId are reserved. Revinel does not store them.

Response

OK

url
string
required

Stripe Checkout URL to redirect the advertiser to.

sessionId
string
required

The Stripe Checkout session ID.