Merge two accounts
merge.merge_accounts(MergeMergeAccountsParams**kwargs) -> MergeMergeAccountsResponse
POST/v1/accounts/merge
Merges two accounts into one. The primary account retains its ID; the duplicate is soft-deleted.
Required scopes: accounts:update + accounts:delete
Rate limit category: Write
Merge two accounts
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
merge_merge_accounts_response = client.merge.merge_accounts(
duplicate_id="duplicateId",
primary_id="primaryId",
)
print(merge_merge_accounts_response.merge){
"merge": {
"id": "id",
"status": "status"
},
"primary": {
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
},
"summary": {
"fieldWriteCount": -9007199254740991,
"syncRepointedCount": -9007199254740991,
"warnings": [
"string"
]
}
}Returns Examples
{
"merge": {
"id": "id",
"status": "status"
},
"primary": {
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
},
"summary": {
"fieldWriteCount": -9007199254740991,
"syncRepointedCount": -9007199254740991,
"warnings": [
"string"
]
}
}