Skip to main content

Account uid changes

Scenarios

Use updates stream to track uid changes

change type

Change typeDescription
deletewhen an account is deleted.
mergewhen tow accounts merged .
movewhen an account's uid is renamed.

changes details format

progression

{
"type": "merge",
"UID": "123",
"details": [
{
"op": "replace",
"path": "/accountType",
"value": "full"
},
{
"op": "replace",
"path": "/uid",
"value": "456",
"oldValue": "123"
}
]
}
{
"type": "merge",
"UID": "1235",
"details": [
{
"op": "replace",
"path": "/uid",
"value": "4567",
"oldValue": "1235"
}
]
}

set-uid


{
"type": "move",
"UID": "780",
"details": [
{
"op": "replace",
"path": "/uid",
"value": "9999",
"oldValue": "780"
}
]
}

Use webhooks to track uid changes

notification type

Event typeDescription
accountMergedwhen tow accounts merged .
accountUidChangedwhen an account's uid is renamed.
accountProgressedwhen a lite account registering the syste,.

notification format

{
"type": "accountMerged",
"id": "549f3f9b-XXX-XXX-XXX-XXX",
"timestamp": 1587917548,
"callId": "0fc9XXX",
"version": "2.0",
"apiKey": "4_PBxxxZ-Q",
"data": {
"accountType": "full",
"uid": "33cxxx797",
"newUid": "45dyyy678"
}
}
{
"type": "accountUidChanged",
"id": "549f3f9b-XXX-XXX-XXX-XXX",
"timestamp": 1587917548,
"callId": "0fc9XXX",
"version": "2.0",
"apiKey": "4_PBxxxZ-Q",
"data": {
"accountType": "full",
"uid": "33cxxx797",
"newUid": "45dyyy678"
}
}