Skip to main content
Solved

Do "transferred_from" and "transferred_to" always have the same number of elements?

  • Feb 24, 2023 8:05 AM UTC
  • 1 reply
  • 563 views

Forum|alt.badge.img+1

The context is TRANSFER webhook event. I assume the two lists always have the same length. So we have a one-to-one transfer map, like transferred_from[k] to transferred_to[k]. Is my assumption correct?

Best answer by Yousef

Not always, these will be arrays of App User ID’s, which can be one or more depending on the amount of aliases that the customer has. It may look like this for example,

"transferred_from": ["$RCAnonymousID:123452686c894a6a91e812725e6f1158"],
"transferred_to": ["$RCAnonymousID:67894ce91fb40d897d57e6fdb884ef3", "304745522234"]

This paragraph may also be helpful for understanding why this is: What is a customer in RevenueCat?

View original
This post has been closed for comments

1 reply

Forum|alt.badge.img+7
  • Dedicated Contributor
  • Answer
  • Feb 24, 2023 10:00 PM UTC

Not always, these will be arrays of App User ID’s, which can be one or more depending on the amount of aliases that the customer has. It may look like this for example,

"transferred_from": ["$RCAnonymousID:123452686c894a6a91e812725e6f1158"],
"transferred_to": ["$RCAnonymousID:67894ce91fb40d897d57e6fdb884ef3", "304745522234"]

This paragraph may also be helpful for understanding why this is: What is a customer in RevenueCat?