Post Affiliate Pro API

 

Post Affiliate Pro system is divided into two parts:

  • client – AJAX application running on browser

  • server – PHP based back end

 

Client communicates with server using requests and responses encoded in JSON format.

Because of this, the application natively supports API and everything that you can control through merchant or affiliate control panel, you can access also from external application using the same API calls.

 

This includes retrieving, editing, adding affiliates, banners, campaigns, transactions, setting configuration, getting statistics data, etc. for both merchant and affiliate.

 

There are three API layers:

 

Communication level

requests and responses are in raw JSON format

Low level API

calls of Gpf_Rpc_GridRequest, Gpf_Rpc_FormRequest

High level API

objects like Pap_Api_Affiliate, Pap_Api_Commission

 

Requirements for using API classes you can read here.

 

Notice, that all dates you receive and send through API are in server timezone (PAP uses by default 'America/Los_Angeles' timezone), but dates displayed through merchant/affiliate panel are shifted into client timezone. Read more here.

×