Question

Unique Id for a transaction from Google and App Store is not returned in response .

  • 11 October 2021
  • 1 reply
  • 19 views

Badge

Hey guys,

We are trying to get the original_transaction_id and transaciton_id after the purchase. However, we are not receiving those information. We want those information to save in our logs once the purchase is done. Also, we want to use those information for our report. 

Here is what we receive after the purchase. Where there is no transaction_id or original_transaction_id. Can you please suggest how we can get those values after purchase?

{
    "productIdentifier": "1q_4.99_1m",
    "purchaserInfo": {
        "activeSubscriptions": [
            "1q_6.99_1m"
        ],
        "allExpirationDates": {
            "1q_2.99_1m": "2021-10-08T13:55:03Z",
            "1q_49.99_1y": "2021-10-08T13:29:45Z",
            "1q_6.99_1m": "2021-10-09T10:44:02Z",
            "1q_69.99_1y": "2021-10-08T13:40:03Z"
        },
        "allExpirationDatesMillis": {
            "1q_2.99_1m": 1633701303000,
            "1q_49.99_1y": 1633699785000,
            "1q_6.99_1m": 1633776242000,
            "1q_69.99_1y": 1633700403000
        },
        "allPurchaseDates": {
            "1q_2.99_1m": "2021-10-08T13:50:03Z",
            "1q_49.99_1y": "2021-10-08T12:29:45Z",
            "1q_6.99_1m": "2021-10-09T10:39:02Z",
            "1q_69.99_1y": "2021-10-08T12:40:03Z"
        },
        "allPurchaseDatesMillis": {
            "1q_2.99_1m": 1633701003000,
            "1q_49.99_1y": 1633696185000,
            "1q_6.99_1m": 1633775942000,
            "1q_69.99_1y": 1633696803000
        },
        "allPurchasedProductIdentifiers": [
            "1q_2.99_1m",
            "1q_6.99_1m",
            "1q_69.99_1y",
            "1q_49.99_1y"
        ],
        "entitlements": {
            "active": [Object
            ],
            "all": [Object
            ]
        },
        "firstSeen": "2021-10-08T12:24:36Z",
        "firstSeenMillis": 1633695876000,
        "latestExpirationDate": "2021-10-09T10:44:02Z",
        "latestExpirationDateMillis": 1633776242000,
        "managementURL": "itms-apps://apps.apple.com/account/subscriptions",
        "nonSubscriptionTransactions": [],
        "originalAppUserId": "$RCAnonymousID:61dde1de1e4sdf4766bdsfda1a86b0a2321",
        "originalApplicationVersion": "1.0",
        "originalPurchaseDate": "2013-08-01T07:00:00Z",
        "originalPurchaseDateMillis": 1375340400000,
        "requestDate": "2021-10-09T10:42:10Z",
        "requestDateMillis": 1633776130000
    }
}


1 reply

Userlevel 2
Badge +6

Hey @1Question Dev ,

 

I see it look alike another member of your team posted this question a couple of days ago and I just left a reply there: 

Let me know if you have any additional questions!

Reply