Solved

Different app_user_id in the same original_transaction_id.

  • 7 August 2021
  • 1 reply
  • 250 views

Badge +4

Hello.


I was testing this service using 3 my app user account.

Then I have received 8 messages as 1 order below.

There are 3 app_user_ids in the messages.

But the original_transaction_ids are same.

 

Why the app_user_id would be different?

Are the messages correct?
 

no,created_at,log,
1,2021-08-06 11:54:59,"{""event_timestamp_ms"": 1628250897569, ""product_id"": ""*.month6a"", ""period_type"": ""NORMAL"", ""purchased_at_ms"": 1628250893513, ""expiration_at_ms"": 1628251907634, ""environment"": ""SANDBOX"", ""entitlement_id"": null, ""entitlement_ids"": [""Subscriptions""], ""presented_offering_id"": null, ""transaction_id"": ""GPA.****-****-****-54738"", ""original_transaction_id"": ""GPA.****-****-****-54738"", ""is_family_share"": false, ""app_user_id"": ""056b***"", ""aliases"": [""056b***""], ""original_app_user_id"": ""056b***"", ""currency"": ""JPY"", ""price"": 152.901, ""price_in_purchased_currency"": 16800.0, ""subscriber_attributes"": {}, ""store"": ""PLAY_STORE"", ""takehome_percentage"": 0.85, ""type"": ""INITIAL_PURCHASE"", ""id"": ""03F84A2D-97CC-47D4-93EB-************"", ""app_id"": ""app***""}",
2,2021-08-06 12:09:59,"{""event_timestamp_ms"": 1628251797253, ""product_id"": ""*.month6a"", ""period_type"": ""NORMAL"", ""purchased_at_ms"": 1628251907634, ""expiration_at_ms"": 1628252807634, ""environment"": ""SANDBOX"", ""entitlement_id"": null, ""entitlement_ids"": [""Subscriptions""], ""presented_offering_id"": null, ""transaction_id"": ""GPA.****-****-****-54738..0"", ""original_transaction_id"": ""****-****-****-54738"", ""is_family_share"": false, ""app_user_id"": ""48d6***"", ""aliases"": [""48d6***""], ""original_app_user_id"": ""48d6***"", ""currency"": ""JPY"", ""is_trial_conversion"": false, ""price"": 152.901, ""price_in_purchased_currency"": 16800.0, ""subscriber_attributes"": {}, ""store"": ""PLAY_STORE"", ""takehome_percentage"": 0.85, ""type"": ""RENEWAL"", ""id"": ""1334F38C-B695-4B51-B917-************"", ""app_id"": ""app***""}",
3,2021-08-06 12:24:57,"{""event_timestamp_ms"": 1628252694897, ""product_id"": ""*.month6a"", ""period_type"": ""NORMAL"", ""purchased_at_ms"": 1628252807634, ""expiration_at_ms"": 1628253707634, ""environment"": ""SANDBOX"", ""entitlement_id"": null, ""entitlement_ids"": [""Subscriptions""], ""presented_offering_id"": null, ""transaction_id"": ""GPA.****-****-****-54738..1"", ""original_transaction_id"": ""****-****-****-54738"", ""is_family_share"": false, ""app_user_id"": ""48d6***"", ""aliases"": [""48d6***""], ""original_app_user_id"": ""48d6***"", ""currency"": ""JPY"", ""is_trial_conversion"": false, ""price"": 152.901, ""price_in_purchased_currency"": 16800.0, ""subscriber_attributes"": {}, ""store"": ""PLAY_STORE"", ""takehome_percentage"": 0.85, ""type"": ""RENEWAL"", ""id"": ""20AC0714-89DE-4C97-83CF-************"", ""app_id"": ""app***""}",
4,2021-08-06 12:40:00,"{""event_timestamp_ms"": 1628253597441, ""product_id"": ""*.month6a"", ""period_type"": ""NORMAL"", ""purchased_at_ms"": 1628253707634, ""expiration_at_ms"": 1628254607634, ""environment"": ""SANDBOX"", ""entitlement_id"": null, ""entitlement_ids"": [""Subscriptions""], ""presented_offering_id"": null, ""transaction_id"": ""GPA.****-****-****-54738..2"", ""original_transaction_id"": ""****-****-****-54738"", ""is_family_share"": false, ""app_user_id"": ""48d6***"", ""aliases"": [""48d6***""], ""original_app_user_id"": ""48d6***"", ""currency"": ""JPY"", ""is_trial_conversion"": false, ""price"": 152.901, ""price_in_purchased_currency"": 16800.0, ""subscriber_attributes"": {}, ""store"": ""PLAY_STORE"", ""takehome_percentage"": 0.85, ""type"": ""RENEWAL"", ""id"": ""BEA26D89-1012-4DC2-8ACD-************"", ""app_id"": ""app***""}",
5,2021-08-06 12:54:58,"{""event_timestamp_ms"": 1628254496784, ""product_id"": ""*.month6a"", ""period_type"": ""NORMAL"", ""purchased_at_ms"": 1628254607634, ""expiration_at_ms"": 1628255507634, ""environment"": ""SANDBOX"", ""entitlement_id"": null, ""entitlement_ids"": [""Subscriptions""], ""presented_offering_id"": null, ""transaction_id"": ""GPA.****-****-****-54738..3"", ""original_transaction_id"": ""****-****-****-54738"", ""is_family_share"": false, ""app_user_id"": ""48d6***"", ""aliases"": [""48d6""], ""original_app_user_id"": ""48d6***"", ""currency"": ""JPY"", ""is_trial_conversion"": false, ""price"": 152.901, ""price_in_purchased_currency"": 16800.0, ""subscriber_attributes"": {}, ""store"": ""PLAY_STORE"", ""takehome_percentage"": 0.85, ""type"": ""RENEWAL"", ""id"": ""0759CDD1-1BB5-49D8-95C3-************"", ""app_id"": ""app***""}",
6,2021-08-06 13:09:57,"{""event_timestamp_ms"": 1628255395930, ""product_id"": ""*.month6a"", ""period_type"": ""NORMAL"", ""purchased_at_ms"": 1628255507634, ""expiration_at_ms"": 1628256407634, ""environment"": ""SANDBOX"", ""entitlement_id"": null, ""entitlement_ids"": [""Subscriptions""], ""presented_offering_id"": null, ""transaction_id"": ""GPA.****-****-****-54738..4"", ""original_transaction_id"": ""****-****-****-54738"", ""is_family_share"": false, ""app_user_id"": ""056b***"", ""aliases"": [""056b***""], ""original_app_user_id"": ""056b***"", ""currency"": ""JPY"", ""is_trial_conversion"": false, ""price"": 152.901, ""price_in_purchased_currency"": 16800.0, ""subscriber_attributes"": {}, ""store"": ""PLAY_STORE"", ""takehome_percentage"": 0.85, ""type"": ""RENEWAL"", ""id"": ""103CCB2C-11FB-4CC7-AFC2-************"", ""app_id"": ""app***""}",
7,2021-08-06 13:24:57,"{""event_timestamp_ms"": 1628256295395, ""product_id"": ""*.month6a"", ""period_type"": ""NORMAL"", ""purchased_at_ms"": 1628256407634, ""expiration_at_ms"": 1628257307634, ""environment"": ""SANDBOX"", ""entitlement_id"": null, ""entitlement_ids"": [""Subscriptions""], ""presented_offering_id"": null, ""transaction_id"": ""GPA.****-****-****-54738..5"", ""original_transaction_id"": ""****-****-****-54738"", ""is_family_share"": false, ""app_user_id"": ""056b***"", ""aliases"": [""056b***""], ""original_app_user_id"": ""056b***"", ""currency"": ""JPY"", ""is_trial_conversion"": false, ""price"": 152.901, ""price_in_purchased_currency"": 16800.0, ""subscriber_attributes"": {}, ""store"": ""PLAY_STORE"", ""takehome_percentage"": 0.85, ""type"": ""RENEWAL"", ""id"": ""6FD3005E-4F64-4368-9197-************"", ""app_id"": ""app***""}",
8,2021-08-06 13:39:54,"{""event_timestamp_ms"": 1628257193087, ""product_id"": ""*.month6a"", ""period_type"": ""NORMAL"", ""purchased_at_ms"": 1628256407634, ""expiration_at_ms"": 1628257191467, ""environment"": ""SANDBOX"", ""entitlement_id"": null, ""entitlement_ids"": [""Subscriptions""], ""presented_offering_id"": null, ""transaction_id"": ""GPA.****-****-****-54738..5"", ""original_transaction_id"": ""****-****-****-54738"", ""is_family_share"": false, ""app_user_id"": ""2df7***"", ""aliases"": [""2df7***""], ""original_app_user_id"": ""2df7***"", ""cancel_reason"": ""BILLING_ERROR"", ""currency"": ""JPY"", ""price"": 0.0, ""price_in_purchased_currency"": 0.0, ""subscriber_attributes"": {}, ""store"": ""PLAY_STORE"", ""takehome_percentage"": 0.85, ""type"": ""CANCELLATION"", ""id"": ""61D899A5-0877-4362-98BA-************"", ""app_id"": ""app***""}",





 

icon

Best answer by ryan 9 August 2021, 18:49

View original

1 reply

Userlevel 5
Badge +9

Hey @T3Sports!

 

The app_user_id in the webhooks will be the last seen alias for the customer. If you’ve logged in with different App User Ids in your app, the webhooks could be coming through with different app_user_ids even though the underlying Play Store account hasn’t changed so the original transaction ID would be consistent.

You can read more about this behavior in the Identifying Users guide: https://docs.revenuecat.com/docs/user-ids

And the Restoring Purchases guide: https://docs.revenuecat.com/docs/restoring-purchases

Reply