List Excluded Customers

GET https://api.chartmogul.com/v1/excluded_customers

Returns a list of the customers on your account's exclude list, newest first.

curl -X GET "https://api.chartmogul.com/v1/excluded_customers?per_page=20&cursor=aabbcc..." \
     -u YOUR_API_KEY:
ChartMogul::ExcludedCustomer.all(
  per_page: 20,
  cursor: "aabbcc...",
)
ChartMogul.ExcludedCustomer.all(config, {
  per_page: 20,
  cursor: "aabbcc...",
});
ChartMogul\ExcludedCustomer::all([
  "per_page" => 20,
  "cursor" => "aabbcc..."
])
api.ListExcludedCustomers(&cm.ListExcludedCustomersParams{
  Cursor: cm.Cursor{PerPage: 20, Cursor: "aabbcc..."},
})
chartmogul.ExcludedCustomer.all(
  config,
  per_page=20,
  cursor="aabbcc...",
)
{
  "entries": [
    {
      "customer_uuid": "cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034",
      "data_source_uuid": "ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
      "external_id": "cus_0001",
      "name": "Adam Smith",
      "email": "[email protected]",
      "excluded_at": "2026-11-20T10:00:00.000Z"
    }
    // ...and more
  ],
  "cursor": "aabbcc...",
  "has_more": true
}
#<ChartMogul::ExcludedCustomers:0x00007f8283502c48
  @entries=[
    #<ChartMogul::ExcludedCustomer:0x00007f82834c9188
      @customer_uuid="cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034",
      @data_source_uuid="ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
      @external_id="cus_0001",
      @name="Adam Smith",
      @email="[email protected]",
      @excluded_at=2026-11-20 10:00:00 UTC>,
    # ...and more
  ],
  @cursor="aabbcc...",
  @has_more=true
>
{
  entries: [
    {
      customer_uuid: "cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034",
      data_source_uuid: "ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
      external_id: "cus_0001",
      name: "Adam Smith",
      email: "[email protected]",
      excluded_at: "2026-11-20T10:00:00.000Z"
    }
    // ...and more
  ],
  cursor: "aabbcc...",
  has_more: true
}
class ChartMogul\Resource\CollectionWithCursor (3) {
  public $has_more => bool(true)
  public $cursor => string(11) "aabbcc..."
  private $elements => array(20) {
    [0] => class ChartMogul\ExcludedCustomer () {
      protected $customer_uuid => string(40) "cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034"
      protected $data_source_uuid => string(39) "ds_fef05d54-47b4-431b-aed2-eb6b9e545430"
      protected $external_id => string(8) "cus_0001"
      protected $name => string(10) "Adam Smith"
      protected $email => string(16) "[email protected]"
      protected $excluded_at => string(24) "2026-11-20T10:00:00.000Z"
    },
    // ...and more
  }
}
(*chartmogul.ExcludedCustomers)(0x14000206900)({
  Entries: ([]*chartmogul.ExcludedCustomer) (len=1 cap=4) {
    (*chartmogul.ExcludedCustomer)(0x17000568000)({
      CustomerUUID: (string) (len=40) "cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034",
      DataSourceUUID: (string) (len=39) "ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
      ExternalID: (string) (len=8) "cus_0001",
      Name: (string) (len=10) "Adam Smith",
      Email: (string) (len=16) "[email protected]",
      ExcludedAt: (string) (len=24) "2026-11-20T10:00:00.000Z"
    }),
    // ...and more
  },
  Pagination: (chartmogul.Pagination) {
    Cursor: (string) (len=11) "aabbcc...",
    HasMore: (bool) true
  }
})
ExcludedCustomers(
  entries=[<ExcludedCustomer{
    customer_uuid="cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034",
    data_source_uuid="ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
    external_id="cus_0001",
    name="Adam Smith",
    email="[email protected]",
    excluded_at=datetime.datetime(2026, 11, 20, 10, 0, tzinfo=datetime.timezone.utc)
    }>,
    # ...and more
  ],
  has_more=True,
  cursor="aabbcc..."
)

Query parameters

cursor string optional
A value that fetches the next page of excluded customers. To fetch the next page, set the cursor to the value received in the previous page response.
per_page int32 optional default: 200
A limit on the number of excluded customers to return per page. The default and maximum value is 200.

Response

In the response, the JSON object contains the following data:

entries
The list of excluded customers, newest first. Each entry is one excluded data source customer, so the same customer_uuid can appear once per data source.
cursor
The reference to the next page of excluded customers.
has_more
Determines whether there are more excluded customers to query after this particular request. Returns true if there are, and false if there aren’t.

Each entry contains the following data:

customer_uuid
The ChartMogul UUID of the customer that was excluded.
data_source_uuid
The UUID of the data source the customer is excluded from.
external_id
The customer's ID in that data source. Imports of a customer with this data_source_uuid and external_id are skipped.
name
The customer's name at the time they were excluded.
email
The customer's email at the time they were excluded.
excluded_at
The time the customer was added to the exclude list.