githubEdit

Affiliate Program API (Old Version)

circle-info

The Affiliate Program API only works with the "API" and "Affiliate Program API" modules enabled.

Activating the Modules:

After activating the module, go to the "Users" section, select the user ("Edit") for whom API access will be enabled, and activate the following settings:

Next, navigate to the "Affiliate Program" - "Settings" section and enable the API there:

How to Check if the Module is Active and Where to Get the Key?

If the module is activated, the affiliate dashboard page (usually at https://your_domain/paccount/) will display a line for the Rest API key in the information block, where you can find your personal key (api_key).

If needed, you can generate a new key by clicking on the "Change REST API Key" link. After a few seconds, a new key will appear in the "REST API Key" field, and the old key will no longer work.

Endpoint: https://your_domain/api.html

Data Passed via GET Parameters:

  • api_action – pp (this action is used by the ppapi module)

  • api_key – the issued key

  • method – the API method of the module

You can also obtain the API link by clicking on the Rest API key link in the affiliate dashboard, which will already contain your key and look like this:

https://siteurl/api.html?api_action=pp&api_key={api_key}&method={method}

API Methods:

get_info

Information about the partner

Request Parameters:

Information about affiliate clicks

Request Parameters:

Response:

get_exchanges

Information about affiliate exchanges

Request Parameters:

Response:

get_payouts

List of user requests for fund withdrawals

Request Parameters:

Response:

add_payout

Creating a payout request

Request Parameters:

Response:

Last updated