Long Description
Update a client's name or primary address, phone number, or email address.
Parameters
Name | Description | Type | Presence | Location | Limitations |
---|---|---|---|---|---|
client_id | ID of the Client to update | Integer | Required | URI | |
name | Name of the client | String | Optional | Body | Must include a space. “Prince Fielder” is valid. “Prince” is not. |
company_id | ID of a company to which you want to assign this Client | Integer | Optional | Body | |
primary_billing_address_id | ID of an address belonging to the client to be labeled as the primary billing address | Integer | Optional | Body | |
primary_shipping_address_id | ID of an address belonging to the client to be labeled as the primary shipping address | Integer | Optional | Body | |
primary_email_address_id | ID of an email address belonging to the client to be labeled as the primary email address | Integer | Optional | Body | |
primary_phone_number_id | ID of a phone number belonging to the client to be labeled as the primary phone number | Integer | Optional | Body | |
primary_credit_credit_id | ID of a /wiki/spaces/API/pages/4129298 belonging to the client to be labeled as the primary credit card | Integer | Optional | Body | |
commission_junction_sid | Alphanumeric SID from the Commission Junction network | String | Optional | Body |
Examples
Request | Response |
---|---|
/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" } } |