Private billing offers
Redeem a company-specific discount, negotiated price or trial extension with a reviewed, recoverable quote.
A private offer belongs to a specific paying company and one product: its plan, employee seats or managed-company seats. A code for one product does not purchase the other two. An offer package is the exception: one code that groups up to three products. Only the platform administrator creates or revokes offers. The application lets that administrator copy the code; it does not send it automatically.
Benefits and eligibility
| Benefit | Conditions |
|---|---|
discount | A percentage or fixed EUR amount, with once, repeating or forever duration. No implicit stacking with another discount. |
negotiated_price | An agreed net EUR unit price, including zero, no higher than the catalogue price. It lasts forever or for 1–24 billing periods, then returns to the pinned catalogue price. |
trial_extension | 1–90 additional days on an eligible active self-service plan trial, without restarting an expired trial. The cumulative trial cannot exceed 180 days from its reliable initial activation. |
An extra trial can accompany only a permanent plan discount or permanent negotiated plan price. Negotiated prices and standalone trials select one plan and billing interval. Temporary prices disclose the return date, future amount and payment-method requirement before the subsequent charge. Monthly and yearly periods are billing cycles, not interchangeable day counts. Enterprise contract pricing, managed companies acting as a plan customer and sandbox purchases are excluded.
Trial dates use UTC. The application shows the old and new end date and any billing-anchor change. A standalone extension does not force a card. Expired, paid, grace or cancelled plans cannot use it. Revoking a code stops future redemptions while preserving an already acquired benefit and its scheduled price reversion.
Redeem in context
In the application, enter the code in the single code field of Billing: it accepts a plan, employee-seat or managed-company-seat code, and an offer package. Support can also apply an offer directly to a paying account; that action exists only in the application, never in REST or MCP. Billing also shows acquired benefits and operations. The code is private: do not put it in URLs, tickets, logs or shared examples. There is no anonymous registration campaign or automatic invitation flow.
REST and MCP expose employee and managed-company redemptions only. Plan redemptions and offer administration remain application-only. Use employees:write for /v1/companies/{company}/employee-seat-offer-redemptions and companies:write for /v1/companies/{company}/gestoria-seat-offer-redemptions; reads use the corresponding :read scope. Company membership, module access, paying-company ownership and sandbox restrictions are checked again by the product owner.
Preparation sends {code, purchase} and an Idempotency-Key. Employee purchases use employee_individual (create a profile or reactivate an employee UUID), employee_batch (an existing batch_id and its quote_version) or apply_to_existing. Managed-company purchases use gestoria_purchase with create, activate or activate_batch, or apply_to_existing. The other five operations of each owner do not change. The server selects prices, tax and the paying customer; never send remote Stripe identifiers or totals.
Review and confirm
The code's redemption deadline is not the benefit's end date. Without a first billing anchor, a temporary price is accepted for N complete cycles from the first invoice, with benefit_end_basis = first_invoice_pending and benefit_ends_at = null. A repeating discount awaiting application uses discount_application_pending. A known anchor uses accepted_anchor; after verifying application, GET may show the exact UTC end with verified_schedule or verified_discount. This presentation information does not alter the accepted quote or its fingerprint.
When an employee-seat or managed-company-seat offer with a recurring benefit (a repeating or forever discount, or a negotiated price) is redeemed with a purchase that adds seats on a seat subscription that is already active, the benefit starts at the next renewal: benefit_starts_at equals next_bill_at. Today only the new seats of the purchase are charged, prorated at the current conditions, so cash_today_cents carries no benefit while recurring_total_cents already does. The current period is not credited and no customer balance is created. A once discount still applies to today's invoice. On a first purchase without a seat subscription there is no current period, and the benefit applies from the start.
The quote distinguishes the eligible amount, discount, net base, tax, fiscal total, account credit, cash due today and recurring amount. quote_complete must be true before confirmation; unknown values stay null. A zero cash charge is explained by zero_reason: account credit, a full discount, a free negotiated price and an active trial have different consequences. Review warnings, expiry, future prices and trial dates before accepting quote_version.
Each owner exposes six operations: POST on its root to prepare; GET on the root to list; GET /{id} to read; and POST /{id}/quote, POST /{id}/confirm, POST /{id}/cancel. Mutations require separate stable keys for each intent. An identical replay retrieves the existing operation; reusing a key for different input is a conflict. A changed or expired quote must be refreshed and reviewed again.
Apply an offer to what the account has
apply_to_existing applies an employee-seat or managed-company-seat offer to the seats the paying account already has. It creates, activates and reactivates nothing. The body is exactly {"kind": "apply_to_existing"}; any extra key is a 422 and no redemption is created. The employee-seat prepare operation accepts employee_individual, employee_batch and apply_to_existing; the managed-company prepare accepts gestoria_purchase and apply_to_existing.
The quote publishes target_quantity, the seats contracted after the redemption, and minimum_quantity, which is always null in REST and MCP (a minimum comes only from an offer package). Without a minimum the target equals the contracted seats.
- When it applies. If the net of the current period is greater than or equal to zero, the benefit applies immediately and the difference is charged prorated, with the same
cash_today_centsandrecurring_total_centssemantics as the rest of the quote. If it would be negative, the benefit applies from the renewal and nothing is credited:benefit_starts_atequalsnext_bill_at. Without a seat subscription it is created with the target quantity and the benefit applies from its first invoice. Aoncediscount applies to today's invoice, or to the next one if there is none. - Scope of the price. A negotiated price applies to all contracted seats of the product, including those bought later, and that includes the automatic purchase of REST and MCP. For managed-company seats the effective plan of each tax ID does not change.
- Rejections. An existing private price or discount is a 409
customer_offer_discount_conflictwith no charge. With no contracted seats and no minimum there is nothing to apply: 422customer_offer_not_eligiblewithdetails.reason = active_population. Without a paying plan,reason = subscription.
Offer packages
An offer package groups from 1 to 3 lines, one per concept (plan, employee seats and additional tax ID seats), under a single code. Each line carries its own benefit, its duration and, on seat and tax ID lines, its minimum. A package is applied once per account.
REST and MCP do not redeem packages. A package code is redeemed from the application, or by support, with apply_to_existing; in REST and MCP the same code answers 422 customer_offer_not_eligible with details.reason = product. With any other purchase kind in the application it answers reason = purchase_kind.
The package keeps its agreed prices while two conditions hold: the contracted seats of every product that has a line stay at or above that line's minimum, and the subscription keeps being paid. Deactivating employees or tax IDs does not break it; only reducing contracted seats does. A line stops counting when its own benefit ends.
A reduction has no floor, so it is allowed below a minimum, but it costs the whole package. Preview the reduction first: when it would leave a product below a minimum in force, the preview publishes offer_package_loss with all the lines in force of the package. The write then requires accept_offer_package_loss: true; without it the answer is 422 offer_package_loss_unconfirmed with param = accept_offer_package_loss, also when cancelling a pending reduction. Requesting the reduction changes nothing until it takes effect at renewal, and cancelling it beforehand keeps the package.
The package ends as a whole, with every line back at the catalogue price from the next renewal and no credit, in these cases, recorded as the reason:
| Reason | Cause |
|---|---|
reduction_below_minimum | A confirmed reduction that takes effect below a minimum in force. |
subscription_ended_unpaid | The final unpaid state after the retries; never the first failed charge. |
subscription_cancelled | The subscription was cancelled or expired. |
revoked_by_support | Support revoked an applied package. |
duration_elapsed | No line remains in force. |
An ended package is not recovered: its code answers 422 customer_offer_unavailable. The account receives the account.offer_package_ended event, without amounts, at its own endpoints.
Agreed minimum
The minimum of a seat or tax ID line is the number of contracted seats the package agrees to keep. When the package is applied, the contracted seats rise to that minimum with a prorated charge at the agreed price, if they were below it. It does not limit reductions (see offer packages). The seat block of the account exposes it as agreed_minimum (0 without a package) and agreed_minimum_ends_at; read them from the seats guide.
The agreed price applies to every contracted seat, including those bought afterwards, even by the automatic purchase of REST and MCP. A package is redeemed only with apply_to_existing; any other kind answers 422 customer_offer_not_eligible with reason = purchase_kind.
Pending states and errors
A 202 confirmation is pending, not a successful purchase. Read the same operation after reloading, a timeout or card authentication. Follow allowed_actions and an authorized, verified action_url; do not create another redemption. A missing payment method may return 402 with details.payment_setup_url. customer_offer_purchase_failed is a verified final failure; its operation remains readable.
customer_offer_not_eligible explains itself with details.reason and param = purchase:
reason | Meaning |
|---|---|
product | The code belongs to another product, or is a package code used in REST or MCP (formerly 403 customer_offer_forbidden there). |
trial_active | A seat or tax ID redemption during the trial, with any purchase kind (formerly 409 employee_batch_billing_state_conflict for seats and active_population for tax IDs). It is answered when preparing and when refreshing, with no quote and no charge; start paying first. Plan offers keep reason = trial. |
purchase_kind | A package code used with a purchase kind other than apply_to_existing. |
active_population, subscription | Nothing to apply, or no paying plan; see apply to what the account has. |
A code that does not exist, belongs to another company, or is expired, exhausted or revoked stays 422 customer_offer_unavailable, revealing nothing else. The 409 employee_batch_billing_state_conflict with details.reason = offer_requires_chargeable_seats remains only for a redemption with new employees that buys no seat in an account that pays, because they all fit in free seats: it refuses the offer without consuming it, and points to applying the code to what the account already has with apply_to_existing.
An unavailable, expired, exhausted or reserved offer, incompatible plan or interval, existing discount or external schedule, concurrent purchase, changed trial baseline or unknown quote is a controlled rejection. Cancellation may require financial restoration. needs_review or customer_offer_legacy_outcome_unknown requires checking the existing operation before another purchase. Cancelling an operation does not promise that an invoice is instantly refunded. Applied benefits remain subject to the product's normal renewal, cancellation and refund rules.
When product access is lost, the application's minimal Billing receipt permits only reading and an allowed cancellation. It does not expose profiles or allow confirmation, refreshing, card setup or card authentication. REST and MCP continue to respect the global plan/module restriction.
MCP uses prepare_*_seat_offer_redemption, refresh_*_seat_offer_redemption, confirm_*_seat_offer_redemption, cancel_*_seat_offer_redemption, get_*_seat_offer_redemption and list_*_seat_offer_redemptions, replacing * with employee or gestoria. Mutations take idempotency_key.
The existing authenticated application endpoint GET /api/features publishes data.purchase_availability with employee_batches and customer_offers booleans from the server. These rollout switches control new purchase entry points and quote/confirm actions, not company permissions. When off or unknown, the application retains authorized history and cancellation. They are not frontend environment variables or new public API scopes.