We are investigating two different production app receipts collected before and after an in-app purchase flow for the same signed-in user of our iOS app.
Both receipts were validated against https://buy.itunes.apple.com/verifyReceipt. Both responses returned status = 0 and environment = Production, and both have the same bundle_id and app_item_id. However, their transaction histories and app receipt metadata differ substantially.
Observed differences
Receipt A (before the purchase flow):
receipt.in_app is empty.
latest_receipt_info, latest_receipt, and pending_renewal_info are absent.
application_version is 31436; original_application_version is 25069.
Receipt B (after the purchase flow, validated approximately 78 seconds later):
receipt.in_app contains one historical auto-renewable subscription transaction.
latest_receipt_info contains two historical subscription transactions; the later one includes promotional_offer_id and offer_code_ref_name.
application_version is 31323; original_application_version is 18440.
receipt_creation_date is approximately three months earlier than Receipt A's creation date, despite B being collected later in the flow.
receipt.original_purchase_date differs by approximately two years.
download_id and version_external_identifier also differ.
The transactions shown in B predate this purchase flow. These responses alone do not establish that a new purchase completed successfully.
What we know and what remains unconfirmed
The same application user is involved before and after the flow. We have not yet independently confirmed continuity of the underlying Media & Purchases Apple Account. The supplied server logs do not contain the exact StoreKit callbacks or any receipt refresh/restore calls. We do not currently have a focused standalone reproduction project or confirmed device OS/tool versions for this occurrence.
We understand that transaction contents can change as receipts are updated. What we need help understanding is the combination of an empty transaction history changing to historical subscriptions, an older receipt creation date, and different original app purchase metadata during one user's purchase flow.
Questions
Under what circumstances can this combination of changes occur? Could a cached receipt, receipt refresh/restoration, or a change in App Store account context explain it?
Which StoreKit callbacks, receipt acquisition/refresh events, and other diagnostics should we capture to distinguish these possibilities without collecting Apple Account credentials?
What is the recommended way to obtain and validate the applicable subscription history when the initial app receipt contains no in-app transactions?
If Apple needs the original receipt payloads to investigate this occurrence, which private support or Feedback Assistant channel should we use?
Raw receipt data, transaction identifiers, account tokens, download identifiers, and user-specific timestamps have been omitted from this public post. We can provide the original request/response files through an appropriate private Apple support channel.
Any guidance from the StoreKit team would be appreciated.