Urgent.News

What's breaking now, across thousands of outlets.

Tech

We Built a Trial Feature. A Customer Turned It Into a Referral System.

Yesterday, a customer asked us something we had never heard before: “When someone refers a new customer, can we give them their next month completely free?” Not 20% off. Not $10 in credits. Not a coupon. They wanted something much simpler: Just skip the customer's next payment. My first thought was: Interesting. We might need to build this. Maybe we needed a referral reward API. Maybe a new type…

Yesterday, an innovative customer approached us with an unexpected request: they desired to offer their next month of service completely free whenever they referred a new customer. Initially, our response was cautious, envisioning various possibilities such as a 20% discount, $10 in credits, or a coupon. However, upon reviewing our existing offerings, we discovered that we didn't need to build anything new. Our Subscription API already possessed the necessary primitive – the trialEnd parameter.

Originally designed to allow developers to control the exact end date of a customer's trial, this parameter turned out to be surprisingly versatile. When a customer successfully referred a new user, we could extend their free access by one month by simply updating the trialEnd parameter. This effectively paused their payment during the month, with billing resuming automatically afterwards.

This solution was remarkable in its simplicity. No coupons, temporary discounts, or credit balances were required. The system merely calculated the new free month and updated the trialEnd date. This experience highlighted the importance of building flexible infrastructure rather than trying to anticipate every possible use case.

While it's impossible to foresee every potential application, providing a set of adaptable primitives enables developers to create their own unique solutions, such as offering a free month when referring a new customer. This demonstrates the power of flexible developer infrastructure in enabling innovative business models that weren't initially envisioned.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Integration Digest for September 2026

Articles 🔍 API Features as a First-Class Artifact with OpenAPI Overlays OpenAPI Overlay 1.1 documents model API features as separate, reviewable artifacts: each has metadata, a description, and…

More from Thursday 1 October →