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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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