Lifetime Deal Campaigns
Legacy campaigns on Stripe tier prices that sell a tier as a lifetime one-time purchase whose price steps up as units sell, with a total cap. New deals are built on a Catalog price with the v2 API.
This page describes lifetime deal campaigns on legacy Stripe tier prices, which keep working and are run through the legacy campaign routes. To create a new lifetime deal, build it on a one-time Catalog price with the v2 API and the Catalog page: see Lifetime deals.
Concepts
A tiered Lifetime Deal campaign sells a tier as a one-time (lifetime)
purchase whose price steps up as units sell, up to a total unit cap. It sits
alongside — and is a superset of — BillStack's existing single-price
lifetime flow (one fixed price, maxRedemptions seat cap).
- A campaign belongs to one project tier (
tierAlias) and has an ordered list of steps. Each step is{ unitAmount, units }: a price (in minor currency units) and how many units are available at that price. - The total cap is the sum of every step's
units. - Only one campaign can be
activeper project tier at a time. Campaigns move throughdraft -> active -> ended. - Each step is backed by its own one-time provider price — created and deactivated automatically as steps are added, edited, or the campaign activates.
Lifetime deals on the Catalog
Lifetime deals built on a one-time price of the project Catalog are managed with the v2 API and the Catalog page,
not through the campaign routes: see Lifetime deals. They are sold the same way
(a v2 checkout with campaignTier, or the deal's /pay/<token> page) and settle into the same sold-unit count, and
the rules below about concurrency, paying twice and refunds apply to them too. The legacy campaign routes and MCP tools still accept a Catalog deal for
compatibility, but they are not the way to manage one.
Configuring steps
There are two ways to configure a campaign's steps. Both produce the same
underlying { unitAmount, units } list.
1. Explicit steps
Give the ordered list directly — use this when you want irregular pricing jumps or a small number of steps:
{
"steps": [
{ "unitAmount": 4900, "units": 50 },
{ "unitAmount": 6900, "units": 100 },
{ "unitAmount": 9900, "units": 350 }
]
}This example has a 500-unit total cap: 50 units at $49, then 100 at $69, then 350 at $99.
2. Generator
Give a starting price, an increment, and how many units each step should sell, and BillStack generates the step list for you:
{
"generator": {
"startAmount": 4900,
"increment": 500,
"unitsPerStep": 50,
"totalCap": 220
}
}This generates ceil(totalCap / unitsPerStep) steps — step[i].unitAmount = startAmount + i * increment — with the last step absorbing the
remainder (totalCap - unitsPerStep * (stepCount - 1)) instead of a full
unitsPerStep. For the example above: ceil(220 / 50) = 5 steps of $49,
$54, $59, $64, $69 — the first four sell 50 units each (200 total) and the
fifth sells the remaining 20 units.
Validation for both modes: every amount/unit value must be a positive
integer (increment may be 0 for a flat price), and a campaign may have
at most 50 steps.
Provide exactly one of steps or generator when creating or editing a
campaign — never both.
Concurrency: "honor price, count post-payment"
BillStack does not reserve units at checkout. Instead:
- Whichever step's price a customer was shown at checkout is the price they pay, even if other customers complete checkout for the same step concurrently.
- Every completed payment is recorded once (idempotently) and increments the campaign's sold-unit count.
- The "current step" for a new checkout is always derived from the
cumulative sold-unit count against the steps' cumulative unit caps, so if
concurrent purchases push the count past a step boundary, the next
purchase simply lands in (and may even spill past) the following step.
Sold units can exceed the total cap by a small amount under heavy
concurrency at the boundary — the campaign is then simply
sold_out.
There are no reservations, no waitlists, and no refunds issued by this feature for over-sold units — it optimizes for simplicity and honoring the price a customer actually saw, not for exact inventory precision at the margin.
Test and live campaigns
A campaign belongs to one environment, the one of the API key (or session)
that created it. A test key (bs_test_) lists, creates, edits, activates and
ends only test campaigns, and a live key only live campaigns. A test key never
sees a live campaign, never counts a sale against it (soldUnits stays
untouched), and a campaign id from the other environment answers
404 CAMPAIGN_NOT_FOUND. The public pricing endpoint shows the campaign of the
publishable key's environment (pk_test_ or pk_live_). Test campaigns are
priced and sold through your test payment-provider account.
Managing campaigns
This section is for legacy campaigns only. The routes and MCP tools below manage campaigns on Stripe tier prices (productId, tierAlias and currency); the legacy dashboard shows those campaigns read-only, so use them only for campaigns that already exist. Lifetime deals on a one-time Catalog price are managed with the v2 routes, the Catalog page and the v2 SDK: see Lifetime deals. The legacy route predates them and still accepts a basePriceVariantId, but it is not the way to run a Catalog deal, and sales, the refund review list and revoking exist only in the v2 API.
Campaigns are managed in the dashboard, through the admin API (reads take a
project API key; creating, editing, activating, ending and revoking need a
personal access token, an authorized
session or a legacy full-access key, because a key created since 2026-12-01
gets 403; see Authentication),
or through MCP tools. All admin routes live under
/api/billstack/teams/{teamId}/projects/{projectId}/lifetime-campaigns:
| Method and path | Purpose |
|---|---|
GET / | List every campaign (any status), most recent first. |
POST / | Create a draft campaign with steps or a generator (exactly one). Returns 201. |
GET /{campaignId} | Full status: campaign, steps, derived state, recent sales. |
PATCH /{campaignId} | Lifecycle action or field/step edit (see below). Returns the fresh status. |
PATCH semantics
Send either a lifecycle action:
{ "action": "activate" }("activate" is draft -> active; "end" is draft|active -> ended and is
idempotent) or any combination of field and step edits:
{
"name": "Founders deal",
"availableFrom": "2026-11-01T00:00:00.000Z",
"availableUntil": "2026-11-30T23:59:59.999Z",
"afterSoldOutPriceId": null,
"steps": [{ "unitAmount": 5900, "units": 40 }],
"expectedSoldUnits": 10,
"expectedFromStepIndex": 1
}actioncannot be combined with any other field (400).- Provide at most one of
stepsorgenerator. They replace every unsold step from the first unlocked step onward; sold and locked steps are kept. expectedSoldUnitsandexpectedFromStepIndex(non-negative integers) are optimistic-concurrency guards: pass the values from the status you read. They are only valid together withstepsorgenerator. If sales or the locked-step boundary changed since, the request fails with409 CAMPAIGN_CHANGEDbefore any provider price is created; reload the campaign and retry.- Step input is validated before anything is saved, so a rejected ladder
(
400) leaves the other fields in the same request unchanged too. availableFromafteravailableUntilis rejected with400 INVALID_WINDOW. Passnullto clear either bound.
Availability window and UTC
Window bounds are exact UTC instants. The dashboard treats them as UTC
calendar days: "from" is the start of the chosen day (00:00:00.000Z) and
"until" is the end of the chosen day (23:59:59.999Z), so a campaign
ending on Oct 31 keeps selling through all of Oct 31 UTC. When calling the API
directly, send ...T23:59:59.999Z to get the same behavior.
Errors
Errors are returned as { "error": string, "code": string }. Unexpected
failures return 500 with a generic message and no code.
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_CAMPAIGN_STATUS | The lifecycle transition is not allowed from the current status. |
| 400 | INVALID_STEPS | Step list is empty, has a non-positive amount/units, or is otherwise invalid. |
| 400 | INVALID_GENERATOR_CONFIG | Generator values are invalid. |
| 400 | TOO_MANY_STEPS | More than 50 steps. |
| 400 | INVALID_WINDOW | availableFrom is after availableUntil. |
| 400 | INVALID_CURRENCY / UNSUPPORTED_CURRENCY | Currency is malformed or not supported. |
| 400 | INVALID_AFTER_SOLD_OUT_PRICE | Fallback price is missing, a lifetime/campaign price, or in another currency or project. |
| 404 | CAMPAIGN_NOT_FOUND / PRODUCT_NOT_FOUND | The campaign or product does not exist in this project. |
| 409 | TIER_HAS_ACTIVE_CAMPAIGN | Another campaign is already active for this tier. |
| 409 | CAMPAIGN_CHANGED | Sales or steps changed since your snapshot; reload and retry. |
| 409 | CAMPAIGN_PROVIDER_UNSUPPORTED | The team sells in a single region and that region bills through Razorpay. Campaigns are priced through Stripe, so they cannot be created or edited for a Razorpay-only team. A team with a Stripe region and a Razorpay region is not refused; see Regions. |
| 409 | CAMPAIGN_REGION_ALTERNATE_MISSING | The team has two or more active regions and an active region has no price for a step on sale. The message and missingRegions name the regions and the 0-based step indexes. Add regional alternates, then retry. |
| 409 | REGIONAL_ALTERNATE_IMMUTABLE | A step already has a different alternate for that region. Alternates cannot be changed; replace the unsold step. |
| 400 | INVALID_REGIONAL_ALTERNATE | An alternate is malformed, names an unknown region or a step that does not exist or is sold out, or uses a currency the region cannot charge (Razorpay regions charge INR only). |
| 422 | PRICE_UNAVAILABLE_IN_REGION | Returned by the v2 checkout when the customer's region has no price for the campaign. The country confirmation token is not spent. |
| 409 | CAMPAIGN_UNAVAILABLE | Returned by the v2 checkout when the tier has no lifetime offer on sale (no active campaign that is purchasable and no usable fallback). |
| 409 | LIFETIME_ALREADY_OWNED | Returned by the v2 checkout when the customer already owns the tier. |
| 422 | CAMPAIGN_STEP_PRICE_NOT_DIRECTLY_PURCHASABLE | Returned by POST /checkout when priceId is a campaign step price. Check out by tier (subscribe-by-tier) so the current step is applied. |
| 500 | PRODUCT_NOT_RESOLVABLE | The product could not be resolved to a provider product; contact support. |
Malformed request bodies (wrong types, both steps and generator, no
updatable fields) return 400 without a code.
MCP tools
The BillStack MCP server exposes project-scoped campaign tools. Each takes a
projectId (and optional teamId); write tools need the mcp:write scope and
project update permission. Each also takes an optional environment (test or
live): an API key can only name its own environment, and an OAuth caller
defaults to the team's default environment (live, or test for a test-only team).
Campaigns of the other environment are neither listed nor editable.
| Tool | Access | Equivalent |
|---|---|---|
list_lifetime_campaigns | read | GET / |
get_lifetime_campaign_status | read | GET /{campaignId} |
create_lifetime_campaign | write | POST / |
update_lifetime_campaign | write | PATCH /{campaignId} field/step edit (name, availableFrom, availableUntil, afterSoldOutPriceId, steps or generator, expectedSoldUnits, expectedFromStepIndex) |
set_lifetime_campaign_status | write | PATCH /{campaignId} with action (activate or end) |
action is deliberately not accepted by update_lifetime_campaign; lifecycle
changes go through set_lifetime_campaign_status, so the two can never be
combined. Tool failures use the same codes as the table above, reported as
Error: <CODE>: <message> with the MCP isError flag set (for example
Error: CAMPAIGN_CHANGED: Campaign sales changed since you opened the editor; reload and try again).
Malformed tool input is reported as Error: INVALID_INPUT: <message>.
MCP tools for regions
A team that sells in several regions (more than one region enabled in the call's environment) gets three more tools and one more step field. A team with a single region sees none of them in tools/list, and a call answers Error: REGIONAL_PRICING_NOT_ENABLED.
| Tool | Access | Equivalent |
|---|---|---|
list_regions | read, billing:GetProviders | GET /v2/teams/{teamId}/regions |
get_region_coverage | read, billing:GetProviders | GET /v2/teams/{teamId}/regions/{regionId}/coverage |
set_lifetime_campaign_regional_alternates | write, project:UpdateProject | PATCH /{campaignId} with regionalAlternates (add-only) |
create_lifetime_campaign and update_lifetime_campaign accept steps[].alternates as { "<regionId>": { "amount": 399900, "currency": "inr" } } under the same rule. The two region reads are team-wide; a project-scoped API key is refused. Creating, activating or reassigning regions is not available over MCP; use the REST API or the dashboard.
Public pricing fields
The public pricing endpoint includes a
per-tier lifetimeCampaign field — null when the tier has no active
campaign, otherwise a public-safe projection with no provider/internal IDs:
{
"tierAlias": "pro",
"name": "Pro",
"description": "For growing teams",
"prices": [
{ "interval": "month", "billingScheme": "standard", "unitAmount": 2900, "currency": "usd", "seatsLeft": null, "soldOut": false, "availableUntil": null }
],
"lifetimeCampaign": {
"campaignId": "ltdcamp_...",
"name": "Founders deal",
"currency": "usd",
"status": "active",
"purchasable": true,
"reason": null,
"currentStepIndex": 1,
"currentUnitAmount": 6900,
"unitsLeftInStep": 37,
"nextUnitAmount": 9900,
"totalSold": 113,
"totalCap": 500,
"soldOut": false,
"availableFrom": null,
"availableUntil": null,
"steps": [
{ "unitAmount": 4900, "units": 50 },
{ "unitAmount": 6900, "units": 100 },
{ "unitAmount": 9900, "units": 350 }
]
}
}purchasable is false when reason is "not_started", "ended",
"sold_out", or "inactive" (a draft campaign). When purchasable is
true, currentUnitAmount is the price a checkout started right now would
pay; nextUnitAmount previews the price after the current step sells out
(null on the final step).
The step-priced provider prices that back a campaign are never listed in a
tier's regular prices array — they're internal to lifetimeCampaign.
Checkout and payment links
When a lifetime purchase is requested for a tier (logged-in checkout via
subscribeByTier, or an anonymous payment link
with tier={alias}&cycle=once) and that tier has an active campaign:
- If the campaign is purchasable, checkout uses the current step's price. The resulting Stripe Checkout Session carries the campaign and step id in its metadata so the webhook can record the sale idempotently against that exact step.
- If the campaign is sold out or its availability window has closed
(
availableUntilhas passed) and it has a configuredafterSoldOutPriceId, checkout falls back to that price instead — typically a regular recurring price for the same tier. - If the campaign has not started yet (
availableFromis in the future), the fallback is never offered. Checkout is refused (CAMPAIGN_UNAVAILABLEfrom tier checkout,PRICE_NOT_FOUNDfrom the anonymous payment-link endpoint) and the campaign's Payment Links stay disabled until it opens. - If the campaign is sold out or closed and has no fallback price configured, checkout is refused in the same way (no purchasable option for this tier).
When a tier has no active campaign, checkout is completely unaffected —
the existing single-price lifetime flow (fixed price, maxRedemptions seat
cap) runs exactly as before.
Authenticated checkout retains the existing duplicate-purchase guard for a known BillStack customer. Anonymous Payment Links do not run that pre-purchase guard: Stripe creates a customer for the checkout, and a guest can purchase again. BillStack does not merge customer identities based only on email. Webhook retries still record each provider payment only once.
BillStack provisions the campaign step links and disables replaced or exhausted step links during campaign lifecycle and payment processing. Already-issued Checkout Sessions retain their original step identity and can still fulfill after an edit. Step edits that race with another edit or a recorded payment may fail; reload the campaign before retrying.
Regions
A project can sell through several regions: for example a Stripe default region
plus a Razorpay region for India (see Multi-provider v2).
A team with fewer than two active regions in an environment behaves as
described everywhere else on this page, including the refusal of a team that
bills only through Razorpay (409 CAMPAIGN_PROVIDER_UNSUPPORTED). A region
counts as active by its stored status, so a region whose connection is
temporarily unavailable still counts.
Every region needs a price
With two or more active regions, a campaign can be active only if every
step still on sale has a price for every active region:
- A Stripe region sells the step's own Stripe price. Nothing to add.
- A region served by another provider (Razorpay) needs a regional
alternate for the step: a flat
amountandcurrency. Razorpay regions charge INR only.
If a region is missing a price, activating the campaign fails with
409 CAMPAIGN_REGION_ALTERNATE_MISSING. The message and missingRegions name
each region and its 0-based step indexes.
Supply alternates in either of two ways:
{
"steps": [
{ "unitAmount": 4900, "units": 50, "alternates": { "<regionId>": { "amount": 399900, "currency": "inr" } } },
{ "unitAmount": 6900, "units": 100, "alternates": { "<regionId>": { "amount": 569900 } } }
]
}on create or when editing the unsold steps (explicit steps only, not the
generator), or add them to existing steps with a PATCH that carries only
regionalAlternates:
{
"regionalAlternates": {
"regionId": "<regionId>",
"alternates": [
{ "stepIndex": 0, "amount": 399900, "currency": "inr" },
{ "stepIndex": 1, "amount": 569900 }
]
}
}currency defaults to the region provider's currency (INR for Razorpay, which
refuses any other). Alternates are add-only: sending
the same value again is harmless, a different value for the same step and region
answers 409 REGIONAL_ALTERNATE_IMMUTABLE, because an outstanding payment link
carries the amount. To change a price, replace the unsold step. Promoting a
project to live does not copy alternates; set them again in live.
Editing the metadata of a campaign price with PATCH .../prices/{priceId}
merges your keys and refuses the keys BillStack manages with
400 RESERVED_METADATA_KEY.
Campaigns are paused, never resumed for you
If an active campaign stops being sellable in every region, BillStack switches it off instead of selling a price that does not exist:
- Activating a non-default region pauses every active campaign that lacks
alternates for it. The region activation response lists them as
pausedCampaignsand carries aLIFETIME_CAMPAIGNS_PAUSEDwarning. - A step edit that leaves a step without an alternate pauses that campaign.
- A background sweep that runs every 5 minutes pauses any other case.
A paused campaign goes back to draft and its step links are disabled. It is
never resumed automatically: add the missing alternates and activate it
again. Deactivating a region, creating a draft region, or a region's connection
becoming temporarily unavailable does not pause a campaign (customers of an
unavailable region get PROVIDER_UNAVAILABLE, other regions keep selling).
GET /{campaignId} includes a regions object:
{
"regions": {
"applies": true,
"activeRegions": [{ "regionId": "reg_...", "name": "India", "provider": "razorpay" }],
"missingRegions": [{ "regionId": "reg_...", "name": "India", "provider": "razorpay", "stepIndexes": [2] }],
"pause": null
}
}applies is true when the rule is in force, missingRegions lists what
blocks activation, and pause is { at, trigger, missingRegions } while the
campaign is switched off by the gate. The dashboard shows the same warning on
the campaign card, and a Regional prices button to add alternates, whenever
more than one region is active.
Selling in each region
The v1 checkout (checkout/start) serves the default region only. For a
customer pinned to another region it answers 409 REGION_REQUIRES_V2. To sell a
campaign in any region, use the v2 checkout and send campaignTier instead of
priceVariantId:
POST /api/billstack/v2/teams/{teamId}/projects/{projectId}/checkoutBillStack routes the customer by their region pin, else by the confirmed country, and sells that region's price for the current step: the step's Stripe price in a Stripe region, or a Razorpay payment link at the alternate in a Razorpay region. A customer is never shown another region's price. See Multi-provider v2 for the request body and country confirmation.
| Status | Code | Meaning |
|---|---|---|
| 422 | PRICE_UNAVAILABLE_IN_REGION | The customer's region has no price for the campaign. The token is not spent. |
| 409 | CAMPAIGN_UNAVAILABLE | The tier has no lifetime offer on sale. |
| 409 | LIFETIME_ALREADY_OWNED | The customer already owns the tier. |
A Razorpay campaign payment is settled when the connection's webhook delivers
it, so the connection's canonicalWebhookUrl must be registered with Razorpay.
A payment delivered to the older per-team Razorpay URL is also settled, once.
Settlement records the sale, grants the lifetime entitlement and pins the
customer to the region they paid in.
Paying twice
A customer can open campaign checkouts in two regions and pay both. The first
payment pins the customer and closes their other open checkouts. If a second
payment for a tier the customer already owns still arrives, BillStack keeps the
money but sells no second unit and grants no second entitlement. It
records a rejection with reason ALREADY_OWNED that needs a refund review.
Refunds are always manual: refund the payment in the provider dashboard. When
the two payments were in different regions BillStack also sends a
customer.region_conflict
webhook event.
Razorpay
A tiered campaign is built from Stripe one-time prices and Stripe Payment
Links, so a team that sells in a single region and bills through Razorpay
cannot create or edit campaigns: the API answers
409 CAMPAIGN_PROVIDER_UNSUPPORTED. Such a team keeps using the flat
razorpayAmounts mapping. A team with a Stripe region and a Razorpay region can
run campaigns in both; see Regions for pricing, selling and
settlement. The rest of this section describes how a Razorpay campaign payment
link is created and what happens when it is paid.
Razorpay's startProjectCheckout("lifetime", "once") flow (see
Migrate from Razorpay) is campaign-aware the same
way Stripe checkout is:
- If the tier's alias has an active, purchasable campaign, the Razorpay
Payment Link is created for the current step's amount, and its
notescarrybillstack_campaign_id/billstack_campaign_step_idso thepayment_link.paidwebhook can record the sale against that exact step. The campaign's currency must match the order currency (INR) or checkout fails with a clear error instead of silently charging the wrong amount. - If the campaign is not purchasable and its
afterSoldOutPriceIdis a one-time price in the order currency, checkout falls back to that price's amount (not attributed to the campaign — nobillstack_campaign_*notes are added, matching the Stripe fallback path). - If it's not purchasable and has no Razorpay-representable fallback,
checkout fails with a clear "unavailable" error rather than silently
falling back to the legacy flat
razorpayAmountsmapping. - When the tier has no active campaign, checkout is unaffected — the
legacy
razorpayAmountsmetadata mapping is used exactly as documented in Plan ID and amount mappings.
Subscribe the Razorpay webhook to payment_link.paid for these checkouts.
BillStack reads attribution and campaign metadata from the signed Payment
Link entity's notes, and reads the payment ID, amount, and currency from the
nested payment entity. It requires the link to be paid and the payment to
be captured; when both entities include an order ID, they must match. If
the link notes carry campaign/step ids, BillStack verifies the captured
amount matches that step's canonical price, records the sale idempotently,
and only then grants entitlement. A mismatched amount is rejected before
any entitlement is granted. The sold-out fallback carries no campaign step
ids, so its paid link grants the lifetime entitlement without recording a
campaign sale. payment.captured remains supported for legacy order flows.
A verified Razorpay campaign payment grants lifetime access to the
campaign's tier (pro, growth, or the default lifetime tier), the same as
a Stripe campaign purchase: the entitlement never expires and a webhook replay
does not create a duplicate. Sales recorded for a campaign share one
inventory. As soon as a Razorpay sale exhausts a step, the cheaper Stripe
Payment Link for that step is deactivated too (a failure to do so is retried by
the 5-minute sweep and never loses the sale).
Razorpay link expiry and late payments
Campaign Payment Links expire after 60 minutes, or at the campaign's
availableUntil if that is sooner. Razorpay does not accept an expiry less
than 15 minutes away, so a link created within 16 minutes of the window
closing can stay payable for up to 16 minutes after it. A customer who
started checkout while the campaign was purchasable and pays before the link
expires is honored at the price they were shown, even if the campaign has
since sold out, ended or been paused. This matches the Stripe behavior and
means total sales can slightly exceed the cap.
Sold-out fallback Payment Links expire on the same schedule, and a fallback payment created after its link expired is treated the same way as below.
If a payment is captured but not honored (a payment created after its link
expired, which should not happen because Razorpay blocks it, an amount that
does not match the step price, or incomplete campaign notes), BillStack
records no sale, grants no access and acknowledges the webhook so Razorpay
does not keep retrying. Each such payment is saved once in the
project_lifetime_campaign_payment_rejections table with its team, project,
campaign, step, payment id, payment link id, amount, currency and reason
code, and one razorpay_campaign_payment_rejected error line is logged
(search for that token in your logs). Replays of the same payment never add a
second row or a second alert.
BillStack does not refund automatically. To handle a rejected payment:
- Find it: look for the log token, or query
SELECT * FROM project_lifetime_campaign_payment_rejections WHERE resolved_at IS NULL ORDER BY created_at. - In the Razorpay dashboard, open the payment by its
provider_payment_idand issue a full refund. - Tell the customer, then set
resolved_atandresolution_noteson the row (for examplerefunded rfnd_123) so it drops out of the open list.
Links created before this behavior shipped have no expiry and are still honored.
Refunding a Razorpay lifetime purchase
BillStack cannot refund a Razorpay payment for you, and revoking never issues one. To refund a customer who bought a lifetime tier through Razorpay:
- In the Razorpay dashboard, open the payment and issue a full refund.
- In BillStack, revoke the customer's lifetime entitlement (the revoke
action on the customer, or the
revokeAPI for that lifetime entitlement). The response hasrefund: null.
Revoking removes the customer's access: the entitlement endpoint reports
isEntitled: false straight away. If the customer still holds another active
lifetime entitlement for the same tier, they keep access until that one is
revoked too. For Stripe purchases the same revoke action also issues the
Stripe refund.
Sold-out fallback
Configure afterSoldOutPriceId when creating or editing a campaign to give
customers somewhere to go once every step sells out (or the campaign's
availableUntil window closes) instead of a dead end. The fallback is never
sold before availableFrom. It must reference a
standard price in the same project. A recurring fallback starts a subscription;
a one-time fallback grants lifetime access without increasing the campaign's
step-sale count. A fallback cannot reference another campaign step or a
legacy lifetime price.
Authenticated one-time fallback checkout runs the same ownership check as step
checkout: a customer who already owns the tier (from a step or an earlier
fallback purchase) gets the already-owned response (checkoutState: "paid"
with their lifetimeEntitlement) and no new Checkout Session is created.
For anonymous Stripe checkout, BillStack provisions a campaign-specific link for a one-time fallback. A recurring fallback uses that price's existing configured Payment Link. Configure that recurring link before launching the campaign.
See also Public Pricing and Payment Links
for the underlying anonymous-checkout endpoints, and TypeScript SDK
for the typed lifetimeCampaign field on tiers.listPublic().