> For the complete documentation index, see [llms.txt](https://ce-docs.keywordrush.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ce-docs.keywordrush.com/modules/affiliate/avantlinkproducts.md).

# Avantlink Products module

### How to get Affiliate ID

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

![](/files/-M4t41VAqWeP1e99Bvwq)

### How to get Website ID

Log in 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);
```
