> 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.

![](https://4254262503-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3fnB7iKYwDc1Xhr3H3%2F-M6EnN2mGQ45GzJ_tQco%2F-M6EnVFxceI3S3NPoBc3%2Fimage.png?alt=media\&token=e309a20e-ef84-46e8-8262-e0e884daab22)

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**

![](https://4254262503-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3fnB7iKYwDc1Xhr3H3%2F-M6EnN2mGQ45GzJ_tQco%2F-M6EofS3_ULP9lmXiNCj%2Fimage.png?alt=media\&token=5388b884-9aa3-4447-bbf6-8068ac789a71)

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.
