# Promo Code Exception Lists

Endpoints for retrieving promo code exception list details and items.

## Retrieve a Promo Code Exception List

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

```json
{"openapi":"3.1.0","info":{"title":"Partner Promo Code Exception Lists API","version":"16"},"tags":[{"name":"Promo Code Exception Lists","description":"Endpoints for retrieving promo code exception list details and items."}],"servers":[{"url":"https://api.impact.com"}],"paths":{"/Mediapartners/{AccountSID}/PromoCodeExceptionLists/{PromoCodeExceptionListId}":{"get":{"operationId":"retrievePromoCodeExceptionList","tags":["Promo Code Exception Lists"],"summary":"Retrieve a Promo Code Exception List","description":"Retrieves the details of an existing promo code exception list using its unique ID. The PromoCodeExceptionListId 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":"PromoCodeExceptionListId","in":"path","required":true,"schema":{"type":"string"},"description":"The unique identifier for the promo code exception list."}],"responses":{"200":{"description":"The promo code exception list object.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoCodeExceptionList"}}}}}}}},"components":{"schemas":{"PromoCodeExceptionList":{"type":"object","properties":{"Id":{"type":"string","description":"Unique identifier for the promo code exception list."},"Name":{"type":"string","description":"Display name of the promo code exception list."},"State":{"type":"string","enum":["ACTIVE","CLOSED","DEACTIVATED"],"description":"The current state of the promo code exception list."},"CampaignId":{"type":"string","description":"Unique identifier for the program this promo code exception list applies to."},"CreatedDate":{"type":"string","format":"date-time","description":"Date and time the promo code exception list was created (ISO 8601)."},"DeactivationDate":{"type":"string","format":"date-time","description":"Date and time the promo code exception list was deactivated (ISO 8601). Empty if the list is still active."},"NumberOfItems":{"type":"string","description":"The number of items in the promo code exception list."},"ItemsUri":{"type":"string","description":"API resource path for retrieving the items in this promo code exception list."},"Uri":{"type":"string","description":"Unique reference to the promo code exception list object in the impact.com API."}}}}}}
```

## List Promo Code Exception List Items

> Returns a list of all items in a specific promo code exception list. Each item defines a promo code value that triggers an alternate commission rate.

```json
{"openapi":"3.1.0","info":{"title":"Partner Promo Code Exception Lists API","version":"16"},"tags":[{"name":"Promo Code Exception Lists","description":"Endpoints for retrieving promo code exception list details and items."}],"servers":[{"url":"https://api.impact.com"}],"paths":{"/Mediapartners/{AccountSID}/PromoCodeExceptionLists/{PromoCodeExceptionListId}/Items":{"get":{"operationId":"listPromoCodeExceptionListItems","tags":["Promo Code Exception Lists"],"summary":"List Promo Code Exception List Items","description":"Returns a list of all items in a specific promo code exception list. Each item defines a promo code 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":"PromoCodeExceptionListId","in":"path","required":true,"schema":{"type":"string"},"description":"The unique identifier for the promo code exception list whose items are being retrieved."}],"responses":{"200":{"description":"A list of promo code exception list item objects.","content":{"application/json":{"schema":{"type":"object","properties":{"PromoCodeExceptionListItems":{"type":"array","items":{"$ref":"#/components/schemas/PromoCodeExceptionListItem"}}}}}}}}}}},"components":{"schemas":{"PromoCodeExceptionListItem":{"type":"object","description":"An item within a promo code exception list that defines a specific promo code value triggering an alternate commission rate.","properties":{"Id":{"type":"string","description":"Unique identifier for the promo code exception list item."},"ListId":{"type":"string","description":"Unique identifier for the parent promo code exception list."},"Name":{"type":"string","description":"Display name of the promo code exception list item."},"Value":{"type":"string","description":"The promo code value this item matches against."},"MatchMode":{"type":"string","enum":["EQ","REGEX"],"description":"The matching methodology used to evaluate the promo code 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 promo code exception list (ISO 8601)."},"Uri":{"type":"string","description":"Unique reference to the promo code exception list item in the impact.com API."}}}}}}
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://integrations.impact.com/partner-api-reference/reference/promo-codes-exception-lists/promo-code-exception-lists.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
