GET https://api.subscriptiongenius.com/2/cdc
Request Parameters
Paramater Description Required Default Data Type
changed_since 2015-10-13T00:54:25+02:00 Yes DateTime
entities customfields, subscriptions, subscribers, addresses, listdownloads, orders Yes String
Response Parameters
Paramater Description Data Type
addresses.address String
addresses.address_id String
addresses.city String
addresses.company String
addresses.country_abbreviation String
addresses.country_name String
addresses.first_name String
addresses.last_name String
addresses.latitude String
addresses.longitude String
addresses.state String
addresses.subscriber_id String
addresses.verified Int
addresses.zip_code String
custom_fields Array
custom_fields.custom_fields.allow_other Int
custom_fields.custom_fields.display_as String
custom_fields.custom_fields.field_id String
custom_fields.custom_fields.name String
custom_fields.custom_fields.text_value
custom_fields.custom_fields.type String
custom_fields.custom_fields.values
custom_fields.subscriber_id String
list_downloads Array
list_downloads.count String
list_downloads.date_created String
list_downloads.grace_from_date
list_downloads.grace_issues String
list_downloads.is_gap String
list_downloads.mailing_list_id String
list_downloads.name String
list_downloads.parent_mailing_list_id
list_downloads.status String
purchases.billing_address_id
purchases.bundle_id String
purchases.invoice_id
purchases.name
purchases.subscriber_id String
subscribers Array
subscribers.delete_date
subscribers.email String
subscribers.first_name String
subscribers.last_name String
subscribers.modified_date
subscribers.password_md5 String
subscribers.renewal_code String
subscribers.source
subscribers.subscriber_id String
subscriptions.audit_classification
subscriptions.audit_request_type
subscriptions.billing_address_id String
subscriptions.copies String
subscriptions.date_created String
subscriptions.date_expired
subscriptions.date_last_renewed
subscriptions.issues String
subscriptions.last_purchase_bundle_id
subscriptions.mailing_address_id String
subscriptions.publication_id String
subscriptions.renew_campaign_active
subscriptions.subscriber_id String
subscriptions.subscription_id String
subscriptions.type String
The change data capture (CDC) operation returns a list of entities that have changed since a specified time. This operation is for an app that periodically polls Data Services and then refreshes its local copy of entity data. The app calls the cdc operation, specifying a list of entity types and a DateTime stamp. Data Services returns all objects specified by entityNameList that have changed since the specified date-time. There is no limit on the number of rows on CDCQuery. As the limit is date-based, data that has been accumulated for more than 5 days cannot be used. The service may fail if you are requesting for data that is older than 5 days.

Example Request
{
  "changed_since":"2015-10-13T00:54:25+02:00",
  "entities":"customfields,subscriptions,subscribers,addresses,purchases,listdownloads"
}
Example Response
{
  "custom_fields":[
    {
      "subscriber_id":"802420",
      "custom_fields":[
        {
          "field_id":"1968",
          "name":"Comp Import Name",
          "display_as":"Comp Import Name",
          "type":"text",
          "allow_other":0,
          "values":null,
          "text_value":null
        },
        {
          "field_id":"1212",
          "name":"Test",
          "display_as":"Test",
          "type":"text",
          "allow_other":0,
          "values":null,
          "text_value":null
        }
      ]
    }
  ],
  "subscriptions":[
    {
      "subscription_id":"1057553",
      "subscriber_id":"1",
      "publication_id":"9",
      "mailing_address_id":"969140",
      "billing_address_id":"969140",
      "issues":"12",
      "copies":"1",
      "type":"Print",
      "date_created":"2013-10-28",
      "date_expired":null,
      "date_last_renewed":null,
      "last_purchase_bundle_id":null,
      "renew_campaign_active":true,
      "audit_classification":null,
      "audit_request_type":null
    }
  ],
  "subscribers":[
    {
      "subscriber_id":"191468",
      "renewal_code":"2FKDH",
      "email":"",
      "password_md5":"",
      "first_name":"Joel",
      "last_name":"Pape",
      "source":null,
      "delete_date":null,
      "modified_date":null
    }
  ],
  "addresses":[
    {
      "address_id":"1",
      "first_name":"Barbara",
      "last_name":"Rowe",
      "address":"6929 CHARLES ST",
      "company":"",
      "city":"OMAHA",
      "state":"NE",
      "zip_code":"68132-1044",
      "subscriber_id":"1",
      "country_name":"United States",
      "country_abbreviation":"USA",
      "latitude":"0",
      "longitude":"0",
      "verified":1
    }
  ],
  "purchases":[
    {
      "purchase_id":"34565",
      "payment_type":"Credit",
      "notes":"Last Four: 4132",
      "subscriber_id":"1",
      "bundle_id":"1",
      "shipping_address_id":null,
      "billing_address_id":null,
      "name":null,
      "invoice_id":null,
      "total":"12.95",
      "product_total":null,
      "is_gift":"0"
    }
  ],
  "list_downloads":[
    {
      "mailing_list_id":"13",
      "name":"OM0111",
      "status":"Complete",
      "count":"6046",
      "is_gap":"0",
      "grace_from_date":null,
      "grace_issues":"0",
      "parent_mailing_list_id":null,
      "date_created":"2010-12-19 19:20:29"
    }
  ]
}