Sold digital keys reappear after database recovery: evidence, quarantine and reopening checks

Restoring an older database can make sold keys appear available again. An unsold flag in a backup is not evidence that a key was never delivered. Stop allocating affected inventory, reconstruct facts using independent payment, allocation and delivery records after the recovery point, then approve safe stock for sale.

Continue by topic

1. Protect paid orders and confirm the service boundary

This applies to owned or authorized digital products; confirm actual eligibility with the team. WeChat Pay, Alipay and UnionPay follow formal configuration. Confirm fees, transaction and daily limits and any additional recovery costs. Merchant USDT settlement after CNY collection uses TRON/TRC20 only, under agreed fees, triggers and timing. Merchant inventory recovery does not cancel settlement or imply automatic recovery of delivery data by the platform.

Owned-wallet monitoring supports TRC20/ERC20 with funds paid directly to the merchant as a separate service. Prepare the formal account, authorized product provenance, encrypted backups, independent logs and recovery owner. Keep payment, key delivery and settlement separate. Missing restored payment rows do not prove non-payment. Never publish keys or merchant secrets, or ask customers for passwords to establish a purchase.

2. Isolate the restored copy and identify evidence gaps

Pause affected imports, allocation and automatic delivery. Preserve trusted durable notification intake or pause new orders under the existing plan; never acknowledge and discard notifications. Retain the incident state and original backup. Restore into isolation, disconnected from production email, claim pages and redemption services. Identify recovery point, incident cutoff, time zone and potentially late payments or delivery jobs.

Match the verified real key identity, not only an inventory row ID. Collect independently retained payment claims, allocation, retrieval and issuer redemption evidence after the recovery point, identifying source and completeness. If these records rolled back with stock, rerunning unique constraints cannot recreate the lost sale facts. Quarantine candidate batches with insufficient evidence; not found is not equivalent to safe for sale.

3. Reconstruct original allocations rather than issuing new keys

Fictional example: backup key C appears available in batch B, but independent evidence assigns it to DEMO-K71. Restore C as unavailable under that original allocation and retain evidence mappings and repair ownership. Do not select another key for the same order. If payment is established but the delivered key is unknown, retain paid-awaiting-review rather than exposing a guessed key.

Continue formal signature, order, amount, currency and success verification. Use durable payment and delivery identities for deduplication. Reconstruct original claims and allocations before replaying unfinished jobs; replaying callbacks first may allocate the old available pool again. If a key reached two buyers, freeze the conflict and follow issuer and after-sales rules. Deleting one row cannot undo delivery. Recovery and replacement are merchant workflows, not newly available payment features.

4. Reopen batches after unresolved-case acceptance

Classify each candidate key into mutually exclusive evidenced-sold, reserved, verified-available, identity-conflict or insufficient-evidence states, preserving total counts. Sale candidates need sufficient recovery coverage and conflict checks. Unredeemed does not mean undelivered. Approve reopening by batch with scope, differences and original evidence; keep uncertain batches quarantined.

Use dummy keys to test post-backup sales, completed retrieval with failed writeback, late payments, duplicate replay, concurrent last-key allocation and missing independent logs. Verify that the original buyer keeps the original allocation, one actual key cannot go to a second order, unresolved cases have owners and paid versus undelivered amounts reconcile. Database recovery documentation describes mechanisms; demonstrate actual coverage, RPO/RTO and reopening conditions in merchant drills rather than promising zero loss.

Frequently asked questions

Why does a unique constraint not prevent resale after recovery?

It constrains records currently present. Restoring a backup can remove later sales facts. Rebuild trusted allocation evidence and quarantine inventory whose safety is unproven.

Can an issuer’s unredeemed status justify resale?

No. The original buyer may possess an unused key. Redemption status does not replace delivery and ownership evidence; follow the product’s verified rules.

References