> For the complete documentation index, see [llms.txt](https://integrations.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integrations.impact.com/partner-api-reference/reference/exception-lists/exception-lists.md).

# Exception Lists

Endpoints for retrieving exception list details and items.

## Retrieve an Exception List

> Retrieves the details of an existing exception list using its unique ID. The ExceptionListId can be obtained from the Contracts API.<br>

```json
{"openapi":"3.1.0","info":{"title":"Partner Exception Lists API","version":"16"},"tags":[{"name":"Exception Lists","description":"Endpoints for retrieving exception list details and items."}],"servers":[{"url":"https://api.impact.com"}],"paths":{"/Mediapartners/{AccountSID}/ExceptionLists/{ExceptionListId}":{"get":{"operationId":"retrieveExceptionList","tags":["Exception Lists"],"summary":"Retrieve an Exception List","description":"Retrieves the details of an existing exception list using its unique ID. The ExceptionListId can be obtained from the Contracts API.\n","parameters":[{"name":"AccountSID","in":"path","required":true,"schema":{"type":"string"},"description":"Unique identifier for the partner account."},{"name":"ExceptionListId","in":"path","required":true,"schema":{"type":"string"},"description":"The unique identifier for the exception list."}],"responses":{"200":{"description":"The exception list object.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExceptionList"}}}}}}}},"components":{"schemas":{"ExceptionList":{"type":"object","properties":{"Id":{"type":"string","description":"Unique identifier for the exception list."},"Name":{"type":"string","description":"Display name of the exception list."},"State":{"type":"string","enum":["ACTIVE","CLOSED","DEACTIVATED"],"description":"The current state of the exception list."},"CampaignId":{"type":"string","description":"Unique identifier for the program this exception list applies to."},"Type":{"type":"string","enum":["CATEGORY","SKU"],"description":"The matching basis for this exception list. CATEGORY matches against the conversion's product category value; SKU matches against the conversion's SKU or ProductId value."},"CreatedDate":{"type":"string","format":"date-time","description":"Date and time the exception list was created (ISO 8601)."},"DeactivationDate":{"type":"string","format":"date-time","description":"Date and time the exception list was deactivated (ISO 8601). Empty if the list is still active."},"NumberOfItems":{"type":"integer","description":"The number of items in the exception list."},"ItemsUri":{"type":"string","description":"API resource path for retrieving the items in this exception list."},"Uri":{"type":"string","description":"Unique reference to the exception list object in the impact.com API."}}}}}}
```

## List Exception List Items

> Returns a list of all items in a specific exception list. Each item defines a product category or SKU value that triggers an alternate commission rate.

```json
{"openapi":"3.1.0","info":{"title":"Partner Exception Lists API","version":"16"},"tags":[{"name":"Exception Lists","description":"Endpoints for retrieving exception list details and items."}],"servers":[{"url":"https://api.impact.com"}],"paths":{"/Mediapartners/{AccountSID}/ExceptionLists/{ExceptionListId}/Items":{"get":{"operationId":"listExceptionListItems","tags":["Exception Lists"],"summary":"List Exception List Items","description":"Returns a list of all items in a specific exception list. Each item defines a product category or SKU value that triggers an alternate commission rate.","parameters":[{"name":"AccountSID","in":"path","required":true,"schema":{"type":"string"},"description":"Unique identifier for the partner account."},{"name":"ExceptionListId","in":"path","required":true,"schema":{"type":"string"},"description":"The unique identifier for the exception list whose items are being retrieved."}],"responses":{"200":{"description":"A list of exception list item objects.","content":{"application/json":{"schema":{"type":"object","properties":{"ExceptionListItems":{"type":"array","items":{"$ref":"#/components/schemas/ExceptionListItem"}}}}}}}}}}},"components":{"schemas":{"ExceptionListItem":{"type":"object","description":"An item within an exception list that defines a specific category or SKU value triggering an alternate commission rate.","properties":{"Id":{"type":"string","description":"Unique identifier for the exception list item."},"ListId":{"type":"string","description":"Unique identifier for the parent exception list."},"Name":{"type":"string","description":"Display name of the exception list item."},"Value":{"type":"string","description":"The category or SKU value that this item matches against, depending on the parent exception list's Type."},"MatchMode":{"type":"string","enum":["EQ","REGEX"],"description":"The matching methodology used to evaluate the value. EQ matches exactly; REGEX matches using a regular expression."},"CreatedDate":{"type":"string","format":"date-time","description":"Date and time this item was added to the exception list (ISO 8601)."},"Uri":{"type":"string","description":"Unique reference to the exception list item in the impact.com API."}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://integrations.impact.com/partner-api-reference/reference/exception-lists/exception-lists.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
