You are on page 1of 3

Affiliate’s postbacks

in Actionpay
Overview
There are two types of postbacks in Ationpay:

● global - can be set by an affiliate in Actionpay dashboard in profile settings in


“Global postback” tab. Also it can be set by Actionpay manager in affiliate settings.

A global postback sends to affiliate all the data about all the leads in all connected offers.

● local - can be set only by an affiliate in an offer settings in Actionpay dashboard.

A local postback sends to affiliate only the data about the leads in the offer (offers) it is set
for..

ATTENTION! Local postback has higher priority than global one.


If an affiliate has both local and global postbacks, then for the local one will be used for the
offer it is set for.

Postback can be set for 4 lead statuses:

1) Add - postback is sent when the lead is registered in Actionpay system


2) Confirmation - is sent when the lead is approved in Actionpay (that means when the
lead status changes to “hold”)
3) Rejection - is sent when the lead is rejected in Actionpay
4) Payment - is sent when the lead status changes to “Paid” in Actionpay (the final
approval status)

Attention! If postback is set for a status, it will be sent each time the status changes.
Attention! Postback is sent for all the offer aims.

Postback settings
Macros for affiliate’s postbacks in Actionpay

Macros (placeholders) - are the parameters that will automatically be changed to the
corresponding values when postback is sent to an affiliate.

Unique ID of a lead in Actionpay. (ATTENTION! NOT APID, NOT


{uniqueid}
UID)
{apid} APID (unique ID of a lead in an offer)
{offer} Offer ID in Actionpay
{source} Source ID in Actionpay
{aim} Aim ID in Actionpay
{landing} Landing ID in Actionpay
Time of the event in Unixtime format, passed in 'aptime' parameter by
{time}
default
{subid1}...{subid5} Subaccounts, should be sent in the tracking links as apsubid1-5
Revenue in aim's currency, passed in 'appayment' parameter by
{payment}
default
{currency} Revenue currency (Rubles are sent as RUR)
{currency2} Revenue currency (Rubles are sent as RUB)
{totalPrice} Order amount
{ip} User IP
{country} User country

All the values except {subid1}...{subid5} are generated by Actionpay.


{subid1}...{subid5} - macros for an affiliate’s variables to be sent back.

Postbacks and tracking links setting

An affiliate may send and get back in postbacks up to 5 variables. They can be click ID’s,
source ID’s, sub-affiliate’s ID’s or any other necessary variables.

Suppose the following variables need to be sent and returned in postback:

value1 value2 value3 value4 value5

There are two ways of sending them in the tracking links:


1) When value1 should replace the word “subaccount” that stands in the end of a
tracking link by default. The other values should go after it, divided with /:
*you should use this method if you want to use deeplinks.
http://n.actionpay.ru/click/****/98127/78792/value1/value2/value3/value4/value5

2) When the values are sent in GET parameters apsubid:

http://n.actionpay.ru/click/****/98127/78792/subaccount/?apsubid1=value1&apsubid2=val
ue2&apsubid3=value3&apsubid4=value4&apsubid5=value5

In this case the values in postback will be returned with the following macros:

http://postbackURL/?parameter1={subid1}&parameter2={subid2}&parameter3={subid3}
&parameter4={subid4}&parameter5={subid5}

Thus:
According to the first method:
● value1, sent as the first, will be returned as {subid1} macro
● value2, sent as the second, will be returned as {subid2} macro
● value3, sent as the third, will be returned as {subid3} macro
● value4, sent as the fourth, will be returned as {subid4} macro
● value5, sent as the fifth, will be returned as {subid5} macro

According to the second method:


● value1, sent in apsubid1, will be returned as {subid1} macro
● value2, sent in apsubid2, will be returned as {subid2} macro
● value3, sent in apsubid3, will be returned as {subid3} macro
● value4, sent in apsubid4, will be returned as {subid4} macro
● value5, sent in apsubid5, will be returned as {subid5} macro

You might also like