Tip: Using the API to Edit Subscriber Custom Fields

Post array of data screenshot

20101221 1
Our Email Marketing API allows you to interact with the software from another system.
One common integration is modifying subscriber custom fields when editing users in other applications. This keeps the information in sync across both databases.
You’ll need some programming skills to achieve this, and familiarity with your external system. When you’re ready to sync user/subscriber data to your Email Marketing software, just follow these steps:

  1. Call subscriber_view to obtain the subscribers’ information.
  2. Loop through their existing custom fields, and obtain the dataid for each:
    20101220 1
  3. Call subscriber_edit, and include the new custom field values, like this:
    'field[7,5]' => 'value here'

    In this example, 7 is the custom field ID, and 5 is the data ID. You need the data ID to modify custom field values.

Please let us know if you have any questions, problems, or improvements for this.

Never miss an update