Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Current »

NameClients Update
DescriptionUpdate information about a client.
TypePUT
URL/v9/clients/:client_id
Credential TypeAPI|User

Long Description

Update a client's name or primary address, phone number, or email address.

Parameters

Name
Description
Type
Presence
LocationLimitations
client_idID of the Client to updateIntegerRequiredURI
nameName of the clientStringOptionalBodyMust include a space. “Prince Fielder” is valid. “Prince” is not.
company_idID of a company to which you want to assign this ClientIntegerOptionalBody
primary_billing_address_idID of an address belonging to the client to be labeled as the primary billing addressIntegerOptionalBody
primary_shipping_address_idID of an address belonging to the client to be labeled as the primary shipping addressInteger

Optional

Body
primary_email_address_idID of an email address belonging to the client to be labeled as the primary email addressIntegerOptionalBody
primary_phone_number_idID of a phone number belonging to the client to be labeled as the primary phone numberIntegerOptionalBody
primary_credit_credit_idID of a /wiki/spaces/API/pages/4129298 belonging to the client to be labeled as the primary credit cardIntegerOptionalBody


commission_junction_sidAlphanumeric SID from the Commission Junction networkStringOptionalBody


Examples

RequestResponse
/v9/clients/85238
{"name":"Mike Client"}
{
  "primary_credit_card":null,
  "primary_email_address":{
    "address":"joe@client.net",
    "label":null,
    "id":"81960"
  },
  "company":null,
  "phone_numbers":[
    {
      "extension":null,
      "country_code":null,
      "label":null,
      "number":"2015555555",
      "id":"131865"
    }
  ],
  "email_addresses":[
    {
      "address":"joe@client.net",
      "label":null,
      "id":"81960"
    }
  ],
  "url":"/clients/85238",
  "primary_shipping_address":{
    "locality":"Jersey City",
    "postal_code":"07307",
    "country_code":"US",
    "street_address":"333 Washington St Suite 302",
    "label":null,
    "primary":true,
    "latitude":null,
    "extended_address":null,
    "po_box":false,
    "name":null,
    "id":"376786",
    "longitude":null,
    "region":"NJ"
  },
  "balance":"0.0",
  "updated_at":"2013-07-12T20:13:31Z",
  "tags":[

  ],
  "primary_billing_address":{
    "locality":"Jersey City",
    "postal_code":"07307",
    "country_code":"US",
    "street_address":"333 Washington St Suite 302",
    "label":null,
    "primary":true,
    "latitude":null,
    "extended_address":null,
    "po_box":false,
    "name":null,
    "id":"376786",
    "longitude":null,
    "region":"NJ"
  },
  "name":"Mike Client",
  "notes":null,
  "id":"85238",
  "addresses":[
    {
      "locality":"Jersey City",
      "postal_code":"07307",
      "country_code":"US",
      "street_address":"333 Washington St Suite 302",
      "label":null,
      "primary":true,
      "latitude":null,
      "extended_address":null,
      "po_box":false,
      "name":null,
      "id":"376786",
      "longitude":null,
      "region":"NJ"
    }
  ],
  "primary_phone_number":{
    "extension":null,
    "country_code":null,
    "label":null,
    "number":"2015555555",
    "id":"131865"
  }
}
  • No labels