updateCustomer

Purpose:

This method used to update the customer information.

Request URL:

https://api.apptivo.com/app/dao/v6/customers?a=update&customerData={CUSTOMER_DATA_VALUES}&attributeNames=[CUSTOMER_DATA_NAME]&objectId=4&customerId=CUSTOMER_ID&isEmailAddressUpdate=EMAIL_UPDATE&apiKey=API_KEY&accesKey=ACCESS_KEY

Request Parameters:

Parameter Data Type Description
CUSTOMER_ID Customer ID
CUSTOMER_DATA_VALUES Updated field value
CUSTOMER_DATA_NAME Updated field name
EMAIL_UPDATE If Email updated, it should be true or false by default, it is false
SESSION_KEY Apptivo session key from username and password

* – Mandatory parameters

Output:

This will return the details of updated customer data with JSON format.

Sample Request URL:

https://www.apptivo.com/app/dao/v6/customers?a=update
&customerData={"customAttributes":[],"customerId":1090590,"customerName":"TestCustomer updated","customerNumber":"9","customerCategory":"","customerCategoryId":null,"statusName":"Active","statusId":10000,"defaultBillingCurrency":"INR","assigneeObjectRefName":"Db2Es s","assigneeObjectRefId":77021,"assigneeObjectId":8,"description":"","phoneNumber":"","contactEmail":"","skypeName":"","parentCustomerName":"","parentCustomerId":null,"employeeRange":"","employeeRangeId":null,"website":"","tickerSymbol":"","annualRevenue":null,"annualRevenueCurrencyCode":"INR","campaignName":"","campaignId":null,"creditRating":"","marketName":"","marketId":null,"segmentName":"","segmentId":null,"industryName":"","industryId":null,"paymentTerm":"Net 30","paymentTermId":98763,"ownership":"","slaName":"","slaId":null,"isUnsubscribed":"N","removeLabels":[],"accounts":[],"territories":[],"isBounced":"N","bouncedReason":null,"isResponded":"N","followUpDate":null,"followUpDescription":null,"createdByName":"Db2Es s","lastUpdatedByName":"Db2Es s","creationDate":"2017-10-07 05:30:02","lastUpdateDate":"2017-10-07 05:30:02","isExistingCustomer":"Y","isAffiliate":"Y","faceBookURL":"","twitterURL":"","linkedInURL":"","createdBy":76130,"lastUpdatedBy":null,"labels":[],"phoneNumbers":[],"removePhoneNumbers":[],"emailAddresses":[{"emailAddress":"customer@apptivo.com","emailTypeCode":"BUSINESS","emailType":"Business","id":"cont_email_input"}],"addresses":[{"id":"address_section_attr_id_c1702415-3d39-4d8b-a8c7-27b9f511b719","addressId":12937411,"accountAddressId":987136,"addressAttributeId":"address_section_attr_id","addressType":"Billing Address","addressTypeCode":"1","addressLine1":"","addressLine2":"","city":"","state":"","stateCode":"","countryId":70,"countryName":"India","countryCode":"IN","zipCode":"","addressGroupName":"Address1","isAdded":false}],"affiliateLogoId":null}
&customerId=1090590
&attributeName=["customerName","emailAddresses"]
&isEmailAddressUpdate=true