Hook up your own application with The Machine's functionality.

client.getall

This method let you get all clients.

You call this method with the following URL:

Parameters

Parameters are the data you will pass with the call.

api_token

Your secret identifier. You find your API Token under Account Overview in the Account section.

Rules: Required

Return Values

This is the result that will be passed back to you when you have sent a call.

Success
<?xml version="1.0" encoding="utf-8"?>
<method request="client.getall">
    <client>
        <id>204608</id>
        <name>Sample Contact 2</name>
        <email>sample2@invoicemachine.com</email>
        <company>Sample Company 2, Inc.</company>
        <address_line_01>35181 Invoice Street</address_line_01>
        <address_line_02></address_line_02>
        <city>Invoice City</city>
        <zip_code>92329</zip_code>
        <state>CA</state>
        <country>United States</country>
        <tax_id></tax_id>
    </client>
    <client>
        <id>204607</id>
        <name>Sample Contact 1</name>
        <email>sample1@invoicemachine.com</email>
        <company>Sample Company 1, Inc.</company>
        <address_line_01>35181 Invoice Street</address_line_01>
        <address_line_02></address_line_02>
        <city>Invoice City</city>
        <zip_code>92329</zip_code>
        <state>CA</state>
        <country>United States</country>
        <tax_id></tax_id>
    </client>
</method>

Success: No clients where found.

The call was successful but no clients where found.

Error

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.

Example

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.getall" method="post">
    <input type="hidden" name="api_token" value="c86cea54c71sbb05a5f8297bed641944">
</form>