Skip to main content

Update Contact (Deprecated)

PUT 

https://api.cleverhub.co/api/v2/contact/update_info

deprecated

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

Body

    emailstringrequired

    The contact's email used for verification.

    first_namestring

    Contact's first name.

    last_namestring

    Contact's last name.

    typestring

    The type of the contact (e.g., individual or organization).

    Possible values: [individual, organization]

    Example: individual
    dobstring

    Contact's date of birth, format 'yyyy-mm-dd'.

    reg_nostring

    Contact registration number, required if type is organization.

    phonestring

    Contact's phone number.

    Example: +1234567890
    genderstring

    Contact's gender

    Possible values: [male, female]

    streetstring

    The primary name of an address's street for the contact.

    citystring

    Name of an address's city or town for the contact.

    postal_codestring

    The contact's address's postcode.

    statestring

    The contact's address's state / province / county.

    countrystring

    ISO 3166-1 alpha-2 country code of the contact's country.

Responses

Contact updated successfully

Schema
    statusstring

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
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());
Request Collapse all
Base URL
https://api.cleverhub.co/api
Auth
Body
{
  "email": "test@helloclever.co",
  "first_name": "Luyx",
  "last_name": "Tran",
  "type": "individual",
  "dob": "1991-12-24",
  "reg_no": "123456789",
  "phone": "+6123224242",
  "gender": "male",
  "street": "338 George Street",
  "city": "Sydney",
  "postal_code": "2000",
  "state": "New South Wales",
  "country": "AU"
}
ResponseClear

Click the Send API Request button above and see the response here!