Update Contact (Deprecated)
PUThttps://api.cleverhub.co/api/v2/contact/update_info
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
This API allows you to update the information of an existing contact in the system. To do so, you need to provide the contact email
and the updated details of the contact.
Request
- application/json
Body
The contact's email used for verification.
Contact's first name.
Contact's last name.
The type of the contact (e.g., individual or organization).
Possible values: [individual
, organization
]
individual
Contact's date of birth, format 'yyyy-mm-dd'.
Contact registration number, required if type
is organization
.
Contact's phone number.
+1234567890
Contact's gender
Possible values: [male
, female
]
The primary name of an address's street for the contact.
Name of an address's city or town for the contact.
The contact's address's postcode.
The contact's address's state / province / county.
ISO 3166-1 alpha-2 country code of the contact's country.
Responses
- 200
- 400
- 401
- 422
Contact updated successfully
- application/json
- Schema
- Example (auto)
- Example
Schema
{
"status": "string"
}
{
"status": "Ok"
}
Bad Request
Unauthorized
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {
"code": "string",
"message": "string"
}
}
{
"errors": {
"code": "REQUIRE_LOGIN",
"message": "Not Authorised"
}
}
Unprocessable Entity
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {
"message": "string"
}
}
{
"errors": {
"message": "Email can't be blank"
}
}
Authorization: app-id
name: app-idtype: apiKeydescription: The app-id is registered and secured inside Hello Clever system and only required when client has initiated or in the middle of the transaction.in: header
name: secret-keytype: apiKeydescription: The secret-key is our client's secret of the source. Required if a publishable key is used to retrieve the source.in: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://api.cleverhub.co/api/v2/contact/update_info");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("app-id", "<app-id>");
request.Headers.Add("secret-key", "<app-id>");
var content = new StringContent("{\n \"email\": \"test@helloclever.co\",\n \"first_name\": \"Luyx\",\n \"last_name\": \"Tran\",\n \"type\": \"individual\",\n \"dob\": \"1991-12-24\",\n \"reg_no\": \"123456789\",\n \"phone\": \"+6123224242\",\n \"gender\": \"male\",\n \"street\": \"338 George Street\",\n \"city\": \"Sydney\",\n \"postal_code\": \"2000\",\n \"state\": \"New South Wales\",\n \"country\": \"AU\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());