Appearance
Are you an LLM? You can read better optimized documentation at /guide/users/modifications.md for this page in Markdown format
Modification
Users' declarative data evolve as they use your services. It's not uncommon to have to update the user's address or contact information for instance.
For KYC-validated Users, most modifications trigger a new KYC review.
Tip – Attribute updates that don't result in KYC review
address3
, phone
, mobile
, activityOutsideEu
, economicSanctions
, residentCountriesSanctions
, involvedSanctions
, timezone
.
Updating
Endpoint: /v1/users/{userId}
bash
curl -X PUT {baseUrl}/v1/users/{userId} \
--header 'Authorization: Bearer {accessToken}' \
--header 'Content-Type: application/json' \
-d '{payload}'
1
2
3
4
2
3
4
Here is a {payload}
example:
json
{
"address1":"new address",
"address2":"new address continuated",
"postcode":"75001",
"city":"Paris"
}
1
2
3
4
5
6
2
3
4
5
6
Returns the updated User object with the modified fields.
json
{
"users": [
{
"userId": 100147235,
"userTypeId": 1,
"userStatus": "VALIDATED",
"userTag": "user test Treezor",
"parentUserId": 0,
"parentType": "",
"controllingPersonType": 0,
"employeeType": 0,
"specifiedUSPerson": 0,
"title": "MX",
"firstname": "Alex",
"lastname": "Oak",
"middleNames": "",
"birthday": "1982-05-31",
"email": "190john.smith725@test.com",
"address1":"new address",
"address2":"new address continuated",
"postcode":"75001",
"city":"Paris",
// [...] some attributes are hidden
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Treezor also sends a user.update
webhook, and a card.update
webhook if the cardholder's information was modified.
Deletion
For legal reasons, Users cannot be deleted. They are permanently “Canceled” instead.
Prerequisites – To Deactivate a User
- The Balance of all of their Wallets must be
0
- No card transaction authorization can be pending
To cancel a User you can use the following request, and provide an origin
which can either be:
OPERATOR
– When you are at the origin of the deactivation.USER
– When the end user is at the origin of the deactivation.
Endpoint: /v1/users/{userId}
bash
curl -X DELETE '{baseUrl}/v1/users/{userId}' \
--header 'Authorization: Bearer {accessToken}' \
--header 'Content-Type: application/json' \
-d '{payload}'
1
2
3
4
2
3
4
Here is an example of {payload}
:
json
{
"origin": "OPERATOR"
}
1
2
3
2
3
Returns a User object if successful, with the userStatus
set to CANCELED
:
json
{
"users": [
{
"userId": 8327278,
"userTypeId": 1,
"userStatus": "CANCELED",
"userTag": "",
"parentUserId": 0,
"parentType": "",
"controllingPersonType": 0,
"employeeType": 0,
"specifiedUSPerson": 0,
"title": "",
"firstname": "Alex",
"lastname": "Oak",
"middleNames": "",
"birthday": "1982-05-31",
"email": "alex.oak@example.com",
"address1": "33 rosewood road",
"address2": "",
"postcode": "75017",
"city": "Paris",
"state": "",
"country": "FR",
"countryName": "France",
"phone": "+3311111111",
"mobile": "",
"nationality": "FR",
"nationalityOther": "",
"placeOfBirth": "Edgewood",
"birthCountry": "FR",
"occupation": "",
"incomeRange": "",
"legalName": "",
"legalNameEmbossed": "",
"legalRegistrationNumber": "",
"legalTvaNumber": "",
"legalRegistrationDate": "0000-00-00",
"legalForm": "",
"legalShareCapital": 0,
"entityType": null,
"legalSector": "",
"legalAnnualTurnOver": "",
"legalNetIncomeRange": "",
"legalNumberOfEmployeeRange": "",
"effectiveBeneficiary": 0,
"kycLevel": 1,
"kycReview": 0,
"kycReviewComment": "",
"isFreezed": 0,
"isFrozen": null,
"language": "",
"optInMailing": null,
"sepaCreditorIdentifier": "",
"taxNumber": "",
"taxResidence": "",
"position": "",
"personalAssets": "",
"createdDate": "2023-10-23 12:28:00",
"modifiedDate": "0000-00-00 00:00:00",
"walletCount": 0,
"payinCount": 0,
"totalRows": "1",
"activityOutsideEu": null,
"economicSanctions": null,
"residentCountriesSanctions": null,
"involvedSanctions": null,
"address3": null,
"timezone": null,
"occupationType": "",
"isOnStockExchange": 0,
"secondaryAddress1": "",
"secondaryAddress2": "",
"secondaryAddress3": "",
"secondaryPostcode": "",
"secondaryCity": "",
"secondaryState": "",
"secondaryCountry": "",
"clientId": "945198",
"sanctionsQuestionnaireDate": null,
"codeStatus": "110009",
"informationStatus": "",
"legalSectorType": "",
"sourceOfFunds": ""
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Treezor also sends a user.cancel
webhook.
Once deleted, no action can be made on the user. You can re-create the user, using the same email if needed, as the rule for unique emails doesn't apply to canceled user.