> 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/shareasale.md).

# Shareasale module

{% hint style="danger" %}
This module is deprecated. ShareASale is shutting down and fully transitioning to the Awin platform. Please use the [AWIN](/modules/affiliate/awin.md) or [Feed module](/modules/feed-modules.md) instead.
{% endhint %}

### How to get Token and Secret Key

1. Go to your account on Shareasale, follow `Tools` → `API Reporting`, and set the IP of your server, which you use for the site. You can get the correct server IP from your hosting provider.

![](/files/-M6EnVFxceI3S3NPoBc3)

2. Find `Token` and `Secret Key`, then save the settings.

### How to get Affiliate ID

You can find Affiliate ID in the top left corner of your account, near your login name.

### FAQ

**I am getting this error message: Error: Invalid Account - Error Code 4002 - xx.xx.xx.xx**

![](/files/-M6EofS3_ULP9lmXiNCj)

This means your IP address isn’t registered under `Tools` → `API Reporting` in your Shareasale dashboard. Be sure to register the IP you’re sending API requests from.
