# Shareasale module

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

### How to get Token and Secret Key

1. Go to your account on Shareasale, follow: `Tools` → `API Reporting` and set IP of your server, which you use for the site. You can know correct IP of the server 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)

&#x20;   2\. Find `Token` and `Secret Key` and save 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` your Shareasale dashboard. Be sure to register the IP you’re sending API requests from.


---

# 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/shareasale.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.
