CRM Contact API
Retrieve a CRM member via member token as well as Update member password.
GET
CRM Contact by Token
Retrieves a CRM contact as a JSON response from the given token.
/api/v2/frontend/contacts/by-token
Data / Response:
{
"CRMMemberToken": ""
}
{
"Id": 0,
"Email": "string",
"FirstName": "string",
"LastName": "string",
"CrmType": "Contact",
"EmailConfirmed": true,
"Role": "General",
"CreatedDate": "2024-05-22T17:17:45.552Z",
"Address": "string",
"City": "string",
"State": "string",
"ZipCode": "string",
"Country": "string",
"Site": "string",
"Phone": "string",
"Status": "string",
"Notes": "string",
"Type": 0,
"CustomerTypeName": "string",
"IsDataUsingAllowed": true,
"CustomCrmGroups": {
"<GroupAlias1>": {
"<FieldAlias1>": "<value>",
"<FieldAlias2>": false,
"<FieldAlias3>": 0
}
}
}
PUT
CRM Contact Password Update
Updates a CRM contact's password from the current password.
/api/v2/frontend/contacts/update-password
Data / Response:
{
"Password": "string",
"ConfirmPassword": "string",
"OldPassword": "string",
"CRMMemberToken": "string"
}
Status 204
Validation:
-
When UserToken is empty
- Error message: UserToken is required
-
When UserToken is expired
- Error message: UserToken is expired
-
When UserToken is not found in the database
- Error message: UserToken is invalid