# API: Set client details

# setClientDetails

Set new client details. Send only parameters you wish to change

# Required parameters

Parameter Description
id Client ID

# Optional parameters

Parameter Description
firstname Client firstname
lastname Client lastname
email Client email address
phonenumber Client phone number
type Client type - Private or Company values allowed here
address1 Address line 1
address2 Address line 2
city City
state State
postcode ZIP / Postal code
country Country ISO code - i.e: GB, US etc.
companyname Customer's company name (if any)
variable Custom field variable
status One of valid client status: Active,Closing,Closed,PendingRemoArchived,Lead,Prospect,Lost
language Customer language name
group_id Group ID to assign customer to
currency_id Customer currency id to change to

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=setClientDetails&id=ID

# PHP Samples

# Response

{
    "success": true,
    "client": true,
    "call": "setClientDetails",
    "server_time": 1351872324,
    "info": [
        "Client details updated"
    ]
}
Last Updated: 10/7/2024, 2:36:43 PM