Documentation: API Methods: Get Customers

Description

This API Method returns details about a customer and their contacts

Authentication

This API method needs token authentication.

URL

 https://{project-name}.azimiosystems.com/api/customers/get

Arguments

api_token (Required)

Your API application token is required. Click here to see how to obtain an API token.

id (Required)

Customer id for which you want details.

Example Response

{

  "response":{"status":"success","code":"200","message":"OK"},

  "customer":{

    "id":"21","id_project":"6","name":"James Dean","code":"","crm_code":"","internal_notes":"","cr":"","modified":"2011-01-20 10:44:33","created":"2011-01-20 10:44:33"},

    "contacts":[     

      {"id":"28","id_project":"6","id_customer":"21","name":"James Dean","type":"","email":"jamesjuniordean123@yahoo.com",

       "address":"123 Sears Avenue, Suite 200","city":"Louisville","county":"Jefferson","country":"USA","telephone":"8674309500","fax":"","modified":"2011-01-20 10:44:33","created":"2011-01-20 10:44:33"}

      {"id":"29","id_project":"6","id_customer":"21","name":"John Doe","type":"","email":"john@yahoo.com",

       "address":"123 Sears Avenue, Suite 200","city":"Louisville","county":"Jefferson","country":"USA","telephone":"8674309500","fax":"","modified":"2011-01-20 10:44:33","created":"2011-01-20 10:44:33"}

 ]}

Error Codes

4041 (Required)

The requested item was not found. The id you provided is not a valid customer id for your project.

 

<< Back to Documentation