# Avantlink Products module

### How to get Affiliate ID

Login to your account, go to `Account` → `API Authorization Key` and find your `Affiliate ID`.

![](/files/-M4t41VAqWeP1e99Bvwq)

### How to get Website ID

Login to your account, go to `Account` → `Edit Websites` and find your `Website ID`.

![](/files/-M4t4EKRWsg1pLu4Pv80)

### Merchant domains

The Avantlink API doesn't always provide direct product links or merchant domains. To address this, you need to manually add merchant-to-domain matching pairs. You can do this by adding the following code to your `functions.php` file:

```php
function my_avantlink_merchant2domain($m2d) {
    $m2d['Amazon'] = 'amazon.com';
    $m2d['GritrSports'] = 'gritrsports.com';

    return $m2d;
}

add_filter('cegg_avantlink_merchant2domain', 'my_avantlink_merchant2domain', 10, 1);
```


---

# 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://ce-docs.keywordrush.com/modules/affiliate/avantlinkproducts.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.
