Dev.to WebDev 🛠 Dev 👁 0 📖 6 min read

How to Accept Loyalty Points for eSIM Purchases: Mixed-Tender Checkout, Refunds and Partial Redemption

Loyalty programmes have started treating travel data as something members can earn or spend points on. ANA Global eSIM, for example, launched on 10 Nov with miles earned on plan charges. If you run a travel, airline, hot

Loyalty programmes have started treating travel data as something members can earn or spend points on. ANA Global eSIM, for example, launched on 10 Nov with miles earned on plan charges. If you run a travel, airline, hotel or card loyalty product, the next request from your product team is predictable: "let members pay for an eSIM with points."
It sounds like a payment-method toggle. It isn't. An eSIM is a digital good that gets issued (a profile is reserved on an SM-DP+ server and an activation code exists), then downloaded to a device, then used on a network. Points live in a separate ledger with their own reservation and reversal rules. If those two lifecycles aren't stitched together carefully, you end up with members who lost points and got no eSIM, or got an eSIM and kept their points.
This article walks through a checkout design that holds up: split tender, reserve-then-capture, issuing only after capture, refund rules by eSIM state, and reconciliation.

1. Model the order as tenders, not a price

Start by making the order carry a list of tenders rather than a single amount. A typical eSIM basket is small, so members often have enough points for part of it but not all. Supporting points + card from day one avoids a dead end at checkout.
An order record that works well looks like this:

  • order_id: your id, also used as the idempotency key for everything downstream- member_id and loyalty_account_id- package_id, price in currency, and the points-to-currency rate applied at quote time- tenders: a list such as points (amount in points, currency value, ledger reservation id) and card (amount, payment intent id)- quote_expires_at: the moment the rate and package price stop being valid- esim: ICCID, provisioning request id, current lifecycle state- status: quoted, tenders_reserved, captured, issued, failed, refunded (fully or partially)Freeze the points rate on the quote. If the rate changes between quote and capture, re-quote instead of silently charging a different number of points. Members notice. Decide your rounding rule once and write it down. Points are integers; currency has two decimals. A common choice is to round points up against the member and let the card tender absorb the remainder, but whichever you pick, store the exact split so refunds can reverse it precisely. ## 2. Reserve both tenders, then capture, then issue The safest order of operations is:
  • Reserve points in the loyalty ledger (a hold, not a debit). Store the reservation id.- Authorise the card for the remainder. Store the payment intent id.- Capture both. Only when both captures succeed does the order move to captured.- Issue the eSIM: call your provisioning API to create or assign the profile and get the ICCID and activation details.- Deliver: QR code, one-tap install link or in-app install.Why not issue first? Because an issued eSIM is hard to take back cleanly. Depending on the supplier, a released profile may be non-refundable to you, or only refundable while it has never been downloaded. Issuing before payment is settled means you carry the cost of every failed capture. Why reserve instead of debiting points straight away? Because card authorisation fails more often than ledger writes do. If the card step fails, you release the hold and the member's balance never visibly dropped. A debit followed by a credit shows up in their statement as two lines and generates support contacts. If provisioning fails after capture (out of stock for that package, supplier timeout), you need an automatic path: retry with the same idempotency key a bounded number of times, then either offer an equivalent package at the same price or refund both tenders in full. Don't leave the order in captured-but-not-issued for a human to find later. ## 3. Idempotency across three systems A loyalty checkout touches at least three external systems: the points ledger, the card processor and the eSIM provisioning API. Any of them can time out after doing the work. The rule is simple: every outbound call carries a key derived from the order id and the step, for example order_id + ":points-reserve", order_id + ":card-capture", order_id + ":issue". Retries reuse the same key. If a ledger or supplier API doesn't support idempotency keys, store the request before sending it and look the result up by your reference before retrying. Issuing two eSIMs for one order is the expensive failure; double-debiting points is the one members complain about publicly. ## 4. Refund rules depend on the eSIM's state Most refund disputes come from not having agreed, upfront, what each eSIM state means. Define it per state and show it on the checkout page:
  • Issued, never downloaded: usually fully refundable. Release the profile with the supplier if their terms allow, and return both tenders in the original split.- Downloaded, never used on a network: depends on your supplier terms and your policy. Many brands still refund, because the member never received value, but you may not get your own cost back.- Partly used: either no refund, or a pro-rata refund based on data or days remaining. If you do pro-rata, decide which tender gets the money back first.- Expired unused: a goodwill call. Returning points only (not cash) is a common middle ground.For partial refunds on a split tender, pick one rule and keep it consistent. Two reasonable options: refund proportionally to the original split, or refund the card first and points second (or the reverse). Proportional is easiest to explain; card-first reduces chargeback exposure. Either way, the refund is a new ledger entry that references the original reservation id, not an edit of the old one. You can only apply these rules if you know the state. That means consuming the provisioning platform's lifecycle signals (download, install or enable notifications, first network attach, usage) and storing them against the ICCID on the order. Without them, every refund becomes a support conversation. ## 5. Reconciliation with the loyalty ledger Run a daily job that joins three sources by order id: your orders table, the points ledger export and the card processor's settlement report. Flag:
  • Points captured with no issued eSIM after a time threshold- Points reservations still open past the quote expiry (release them)- eSIMs issued with no captured tender- Refunds recorded in one system but not the otherLoyalty teams also need financial reporting: points burned per day, their currency value, and the eSIM cost behind them. Store the rate used on each order, not just the current one, or month-end numbers won't match. ## 6. Support needs the full picture on one screen When an install fails abroad, the member contacts the brand whose points they spent. The agent needs to see the order, the tender breakdown, the ICCID and the current eSIM state together, so they can decide between reissue, top-up or refund without asking engineering. If your eSIM provider has its own support tooling, pass the order id through so the two can be matched. ## Checklist
  • Order stores tenders, frozen rate, quote expiry, ICCID and lifecycle state- Reserve points, authorise card, capture both, then issue- Idempotency key per order and step on every external call- Refund rules defined per eSIM state and shown at checkout- Refunds reference original reservation and payment ids- Daily three-way reconciliation by order id## About One-eSIM Disclosure: I work on One-eSIM, a B2B platform that lets travel, mobility and fintech companies add branded eSIM connectivity through a white-label webshop or an API embed layer, with a management portal, AI support and real-time analytics. If you're putting eSIM inside a loyalty or payment flow, this page covers how that works: https://www.1-esim.com/travel-mobility-fintech. More at 1-esim.com.
📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.