Version 7.8.2

Back | 

GetClient

URL

ovp.piksel.com/services/index.php?
Use "request" param as post variable for submitting json/xml request payload for all POST requests.

Parameters

  • client_id

Request

Request a single client for the current user. Returns the immeditate children of the client as well. Usage: Either specify a client_id here, or a client_token in authentication. This client_id is checked first for validity because the token is pulled from authentication.

Request format

<?xml version="1.0" encoding="utf-8"?>
<get_client>
  <client_id></client_id>
</get_client>

Test Example

<?xml version="1.0" encoding="utf-8"?> <request> <authentication> <user_token></user_token> <client_token></client_token> <app_name></app_name> <app_token></app_token> </authentication> <header> <header_version></header_version> <api_version>4.0</api_version> <no_cache></no_cache> </header> <get_client> <client_id></client_id> </get_client> </request>

Response

Response format

<?xml version="1.0" encoding="utf-8"?>
<get_client_response>
  <[--choice--]>
    <success>
      <code></code>
      <message></message>
      <dtstamp></dtstamp>
    </success>
    <failure>
      <code></code>
      <reason></reason>
      <severity></severity>
      <dtstamp></dtstamp>
    </failure>
  </[--choice--]>
  <client>
    <client_id></client_id>
    <uuid></uuid>
    <company_name></company_name>
    <address>
      <address_one></address_one>
      <address_two></address_two>
      <city></city>
      <state></state>
      <state_abbrev></state_abbrev>
      <zip></zip>
    </address>
    <cp_code></cp_code>
    <work_phone></work_phone>
    <cell_phone></cell_phone>
    <domain></domain>
    <ftp>
      <host></host>
      <user></user>
      <password></password>
      <upload_url></upload_url>
    </ftp>
    <children count="">
      <client></client>
    </children>
  </client>
</get_client_response>