This method let you edit the client with the given id.
You call this method with the following URL:
Parameters are the data you will pass with the call.
Your secret identifier. You find your API Token under Account Overview in the Account section.
The ID of the client.
The client's name.
Rules: Can only include numeric characters.
The client's email.
Rules: The email must be in a valid email format.
The client's company.
Rules: If this parameter is not specified it will use the client's name as a company.
The client's address line 1.
The client's address line 2.
The client's city.
The client's zip code.
The client's state.
The client's country.
Rules: Must be set to a supported country. Please see the list of supported countries.
If this parameter is set the result sent back will be the edited client in XML data rather than the success message.
Rules: If parameter is used it must be set to "true". Otherwise it will be ignored.
This is the result that will be passed back to you when you have sent a call.
Success: Client edited.
The client was successfully edited.
If you have set the get parameter to "true" you will rather get the edited client in XML sent back to you. Like this:
<?xml version="1.0" encoding="utf-8"?> <method request="client.get"> <client> <id>204607</id> <name>Sample Contact</name> <email>firstname.lastname@example.org</email> <company>Sample Company, Inc.</company> <address_line_01>35181 Invoice Street</address_line_01> <address_line_02>Sample Company</address_line_02> <city>Invoice City</city> <zip_code>44323</zip_code> <state>CA</state> <country>United States</country> <tax_id></tax_id> </client> </method>
Error: No data passed.
No data was passed to the method.
Error: API Token is invalid.
The API Token parameter is missing or is incorrectly entered.
Error: ID is invalid.
The ID parameter is missing or is incorrectly entered.
Error: Name is invalid.
The Name parameteris incorrectly entered.
Error: Email is invalid.
The Email parameter is incorrectly entered.
Error: Country is invalid.
The Country parameter is incorrectly entered.
The example below is strictly a demonstration of the method and it's parameters. Methods should never be posted from a HTML form. They should be posted directly from your server script.
<form action="http://machine_id.invoicemachine.com/api/client.edit" method="post"> <input type="hidden" name="api_token" value="c86cea54c71sbb05a5f8297bed641944"> <input type="hidden" name="id" value="204607"> <input type="hidden" name="zip_code" value="44323"> </form>
We're a small company located in the deep spruce forest of Sweden. We build useful web applications with focus on usability and user interface.
Copyright The Invoice Machine 2007-2017. All Rights Reserved.
The Invoice Machine is a service of Bombia AB (Inc).
"I've just signed up for The Invoice Machine and just had to tell you I'm absolutely blown away. In fact, I feel quite giddy after using it, I'm so impressed! Fast, slick, easy and intuitive."Read what our customers are saying