Homepage | Client Area | Contact | Order Now »
WHMCS - The Complete Client Management, Billing & Support System
Article | Discussion | Edit | History Log in / create account

API:Update Client

From WHMCS Documentation

Jump to: navigation, search

This command is used to update the details of a client in your WHMCS system. You just need to send the clientid and the attributes from below that you want to change. You do not need to send them all.

Attributes

firstname
lastname
companyname
email
address1
address2
city
state
postcode
country - two letter ISO country code
phonenumber
password2
credit - credit balance
taxexempt - true to enable
notes
cardtype - visa, mastercard, etc...
cardnum - cc number
expdate - cc expiry date
startdate - cc start date
issuenumber - cc issue number
language - default language
status - active or inactive

Example Command

$postfields["action"] = "updateclient";
$postfields["clientid"] = "1";
$postfields["status"] = "Inactive";

Returned Variables

clientid - the id of the user updated

Main Page
Getting Started
Using WHMCS & Howto's
Customising WHMCS
Modules
API
Contributions

Search
 

What links here
Recent Changes
Privacy Policy
General Disclaimer
Copyright © WHMCS Ltd. 2005-2008. All Rights Reserved. UK Registered Company #6265962. Vat No. GB 927 7746 76