A customer hands an old phone across a store counter to trade it in. An agent inspects it, notes a cracked corner, and records a grade. Somewhere behind that counter a set of systems now has to decide what the customer is owed, whether a promotion still applies, and where the device goes next.
Most commerce organisations spend their engineering effort on the moment of purchase. Sowjanya Gajjala has built her career on the moment after, and she thinks the industry has the priority backwards.
"Returns and trade-ins are often more complex than the original purchase," she says. They involve external partners the business does not control, physical inspection and grading that cannot be predicted in advance, and financial outcomes that have to stay accurate whichever channel the customer uses.
Gajjala is a principal engineer at a major U.S. telecommunications carrier's mobile commerce platform, which she joined as a technical lead before it launched. She moved into engineering management, then back to hands-on architecture, and today owns the architecture spanning both forward and reverse logistics: how a device order is fulfilled, and how a trade-in or return is processed, refunded, or routed back into inventory.
The reverse side is where she has done her most distinctive work. Trade-ins, exchanges, upgrades and cancellations were once handled largely case by case, with a person adjudicating each one. She architected the workflows that replaced that with a state machine governing the device from intake to resolution.
The design draws a precise line around what the platform owns. Grading is performed by store agents or third-party logistics partners. Once that result reaches the platform, everything downstream is automated: the refund calculation, any promotional adjustment, and final resolution. Customers receive automatic refunds where they are eligible, and a clear adjusted offer when a device grades lower than expected, instead of waiting on a manual decision.
The financial stakes run in both directions. Manual eligibility calls can err either way, paying out too much or too little. Consistent automated logic, in her words, ensures "the business pays out exactly what it should, no more and no less, on every transaction."
The hardest engineering problem was not the logic. It was the partners.
Her workflows depend on logistics providers, carriers and payment processors sending timely updates back: grading results, shipment tracking, payment confirmation. They do not always arrive. A workflow that waits indefinitely for a callback leaves a customer's refund in limbo, and no single fallback pattern suited every dependency.
So she built different ones. Logistics data is reconciled. Shipment tracking is checked through direct status queries. Payment confirmation is actively polled. The detail that makes it work is what happens when the real callback finally turns up after a fallback has already acted: the system recognises it and cancels the fallback gracefully rather than processing the same outcome twice.
Devices and refunds no longer stall waiting on an unreliable partner, and the team is alerted when a partner's failures become systemic rather than occasional.
"Design for partner failure, not partner success," she says.
It is a principle most commerce teams would endorse and few build for, because the happy path is what gets demonstrated, tested and celebrated. Return flows fail in the gaps between organisations, where no single team is watching.
Her view of where the field goes next is specific. Automating the common case is largely solved. The next advantage belongs to organisations that "figure out how to automate the messy 10-20% of cases that don't fit the standard pattern", the exceptions that have historically needed a person to make a judgement call. Her team has already embedded AI-driven workflow automation into exception handling and edge-case routing on the platform, freeing engineering and operations teams from repetitive case management.
That also explains why she frames the problem in terms of trust rather than cost. A return is rarely a happy moment. The customer is already disappointed, and a stalled refund or an unexplained adjustment compounds it at the worst possible time. Getting this wrong, she says, "directly damages customer trust at exactly the moment a customer is already frustrated."
Her advice to engineering organisations is correspondingly blunt. Reverse logistics and after-sale service are not a lower tier of engineering work. "It's some of the highest-leverage, highest-complexity work in commerce," she says.
The industry has spent a decade making checkout faster. The companies that win the next one may be those that make returns boring.



