Skip to content

Legacy Public Payment Links

Resolve a BillStack-managed Stripe Payment Link for anonymous checkout.

Legacy (v1) API, no v2 equivalent yet. This page describes the Stripe-first legacy API. It is still supported and is not replaced by a v2 route.

GET /api/billstack/teams/{teamId}/projects/{projectId}/checkout/public-link?tier={tier}&cycle={cycle}

Auth

Private API key or publishable key.

Query parameters

ParameterRequiredValues
tierYespro, growth, lifetime
cycleYesmonthly, annual, yearly, once

Response

{
  "checkoutUrl": "https://buy.stripe.com/...",
  "provider": "stripe",
  "mode": "payment_link",
  "tier": "pro",
  "cycle": "annual"
}

Errors

StatusMeaning
400Invalid tier or cycle, or no entitlement policy is configured for the tier ({ "error": "Entitlement policy is not configured" }), or the team has a single region and bills through Razorpay ({ "error": "This team bills through razorpay; Stripe payment links are not available." })
403Missing or invalid auth
404No active matching price or no payment_link_url metadata

Public payment links are Stripe Payment Links, and the endpoint has no customer, so it is judged by the team's default region. A team with a single region on Razorpay receives the 400 above for every tier, including lifetime campaign steps. In a team with more than one region, a default region on Razorpay answers 409 FEATURE_UNAVAILABLE_IN_REGION instead; see Regions.

Lifetime

Use tier={alias}&cycle=once for lifetime payment links.

If the tier has an active tiered Lifetime Deal campaign, the resolved price is automatically the campaign's current step price (or its configured sold-out fallback price, once the campaign is no longer purchasable) — no query parameter changes needed. When the tier has no active campaign, this endpoint resolves the tier's regular single-price lifetime price exactly as before.

BillStack provisions campaign step links and campaign-specific one-time fallback links. A recurring fallback still needs its own configured Payment Link. Existing Checkout Sessions remain fulfillable when their step is replaced; new link resolutions use the current campaign state.

Anonymous links do not provide the authenticated checkout flow's pre-purchase duplicate-customer guard. They do deduplicate webhook delivery for the same provider payment. See campaign checkout behavior.