Update one subscriber who is already a member of a mailing list. Set their email address, confirmation status and optional custom fields. You can also specify whether they will receive HTML or text-based mailings.


PLEASE NOTE: THIS METHOD CAN BE USED TO UPDATE AN EXISTING CONTACT'S EMAIL ADDRESS BUT WILL NOT MODIFY THE SUBSCRIBER ID.


Note:  This API call can also be found under the requesttype of "Lists". 

JSON example


{
  "username": "john.doe@xxxxx.com",
  "usertoken": "abc123abc123abc123abc123abc123",
  "requesttype": "Lists",
  "requestmethod": "UpdateSubscriber",
  "details": {
    "email": "{*email_address*}", /* required */
    "list": "{*list_id*}", /* required */
    "newemail": "{*new_email_address*}",
    "mobilephone": "{*mobile_phone*}",
    "tag": ["{*tag_id or tag_name*}", "{*tag_id or tag_name*}"],
    "format": "{*email_format*}",
    "ipaddress": "{*ip_address*}",
    "confirmed": "{*confirmed_boolean*}",
    "timezone": "{*timezone*}",
    "customfield": [
      {
        "fieldid": "{*custom_field_id*}",
        "value": "{*custom_field_value*}"
      },
      {
        "fieldid": "{*custom_field_id*}",
        "value": "{*custom_field_value*}"
      }
    ],
    "send_newsletter": "{*newsletter_id or newsletter_name*}",
    "return_data": "{*return_data_boolean*}",
    "include_membership": "{*include_membership_boolean*}"
  }
}


"json_request" element


Field NameDescription
usernameUsername used to login to Pinpointe
usertokenUnique token for this Pinpointe account
requesttypeSubscribers
requestmethodUpdateSubscriber


Please note: ALL OPTIONAL tags that are not used should be deleted from submitted call. For example, if no IP address will be supplied as part of the call, <ipaddress></ipaddress> should be deleted. 


"details" element


Field NameDescription
email
(Required)
Email address of contact to be updated
list
(Required)
List id of list contact belongs to.
newemail
(Optional)
New email to use for subscriber
mobilephone
(optional)
Mobile phone number of contact. Required for SMS messaging through Pinpointe. 
tag
(Optional)
tag is or tag name subscriber is to be added to. Can specify more than one.
format
(Optional)
Use html to send user HTML emails or text for plain-text
ipaddress
(Optional)
new IP address of subscriber
confirmed (Optional)Use true, 1 or yes to mark an unconfirmed contact as "confirmed". Setting the value to false, 0 or no, or simply deleting the tag before submitting the call will not change an unconfirmed status. User may NOT change a confirmed contact to unconfirmed status.
timezone
(optional)
Will accept US / Canadian time zones as local-specified (e.g. America/Los_Angeles) OR any of the US or Canadian short codes: EST, EDT, CST, CDT, MST, MDT, PST, PDT, etc. OR an offset from GMT/UTC. 


"customfield" Note: Can use more than one set of "customfield" element. OPTIONAL

"item" element - add values for a subscriber's custom fields. Use one item element per field.


Field NameDescription
fieldidID of custom field to be added or updated
valueValue of this custom field


"send-newsletter" element


send_newsletter
(optional)
User can send subscriber a newsletter by inserting the specific newsletter ID or exact name.



"return_data" and "include_membership" elements


return_data
Setting this element's value to true, 1 or yes results in the API call returning an expanded body of subscriber data required by some applications.
include_membership
PieSync requirement: Setting this element's value to true, 1 or yes results in the API call adding a list of all tags that a subscriber is in as part of the returned information for that subscriber.


Successful Response:


"response" element


Field NameDescription
statusWill return SUCCESS if user was successfully updated
dataContact ID number



Unsuccessful Response:


"response" element


Field NameDescription
statusWill return FAILED if unsuccessful
errormessageText explaining why request failed