User id update

This event is triggered when IAPHUB transfers the purchases of a user to a different user id.
It can happen when:

  • A user restore its purchases with a different user id
  • A user replace an active subscription with a different user id

Request body

oldUserId
StringOld user id
newUserId
StringNew user id

Example (default)

{
id:"5e7fdfe22a3cff5084466e74",
type: 'user_id_update',
version: '1.2.0',
createdDate:"2030-10-12T17:34:35.256Z",
oldUserId: '62785074-8f32-42a5-b86b-90dbd79ce212',
newUserId: '42785074-8f32-42a5-b86b-90dbd79ce215'
}

Example with the multiple user ids mode enabled

{
id:"5e7fdfe22a3cff5084466e74",
type: 'user_id_update',
version: '1.2.0',
createdDate:"2030-10-12T17:34:35.256Z",
oldUserIds: ['62785074-8f32-42a5-b86b-90dbd79ce212'],
newUserIds: ['62785074-8f32-42a5-b86b-90dbd79ce212', '42785074-8f32-42a5-b86b-90dbd79ce215']
}