Skip to main content
Answer

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

  • February 24, 2023
  • 1 reply
  • 185 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?

This post has been closed for comments

1 reply

Forum|alt.badge.img+7
  • Dedicated Contributor
  • Answer
  • February 24, 2023

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?