Skip to main content

Case Study

Book a Shipment. Verify Your Email. Pay — a No-Login Guest Flow

8 September 2026

About This Project

Most shipping SaaS platforms are built for merchants — sign up, verify KYC, load a wallet, ship orders. But not every parcel begins on a merchant account. A retail buyer with a parcel to send once, a business without a dedicated logistics team, a customer forwarding a return — none of them want to open an account for a single shipment. ShipShop 2.0 ships a full no-login prepaid guest booking flow alongside its merchant product: a visitor arrives at the rate calculator, picks a courier, verifies their email with a one-time code, pays through the gateway, and gets a signed link that shows them the AWB, the label, the invoice and the live tracking — every time.

Celestial Infosoft built the guest flow as a distinct identity space from the merchant flow — a guest token that no merchant endpoint accepts, a reserved system tenant that owns every guest order, a rate overlay that quotes a guest at a higher price than the same merchant would see, an OTP that stores hashed at rest, and a refund story that never lets a guest be left owed money nobody can see.

The Challenge

A no-login guest checkout is harder than a merchant checkout, not easier. A merchant has an account, a wallet, a KYC, a phone number, a history — a whole identity the platform can trust. A guest has an email address they typed in five minutes ago. The system has to price them, take their money, book their parcel, deliver their documents, handle their refund if the booking fails, and answer their support call — all with an identity that lasts one booking. And it has to do all of that without ever letting a bug in the guest flow reach the merchant surface: a guest quote priced against a merchant's custom rate, a guest OTP that lets someone into a merchant account, a guest refund credited to a random tenant wallet nobody can withdraw from.

The brief was: a guest can book a shipment from the public site with no login. The price they see is the price they pay, and the rate is a guest rate that never undercharges the platform. The email they gave is verified before payment. The payment goes to the gateway and is settled on the confirmed callback with the frozen price, never the client's number. The booking creates a real parcel with a real AWB from the real pool. The label, invoice and tracking are reachable from a signed link that keeps working even if the mail never arrives. And the guest identity space never touches the merchant identity space.

1. A public rate calculator that knows it can book

The rate calculator on the public site quotes every visitor — a merchant returning to compare, or a stranger who found the site through search. When the visitor's pickup pincode is one the platform can serve as a guest (an operational city with real courier-boy coverage), the calculator surfaces a "Book Now — prepaid, no login" action alongside the standard merchant sign-up path. The quoted figure travels as a reference on the booking link, not a price the client can set — the server re-quotes with the guest rate overlay and confirms the two match with a green "unchanged" line, or shows an amber "the rate changed after you calculated it — you will be charged the amount shown here" block. The client cannot name its own price.

2. A guest rate overlay that never undercharges

Guest quotes read from the same rate engine as merchant quotes, but through a rate overlay scoped to a reserved GUEST_TENANT_ID. The overlay's floor is the higher of (a) the merchant's standard sell for the same lane, and (b) the buy + margin floor. A guest rate can only raise the standard sell, never lower it — structurally impossible by the way guest_rate_service.set_cell is written, tested by a regression that fails if the property drifts. When no guest overlay is set (the state the platform starts in, before commercial decisions about pricing are made), a guest is quoted the merchant's standard sell — an honest fallback, not an invented figure.

3. Email OTP as the identity anchor

Before a guest can pay, they verify their email with a one-time code. The code is stored hashed at rest, expires in 10 minutes, is capped at 5 attempts, has a 60-second cooldown per email and 5-per-hour rate limit, and returns identical response shapes whether the email address is a fresh one or a repeat — so nobody can enumerate registered guests. On successful verification the platform mints a guest JWT that no merchant endpoint accepts (a check that runs at token-parse time, not endpoint by endpoint). A merchant access token is refused on the guest flow, and a guest token is refused on the merchant flow, both directions proven at CI.

4. A frozen quote lock

When the guest confirms their booking, the server creates a guest_quote row carrying the courier, the pincodes, the parcel dimensions, the payment mode, the frozen unit prices and the final amount — priced with the guest overlay in one server-side computation. The quote lives for 15 minutes. The payment initiate endpoint reads the frozen amount from the quote, ignores any amount the client tries to name (extra="forbid" on the request schema, so a client attempting to send an amount is refused with a 422 — no silent drop), and hands the gateway that amount. The client cannot cheapen the shipment.

5. Gateway payment with idempotent capture

The payment goes through Easebuzz. A payment session per quote is created on initiate and reused on a repeat initiate — a guest who taps twice does not open two gateway sessions and lose the frozen quote. The successful callback carries the payment id, the amount collected, and a hash the server verifies before committing anything. Every state change is atomic — the quote is marked consumed, the payment is marked paid, the order is created and stamped against the payment, the AWB is claimed from the pool with the correct series eligibility (a Prepaid guest can never draw a COD-only barcode), the booking job is queued, and the guest is emailed a signed receipt link — all inside one transaction, so a crash between any two steps leaves nothing partial.

A guest's booking is retrievable from a signed link — /guest/booking/<token> — that is not authentication, does not require login, and does not require the guest to remember anything. The token carries the order id, expires in 14 days, and resolves ONLY to a guest-tenant order. The page shows the parcel's live tracking status, the AWB when the booking has been dispatched, the label as a signed PDF link, and the invoice as a signed PDF link. Email is a delivery channel, not the primary one — a guest who closes the tab, misses the mail, or lands in spam still reaches their documents from the redirect the payment gateway sends them back on, which carries the same token.

7. The recovery flow — my shipments

A guest who has lost the signed link — the tab is closed, the mail is filtered — can recover it. /my-shipments takes their email address, sends an OTP to verify they own it, and lists every booking against that email with fresh signed links to the label, invoice and tracking of each. No password, no account, no permanent identity — just the same email OTP the original booking was verified against. The reachability of a paid parcel does not depend on the reliability of an email that may never arrive.

8. Refund as an explicit obligation, never silent

Not every guest booking succeeds. Sometimes the courier refuses the article, the pincode turns out to be unserviceable at pickup, or an admin has to cancel a booking mid-flight. In every case the guest is owed a refund, and the platform records that obligation explicitly — guest_payments.refund_status='refund_pending' is stamped, the amount is stored, and the admin dashboard surfaces a "guest refunds silently stranded" tile counting exactly this state. A cancellation of a guest booking never credits a system-tenant wallet nobody can withdraw from (an earlier defect class, closed by an explicit branch on the guest tenant in the admin-cancel path). The refund is recorded, the guest is notified, and the money owed is visible to an admin every day until it is processed.

9. A distinct identity space, proven not just intended

Guest and merchant identities live in different tables (guest_accounts vs users), get different JWT type claims, hit different endpoints, and are enforced by regression tests that run the wrong-token-on-the-wrong-flow case both directions. A merchant access token cannot reach a guest endpoint; a guest token cannot reach a merchant endpoint. And every guest booking's merchant_id is the reserved GUEST_MERCHANT_TENANT_ID — a system tenant with no owner — so accounting, rate quoting, wallet scoping and admin visibility all treat guest orders as guest orders by construction, not by convention.

The Outcome

A visitor to shipshop.in can book a real prepaid parcel without an account. The price they see is the price they pay. Their email is verified. Their payment goes through the gateway. Their AWB is real. Their label prints. Their invoice is compliant. Their tracking is live. Their refund, if it comes to that, is visible on an admin's dashboard as a specific obligation attached to their specific booking. And none of it ever touches the merchant identity space — the guest flow and the merchant flow are two products on one platform, held apart at every layer.

Delivered by Celestial Infosoft.

Have a similar project in mind?

Tell us what you're building and we'll get back to you within one business day.

Get in touch