Solved

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

  • 24 February 2023
  • 1 reply
  • 66 views

Badge +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?

icon

Best answer by Yousef 24 February 2023, 23:00

View original

1 reply

Userlevel 3
Badge +7

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?

Reply