CustomerEdit(
object Customer
)
Edit Customer Information: Name, Website and Custom Fields.
Request
Request Data:
- (object) Customer
- (int) CustomerID (required) – Identify the ID of the Customer to edit.
- (string) Name (unique) – Identify the Customer to Edit by its Name. If CustomerID is set, this will modify the Customer’s Name.
- (string) Website (optional) – Set the Customer Website.
- (array) Fields (optional) – List of custom fields
{ "Customer": { "Address": <string>, "Name": <string>, "Website": <string>, "Fields": [ { "Field": <string>, "Value": <string> }, <more fields> ] } }
Response
Same structure as api/Customer
Errors
- “Customer name or ID must be specified”
- “Customer not found”
- “A customer with that name already exists” – if changing the customer name
- “A customer name is required”