CustomerUpdate

CustomerUpdate(
	object Customer
)

Update a limited set of Customer Information:

  • Website
  • Primary Location Information
  • Custom Fields

Deprecated

Use CustomerEdit for more control over the data to be modified.

Request

Request Data:

  • The customer object contains all the information.
    • (int) CustomerID (required) – Identify the ID of the Customer to edit.
    • (string) Website (optional)
    • (string) Address (optional) – Primary Location Information
    • (string) City (optional) – Primary Location Information
    • (string) StateProvince (optional) – Primary Location Information
    • (string) Country (optional) – Primary Location Information
    • (string) ZipPostalCode (optional) – Primary Location Information
    • (object) PrimaryContact – these fields can be updated: (optional)
      • (string) FirstName (optional)
      • (string) LastName (optional)
      • (string) Title (optional)
      • (string) Email (optional)
{
    "Key": <string>,
    "Customer": {
        "Address": <string>,
        "City": <string>,
        "Country": <string>,
        "Fields": [
            {
                "Field": <string>,
                "Value": <string>
            }, <more fields>
        ],
        "Name": <string>,
        "PrimaryContact": {
            "Email": <string>,
            "FirstName": <string>,
            "LastName": <string>,
            "Title": <string>
        },
        "StateProvince": <string>,
        "Website": <string>,
        "ZipPostalCode": <string>
    }
}

Response

Same structure as api/Customer

Errors

  • “Customer not found”
%d bloggers like this: